Merge pull request 'docs(dashboard): initialize repo with operational architecture and AGENTS guidelines' (#2) from feat/initial-scaffold into main
This commit was merged in pull request #2.
This commit is contained in:
commit
ed962c55e7
4 files changed
+106
-2
No files matched your search
@@ -0,0 +1,2 @@
|
|||||||
|
VITE_API_BASE_URL=http://localhost:8000
|
||||||
|
VITE_ADMIN_API_KEY=dev-secret-key-change-in-production
|
||||||
+20
@@ -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
|
||||||
@@ -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 <file>`, `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.
|
||||||
@@ -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
|
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.
|
||||||
Reference in new issue
Block a user