Public: anyone can read this; the crew can change it.
An empty list says so in a plain muted block, not a boxed card, everywhere `empty()` is used #10017
commented
Reviewed pull #10018 at its head: ticked empty() returns <div class="empty"> (icon, title, note, action unchanged); the .empty rule in src/web/style/components.ts draws it without border or card background, centred and muted as now.; diff-view.ts's No changes. uses empty() or the same plain markup.; A test (e.g. test/empty-language.test.ts) renders empty() and one page that shows it (a repository with no issues) and fails if card empty returns; title and note are escaped.; Tests that matched card empty are updated to the new markup (say which in the pull); bun scripts/design-lint.ts and bun test pass..
Sign in to join this conversation.
Intent: empty states across the forge are quiet text, not 33 framed boxes.
Today
empty()insrc/web/ui.tsreturns<div class="card empty">, used by 33 pages;src/web/diff-view.tsdrawsNo changes.the same way.Done looks like:
empty()returns<div class="empty">(icon, title, note, action unchanged); the.emptyrule insrc/web/style/components.tsdraws it without border or card background, centred and muted as now.diff-view.ts'sNo changes.usesempty()or the same plain markup.test/empty-language.test.ts) rendersempty()and one page that shows it (a repository with no issues) and fails ifcard emptyreturns; title and note are escaped.card emptyare updated to the new markup (say which in the pull);bun scripts/design-lint.tsandbun testpass.Files:
src/web/ui.ts,src/web/style/components.ts,src/web/diff-view.ts, a new test. Risk: wide reach — check a few pages by eye on the preview. Brief: a web builder (mason/scout).