Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .jules/palette.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 2024-10-15 - Missing Search Input Type
**Learning:** Found multiple instances where search inputs in the codebase (e.g., in `src/pages/hardware.tsx` and `src/pages/internal/hardware.tsx`) use the default text input type instead of `type="search"`. Native search inputs provide better mobile keyboard layouts and often feature built-in clear buttons, improving usability for filtering lists.
**Action:** Always add `type="search"` to text inputs that act as filters/search bars.
1 change: 1 addition & 0 deletions src/pages/hardware.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default function HardwareCatalogue() {
<div className="ui-form-layout space-y-5">
<h1 className="ui-page-title">{t("catalogue")}</h1>
<input
type="search"
className="ui-field w-full"
value={search}
onChange={event => setSearch(event.target.value)}
Expand Down
2 changes: 2 additions & 0 deletions src/pages/internal/hardware.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default function HardwareDesk() {
<section>
<h2 className="mb-3 font-coolvetica text-2xl">{t("inventory")}</h2>
<input
type="search"
className="ui-field mb-3 w-full"
aria-label={t("search")}
placeholder={t("search")}
Expand Down Expand Up @@ -243,6 +244,7 @@ export default function HardwareDesk() {
</div>
)}
<input
type="search"
className="ui-field mb-3 w-full"
placeholder={t("find-loan")}
aria-label={t("find-loan")}
Expand Down
Loading