diff --git a/AGENTS.md b/AGENTS.md index a7cf3b0..2491cec 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -23,15 +23,33 @@ Do not invent architecture outside these plans unless explicitly requested. - Do not use git worktrees. - Repo is a uv workspace; Python is pinned to 3.13 via `.python-version`. After fresh checkout: install `uv` (`brew install uv` / `curl -LsSf https://astral.sh/uv/install.sh | sh`), then `direnv allow` (or `uv sync` directly). See README **Local development** for details. -### URL-addressable modal templates +### Modals: inline vs routed -A template that renders **both** as a full standalone page AND as a modal fragment (i.e. `{% extends base_layout %}`, where `base_layout` resolves to `_modal_partial.html` for modal-mode requests and `base.html` otherwise — driven by the `HX-Modal: 1` header in `app.py:inject_base_layout`) MUST follow these conventions: +Two coexisting modal mechanisms, one module (`l4d2web/l4d2web/static/js/modals.js`). When adding a new modal, decide which pipeline it belongs to: -- **The outermost element of `{% block content %}` is a `