diff --git a/.jules/palette.md b/.jules/palette.md index f920ed47..09d66654 100644 --- a/.jules/palette.md +++ b/.jules/palette.md @@ -4,3 +4,6 @@ ## 2024-05-26 - Avoid Redundant `aria-disabled` Attributes **Learning:** Adding an `aria-disabled` attribute to a button that already uses the native HTML `disabled` attribute is redundant and considered an ARIA anti-pattern. Native `disabled` inherently communicates the state to assistive technologies and removes the element from the tab order. **Action:** When improving loading states for buttons, rely on the native `disabled` attribute and use `aria-busy={loading}` to inform screen readers of the active process without duplicating the disabled state. +## 2024-05-30 - Empty States Call-to-Action +**Learning:** Including an 'or try an example' call-to-action button that populates the input field solves the 'blank canvas' UX problem by explicitly demonstrating the expected input format to users. +**Action:** When designing empty states for text areas and generative tools, include an 'or try an example' call-to-action button that populates the input field. diff --git a/web/app/optimizer/page.tsx b/web/app/optimizer/page.tsx index 3b108c6f..fd14e9ed 100644 --- a/web/app/optimizer/page.tsx +++ b/web/app/optimizer/page.tsx @@ -450,6 +450,7 @@ export default function OptimizerPage() {