Replace browser popups with in-page dialogs; focus new-task prompt

This commit is contained in:
Ian Gulliver
2026-10-14 22:42:46 -07:00
parent 1dc09c77e0
commit 4ffdc1e517
32 changed files with 270 additions and 195 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
import { post } from "./api.js";
import { mountChanges } from "./changes.js";
import { ago, errorText, h, replace } from "./dom.js";
import { ago, errorText, h, replace, showAlert } from "./dom.js";
import { inlineMarkdown, markdown } from "./markdown.js";
import { findTask, onEach, state } from "./state.js";
const drafts = new Map();
@@ -50,7 +50,7 @@ export function mountInbox(root) {
}
}
catch (err) {
alert(errorText(err));
void showAlert(errorText(err));
}
button.disabled = false;
render();
@@ -142,7 +142,7 @@ function card(item, changed) {
await post("/api/inbox/responses", { body: { responses: [{ item_id: item.id, type: "dismiss" }] } });
}
catch (err) {
alert(errorText(err));
void showAlert(errorText(err));
ok.disabled = false;
}
};