Skip to content

feat(flags): move the Flags console onto the one console-ui vocabulary - #5554

Open
shepherdjerred wants to merge 2 commits into
mainfrom
feat-flags-console-ui-look
Open

shepherdjerred wants to merge 2 commits into
mainfrom
feat-flags-console-ui-look

Conversation

@shepherdjerred

@shepherdjerred shepherdjerred commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Why

Flags (#5163) was built on the deprecated console-ui page kit. This moves it onto the one vocabulary every other console uses, so the page kit can be deleted (K1).

What

  • ConsoleShell, shared ops-theme key (old flags-theme migrated), theme-color metas.
  • Pages are HeaderBar + FigureStrip + Section with .ui-table lists; StatusGlyph, Chip, Tabs, State, Banner, FilterBar, RelativeTime/ExactTime.
  • Editor: DescriptionList facts, shared Dialog for the review, Banner conflict, Field/Switch/Select/Textarea/Fieldset for Form mode, CodeBlock for values; Monaco unchanged. History is an expandable-row table.
  • Conformance allowlist: 22 entries / 3 files of violations before, [] after; eslint-suppressions.json (deprecated-use suppressions) removed.
  • Behavior change: choosing "Custom…" in the model picker no longer auto-focuses the id field (the shared Select returns focus to its trigger; the field is next in tab order).

Demo

Page Before After
home, Light
home, Dark
home, Phone 375px
deployment, Light
deployment, Dark
deployment, Phone 375px
flag, Light
flag, Dark
flag, Phone 375px
compare, Light
compare, Dark
compare, Phone 375px
drift, Light
drift, Dark
drift, Phone 375px
archive, Light
archive, Dark
archive, Phone 375px

Verification

  • bunx turbo run build typecheck test lint --filter=@shepherdjerred/flags: 128 tests pass, lint clean.
  • bunx lefthook run pre-commit, bun run jscpd, scripts/checks/check-directory-file-counts.ts: pass.
  • Flags has no Playwright suite or extended-tier steps; rendered in a real browser (PinchTab) against fixture data.
  • Not run: live Flags deployment (acceptance after merge).

🤖 Generated with Claude Code

@shepherdjerred

Copy link
Copy Markdown
Owner Author

This change is part of the following stack:

Change managed by git-spice.

@greptile-apps

greptile-apps Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository. Configure in Code Review Settings.

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@shepherdjerred
shepherdjerred marked this pull request as ready for review December 3, 2026 06:18
@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for f6f43e6 from the CI review gate.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 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-12-03T06:25:32.019482Z f37c72b Manual request
ℹ️ 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.

@shepherdjerred

Copy link
Copy Markdown
Owner Author

@codex review

Automated re-review request for f37c72b from the CI review gate.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f37c72b6a9

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

)}
</div>
<tr id={bodyId} className="ui-table-child">
<td colSpan={4} className="fl-history-body" data-wrap="">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the expanded history cell in table layout

When a history entry is expanded, this cell receives .fl-history-body, which sets display: grid in styles.css. That removes its table-cell layout behavior, so colSpan={4} no longer spans the history table: the browser creates an anonymous cell around the grid and confines the before/after diff and restore controls to the first column. Keep the td as a table cell and put the grid class on an inner wrapper so expanded changes use the full table width.

Useful? React with 👍 / 👎.

shepherdjerred and others added 2 commits December 2, 2026 23:30
Why
Flags (#5163) was built on the deprecated console-ui page kit: eyebrow
headings, stat cards, pill badges, a native <dialog> and local copies of
shared pieces. Every other console is on the header bar, figure strip,
sections and shared controls, and the page kit is deleted once its last
consumer leaves.

What
- ConsoleShell frames the app (switcher, palette, one declared navigation,
  phone drawer); the theme uses the shared ops-theme key (the old
  flags-theme preference is migrated) and index.html carries theme-color.
- Every page is a HeaderBar, a FigureStrip and Sections with .ui-table
  lists; status is StatusGlyph, tags Chip, view filters Tabs, loading and
  empty and error lines State and Banner, the list search FilterBar.
- The editor shows a flag's facts in a DescriptionList, its review is the
  shared Dialog, the conflict is a Banner, and Form mode uses Field, Switch,
  Select, Textarea and Fieldset. Monaco stays; values are CodeBlock; "Last
  fetched", "Last changed" and "Last evaluated" are RelativeTime and audit
  times are ExactTime (Pacific). History is a table with expandable rows.
- styles.css keeps only app classes (two-pane body, diff, form layout); the
  conformance allowlist and eslint suppressions are now empty.
- Tests move one for one from class selectors to roles, labels and data
  attributes; the Select and Dialog are driven through Base UI.

Verification
- bunx turbo run build typecheck test lint --filter=@shepherdjerred/flags:
  128 tests pass, lint clean.
- bunx lefthook run pre-commit, bun run jscpd and the directory file-count
  check pass.
- Rendered against fixture data in light, dark and 375px phone (before from
  origin/main, after from this branch).
- Not run: live Flags deployment (acceptance after merge). Choosing Custom
  in the model picker no longer moves focus into the id field, because the
  shared Select returns focus to its trigger.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…port when it has closed

Why
Moving Flags onto the shared Select dropped the model/enum picker's
aria-describedby and invalid state, and choosing Custom no longer moved
focus to the model id field.

What
- Select takes aria-describedby, invalid (aria-invalid and the error
  border) and onOpenChangeComplete; the README and a test cover them.
- The Flags model and enum pickers pass describedBy and invalid again, and
  Custom focuses the id field once the list has closed (tested).
- Remove the unused ModelChoice.detail and its catalog description field.

Verification
- bunx turbo run build typecheck test lint for flags and console-ui pass;
  lefthook pre-commit and jscpd pass.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shepherdjerred
shepherdjerred force-pushed the feat-flags-console-ui-look branch from f37c72b to b3a4edd Compare December 3, 2026 07:30
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