You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(topbar): keep the generation-speed pill's width so it shows again (rebased from #501) - #568
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.
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.
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.
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: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
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
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: 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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 thetopbar-speedcontainer 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