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:
1 parent
085f2dc668
commit
1230030e39
9 files changed
+112
-67
No files matched your search
@@ -75,7 +75,7 @@ npm run seed
|
||||
|
||||
`npm run dev` serves the site on `127.0.0.1` at `BASE_URL` (from `.env`, `http://127.0.0.1:3000`). It is loopback only. Stop it with Ctrl+C.
|
||||
|
||||
Open `/` for the weekly pantry sign-up page. **View** starts on **List**: a card for each day with a shift in the next three months, split into that day's shifts. Each shift lists the names of the people who are signed up. A shift that has already ended stays on that day's card, grayed out, until midnight in the event's time zone. At midnight the day leaves the list. Emails, phone numbers, and notes stay off the page. **Calendar** is the other choice in that menu, at `/?view=calendar`, and it stops at that same three-month date. A shift later than that date is left off both views, and the signup form does not take a reservation for it. `/e/weekly-pantry` is the same seeded event. `/healthz` returns `{"ok":true,"database":"ok"}` and nothing else. A shift shows how many spots are filled, such as 3/5 spots filled. A shift with space left uses a soft green label. A full shift uses a soft red label.
|
||||
Open `/` for the weekly pantry sign-up page. **View** starts on **List**: a card for each day with a shift in the next three months, split into that day's shifts. Each shift lists the names of the people who are signed up. A shift that has already ended stays on that day's card, grayed out, until midnight in the event's time zone. At midnight the day leaves the list. Emails, phone numbers, and notes stay off the page. **Calendar** is the other choice in that menu, at `/?view=calendar`, and it stops at that same three-month date. A shift later than that date is left off both views, and the signup form does not take a reservation for it. `/e/weekly-pantry` is the same seeded event. `/healthz` returns `{"ok":true,"database":"ok"}` and nothing else. A shift shows how many spots are filled, such as 3 of 5 spots filled. A shift with space left uses a soft green label. A full shift uses a soft red label. Coordinator lists use the same count with the state first, such as 2 open · 3 of 5 or Full · 5 of 5.
|
||||
|
||||
An open shift has a signup form. It asks for a first name, last name, email, and phone, with optional notes. **How many people** offers 1 to 20, and never more than the spots left. A signup for 3 people fills 3 spots, and only the person signing up is named. The form also lists every other open shift on the public list, from any published event, and up to 24 can be ticked in one submit. Full, ended, cancelled, and not-yet-open shifts are left out. Each date is its own signup, with its own confirmation email and private link. If any date cannot be saved, none are, and the form says which date to leave unchecked. Another person can use the same email and takes their own signup. The same person cannot sign up twice for one shift. The form needs JavaScript because of the Turnstile check. Wait a few seconds after the page loads before submitting. The confirmation page shows a private link and says a confirmation email is on the way. That page works without JavaScript. Cancel this signup there to open the spot again. A cancellation email is queued, and a confirmation that has not been sent yet is dropped. That person can sign up again once the cancellation is saved. Someone else can use the email while the first signup is still confirmed. A cancelled signup stays on that private page until the link expires. A private link controls only that signup. Use the separate link for each signup. On that page, **How many people** changes the party size. A larger number needs that many spots open. A smaller number gives spots back. Coordinators get an email when the count changes.
|
||||
|
||||
|
||||
Reference in new issue
Block a user