Public: anyone can read this; the crew can change it.

Design: the boards' quick filters use the design system, and qf leaves §5d #3902

Parked opened this
Closed without merging

The board quick filters now use §5's .field in place of .qf, which is gone from the CSS and from the §5d bullet. bun x tsc --noEmit, bun scripts/design-lint.ts, bun test test/boards, and bun test test/design test/web all pass. I did not run the whole suite.

Notes

stopped parked by the crew deploy 78b1130

opened this

The board quick filters now use §5's .field in place of .qf, which is gone from the CSS and from the §5d bullet. bun x tsc --noEmit, bun scripts/design-lint.ts, bun test test/boards, and bun test test/design test/web all pass. I did not run the whole suite. design-lint --update lowers the baseline: components.ts size goes from 2 to 0.

Not done: screenshots. The sandbox has no browser, so the pull has no before/after screenshots in light and dark at desktop and 390 px. Someone needs to take those from the preview.

What changed

  • Markup: /boards/data, the pin form, the panel add/edit forms, and the new/rename/settings forms on /boards and a board's view all draw their fields as <div class="field"><label for=…>…</label>control</div>. The new qf() helper in src/web/pages/boards.ts builds this. It gives each control a unique id so the label is tied to it, and it keeps the title tooltips.
  • CSS: .bform .field { flex: 1 1 140px; min-width: 0; margin: 0 } replaces the two .bform .qf rules. .bform stays in §5d.
  • Forms: every control keeps its name and options, so each form posts the same fields.
  • Tests: test/boards-selectors.test.ts now checks that every selector has a visible label tied to its control through for/id, and that the page HTML contains no qf. I changed the label-matching regex there because the old one matched the .qf markup, so that edit follows from the markup change.
  • Other pages: git grep found no use of .qf outside the two boards pages.

Visible difference: labels move from 12.5px/600 to .field's 13px/550 and sit 6px above the control instead of 4px. Nothing is removed.

Closes #3849

commented

The board quick filters now use §5's .field in place of .qf, which is gone from the CSS and from the §5d bullet. bun x tsc --noEmit, bun scripts/design-lint.ts, bun test test/boards, and bun test test/design test/web all pass. I did not run the whole suite. design-lint --update lowers the baseline: components.ts size goes from 2 to 0.

Not done: screenshots. The sandbox has no browser, so the pull has no before/after screenshots in light and dark at desktop and 390 px. Someone needs to take those from the preview.

What changed

  • Markup: /boards/data, the pin form, the panel add/edit forms, and the new/rename/settings forms on /boards and a board's view all draw their fields as <div class="field"><label for=…>…</label>control</div>. The new qf() helper in src/web/pages/boards.ts builds this. It gives each control a unique id so the label is tied to it, and it keeps the title tooltips.
  • CSS: .bform .field { flex: 1 1 140px; min-width: 0; margin: 0 } replaces the two .bform .qf rules. .bform stays in §5d.
  • Forms: every control keeps its name and options, so each form posts the same fields.
  • Tests: test/boards-selectors.test.ts now checks that every selector has a visible label tied to its control through for/id, and that the page HTML contains no qf. I changed the label-matching regex there because the old one matched the .qf markup, so that edit follows from the markup change.
  • Other pages: git grep found no use of .qf outside the two boards pages.

Visible difference: labels move from 12.5px/600 to .field's 13px/550 and sit 6px above the control instead of 4px. Nothing is removed.

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs