From 1849c44018a08082a521f229589395e1948f5d0f Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Sun, 18 Oct 2026 09:01:44 -0500 Subject: [PATCH] docs(dashboard): initialize repo with operational architecture and AGENTS guidelines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Document mobile-first requirements for Jazmín's administrative workflow - Add AGENTS.md specifying Anne Droid delegation protocols and anti-"Zombie UI" rules - Configure .gitignore and .env.example targeting Cloudflare Pages and armonia-api --- .env.example | 2 ++ .gitignore | 20 ++++++++++++++++++++ AGENTS.md | 35 +++++++++++++++++++++++++++++++++++ README.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++++-- 4 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 AGENTS.md diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..66b2883 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +VITE_API_BASE_URL=http://localhost:8000 +VITE_ADMIN_API_KEY=dev-secret-key-change-in-production diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..07d8575 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +# Node +node_modules/ +dist/ +dist-ssr/ +*.local + +# Environment +.env +.env.*.local + +# Logs +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor +.vscode/ +.idea/ +*.swp diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..eb29665 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,35 @@ +# Armonía del Ser: Admin Dashboard - Agent Guidelines & Workflow Rules + +This document specifies mandatory workflows, constraints, and quality gates for AI agents operating in `armonia-dashboard`. + +--- + +## 1. Core Operating Constraints + +- **No Direct Commits to `main`**: Agents must never commit directly to `main`. All work must be developed on descriptive feature, bugfix, or chore branches (`feat/*`, `fix/*`, `chore/*`). +- **No Destructive Git Actions**: Commands such as `git reset --hard`, `git restore `, `git clean -fd`, and force-pushes (`git push --force`) are strictly prohibited without the user's explicit yes. +- **Secret Redaction**: Never print, commit, or log sensitive tokens or API credentials. +- **Session Modes**: + - `learning`: The user drives and writes the reasoning, the agent asks guiding questions. + - `delivery`: The agent may draft code and plans, presenting rationale and trade-offs. + +--- + +## 2. Agent Directory & Persona Delegation + +- **Anne Droid** (`profile/agents/anne-droid.md`): Senior Frontend Engineer & UX Specialist. + - **Consult when**: Designing or reviewing mobile ergonomics, accessible form components, and booking state transitions. + - **Delegate when**: Implementing UI components, Tailwind styling, and client-side interactions on `feat/anne/*` branches. + - **Anti-"Zombie UI" Invariant**: Every view must explicitly design for the 5 states: *Empty*, *Loading*, *Error*, *Partial*, and *Success*. Touch targets must be >= 44x44px for thumb use on mobile devices. + +--- + +## 3. Architecture & Functional Directives + +- **Primary Persona**: Jazmín (therapist and business owner). +- **Core Ergonomic Requirement**: **Mobile-first**. Jazmín checks her banking app (BBVA) on her phone to see incoming SPEI notifications, then switches to the dashboard to tap "Acreditar Pago" in one touch. +- **Key Views**: + 1. *Agenda & Reservas*: Live list of pending vs confirmed bookings with filter toggles. + 2. *Validación de Pagos*: Fast-action review queue for incoming SPEI deposits matching folios (`ADS-XXXX`). + 3. *Directorio de Clientes*: Searchable directory with direct `wa.me` WhatsApp contact links. + 4. *Catálogo de Servicios*: Configuration of prices, schedules, and capacity. diff --git a/README.md b/README.md index 4588019..833f6c4 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,50 @@ -# armonia-dashboard +# Armonía del Ser: Admin Dashboard (`armonia-dashboard`) -Admin dashboard UI for Armonía del Ser: schedule, clients, payments, and service configuration \ No newline at end of file +Mobile-first operational dashboard for **Jazmín**, owner of **Armonía del Ser**. + +Designed to streamline schedule coordination, client directory tracking, and instant 1-tap SPEI payment acknowledgment without friction. + +--- + +## The Operational Problem Solved + +Currently, Jazmín coordinates bookings via manual chat messages and allows clients to pay after sessions, leading to lost revenue when clients stop responding. + +`armonia-dashboard` equips Jazmín with a dedicated, mobile-optimized tool where she can: +1. **Acknowledge Payments in 1 Tap**: When an SPEI deposit notification appears in her banking app matching a reservation folio (`ADS-XXXX`), she taps "Confirmar Pago" to transition the booking from `PENDING_PAYMENT` to `CONFIRMED`. +2. **Synchronize with Google Calendar**: View locked-in sessions alongside tentative holds. +3. **Contact Clients Directly**: One-touch WhatsApp triggers (`wa.me`) to send session reminders or meeting links. +4. **Manage Services**: Adjust pricing, schedules, and capacity limits (e.g., Círculos de Cacao, Meditaciones con cuencos, Atención Psicológica). + +--- + +## Architectural Principles + +- **Zero-Cost Deployment**: Designed for **Cloudflare Pages** (static edge delivery, $0/month). +- **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 +- Node.js 20+ +- npm + +### 1. Setup Environment +```bash +cp .env.example .env +``` +Set `VITE_API_BASE_URL=http://localhost:8000` to connect to `armonia-api`. + +### 2. Install Dependencies +```bash +npm install +``` + +### 3. Run Dev Server +```bash +npm run dev +``` +Open `http://localhost:5173` in your browser. \ No newline at end of file