aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/AGENTS.md b/AGENTS.md
index 5753d26..b7bd557 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -144,7 +144,10 @@ internal/web/ server.go (host router, middleware, render helpers)
the modules of every area (with their settings inline, folded in a
`<details>`) and the menu — stored atomically by `BlogStore.SaveDesign`
(theme + full module list + full menu in one transaction: rows with an id
- are updated, without one inserted, missing ones deleted). Sections are cards
+ are updated, without one inserted, missing ones deleted). Because a missing
+ row means delete, `handleDesign` reads *everything* — modules, menu, then
+ the uploads — before reporting the first problem, and the rejected form is
+ rendered from all of it; never bail out half-way. Sections are cards
with ids (`designSections`) a sticky side index jumps to; the hidden `at`
field says which one was in view so the flash returns there. Module rows are
`mod.<i>.{id,area,kind,title,body,count,pos,del}` and menu rows