Bold questions
This commit is contained in:
Vendored
+9
-4
@@ -1,8 +1,8 @@
|
||||
import { post } from "./api.js";
|
||||
import { mountChanges } from "./changes.js";
|
||||
import { ago, errorText, h, replace } from "./dom.js";
|
||||
import { inlineMarkdown, markdown } from "./markdown.js";
|
||||
import { findTask, onEach, state } from "./state.js";
|
||||
import { reportCard } from "./task.js";
|
||||
const drafts = new Map();
|
||||
const modes = new Map();
|
||||
let scope = "all";
|
||||
@@ -96,9 +96,14 @@ export function mountInbox(root) {
|
||||
renderSubmit();
|
||||
};
|
||||
const off = onEach(["inbox", "selection", "tasks"], render);
|
||||
replace(root, h("div", { class: "inbox-view" }, tabs, submitBar, list));
|
||||
const changes = h("section", { class: "inbox-changes" });
|
||||
replace(root, h("div", { class: "inbox-view" }, changes, tabs, submitBar, list));
|
||||
const offChanges = mountChanges(changes, true);
|
||||
render();
|
||||
return off;
|
||||
return () => {
|
||||
off();
|
||||
offChanges();
|
||||
};
|
||||
}
|
||||
function groupByTask(items) {
|
||||
const groups = new Map();
|
||||
@@ -165,7 +170,7 @@ function card(item, changed) {
|
||||
replace(body, p["context"] ? markdown(String(p["context"]), "md context") : null, markdown(String(p["question"]), "md question"), h("p", { class: "why" }, h("strong", {}, "Blocked on: "), inlineMarkdown(String(p["why_blocked"]))), attachments(p["attachments"] ?? []));
|
||||
break;
|
||||
case "report":
|
||||
replace(body, reportCard(p));
|
||||
replace(body, markdown(String(p["text"] ?? ""), "md summary"));
|
||||
break;
|
||||
case "session_error":
|
||||
replace(body, h("p", { class: "error-text" }, String(p["error"])));
|
||||
|
||||
Reference in New Issue
Block a user