diff options
Diffstat (limited to 'static/modules/assistant.js')
| -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) { |
