forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/components/ui/searchable-select.test.tsxClear filter

2026-09-18

fix: 🩹 the note picker opens, toggles and closes on a field clickAhmet Kaan Gümüş · 2ec3110
fix: 🩹 the note picker opens, toggles and closes on a field click

The Kobalte combobox behind SearchableSelect opened only from the chevron or on
typing: its default triggerMode ("input") ignores a click on the field, and
focus mode — which opens on click — can never close again, refocusing the input
after every close so the list reopens by itself.

The field now owns the open state (controlled open/onOpenChange plus an onClick
toggle on the input): click opens, click again closes, a pick leaves it closed,
outside-click and Escape still close, typing still filters, ArrowDown opens and
the chevron still toggles.

2026-09-17

refactor: 🔍 one Turkish-aware filter behind every search box - new src/lib/search-text.ts: fold case, Turkish letters, accents and punctuation for comparison, and match every typed term in any order, so "ogretmen" finds "Öğretmen", "9a" finds "9-A" and "ayse 9a" finds both - replace the per-page toLocaleLowerCase().includes() filters with it across rosters, courses, exams, events, classes, messages, payments, whiteboards, the dashboard deadlines, the user table, the blueprint picker, the command palette and Çelebi's message search - DataTableSearch: Escape empties the field (and only then stops the event, so Escape still closes the panel around it) - SearchableSelect: the same folding filter instead of Kobalte's raw substring test, plus a "no results" line where the popover used to just close and read as broken - UserSearchSelect: say it is loading while the debounce and request run, instead of showing an empty panel that reads as "nobody matches"Burak Boduroğlu · 52bbe31
refactor: 🔍 one Turkish-aware filter behind every search box
- new src/lib/search-text.ts: fold case, Turkish letters, accents and
  punctuation for comparison, and match every typed term in any order, so
  "ogretmen" finds "Öğretmen", "9a" finds "9-A" and "ayse 9a" finds both
- replace the per-page toLocaleLowerCase().includes() filters with it across
  rosters, courses, exams, events, classes, messages, payments, whiteboards,
  the dashboard deadlines, the user table, the blueprint picker, the command
  palette and Çelebi's message search
- DataTableSearch: Escape empties the field (and only then stops the event,
  so Escape still closes the panel around it)
- SearchableSelect: the same folding filter instead of Kobalte's raw
  substring test, plus a "no results" line where the popover used to just
  close and read as broken
- UserSearchSelect: say it is loading while the debounce and request run,
  instead of showing an empty panel that reads as "nobody matches"