From 7a9d73a2021d0d14be556531adee83531aaa6c15 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 10 Nov 2026 12:51:22 +0100 Subject: feat(assistant): headed sections in the tools overlay Co-Authored-By: Claude Opus 5.5 --- static/modules/assistant.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'static/modules') 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 = `

`; + 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) { -- cgit v1.2.3