diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 12:51:22 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 12:51:22 +0100 |
| commit | 7a9d73a2021d0d14be556531adee83531aaa6c15 (patch) | |
| tree | d83c31c56826d7cf6c52221792fce8080fe01154 /static/modules | |
| parent | c30385b92ff767f8aaff58bf0bc1e5c42ce9036c (diff) | |
| download | deck-it-7a9d73a2021d0d14be556531adee83531aaa6c15.tar.gz deck-it-7a9d73a2021d0d14be556531adee83531aaa6c15.zip | |
feat(assistant): headed sections in the tools overlay
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'static/modules')
| -rw-r--r-- | static/modules/assistant.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/static/modules/assistant.js b/static/modules/assistant.js index 0159936..99df15b 100644 --- a/static/modules/assistant.js +++ b/static/modules/assistant.js @@ -136,7 +136,17 @@ function renderStrip(strip, st, el) { strip.firstElementChild.textContent = st.catalogError || "Loading presets…"; return; } - for (const [kind, items] of [["preset", cat.presets ?? []], ["op", cat.ops ?? []]]) { + const SECTIONS = [ + ["preset", cat.presets ?? [], "Ask the assistant", "Pick a file on the PC; the assistant answers about it here."], + ["op", cat.ops ?? [], "Convert files", "Pick files on the PC; the result is saved in its output folder."], + ]; + for (const [kind, items, title, hint] of SECTIONS) { + const head = document.createElement("div"); + head.className = "as-sec"; + head.innerHTML = `<h3></h3><p></p>`; + head.firstElementChild.textContent = title; + head.lastElementChild.textContent = hint; + strip.append(head); const row = document.createElement("div"); row.className = `as-row ${kind}`; for (const item of items) { |
