style: 14px text floor and one shared status wording

- app.css: add --hope-text-small (14px) and --hope-text-fine (13px, footer
  fine print). Every font size below 14px now uses them. The help-tip circle,
  event badge and date stamp grow to fit the larger text.
- schedule.ts: shared filledCount(), spotsSentence() and fillLabel().
  Public pages say "4 of 6 spots filled"; coordinator pills say
  "Full · 6 of 6" or "2 open · 4 of 6" (needs tone when under half full).
- admin-pages.tsx: drop needCopy(); dashboard, event page and shift lines
  all use fillLabel().
- tests: update wording expectations; add design-rules.test.ts to guard the
  14px floor and the wording.
- README: update example wording.
This commit is contained in:
Cosmically Creative committed 2026-11-20 13:24:23 -06:00
1 parent 085f2dc668
commit 1230030e39
9 files changed
+112 -67

No files matched your search

+2 -2
View File
@@ -266,7 +266,7 @@ describe('coordinator screens', () => {
expect(html).toContain('Today, 4:00 PM');
expect(html).toContain('2 open · 4 of 6');
expect(html).toContain('Tue, Oct 27, 4:00 PM');
expect(html).toContain('Needs 4 · 2 of 6');
expect(html).toContain('4 open · 2 of 6');
expect(html).toContain('Sat, Oct 24 Sorting crew is full.');
expect(html).toContain('Wed, Oct 28, 9:00 AM');
expect(html).not.toContain('Later shift');
@@ -589,7 +589,7 @@ describe('coordinator screens', () => {
expect(roster).not.toContain('No-show');
const sourceRoster = await (await app.request(`/admin/shifts/${sourceId}`, { headers: { cookie } })).text();
expect(sourceRoster).not.toContain(`/admin/signups/${signupId}/move`);
expect(sourceRoster).toContain('0/2 spots filled');
expect(sourceRoster).toContain('0 of 2 spots filled');
expect(sourceRoster).toContain('event-pill is-open');
const home = await (await app.request('/e/pantry?view=calendar')).text();
const shiftPage = await (await app.request(`/s/${destinationId}`)).text();