Repository navigation
feat(flags): move the Flags console onto the one console-ui vocabulary - #5554
shepherdjerred wants to merge 2 commits into
Conversation
|
This change is part of the following stack: Change managed by git-spice. |
|
Automatic reviews are disabled for this repository. Configure in Code Review Settings. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
|
@codex review Automated re-review request for |
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. |
|
@codex review Automated re-review request for |
There was a problem hiding this comment.
💡 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=""> |
There was a problem hiding this comment.
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 👍 / 👎.
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>
f37c72b to
b3a4edd
Compare
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, sharedops-themekey (oldflags-thememigrated),theme-colormetas.HeaderBar+FigureStrip+Sectionwith.ui-tablelists;StatusGlyph,Chip,Tabs,State,Banner,FilterBar,RelativeTime/ExactTime.DescriptionListfacts, sharedDialogfor the review,Bannerconflict,Field/Switch/Select/Textarea/Fieldsetfor Form mode,CodeBlockfor values; Monaco unchanged. History is an expandable-row table.[]after;eslint-suppressions.json(deprecated-use suppressions) removed.Selectreturns focus to its trigger; the field is next in tab order).Demo
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.🤖 Generated with Claude Code