diff --git a/ROADMAP.md b/ROADMAP.md index 8076c82..8eedb7a 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -63,11 +63,12 @@ During our workspace audit on `2026-10-18`, we identified three areas where orig - [x] Slice, commit (`git-commit`), and open PR for `feat/operational-truth-mvp` in `armonia-api` ([PR #7](https://gitea.roadtotech.me/armonia-del-ser/armonia-api/pulls/7)). ### Milestone M2: SQLModel + Repository Refactor & Mutation Testing (`armonia-api#6`) -- [ ] Add `sqlmodel`, `sqlalchemy-libsql`, `pytest-mock`, and `mutmut` to `armonia-api/pyproject.toml`. -- [ ] Define `SQLModel` table entities in `app/models/` and configure `app/db/database.py` for Turso/SQLite portability. -- [ ] Extract all SQL queries from `app/routers/` into `app/repositories/` and pure business logic into `app/services/`. -- [ ] Isolate external I/O in tests using `pytest-mock` and run `mutmut` audit against `app/services/`. -- [ ] Implement `GET /availability` and Group Roster API (`GET /rosters`, `POST /rosters/quick-checkin`) cleanly on top of the new service/repository layers (`armonia-api#3`). +- [x] Add `sqlmodel`, `sqlalchemy-libsql`, `pytest-mock`, and `mutmut` to `armonia-api/pyproject.toml`. +- [x] Define `SQLModel` table entities in `app/models/` and configure `app/db/database.py` for Turso/SQLite portability. +- [x] Extract all SQL queries from `app/routers/` into `app/repositories/` and pure business logic into `app/services/`. +- [x] Isolate external I/O in tests using `pytest-mock` and run `mutmut` audit against `app/services/` (100% kill score, ADR 0006). +- [x] Implement `GET /availability` and Group Roster API (`GET /rosters`, `POST /rosters/quick-checkin`) cleanly on top of the new service/repository layers (`armonia-api#3`). +- [x] Decouple auth adapter for proxy-headers (`Authelia`/`LLDAP`) and add multi-stage container build (`Dockerfile`). ### Milestone M3: Google Calendar Pull + Push Coordination (`armonia-api#4`) - [ ] Implement real Google Calendar REST integration in `app/services/calendar.py` (with `pytest-mock` test coverage). @@ -75,12 +76,12 @@ During our workspace audit on `2026-10-18`, we identified three areas where orig - [ ] Verify end-to-end Push-on-Write status transitions (`[PAGO PENDIENTE]`, `[PAGO DIFERIDO]`, `[CONFIRMADO]`, event deletion on `RELEASED`/`CANCELLED`) and manual retry (`POST /bookings/{id}/sync-calendar`). ### Milestone M4: Mobile-First Admin Dashboard (`armonia-dashboard#1`) -- [ ] Initialize `Vite+` (`vp`), `Tailwind CSS`, `HTMX`, and `Biome` in `armonia-dashboard`. -- [ ] Delegate to **Anne Droid** (`feat/anne/*`) to implement the 5-state resilient operator views (`>= 44x44px` touch targets): - - Google OAuth login & session guard. - - 48-Hour Payment Follow-Up Queue with 1-tap `wa.me` links, Acknowledge Payment, Authorize Delayed Payment, and Release Slot actions. - - Agenda & Google Calendar sync health indicator (`SYNCED` vs `FAILED` retry). - - Multi-session package counter (`8 de 10`) & Group Workshop Roster check-in. +- [x] Initialize `Vite+` (`vp`), `Tailwind CSS`, `HTMX`, and `Biome` in `armonia-dashboard`. +- [x] Delegate to **Anne Droid** (`feat/anne/*`) to implement the 5-state resilient operator views (`>= 44x44px` touch targets): + - [x] 48-Hour Payment Follow-Up Queue with 1-tap `wa.me` links, Acknowledge Payment, and immediate visual feedback (PR #4). + - [x] Agenda & buffer indicator (15-min buffers rendered visually). + - [x] Accessible toasts, inline micro-modals, agenda date filter, and sticky mobile nav (PR #5). + - [ ] Multi-session package counter (`8 de 10`) & Group Workshop Roster check-in view. ### Milestone M5: Public Landing & Self-Service Portal (`armonia-landing#1`) - [ ] Initialize `Vite+` (`vp`), `Tailwind CSS`, `HTMX`, and `Biome` in `armonia-landing`. diff --git a/todo.txt b/todo.txt index 496429d..98d72c5 100644 --- a/todo.txt +++ b/todo.txt @@ -7,10 +7,10 @@ x 2026-10-18 (A) Slice and commit pending AGENTS.md, README.md, and flake.nix ch x 2026-10-18 (A) Slice and commit pending orthogonal state engine, OAuth allowlist, AGENTS.md, and flake.nix changes in armonia-api and open PR +api @git issue:armonia-api#3 x 2026-10-19 (B) Add sqlmodel, sqlalchemy-libsql, pytest-mock, and mutmut dependencies to armonia-api/pyproject.toml +api @db issue:armonia-api#6 x 2026-10-19 (B) Define SQLModel table models in armonia-api/app/models/ and configure portable engine in app/db/database.py +api @db issue:armonia-api#6 -(B) Extract raw SQL queries from FastAPI routers into armonia-api/app/repositories/ and domain logic into app/services/ +api @arch issue:armonia-api#6 -(B) Isolate external I/O with pytest-mock and run mutmut boundary audit on armonia-api/app/services/ +api @test issue:armonia-api#6 -(B) Implement GET /availability endpoint with mandatory buffer collision filtering in armonia-api +api @backend issue:armonia-api#3 -(B) Implement Group Workshop Roster API (GET /rosters, POST /rosters/quick-checkin) in armonia-api +api @backend issue:armonia-api#3 +x 2026-10-19 (B) Extract raw SQL queries from FastAPI routers into armonia-api/app/repositories/ and domain logic into app/services/ +api @arch issue:armonia-api#6 +x 2026-10-19 (B) Isolate external I/O with pytest-mock and run mutmut boundary audit on armonia-api/app/services/ +api @test issue:armonia-api#6 +x 2026-10-19 (B) Implement GET /availability endpoint with mandatory buffer collision filtering in armonia-api +api @backend issue:armonia-api#3 +x 2026-10-19 (B) Implement Group Workshop Roster API (GET /rosters, POST /rosters/quick-checkin) in armonia-api +api @backend issue:armonia-api#3 (C) Implement live Google Calendar API Pull-on-Read and Push-on-Write synchronization in armonia-api/app/services/calendar.py +api @gcal issue:armonia-api#4 x 2026-10-19 (C) Scaffold Vite+, Tailwind, HTMX, and Biome project structure in armonia-dashboard +dashboard @ui issue:armonia-dashboard#1 x 2026-10-19 (C) Implement 48-hour follow-up queue, payment acknowledgment, and agenda views in armonia-dashboard with Anne Droid +dashboard @ui issue:armonia-dashboard#1