Architectural problem flagged after the pilot: "the template renders both as a standalone page AND as a modal fragment" contract is non-obvious for future template authors. Task 2 originally used <dialog>, Task 8.5 had to undo that because nested <dialog> collapses to 2px. The convention is now in two places: 1. AGENTS.md gains a "URL-addressable modal templates" section under Non-Negotiable Constraints listing: outer element must be <div>, close buttons use data-modal-dismiss, form actions need #modal-content-scoped document delegation, modal chrome CSS is owned by the outer slot. 2. _modal_partial.html (the file template authors will most likely open when wondering "what's this layout?") carries a Jinja comment header summarising the rule + linking to AGENTS.md for the full convention. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| routes | ||
| services | ||
| static | ||
| templates | ||
| __init__.py | ||
| app.py | ||
| auth.py | ||
| cli.py | ||
| config.py | ||
| db.py | ||
| models.py | ||