Repository navigation
FlowFooter status prop; profile pill fits narrow top rows (0.28.1) - #59
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Two fixes the app rollouts found, released as 0.28.1.
FlowFootertakesstatus?: boolean. It defaults totrue; withstatus={false}the StatusWidget line ("All systems operational") is not rendered, and no status request is made. The status app shouldn't repeat its own verdict, and it no longer needs to hide the widget through itsdata-slot.FloatingHeadergives the brand priority, andProfilePillfits narrow end slots.flex: 1 1 0).justify-content: safe flex-end, so anything too wide runs past the right inset instead of over the brand.min-w-0with an ellipsis.flow-top-row-end). Below 5rem of slot the pill hides its name visually and keeps the avatar and ring; the name stays in the accessibility tree, so the button is still named "fern Online". Shorter wordmarks keep the full name.This also fixes a 0.28.0 bug that CI's font rendering exposed. In 0.28.0 the end slot was only as wide as its content, so the pill's
max-w-fullcapped it 4px short, and the components baseline showed "fern" truncated to "fe…" in the top row. With the slot filling the row, the name shows whole: the re-rendered baseline shows "fern" (82 changed pixels, all in that name).No breaking changes. The only API addition is
FlowFooter'sstatusprop.Testing
Each case below was checked at 320, 360 and 390px with a fixture page: two brands ("Flow Industries" and "Flow Time"), and a short name ("fern"), a long name (27 characters) or a Join button. Light and dark were both checked at 320px. Measurements:
<name> Onlinein every case.tests/floating-header.spec.ts, added to the visual job, covers all 18 row cases and the footer with and without the status line.bun run lint(the 9 warnings already onmain) andbun run typecheckpass. Locally,floating-header,floating,presence,a11yandheaderspecs all pass: 60 tests.Simplify pass: I reviewed the diff (footer prop, end-slot CSS, name slot) and found nothing to simplify.