diff --git a/.Jules/palette.md b/.Jules/palette.md new file mode 100644 index 00000000..4cbb6cd4 --- /dev/null +++ b/.Jules/palette.md @@ -0,0 +1,3 @@ +## 2024-08-16 - Dynamic ARIA labels for Toggle Buttons +**Learning:** When a toggle button switches its icon based on state (e.g., Eye/EyeOff for passwords, or a generic toggle without text), a static `aria-label` is insufficient because the action the button performs changes depending on the current state. +**Action:** Use a dynamic Vue binding (`:aria-label="condition ? 'Action A' : 'Action B'"`) corresponding to the boolean state of the toggle, ensuring screen readers announce the exact action the user will perform by clicking the button. diff --git a/src/components/settings/tabs/AISettingsTab.vue b/src/components/settings/tabs/AISettingsTab.vue index a0cbd741..798e4919 100644 --- a/src/components/settings/tabs/AISettingsTab.vue +++ b/src/components/settings/tabs/AISettingsTab.vue @@ -587,14 +587,19 @@ async function onClearMemories() {
- @@ -745,7 +750,7 @@ async function onClearMemories() { step="1" :value="(settingsStore.aiMonthlyBudgetCents / 100).toFixed(0)" @change="(e: Event) => settingsStore.updateSetting('aiMonthlyBudgetCents', Math.round(parseFloat((e.target as HTMLInputElement).value || '0') * 100))" - /> + > / month (informational)
@@ -1021,7 +1026,9 @@ async function onClearMemories() { {{ memoryHealthRunning ? 'Checking...' : 'Run Quick Check' }} -

Full assessment available in AI Hub > Memory tab.

+

+ Full assessment available in AI Hub > Memory tab. +

diff --git a/src/components/settings/tabs/AccountSettingsTab.vue b/src/components/settings/tabs/AccountSettingsTab.vue index e709c08a..8c3f5357 100644 --- a/src/components/settings/tabs/AccountSettingsTab.vue +++ b/src/components/settings/tabs/AccountSettingsTab.vue @@ -342,7 +342,7 @@ const handleChangePassword = async () => { class="form-input" placeholder="Enter new password" > - @@ -504,7 +504,12 @@ const handleChangePassword = async () => { class="form-input" @focus="(e) => (e.target as HTMLInputElement).select()" > -