From 793c04ad286045159f3b9eeda4d7df86b080fe1e Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 18 Oct 2026 18:12:02 +0000 Subject: [PATCH] feat(ui): Palette: Add type="search" to search inputs for better mobile UX Added `type="search"` to search fields in hardware and internal hardware pages. This triggers the search-optimized mobile keyboard and enables the native clear ('x') button. Co-authored-by: arcanistzed <82790112+arcanistzed@users.noreply.github.com> --- .jules/palette.md | 3 +++ src/pages/hardware.tsx | 1 + src/pages/internal/hardware.tsx | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 .jules/palette.md diff --git a/.jules/palette.md b/.jules/palette.md new file mode 100644 index 00000000..e48fef0e --- /dev/null +++ b/.jules/palette.md @@ -0,0 +1,3 @@ +## 2024-03-24 - Missing `type="search"` in Search Inputs +**Learning:** Search inputs in the hardware and internal hardware pages use a standard text input `` instead of ``. Using `type="search"` improves UX on mobile by showing a dedicated search key on the virtual keyboard and enables the native browser "clear" (x) button. +**Action:** Add `type="search"` to all search inputs. 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() {

{t("catalogue")}

setSearch(event.target.value)} diff --git a/src/pages/internal/hardware.tsx b/src/pages/internal/hardware.tsx index 559e3f8d..0093d647 100644 --- a/src/pages/internal/hardware.tsx +++ b/src/pages/internal/hardware.tsx @@ -56,6 +56,7 @@ export default function HardwareDesk() {

{t("inventory")}

)}