Skip to content

🎨 Palette: Search clear button micro-improvement#28

Open
Woschj wants to merge 1 commit intomainfrom
palette-search-clear-button-12548489913381137319
Open

🎨 Palette: Search clear button micro-improvement#28
Woschj wants to merge 1 commit intomainfrom
palette-search-clear-button-12548489913381137319

Conversation

@Woschj
Copy link
Owner

@Woschj Woschj commented Feb 21, 2026

This PR adds a small but high-impact UX improvement to the Scandy inventory system. A "Clear" button is now available in all list views (Tools, Consumables, etc.) to allow users to quickly reset their search input.

Key changes:

  • Search UX: Added a FontAwesome 'times-circle' icon that appears inside the search bar when text is entered.
  • Accessibility: Added descriptive aria-label attributes to the search input, the search button, and the new clear button. Ensured keyboard users can easily return to the input field after clearing.
  • Code Quality: Refactored the search event listener to use a shared updateSearch function, reducing duplication and improving clarity.
  • Responsive Design: Maintained the existing look and feel using DaisyUI 'join' and 'input-bordered' classes.

Verified with Playwright and visual screenshots.


PR created automatically by Jules for task 12548489913381137319 started by @Woschj

- Added a 'Clear' button to the search input in `list_base.html` for faster filter resets.
- Implemented JavaScript to toggle button visibility based on input content.
- Added accessibility improvements: `aria-label` for search and clear buttons, and automatic focus return after clearing.
- Refactored search logic into a reusable `updateSearch` function.

Co-authored-by: Woschj <81321922+Woschj@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant