diff --git a/static/app.js b/static/app.js index 8d1b7b7..887bb9d 100644 --- a/static/app.js +++ b/static/app.js @@ -1564,6 +1564,8 @@ function initializeEventListeners() { saveToggleState(st); agentBtn.classList.toggle('active', mode === 'agent'); chatBtn.classList.toggle('active', mode === 'chat'); + agentBtn.setAttribute('aria-pressed', String(mode === 'agent')); + chatBtn.setAttribute('aria-pressed', String(mode === 'chat')); // Slide the pill to the active button const toggle = agentBtn.closest('.mode-toggle'); if (toggle) toggle.classList.toggle('mode-chat', mode === 'chat'); @@ -1621,11 +1623,13 @@ function initializeEventListeners() { const chk = el(checkboxId); if (chk) chk.checked = saved; btn.classList.toggle('active', saved); + btn.setAttribute('aria-pressed', String(saved)); btn.addEventListener('click', () => { const curMode = (loadToggleState().mode) || 'chat'; const chk = el(checkboxId); chk.checked = !chk.checked; btn.classList.toggle('active', chk.checked); + btn.setAttribute('aria-pressed', String(chk.checked)); saveToolPref(stateKey, curMode, chk.checked); showToolToggleToast(stateKey, chk.checked); if (chk.checked) _showToolSplash(stateKey); diff --git a/static/index.html b/static/index.html index 014880b..55aa79e 100644 --- a/static/index.html +++ b/static/index.html @@ -265,7 +265,7 @@

Long-term facts the AI remembers across chats — recall, edit, or curate.

- @@ -274,7 +274,7 @@
- +
@@ -304,7 +304,7 @@

- + Add a memory — e.g. 'I prefer concise replies'
@@ -315,19 +315,19 @@

Create a skill by hand — title, what it solves, and an approach.

- + Title — short name, e.g. “build-vllm-wheel”
- + When to use — what problem does this skill solve?
- + How — the approach, steps, commands, or rules to follow
- + Tags — comma-separated, e.g. python, build, vllm
@@ -368,7 +368,7 @@
- + @@ -464,12 +464,12 @@

Colors

-
-
-
-
-
-
+
+
+
+
+
+
@@ -479,38 +479,38 @@
Chat Bubbles
-
-
-
+
+
+
Sidebar
-
-
+
+
Chat Input / Prompt Area
-
-
-
-
+
+
+
+
Code Blocks
-
-
+
+
Controls
-
+
@@ -559,7 +559,7 @@
- @@ -567,7 +567,7 @@
- @@ -993,7 +993,7 @@