From 0eda3bef8f6cb7bafd50870ae643e04098cae210 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 18:08:35 +0000 Subject: [PATCH] feat(ux): use native search inputs for hardware catalogues Added `type="search"` to search inputs across hardware catalogues to trigger native mobile search keyboards (with "Search" or "Go" buttons) and built-in browser clear ("x") functionality, improving the UX for mobile users without custom JS/CSS. Recorded UX learning in .jules/palette.md. Co-authored-by: arcanistzed <82790112+arcanistzed@users.noreply.github.com> --- .jules/palette.md | 4 ++++ src/pages/hardware.tsx | 1 + src/pages/internal/hardware.tsx | 2 ++ 3 files changed, 7 insertions(+) create mode 100644 .jules/palette.md diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 00000000..78accc5f --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,4 @@ + +## 2024-10-21 - Native Search Inputs for Better UX +**Learning:** Using `type="search"` instead of `type="text"` or omitting the type for search inputs natively triggers specialized mobile search keyboards (with "Search" or "Go" buttons instead of "Return") and provides built-in browser features like the clear ("x") button without requiring custom JavaScript or CSS. +**Action:** Always apply the `type="search"` attribute to inputs meant for filtering or searching lists, especially since this application features hardware catalogues likely to be searched from mobile devices on-the-go. diff --git a/src/pages/hardware.tsx b/src/pages/hardware.tsx index 8edea871..532e24e2 100644 --- a/src/pages/hardware.tsx +++ b/src/pages/hardware.tsx @@ -18,6 +18,7 @@ export default function HardwareCatalogue() {