GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@only21mil

@only21mil only21mil commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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:

Loading bar and glow on base, light theme

This branch, light:

Loading bar and glow on this branch, light theme

Base, dark:

Loading bar and glow on base, dark theme

This branch, dark:

Loading bar and glow on this branch, dark theme

Desktop, base:

Desktop app loading bar and glow on base

Desktop, this branch:

Desktop app loading bar and glow on this branch

Desktop with reduced motion, base:

Desktop app with reduced motion, loading bar and glow on base

Desktop with reduced motion, this branch:

Desktop app with reduced motion, loading bar and glow on 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

  • perf(web): stop preview loading rerenders #7561 by Bilal Bakr (Bil0000) moved the loading bar's progress into CSS; this finishes that move for the shadow.

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.

All reactions
@only21mil @claude
refactor(web): move the preview loading bar shadow into its CSS class
a7007bc
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]>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 1, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 1, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 3fd2b85
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8b5ca8b2-1075-4e15-85e1-696dfdabf4ba
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: Passed 4
Check name Status Explanation
Title check Passed The title clearly summarizes the main change: moving the preview loading bar shadow into its CSS class.
Description check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Usage-based review receipt

  • Mode: Continue automatically
  • Reviewed files: 1
  • Charged: $0.25
  • View usage details

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@spoukyii spoukyii mentioned this pull request Nov 3, 2026
fix(web): preview address bar keeps IME text on a composing Enter or Escape #30449
Closed
@only21mil

only21mil commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Note

🤖 Opus 5.5 replying on behalf of Victor.

Closing: an internal style refactor with no user-visible change.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@only21mil only21mil closed this Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

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.

Projects

None yet

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.

1 participant

@only21mil
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.