Compare commits
3
Commits
43b30a2f2d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8efcf706fc | ||
|
|
bdddb4e7f6 | ||
|
|
b97d777b74 |
No files matched your search
+2
-1
@@ -14,7 +14,8 @@ yarn-debug.log*
|
|||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
pnpm-debug.log*
|
pnpm-debug.log*
|
||||||
|
|
||||||
# Editor
|
# Editor / Nix direnv
|
||||||
.vscode/
|
.vscode/
|
||||||
.idea/
|
.idea/
|
||||||
*.swp
|
*.swp
|
||||||
|
.direnv/
|
||||||
@@ -1,34 +1,40 @@
|
|||||||
# Armonía del Ser: Public Landing & Self-Service UI - Agent Guidelines & Workflow Rules
|
# Repository Technical Blueprint: `armonia-landing`
|
||||||
|
|
||||||
This document specifies mandatory workflows, constraints, and quality gates for AI agents operating in `armonia-landing`.
|
This file defines the local toolchain, frontend implementation rules, aesthetic boundaries, and self-service reservation flow for `armonia-landing`. For cross-repo Git branching rules, TDD lifecycle, or Gitea (`tea`) issue tracking, consult the workspace root [`../AGENTS.md`](../AGENTS.md).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 1. Core Operating Constraints
|
## 1. Local Toolchain & Nix Environment (`flake.nix` + `pnpm` + `Vite+` + `Biome`)
|
||||||
|
|
||||||
- **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/*`).
|
This repository is provisioned via a declarative Nix `devShell` (`flake.nix` + `.envrc`) and uses `pnpm`, `Vite+` (`vp`), and `Biome`.
|
||||||
- **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.
|
- **Nix DevShell:** Ensure commands run inside the Nix environment (`direnv` activates automatically on `cd`, or prefix with `nix develop -c <cmd>`).
|
||||||
- **Secret Redaction**: Never print, commit, or log sensitive tokens or API credentials.
|
- **Package Manager:** Use `pnpm` exclusively (`pnpm install`, `pnpm add`). Never use `npm` or `yarn` (do not generate `package-lock.json` or `yarn.lock`).
|
||||||
- **Session Modes**:
|
- **Verification Gates (Pre-Commit Checklist):**
|
||||||
- `learning`: The user drives and writes the reasoning, the agent asks guiding questions.
|
Before proposing or executing any commit, run and pass all checks with zero warnings or errors:
|
||||||
- `delivery`: The agent may draft code and plans, presenting rationale and trade-offs.
|
```bash
|
||||||
|
pnpm exec biome check .
|
||||||
|
pnpm exec vp check
|
||||||
|
pnpm exec vp test
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 2. Agent Directory & Persona Delegation
|
## 2. Frontend Architecture & Aesthetic Direction
|
||||||
|
|
||||||
- **Anne Droid** (`profile/agents/anne-droid.md`): Senior Frontend Engineer & UX Specialist.
|
### Anne Droid Delegation (`profile/agents/anne-droid.md`)
|
||||||
- **Consult when**: Defining visual tone, typography, color palettes, and emotional resonance.
|
- **Consult when:** Defining visual tone, typography, color palettes, emotional resonance, and mobile booking ergonomics.
|
||||||
- **Delegate when**: Implementing client-facing hero components, booking modals, and responsive flyers on `feat/anne/*` branches.
|
- **Delegate when:** Implementing client-facing hero sections, service catalog cards, booking flows, and frontend tests on `feat/anne/*` branches.
|
||||||
- **Aesthetic Manifesto**: Reflect the peaceful, grounded identity of *Armonía del Ser* (warm earth tones, lavender/sage lotus palette from the flyer, clean serif display typography, natural textures) without falling into generic template patterns.
|
|
||||||
|
### Aesthetic & UX Invariants
|
||||||
|
- **Grounded Holistic Identity:** Reflect the peaceful, warm identity of *Armonía del Ser* (referencing [`../armonia-flyer.jpg`](../armonia-flyer.jpg): warm earth tones, lavender/sage lotus palette, clean serif display typography, and natural textures) without generic SaaS template tropes.
|
||||||
|
- **5-State Resilient UI:** Every dynamic catalog and booking component must handle *Empty* (no slots available), *Loading*, *Error* (e.g., `409 Conflict` slot collision), *Partial*, and *Success* states cleanly.
|
||||||
|
- **Public Security Boundary:** Consumes only public `armonia-api` endpoints (`GET /services`, `POST /bookings`). Never expose administrative routes or credentials.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 3. Architecture & Functional Directives
|
## 3. Self-Service Client Reservation Flow
|
||||||
|
|
||||||
- **Target Persona**: Prospective and recurring clients seeking therapy, meditation, cocoa circles, or retreats.
|
1. **Browse Service Catalog:** Clear cards displaying modality (`PRESENCIAL` in Tulancingo vs. `ONLINE`), schedule, duration, price in MXN, and holistic benefits.
|
||||||
- **Self-Service Booking Flow**:
|
2. **Claim Slot:** Client selects a service and time slot and enters their name and WhatsApp phone number (or redeems an active multi-session package).
|
||||||
1. *Browse Services*: Clear cards displaying modality (presencial/online), schedule, price in MXN, and benefits.
|
3. **SPEI Payment Instructions:** Displays SPEI bank details, CLABE, and the generated reservation folio (`ADS-XXXX`).
|
||||||
2. *Reserve Spot*: Client provides name, phone (WhatsApp), and chooses a slot.
|
4. **One-Tap WhatsApp Handoff:** Opens a pre-filled `wa.me` chat with Jasmin/assistant so the client can send their transfer receipt immediately.
|
||||||
3. *Payment Clarity*: Instructions showing SPEI CLABE + unique Folio code (`ADS-XXXX`).
|
|
||||||
4. *One-Tap WhatsApp Handoff*: Client taps button to open WhatsApp chat with Jazmín and send receipt.
|
|
||||||
@@ -29,22 +29,29 @@ Guided by **Anne Droid**:
|
|||||||
## Local Development Quickstart
|
## Local Development Quickstart
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
- Node.js 20+
|
- NixOS / Nix Flakes (`direnv` recommended) or Node.js 22+ & `pnpm`
|
||||||
- npm
|
|
||||||
|
|
||||||
### 1. Setup Environment
|
### 1. Enter Nix DevShell & Setup Environment
|
||||||
```bash
|
```bash
|
||||||
|
direnv allow # or: nix develop
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
```
|
```
|
||||||
Set `VITE_API_BASE_URL=http://localhost:8000` to connect to `armonia-api`.
|
Set `VITE_API_BASE_URL=http://localhost:8000` to connect to `armonia-api`.
|
||||||
|
|
||||||
### 2. Install Dependencies
|
### 2. Install Dependencies
|
||||||
```bash
|
```bash
|
||||||
npm install
|
pnpm install
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Run Dev Server
|
### 3. Run Dev Server (`Vite+`)
|
||||||
```bash
|
```bash
|
||||||
npm run dev
|
pnpm exec vp dev
|
||||||
```
|
```
|
||||||
Open `http://localhost:5173` in your browser.
|
Open `http://localhost:5173` in your browser.
|
||||||
|
|
||||||
|
### 4. Verification Gates
|
||||||
|
```bash
|
||||||
|
pnpm exec biome check .
|
||||||
|
pnpm exec vp check
|
||||||
|
pnpm exec vp test
|
||||||
|
```
|
||||||
Generated
+61
@@ -0,0 +1,61 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1791914995,
|
||||||
|
"narHash": "sha256-Zf/xfQEAasnwnmEfHqW/4hjDE/s44yn2hD4RuVIZRjA=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "b7a79d3fea1e214f6d668d521cecec0c01e26544",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1792094642,
|
||||||
|
"narHash": "sha256-zp8ToDMnqZcu4o4IH9pdwXFXGp7yLm/M0dEnNWnyd7I=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "fe13242281a67641c0102cdb1087f0ebe586c7df",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixos-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
description = "Armonía del Ser: Public Landing UI (armonia-landing) — Node.js 22 + pnpm + Biome devShell";
|
||||||
|
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
};
|
||||||
|
|
||||||
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
|
flake-utils.lib.eachDefaultSystem (system:
|
||||||
|
let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
devShells.default = pkgs.mkShell {
|
||||||
|
name = "armonia-landing-dev-shell";
|
||||||
|
packages = with pkgs; [
|
||||||
|
nodejs_22
|
||||||
|
pnpm
|
||||||
|
biome
|
||||||
|
tea
|
||||||
|
];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in new issue
Block a user