Skip to content

fix(topbar): keep the generation-speed pill's width so it shows again (rebased from #501) - #568

Merged
kahme247 merged 1 commit into
mainfrom
rebase-pr-501-2026-11-23-v2
Nov 23, 2026
Merged

kahme247 merged 1 commit into
mainfrom
rebase-pr-501-2026-11-23-v2

Conversation

@kahme247

@kahme247 kahme247 commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Replacement for #546 (rebased from #501 by @Broglah1 — fix(topbar): keep the generation-speed pill's width so it shows again).

#546 itself is dirty against current main and cannot be fixed by pushing to its branch: both sides inserted a different block right after ## [Unreleased], so Git conflicts even though the branch tip already contains main's entry. This replacement recreates the branch from current main (08717b6) and re-applies the same two changes, with a fresh CHANGELOG entry under [Unreleased] / ### Fixed. No rebase came after the maintainer's request on #501, so this supersedes #546; the original will be closed.

Change: the generation-speed pill's box gets an explicit width: calc(10ch + 33px) (matching its flex basis), because inline-size containment otherwise sizes it to zero and the topbar-speed container query hides the pill on every screen. Phone-width screens still hide it.

Tests run in a fresh main tree with this change applied:

  • tsc --noEmit — clean.
  • bun test --timeout 30000 ./components/AppShell-app-update.test.mjs ./components/AppShell-provider-usage.test.mjs — 9 pass, 0 fail.

Summary by CodeRabbit

  • Bug Fixes
    • Restored visibility of the generation-speed indicator in the top bar on wider screens. It remains hidden on phone-width screens.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The generation-speed metrics container now has an explicit width of calc(10ch + 33px). The changelog records that the generation-speed pill appears in the top bar and remains hidden on phone-width screens.

Changes: Generation-speed pill visibility

Layer / File(s) Summary
Metrics container sizing
components/AppShell.tsx, CHANGELOG.md
The metrics container now has an explicit width of calc(10ch + 33px). Comments describe inline-size containment and container-query visibility. The changelog records the pill’s return and its continued absence on phone-width screens.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix · Severity of issue fixed: Low

Possibly related PRs

  • ompweb-dev/ompweb#546: Applies the same generation-speed pill width fix and adds a changelog entry. The PR description says this change replaces #546.
  • ompweb-dev/ompweb#501: Reapplies the original fix for the zero-width metrics container by setting its width to calc(10ch + 33px).

Suggested reviewers: andrebrait, gtanger

Merge Risk: Minimal · up to ca41a

The generation-speed pill should reappear in the top bar on wider screens and stay hidden on phones. No concrete merge-blocking risk remains.

Security architecture risk: Minimal · up to ca41a

The change makes the existing generation-speed indicator visible when there is room. It does not change who can access the metric, how it is retrieved, or what actions the top bar can perform.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the fix (keeping the generation-speed pill's width so it shows again) and the topbar area. The changeset sets an explicit width of calc(10ch + 33px) on the speed metrics container in c…
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: Title check

Explanation

The title names the fix (keeping the generation-speed pill's width so it shows again) and the topbar area. The changeset sets an explicit width of calc(10ch + 33px) on the speed metrics container in components/AppShell.tsx and adds a matching changelog entry. The title's main point matches the objectives. The '(rebased from #501)' suffix is process noise but does not make the title misleading.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c1d3ae2e-fa31-4189-96d3-ca6f5130f9d1
Commits

Reviewing files that changed from the base of the PR and between 08717b6 and ca41a37.

Files selected for processing: 2

  • CHANGELOG.md
  • components/AppShell.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

@kahme247
kahme247 merged commit c93b5b1 into main Nov 23, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant