GeezerVison is showing github.com — refactor(web): move the preview loading bar shadow into its CSS class by only21mil · Pull Request #28826 · pingdotgg/t3code
Conversation
Problem
The preview loading bar still passes its glow as an inline style, style={{ boxShadow: "0 0 6px 1px var(--color-ring)" }}. The value is static. It is left over from before #7561, when the same inline object also carried the bar's computed width. #7561 moved the width and animation into .preview-loading-progress in index.css and left the shadow behind. docs/internals/web-ui.md asks for no style={{ ... }} for static values.
Change
Remove the inline style from the loading bar in PreviewChromeRow.tsx and add the same declaration, box-shadow: 0 0 6px 1px var(--color-ring);, to the existing .preview-loading-progress rule. The shadow value, theme token, animation, transitions and reduced-motion rules are unchanged.
I tried a Tailwind class first (shadow-[0_0_6px_1px_var(--color-ring)]), but shadcn/no-arbitrary-values rejects arbitrary values outside components/ui. The bar already has this global class for its animation, so the shadow joins it there rather than adding a new theme token for one element.
Scope and approval
Behavior-preserving maintenance with no visible change, so no prior issue or discussion. It finishes the move #7561 started. Maintainers may prefer a theme shadow token instead; this PR keeps it to the existing class.
Verification
vp run check:changed 3fd2b855c5: format, lint, knip, typecheck (web, scripts), React Compiler check and nearby tests pass.
- Web,
vp run dev with an empty database: opened the Browser panel and entered a non-routable address so the tab stays loading. Read getComputedStyle on the bar for base and this branch:
- light:
oklch(0.488 0.217 264) 0px 0px 6px 1px on both
- dark:
oklch(0.571 0.21 264) 0px 0px 6px 1px on both
- opacity 1, transform
matrix(0.9, 0, 0, 1, 0, 0), animation preview-loading-progress 5.3s and the same transitions on both. The branch has no style attribute on the element.
- After Stop, the bar goes back to opacity 0 with the same shadow.
- Desktop,
vp run dev:desktop on macOS, same flow in the app's Browser panel, values read in the app's DevTools: the same shadow on base and this branch, with no style attribute on the branch.
- Reduced motion, desktop launched with Chromium's
--force-prefers-reduced-motion: prefers-reduced-motion: reduce matches, animation and transition are none, and the shadow is the same on base and this branch.
- The screenshots below are cropped to the bar and its glow. A pixel compare of that strip is identical, base vs branch, for web light, web dark, desktop and desktop with reduced motion; each base and branch image pair below is byte-identical.
Base, light:

This branch, light:

Base, dark:

This branch, dark:

Desktop, base:

Desktop, this branch:

Desktop with reduced motion, base:

Desktop with reduced motion, this branch:

Not checked:
- Desktop in dark theme (web dark is above).
- Mobile is not affected; it has its own native preview UI.
Prior PRs
Generated with Claude Opus 5.5 and Claude Sonnet 5.5 and GPT-6.1 Terra and GPT-6.1 Sol in T3 Code Nightly
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The static glow was left in an inline style after pingdotgg#7561 moved the bar's
width and animation into .preview-loading-progress.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Approvability
Verdict: Approved at a7007bc
Macroscope's review found this PR approvable — The preview loading bar’s existing shadow moves from an inline style into its CSS class without changing its value or scope. No product defaults or loading behavior change.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 3fd2b85 and a7007bc.
Files selected for processing: 2
-
apps/web/src/components/preview/PreviewChromeRow.tsx
apps/web/src/index.css
Files with no reviewable changes: 1
-
- apps/web/src/components/preview/PreviewChromeRow.tsx
Limit details: You’ve used all 10 included reviews currently available.
Walkthrough
-
The preview loading indicator’s box shadow is now defined in CSS instead of inline. The CSS rule uses the ring color for the shadow.
Changes: Preview loading glow
| Layer / File(s) |
Summary |
Loading indicator styling apps/web/src/components/preview/PreviewChromeRow.tsx, apps/web/src/index.css |
Removed the inline box shadow from the loading indicator. Added a ring-colored box shadow to .preview-loading-progress. |
Estimated code review effort: 1 (Trivial) | ~3 minutes
Change: Refactor
Suggested labels: size:XS
Suggested reviewers: flamboh
Merge Risk: Minimal · up to a7007
-
This CSS-only refactor introduces no identified merge-blocking risk.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly summarizes the main change: moving the preview loading bar shadow into its CSS class. |
| Description check |
 |
The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the behavior-preserving change, reports focused checks and before/after screenshots, a… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Description check
-
Explanation
The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the behavior-preserving change, reports focused checks and before/after screenshots, and notes what was not checked.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Usage-based review receipt
Note This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note 🤖 Opus 5.5 replying on behalf of Victor.
Closing: an internal style refactor with no user-visible change.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:XS
0-9 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|