Skip to content

FlowFooter status prop; profile pill fits narrow top rows (0.28.1) - #59

Merged
kualta merged 2 commits into
mainfrom
footer-status-narrow-pill
Nov 26, 2026
Merged

kualta merged 2 commits into
mainfrom
footer-status-narrow-pill

Conversation

@kualta

@kualta kualta commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Two fixes the app rollouts found, released as 0.28.1.

  1. FlowFooter takes status?: boolean. It defaults to true; with status={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 its data-slot.
  2. FloatingHeader gives the brand priority, and ProfilePill fits narrow end slots.
    • The brand never shrinks. The end slot takes the remaining width (flex: 1 1 0).
    • No overlap. The end slot aligns its content with justify-content: safe flex-end, so anything too wide runs past the right inset instead of over the brand.
    • The name truncates. It is now min-w-0 with an ellipsis.
    • The name drops when there's no room. The end slot is a container (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-full capped 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's status prop.

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:

Width Brand Name Brand right edge → end content Name Ring outer edge
320 Industries fern / long 244 → 268 dropped 304 (inset)
320 Industries Join 244 → 258 (button ends at 316) — —
320 Time fern 163 → 228 whole 304
320 Time long 163 → 181 truncated, 75px 304
360 Industries fern 244 → 268 whole 344
360 Industries long 244 → 262 truncated, 34px 344
390 Industries fern / long 244 → 298 / 262 whole / truncated, 64px 374
390 Time fern / long 163 → 298 / 181 whole / truncated, 145px 374
  • Constants: the avatar centre stays at y 48, and the accessible name stays <name> Online in every case.
  • Known limit: a 74px "Sign in" beside "Flow Industries" at 320px still doesn't fit. It runs to x 332, 12px past the viewport, rather than overlapping the brand. Join fits.
  • New spec: tests/floating-header.spec.ts, added to the visual job, covers all 18 row cases and the footer with and without the status line.
  • Local checks: bun run lint (the 9 warnings already on main) and bun run typecheck pass. Locally, floating-header, floating, presence, a11y and header specs all pass: 60 tests.

Simplify pass: I reviewed the diff (footer prop, end-slot CSS, name slot) and found nothing to simplify.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T15:50:13.015110Z 580c147 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kualta
kualta merged commit 114ea9b into main Nov 26, 2026
5 checks passed
@kualta
kualta deleted the footer-status-narrow-pill branch November 26, 2026 15:55
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