Skip to content

fix(web): align usage page skeleton layout - #8111

Merged
maria-rcks merged 1 commit into
pingdotgg:mainfrom
tris203:t3code/fix-usage-page-skeleton-layout
Aug 24, 2026
Merged

fix(web): align usage page skeleton layout#8111
maria-rcks merged 1 commit into
pingdotgg:mainfrom
tris203:t3code/fix-usage-page-skeleton-layout

Conversation

@tris203

@tris203 tris203 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

What Changed

The usage-page skeleton now mirrors the loaded layout: it reserves space for the breakdown section, matches the chart-label and total-value heights, uses provider-neutral placeholders, and gives provider labels enough room beside their session counts.

Why

The skeleton had drifted from the loaded page, causing visible layout shift as usage data arrived. The provider summary column could also truncate short provider names when the session count and total were present.

UI Changes

Before

Screenshot_2026-08-24_16-19-45 Screenshot_2026-08-24_16-26-21

After

Screenshot_2026-08-24_15-52-59 image

Verification

  • vp lint apps/web/src/components/usage/UsagePage.tsx
  • vp test run apps/web/src/components/usage/UsageProviderChart.test.ts
  • vp run --filter @t3tools/web typecheck
  • git diff --check

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes — not applicable; no motion changes

Created with GPT-5.6-sol via the Codex harness in T3 Code.


Note

Low Risk
Loading-state UI and Tailwind layout only; no data fetching, auth, or business logic changes in this diff.

Overview
Aligns the usage loading skeleton with the loaded page to cut layout shift while usage data is still settling.

Widens the main lg grid’s left column from 16rem to 18rem on both the live summary and UsageSkeleton, giving provider labels and session counts more horizontal room.

Updates skeleton placeholders: provider-colored dots and brand marks become neutral bg-muted circles; chart axis and totals value bars are slightly taller; and a new Breakdown block (heading, toggle stub, table area) mirrors the section that appears after load.

Reviewed by Cursor Bugbot for commit b7f4cda. Bugbot is set up for automated code reviews on this repo. Configure here.

Note

Align usage page skeleton with 18rem left column and breakdown section

Updates the loading skeleton in UsagePage.tsx to match the actual page layout. The left grid column widens from 16rem to 18rem on both the page and the skeleton, and the skeleton now uses neutral circles for provider indicators, taller placeholder bars, and a new Breakdown section placeholder.

Macroscope summarized b7f4cda.

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ebd3f4a7-0e53-4a8e-974d-aee0e0845bde

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Aug 24, 2026
Comment thread apps/web/src/state/usage.ts Outdated
@tris203
tris203 force-pushed the t3code/fix-usage-page-skeleton-layout branch from 5bfca5d to 6cd04d6 Compare August 24, 2026 15:35

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6cd04d6. Configure here.

Comment thread apps/web/src/state/usage.ts Outdated
@tris203
tris203 force-pushed the t3code/fix-usage-page-skeleton-layout branch from 6cd04d6 to d02665b Compare August 24, 2026 15:41

@macroscopeapp macroscopeapp Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One finding: treating any interrupt-only query failure as pending can latch the usage page into a permanent skeleton. Details inline.

Posted via Macroscope — UI Consistency

Comment thread apps/web/src/state/usage.ts Outdated
@macroscopeapp

macroscopeapp Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at b7f4cda

Macroscope's review found this PR approvable — This is a small, self-contained usage-page UI adjustment limited to grid sizing and loading-skeleton visuals. It does not change data handling, application workflows, or production infrastructure.

You can add or adjust custom eligibility rules. Learn more.

@tris203
tris203 force-pushed the t3code/fix-usage-page-skeleton-layout branch from d02665b to b7f4cda Compare August 24, 2026 16:24
@tris203 tris203 changed the title fix(web): stabilize usage page loading fix(web): align usage page skeleton layout Aug 24, 2026
@github-actions github-actions Bot added size:S 10-29 changed lines (additions + deletions). and removed size:M 30-99 changed lines (additions + deletions). labels Aug 24, 2026
@maria-rcks
maria-rcks merged commit 8287f2c into pingdotgg:main Aug 24, 2026
24 checks passed
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Aug 25, 2026
## What's Changed
* fix(web): align usage page skeleton layout by @tris203 in pingdotgg/t3code#8111
* fix(web): make terminal links appear clickable only when clickable by @flamboh in pingdotgg/t3code#7488
* fix(web): make Windows file links clickable in chat by @t3dotgg in pingdotgg/t3code#8081
* fix(web): sort usage models by token count by @RakshithBhat03 in pingdotgg/t3code#8108
* fix: open agent file links in the file viewer by @StiensWout in pingdotgg/t3code#8098

## New Contributors
* @flamboh made their first contribution in pingdotgg/t3code#7488

**Full Changelog**: pingdotgg/t3code@v0.0.34-nightly.20260824.1179...v0.0.34-nightly.20260825.1180

Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.34-nightly.20260825.1180
frankdavidcorona pushed a commit to frankdavidcorona/t3code that referenced this pull request Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants