mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-19 13:11:18 -08:00
Start a clean session in one press under the desktop app
AI Assisted
This commit is contained in:
1 parent
899b3a48d8
commit
10379e3870
11 files changed
+129
-6
No files matched your search
@@ -1317,11 +1317,13 @@ function buildMenu(card, item, staged) {
|
||||
radio.id = optionId(item, o, i);
|
||||
radio.value = o.k;
|
||||
radio.checked = Boolean(picked);
|
||||
radio.setAttribute("aria-label", o.k ? `${o.k}: ${o.text}` : o.text);
|
||||
// Under the app a fresh start is the bar's New Session, so say that.
|
||||
const text = page.inApp && o.fresh === true ? "Start New Session" : o.text;
|
||||
radio.setAttribute("aria-label", o.k ? `${o.k}: ${text}` : text);
|
||||
radio.addEventListener("change", () => stage(item.id, { type: "answer", kind: "menu", k: o.k }));
|
||||
const body = el("div", "option-body");
|
||||
const head = el("div", "option-label");
|
||||
head.appendChild(el("span", null, o.text));
|
||||
head.appendChild(el("span", null, text));
|
||||
if (o.recommended) head.appendChild(el("span", "pill suggested", "Suggested"));
|
||||
body.appendChild(head);
|
||||
if (o.detail) body.appendChild(el("p", "option-detail", o.detail));
|
||||
|
||||
Reference in new issue
Block a user