fix: html-router modals and add insta snapshot tests.

Avoid nested forms in the scratchpad editor, centralize modal lifecycle in modal.js, return HTMX partials from archive, and add template compile plus layout snapshots.
This commit is contained in:
Per Stark
2026-06-03 20:20:43 +02:00
parent d2c1ea7d2a
commit 5cca8dee01
29 changed files with 1426 additions and 217 deletions
@@ -385,8 +385,10 @@ pub async fn archive_scratchpad(
.map(ScratchpadArchiveItem::from)
.collect();
Ok(TemplateResponse::new_template(
// HTMX archive targets #main_section; return only the list partial, not full layout.
Ok(TemplateResponse::new_partial(
"scratchpad/base.html",
"main",
ScratchpadPageData {
scratchpads: scratchpad_list,
archived_scratchpads: archived_list,