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

shipped production is serving it opened this has it
opened this

Intent: empty states across the forge are quiet text, not 33 framed boxes.

Today empty() in src/web/ui.ts returns <div class="card empty">, used by 33 pages; src/web/diff-view.ts draws No changes. the same way.

Done looks like:

  • [x] 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.
  • [x] diff-view.ts's No changes. uses empty() or the same plain markup.
  • [x] 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.
  • [x] 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.

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).

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.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs