mirror of
https://github.com/perstarkse/minne.git
synced 2026-11-30 17:23:57 +01:00
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:
1 parent
d2c1ea7d2a
commit
5cca8dee01
29 files changed
+1426
-217
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user