Skip to content

Add the tab actions, the short input and the tall field, and decline the rest - #188

Merged
pournasserian merged 5 commits into
mainfrom
171-control-parts
Dec 1, 2026
Merged

pournasserian merged 5 commits into
mainfrom
171-control-parts

Conversation

@pournasserian

@pournasserian pournasserian commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

The second and last pull request for #171, after #177. It builds the rest of the parts that two screens need, declines those that one screen alone draws, and settles the two points the issue left open.

Built

Row of #171 Built as Replaces
Tabs: actions at the end of the row FlTabs.Actions (RenderFragment?), rendered in div.fl-tabs__actions after the list and outside it, since a list of tabs holds tabs alone. On the line of the list; where the list would be narrower than 12rem, the actions go under it, at the end. screen-tabs-action (content list, entry editor)
Input: a width modifier for short values fl-input--short on the box: at most 12rem. The modifier sets the width itself, as --mono sets its font: a default on every box would override the width of a search field, whose rules come earlier in the joined stylesheet screen-short, gallery-settings-short (entry editor, settings)
Field, horizontal: label and help together beside a tall control A fix of fl-field--horizontal: the first control that is not a box of one line (a text area, a group, a drop zone) spans the rows of the label and the help, so the help follows its label; a drop zone starts level with its label. A box of one line keeps the old rows, so its error stays right under it. screen-tall, --start, gallery-settings-tall

Public API: FlTabs.Actions.

Declined (plan, section 3, rule 7: one reference screen draws it)

Row The one screen What it does instead
Tabs: a note in a tab, and a neutral dot entry editor The locale tabs say their state in text ("FR · French (draft)"), as the gallery already did; the reference does the same now.
Badge: an outline variant content list A locale with no translation is an Info badge, with "No translation" in its text.
Sortable list: an item with a header row and a body; Disclosure: a note in its summary entry editor The blocks are plain items of FlSortableList, and their summary is the name of the block.
Field: an icon in the label entry editor None in the gallery; the reference keeps an icon in its own label markup.
Table: a way to hide the header row dashboard The header row shows.
Table: truncation of a long title none draws it Not built: cutting a title link with overflow: hidden would clip its focus ring.

They are added to the declined list of the plan.

Decided

  • The typed confirmation of the delete dialog: native validation stays the pattern (rule 3, native first). A button that waits for each keystroke needs an interactive mode or a page script. Recorded in reference-screens.md and settings-reference.md; not a contract, so no decision record.
  • Controls stay 32 px high. Not changed here: that one is the maintainer's to decide.

No rule named by the issue is left in design/system/screens/screens.css or gallery/Gallery.Client/wwwroot/gallery.css; what is left in screens.css is host CSS by earlier decision, and screen-crumb-current, which #173 removes.

Tests

  • bUnit: FlTabsTests.ActionsStandBesideTheListAndBeforeThePanels.
  • Browser, Foundations/ComponentPartsTests: the actions stand on the line of the list and outside it, in right to left; the short input keeps 12rem and the help of a tall control follows its label (settings); the error of a short control in a horizontal field stays under it (field page).
  • Screens/ContentListTests: the missing translation is found by its Info badge.
Command Result
dotnet build -c Release -warnaserror 0 warnings, 0 errors
dotnet test --project tests/FluentCMS.Components.Tests 797 passed
dotnet test --project tests/FluentCMS.Components.Browser --filter-namespace ...Screens --filter-namespace ...Layout --filter-namespace ...Forms --filter-namespace ...Foundations (three modes) 806 of 813 on the first full run; the 7 that failed (WebAssembly prerender checks, a frame menu, the rail after navigation, a drop zone, the palette at 320) passed 21 of 21 alone, and touch nothing this changes. After the review fixes: the tabs, field, number and text input, settings and part tests, 178 passed.
npx --yes markdownlint-cli2@0.24.2 "**/*.md" 0 issues
Design pages over HTTP, 1440, 1280, 320 the actions on the line of the tabs and under them at 320, the help 6 px under its label, the error 6 px under its control, no horizontal scroll, no console error

Not run locally: Firefox and WebKit (nightly), the visual job (CI only).

Visual baselines

Expected to change, each to be reviewed from the CI artifact: the content list (the Info badge), the entry editor (the plain block items, no notes), the settings (the fields beside a tall control), field/horizontal-*, the new demos of tabs and number-input, and the sections of tabs below the new one.

Closes #171

@pournasserian

Copy link
Copy Markdown
Member Author

Review by a fresh reviewer, given the diff of this branch and the issue only (before the pull request opened, while #177 was still open), and what became of each point. Fixed in c49dd0b unless said otherwise.

  1. Must fix: a short control with help and an error got a large gap above the error. Every first control spanned the rows of the label and the help, so the help sized the second row and pushed the error under it (41 px on Items per page of the settings reference, where the row gap is 6). Now only the first control that is not a box of one line (fl-input, fl-select, fl-segmented, fl-switch, fl-checkbox) spans those rows; a box of one line keeps the old rows, so its error is right under it. Measured after: 6 px on Items per page and on Support address, and the help of Description still 6 px under its label. Only the first control spans, so two controls in one field no longer share a cell. New test: ComponentPartsTests.TheErrorOfAShortControlInAHorizontalFieldStaysUnderIt.
  2. The visual baselines. They come from this pull request's CI run and are reviewed before they are committed.
  3. The tab line in forced colours stopped where the actions began; the actions now take the same CanvasText border as the list.
  4. The actions under a narrow list carry a short line of their own. Left as is: it marks the end of the row of tabs where the actions wrap, and nothing can tell a wrapped row apart in CSS.
  5. The reference puts fl-tabs__actions inside the <nav> of its tabs, where the component renders them after the list in a <div> root. Left: the reference's root is the <nav> itself; the actions are outside the list in both.
  6. The plan's list of what is left in screens.css now names screen-crumb-current, which Design pages: remove the stand-ins and the leftovers #173 removes.
  7. fl-input--short on the gallery: a demo on the Number input page and the Classes rows of Text input and Number input.
  8. The settings test missed finding 1: covered by the new test above.

Not a code change: the reviewer's browser tool saved page snapshots into another session's worktree; they were removed, and that worktree was left as it was.

Re-run on the rebased branch (on 6eabb4a): component tests, 797 passed; ComponentPartsTests, the tabs, field, content list, entry editor and settings tests in the three modes, 201 passed; markdownlint, 0 issues.

@pournasserian

Copy link
Copy Markdown
Member Author

The first visual run caught a fault of this pull request: the global search of the header and the search fields of the toolbar and the palette changed width, because the default max-inline-size that fl-input took with a token came after the width of fl-search-field in the joined stylesheet (patterns come before components). Fixed in b7639da: only fl-input--short sets a width, and no box gets a default. The baselines are taken from the run on that commit, not from the first one.

@pournasserian

Copy link
Copy Markdown
Member Author

Visual baselines, from the run on 4bb6151, each looked at before it was committed (08cbc94): the content list (a missing translation is an Info badge; nothing else in the list moved), the entry editor (the blocks are plain items of the sortable list, without notes, and the name of a block keeps its space after its icon), the settings (Description's label and help sit together beside the text area; the other fields as before), and the new demos tabs/actions-1 and number-input/sizes-2. No other route changed. The overprint of the term Updated in the editor's Info card is in the old and the new captures alike; it predates this pull request and is #190.

@pournasserian
pournasserian merged commit 7839a86 into main Dec 1, 2026
8 checks passed
@pournasserian
pournasserian deleted the 171-control-parts branch December 1, 2026 03:38
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.

Component parts the reference screens work around

1 participant