From b97d777b748ebb612a5ae4795b39e1a6cff7ca4b Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Mon, 19 Oct 2026 00:10:36 -0500 Subject: [PATCH 1/2] build(nix): add declarative flake.nix devShell with nodejs_22, pnpm, biome, and tea Refs: #1 --- .envrc | 1 + .gitignore | 3 ++- flake.lock | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ flake.nix | 25 ++++++++++++++++++++++ 4 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 .envrc create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index 07d8575..dcc6282 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,8 @@ yarn-debug.log* yarn-error.log* pnpm-debug.log* -# Editor +# Editor / Nix direnv .vscode/ .idea/ *.swp +.direnv/ diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..9f6b98c --- /dev/null +++ b/flake.lock @@ -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 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b2c25f9 --- /dev/null +++ b/flake.nix @@ -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 + ]; + }; + }); +} From bdddb4e7f691705de3902ad5bc53b63fed6dc385 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Mon, 19 Oct 2026 00:10:36 -0500 Subject: [PATCH 2/2] docs(landing): refine AGENTS.md technical blueprint and standardize README on pnpm and Vite+ - Strip duplicated workspace git/session rules from AGENTS.md and establish local pnpm + Vite+ + Biome gates. - Update README.md quickstart to use Nix devShell, pnpm, Vite+ (vp), and Biome. Refs: #1 --- AGENTS.md | 48 +++++++++++++++++++++++++++--------------------- README.md | 21 ++++++++++++++------- 2 files changed, 41 insertions(+), 28 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 81dec10..94b4b97 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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/*`). -- **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. +This repository is provisioned via a declarative Nix `devShell` (`flake.nix` + `.envrc`) and uses `pnpm`, `Vite+` (`vp`), and `Biome`. +- **Nix DevShell:** Ensure commands run inside the Nix environment (`direnv` activates automatically on `cd`, or prefix with `nix develop -c `). +- **Package Manager:** Use `pnpm` exclusively (`pnpm install`, `pnpm add`). Never use `npm` or `yarn` (do not generate `package-lock.json` or `yarn.lock`). +- **Verification Gates (Pre-Commit Checklist):** + Before proposing or executing any commit, run and pass all checks with zero warnings or errors: + ```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. - - **Consult when**: Defining visual tone, typography, color palettes, and emotional resonance. - - **Delegate when**: Implementing client-facing hero components, booking modals, and responsive flyers 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. +### Anne Droid Delegation (`profile/agents/anne-droid.md`) +- **Consult when:** Defining visual tone, typography, color palettes, emotional resonance, and mobile booking ergonomics. +- **Delegate when:** Implementing client-facing hero sections, service catalog cards, booking flows, and frontend tests on `feat/anne/*` branches. + +### 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. -- **Self-Service Booking Flow**: - 1. *Browse Services*: Clear cards displaying modality (presencial/online), schedule, price in MXN, and benefits. - 2. *Reserve Spot*: Client provides name, phone (WhatsApp), and chooses a slot. - 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. +1. **Browse Service Catalog:** Clear cards displaying modality (`PRESENCIAL` in Tulancingo vs. `ONLINE`), schedule, duration, price in MXN, and holistic benefits. +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). +3. **SPEI Payment Instructions:** Displays SPEI bank details, CLABE, and the generated reservation folio (`ADS-XXXX`). +4. **One-Tap WhatsApp Handoff:** Opens a pre-filled `wa.me` chat with Jasmin/assistant so the client can send their transfer receipt immediately. diff --git a/README.md b/README.md index 60b5465..20aa6ae 100644 --- a/README.md +++ b/README.md @@ -29,22 +29,29 @@ Guided by **Anne Droid**: ## Local Development Quickstart ### Prerequisites -- Node.js 20+ -- npm +- NixOS / Nix Flakes (`direnv` recommended) or Node.js 22+ & `pnpm` -### 1. Setup Environment +### 1. Enter Nix DevShell & Setup Environment ```bash +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 ```bash -npm install +pnpm install ``` -### 3. Run Dev Server +### 3. Run Dev Server (`Vite+`) ```bash -npm run dev +pnpm exec vp dev ``` -Open `http://localhost:5173` in your browser. \ No newline at end of file +Open `http://localhost:5173` in your browser. + +### 4. Verification Gates +```bash +pnpm exec biome check . +pnpm exec vp check +pnpm exec vp test +``` \ No newline at end of file