7f56fe06d2a5a7620d6db15a1835b72971135e3f
- Dynamic identity pill in header querying GET /auth/me with role badge - Global '+ Nueva Cita' modal with debounced client autocomplete and WhatsApp confirmation - Agenda card actions for reschedule and completion - Client Directory tab with search, contact details, and package counters - Dual-viewport captures for desktop and mobile Refs: #6, #7
Armonía del Ser: Admin Dashboard (armonia-dashboard)
Mobile-first operational control surface for Jasmin, owner of Armonía del Ser, and her assistant.
Designed to provide single-source-of-truth visibility into bookings, 48-hour payment follow-ups, delayed-payment exceptions, deliberate slot releases, and Google Calendar coordination.
The Operational Problem Solved
armonia-dashboard equips Jasmin and her assistant with an authenticated (Google OAuth + server-side Turso allowlist), mobile-optimized control surface where they can:
- Monitor the 48-Hour Payment Follow-Up Queue: View active bookings within 48 hours of their session (or with authorized delayed payments) whose payments have not yet been acknowledged, and contact clients manually via 1-tap
wa.melinks. - Acknowledge Payments (
ACKNOWLEDGED): Record verified SPEI/cash deposits with full auditability (acknowledged_by,acknowledged_at). - Authorize Delayed-Payment Exceptions (
DELAYED_ALLOWED): Explicitly allow a session to proceed without prepayment while keeping the outstanding balance visible and traceable. - Deliberately Release Slots (
RELEASED): Release an unconfirmed slot after manual follow-up so another client can book the time. - Coordinate with Google Calendar: Inspect schedule synchronization status (
SYNCEDvsFAILED) and retry failed calendar syncs.
Architectural Principles
- Zero-Cost Deployment: Designed for Cloudflare Pages (static edge delivery, $0/month).
- Server-Enforced Security: OAuth credentials and session signing secrets live strictly in
armonia-api, verified on every request against Turso'sadmin_allowlist. - Mobile Ergonomics: Large touch targets (minimum 44x44px), thumb-friendly layout, and zero layout shift.
- 5-State Resilient UI: Every component handles Empty, Loading, Error, Partial, and Success states gracefully.
Local Development Quickstart
Prerequisites
- NixOS / Nix Flakes (
direnvrecommended) or Node.js 22+ &pnpm
1. Enter Nix DevShell & Setup Environment
direnv allow # or: nix develop
cp .env.example .env
Set VITE_API_BASE_URL=http://localhost:8000 to connect to armonia-api.
2. Install Dependencies
pnpm install
3. Run Dev Server (Vite+)
pnpm exec vp dev
Open http://localhost:5173 in your browser.
4. Verification Gates
pnpm exec biome check .
pnpm exec vp check
pnpm exec vp test
Description
Therapist admin dashboard UI for Armonía del Ser: appointment scheduling, client history, payment tracking, and service management.
Readme
847 KiB
0 Stars
2 Watchers
0 Forks
Languages
TypeScript
78.5%
CSS
20.5%
HTML
0.4%
JavaScript
0.3%
Nix
0.3%