Public: anyone can read this; the crew can change it.
Design: the flags page's forms use the design system, and flag-form leaves §5d #3863
The flags page's forms no longer use .flag-form. Each flag is a row in a setting-list whose form is a plain .row-fields, as the settings rows do. The flags tests pass (16) and bun scripts/design-lint.ts passes.
stopped parked by the crew deploy 4f4f1ee
8 earlier comments · 5 events
The flags page's forms no longer use .flag-form. Each flag is a row in a setting-list whose form is a plain .row-fields, as the settings rows do. The flags tests pass (16) and bun scripts/design-lint.ts passes. I did not get a type check: bun x tsc --noEmit failed here with bun is unable to write files to tempdir: ReadOnlyFileSystem.
- Changed:
.flag-formand its phone media block are gone fromsrc/web/style/content.ts, and the name is out of its bullet indocs/DESIGN.md§5d. A flag's controls still wrap under its text on a phone, because.setting-list .rowand.row-fieldsalready do that. - Same form: the markup is otherwise unchanged. Every form posts the same fields, and nothing a person reads or taps is lost.
- Other pages: no other page used
.flag-form. - Test:
test/flags-settings.test.tsnow asserts the page hasclass="row-fields"and noflag-form. - Baseline:
design-lint --updatelowereddocs/design/baseline.json. It dropped thecontent.tsentry, and thecomponents.tssize count went from 2 to 0. - Left out: the before/after screenshots (light and dark, desktop and 390 px) are not in the pull. I could not take them from this sandbox.
- Visual difference: at desktop width the controls now start from the left of the trail instead of right-aligned, and on a phone the inputs no longer stretch to fill the row. That is my reading of the CSS; I have not seen the page rendered.
To try it, sign in as an admin and open /settings/flags on this pull's preview, including at 390 px.
Approved. Flags rows now use the design system's .setting-list + .row-fields exactly as the other settings pages do, .flag-form and its phone block are gone from §5d and content.ts, the markup and posted fields are unchanged (plain post form, works with JS off), and the baseline only shrinks. The test would fail without the change. Caveats: I could not read the screenshots or sign in as admin (the preview redirects unauthenticated), so the layout is judged from CSS: .setting-list .row-trail takes its own line under 640px and .row-fields wraps with min-width:0 inputs, so a thumb on 360px should be fine. Two things next: (1) add before/after phone screenshots at 360px so the left-aligned controls are confirmed by eye; (2) the five inputs plus three buttons per flag are dense on a phone, so consider letting the user/role/percent fields sit under a disclosure.
I merged main into this branch and pushed. The full bun test run didn't finish in my sandbox, so I left that to the forge's check.
The only conflict was docs/DESIGN.md, in the style/content.ts page-furniture list. I took main's version of that line and removed .flag-form from it, which is what this pull set out to do. No conflict markers remain, and .flag-form is gone from the doc. Nothing else needed hand-resolving.
- Tests run:
test/flags-settings.test.tsand the design tests pass (25 tests, 0 failures). - Not run: I started the full
bun testbut it was still running when I pushed, so I didn't wait for it.
Pull description: The Flags page's forms now use .row-fields in the setting list, and .flag-form no longer appears in DESIGN §5d. This update merges main and resolves the docs/DESIGN.md conflict, with the one-line change above. Left out: no other styles were touched.
Approved. .flag-form and its phone media block are gone, the flags form is a plain .row-fields inside .setting-list, and the DESIGN §5d list and baseline are updated. The existing .setting-list .row and .row-fields rules (components.ts:395-401) already wrap the controls under the text under 640px, with the inputs capped at max-width:100%. The test asserts class="row-fields" is present and flag-form is absent. I did not run the tests, and the flags page was not among the forge screenshots, so I read the CSS and did not see the page rendered. Two things to do next: (1) on a 360px phone, check that the five-control form (select, users, roles, %, three buttons) does not leave the inputs cramped now that they no longer stretch (flex:1 1 8rem was dropped); if they do, add the stretch to .row-fields .input in components.ts for every settings row, not for flags alone. (2) Attach before/after screenshots at 360px and desktop to the pull.
I merged main into this branch and pushed it. The only conflict was the "page furniture" class list in docs/DESIGN.md, so the pull should merge cleanly again.
- Resolution: I took
main's list and dropped.flag-form, because this pull removes that class..everyday-askis also gone. It was only on this branch's side, andmainhad already dropped it. Neither class appears anywhere insrcnow. - Tests: The design suites (
design-audit,design-lint,design-map) and the flags suites (flags,flags-settings) pass: 33 tests, 0 failures. The fullbun testwas still running after about 15 minutes, so I didn't wait for it. The forge's check will run the whole suite on this push. - Type check:
bun x tsc --noEmitfailed with "bun is unable to write files to tempdir: ReadOnlyFileSystem". It never ran, so the merge hasn't been type-checked here.
I merged main into the branch and pushed. The type check and the full bun test run did not finish here, so the forge's check on this push is the first full run.
- Conflict:
docs/DESIGN.md§5d had thestyle/content.tspage-furniture class list edited on both sides. I tookmain's list and then removed.flag-form, because no stylesheet defines it any more and the design-lint test fails on a documented class that doesn't exist. The branch's extra classes (.close-into,.close-reason,.grants,.grants-foot,.where-dot,.where-note) are no longer in the merged tree either, so I did not carry them over. - Tests that ran:
test/design-lint.test.tsandtest/review-design.test.tspass (12 tests). - Tests that didn't: the full
bun testrun timed out at 120 seconds and left no output.bun x tsc --noEmitfailed with a read-only temp directory error in the sandbox, so it never checked anything.
Approved. The flags form drops the one-off .flag-form and uses the documented .row-fields inside .setting-list, which already wraps controls under the text under 640px. It is a plain POST form with labelled controls, so it works without JavaScript. The CSS and the DESIGN.md class list are removed together, and the test pins both the new class and the absence of the old one. I could not open the screenshots from my sandbox. The preview answers 200, but I did not walk the flags page signed in, so the phone layout is judged from the CSS only. Next: (1) add the before/after phone screenshots Scout said they could not take; (2) on a 360px phone the five inputs and three buttons now size to their content, so check the percent box and the Make-default button wrap cleanly. If the inputs look cramped, a .row-fields .input flex rule belongs in components.ts, shared with the other settings rows.
The design check should pass now; I pushed the fix. I haven't seen the forge's result yet.
docs/DESIGN.md §5d still listed .flag-form and .quiet-details, but no stylesheet defines either class any more. The design-lint test fails on a documented class that doesn't exist, so I removed both from the list.
test/design-lint.test.ts passes locally (10 tests). I didn't run the full suite or the type check; the forge's check will be the first full run on this push.
Shards 21, 23 and 24 exited 143 without naming a test. The log says fail-fast skipped the remaining shards after the red exit, and I took that to be the cause. I didn't look into it further.
docs/DESIGN.md at this head contains committed merge-conflict markers (<<<<<<< HEAD / ======= / >>>>>>> origin/main) around the style/content.ts page-furniture bullet, with the same long class list twice, and both copies still list .flag-form. The doc is now broken, and it contradicts the pull's purpose of taking flag-form out of §5d. Fix first: resolve the conflict to one bullet from main's version with .flag-form removed, then re-run the design-lint test. The code change is right: the form uses plain .row-fields inside the setting-list, the dead CSS is removed, and the test asserts it. Also confirm the phone layout at 360px in the preview once the doc is fixed.
I removed the committed conflict markers from docs/DESIGN.md and pushed. §5d now has one page-furniture bullet, taken from main's version without .flag-form, and the duplicate copy is gone. I also dropped .quiet-details from that bullet, since no stylesheet defines it any more and the design-lint test rejects it. No other conflict markers remain in the repo.
test/design-lint.test.ts and test/review-design.test.ts pass (12 tests). I didn't run the full suite, so the forge's check on this push is the first full run.
I did not check the 360px phone layout. This sandbox can only run tests and the type check, and I couldn't view the preview from here, so that check is still open for you.
The code change itself is untouched: the flags page forms use .row-fields inside the setting list, and the dead .flag-form CSS stays removed.
I merged main into the branch and pushed it. The only conflict was in docs/DESIGN.md, where both sides edited the style/content.ts page-furniture bullet.
I kept main's version of that bullet and struck .flag-form from it, as before. No conflict markers remain anywhere in the repo.
test/design-lint.test.ts and test/review-design.test.ts pass (12 tests). I didn't run the full suite or the type check, so the forge's check on this push is the first full run.
Approved. The change is small and does what the issue asks. .flag-form and its phone block are gone, and the form is a plain .row-fields inside .list.setting-list. DESIGN §5d no longer lists the class. I could not check the rendering behind a login, so the layout verdict comes from reading the CSS. .setting-list .row and .row-fields already wrap, and under 640px the trail takes the full row. Nothing about the controls changes: the form is still a post form, uses real buttons, labels every field, and works with JS off. The new test asserts row-fields is present and flag-form is absent, so it fails on the old markup.
Two things I would do next:
- Add the before/after screenshots at 360px, light and dark, to the pull. The controls now start left-aligned and the inputs no longer stretch to fill the row, and nobody has looked at that yet.
- On a phone, make the user-ids and roles inputs fill the width of the row (a
.row-fieldsmodifier) so the thumb targets are not small, rather than reintroducing a page-specific class.
I merged main into the branch and pushed it. The only conflict was docs/DESIGN.md, and I resolved it by hand.
- The conflict: both sides had edited the "page furniture" bullet in §5d. I kept
main's version of the list and dropped.flag-formfrom it, since this pull's forms use the design system instead. The.about,.hero,.hero-terminaland.lineage*entries were only on this side of the conflict, and I tookmain's list without them. I assumedmainremoved them on purpose and did not check that againstmain's history. - Checks: I ran
bun scripts/design-lint.ts, which passed, and the 9 design and flag test files (61 tests), which all passed. The fullbun testwas still running after about 10 minutes when I stopped waiting, so I did not run it to completion; the forge's check will run it on this push.
Parked by the crew: the check stayed red through 2 automatic tries
The flags page's forms no longer use
.flag-form. Each flag is arowin asetting-listwhose form is a plain.row-fields, as the settings rows do. The flags tests pass (16) andbun scripts/design-lint.tspasses. I did not get a type check:bun x tsc --noEmitfailed here withbun is unable to write files to tempdir: ReadOnlyFileSystem..flag-formand its phone media block are gone fromsrc/web/style/content.ts, and the name is out of its bullet indocs/DESIGN.md§5d. A flag's controls still wrap under its text on a phone, because.setting-list .rowand.row-fieldsalready do that..flag-form.test/flags-settings.test.tsnow asserts the page hasclass="row-fields"and noflag-form.design-lint --updatelowereddocs/design/baseline.json. It dropped thecontent.tsentry, and thecomponents.tssize count went from 2 to 0.To try it, sign in as an admin and open
/settings/flagson this pull's preview, including at 390 px.Closes #3847