Changes after review
Numbers refer to the findings in REVIEW.md.
Landing
- 1. Headline fit.
fit.js (landing and style guide) now refits when any font finishes loading, on resize and when the box resizes. Re-checking in Chrome confirmed the old overflow was the font-swap race: the headline now fills the measure at 1280px. Below 640px the headline wraps into two big lines (about 86px at 375px) instead of one 30px line.
- 4. Pause control. The hero ticket loop has a "Pause demo" button and stops by itself once the visitor starts pricing a booking. It stays visible and static under reduced motion.
- 6. Favicon. An inline "D" favicon on the landing page and the style guide.
- 7. Mobile and structure. Pricing headers shortened ("Per hour") with tighter mobile type; the nav links now show as a scrolling row on mobile instead of disappearing; the preview ticket no longer reserves blank space for its stamp;
</main> now wraps the booking form.
- 9. Forms. The booking form checks date, headcount and email, with an error and focus on the first bad field. Reschedule says "Already booked for ..." when nothing changed.
- 10. Persuasion. Each setup gained a "Brings" row (machine, grinder, milks, cups, etc.). These are product assumptions recorded as such, not metrics.
- 12. Naming. "Tasting table" everywhere except the short segmented control label.
Style guide
- 3. Consistency. Sample ticket is now Booking 2041, Sat 21 Nov, $1,100, matching the dashboard and the price maths. Stats match the dashboard (30%, $21,860, 10).
- 13. Documentation. New "Focus, app density, night" block (focus ring spec, 14px app UI, inked variant).
Dashboard
- 2. Assigning baristas. The "Need a barista" stat has a "Review these" button that opens Bookings filtered to short-staffed jobs. The detail panel lists only baristas who are free at that time and an "Assign" button for each; a booking becomes Confirmed once fully staffed. State lives in a small context store (
src/store.tsx), so the overview, schedule, bookings and roster all update together. Tested in a real browser: review (3 rows), assign three baristas, booking confirmed, list drops to 2.
- 3. Data. Booking 2038 now has 110 guests so its two baristas satisfy the one-per-60 rule. Lucia is "Available" since she has a booking this week. The table shows "(short N)" next to unfilled baristas.
- 5. Focus. One 2px vermilion focus ring applied to buttons, links, inputs and focusable rows, matching the style guide.
- 6. Brand. Tab title "Doppio dashboard" and a Doppio favicon replace the Vite defaults.
- 8. Mobile. Stat cards sit two across with smaller numerals so the chart and bookings are within one screen of scrolling.
- 11. Schedule. Blocks show barista initials and "N more needed".
- Added a global reduced-motion rule to the dashboard CSS.
Docs
- 14. PLAN.md updated: four nav anchors, FAQ cut and noted.
Not changed
- Style guide still has one lint FAIL (about 80 words per screen on the colour swatches). It is a reference sheet; trimming the swatch captions would remove the information the sheet exists to give.
src/hooks/use-mobile.ts (generated by shadcn) fails the React-hooks lint rule; left untouched rather than editing vendor-style code.
- No photographs: still waiting on real material (see PLAN.md section 7).