forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/components/users/user-search-select.tsxClear filter

2026-09-18

fix: 🎨 colored text reaches WCAG AA contrast - measured in light mode on the #F7F7F7 page: brand as text 2.5:1, warning 2.0:1, success 3.1:1, destructive 4.2:1 (AA needs 4.5:1) - new text tokens primary/success/warning/info/destructive-text: darker in light mode, equal to the fills in dark mode; fills stay as they are - light primary text is --brand-ink, or for a custom palette color the darkest-needed step of its hue (accentTextLightness, tested across hues) - every text-{primary,success,warning,info,destructive} utility moves to its -text token (253 uses); opacity variants stay decorative - token doc records the ruleBurak Boduroğlu · 9f9eebf
fix: 🎨 colored text reaches WCAG AA contrast
- measured in light mode on the #F7F7F7 page: brand as text 2.5:1,
  warning 2.0:1, success 3.1:1, destructive 4.2:1 (AA needs 4.5:1)
- new text tokens primary/success/warning/info/destructive-text: darker in
  light mode, equal to the fills in dark mode; fills stay as they are
- light primary text is --brand-ink, or for a custom palette color the
  darkest-needed step of its hue (accentTextLightness, tested across hues)
- every text-{primary,success,warning,info,destructive} utility moves to
  its -text token (253 uses); opacity variants stay decorative
- token doc records the rule

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"

2026-09-16

feat: 🔎 name, class and a "what can I type here" line on every searchBurak Boduroğlu · fbaff64
feat: 🔎 name, class and a "what can I type here" line on every search

- student results carry their class: lib/student-classes resolves a class
  name per student from GET /classes/user/{id} (teacher+, cached per tab,
  only for a bounded list), used by the command palette people section and
  by UserSearchSelect
- UserSearchSelect rows are now two lines — display name, then
  "class · username" for a student picker and username otherwise — instead
  of the raw account uuid; the picked value reads "Name (username)"
- DataTableSearch takes a hint shown under the field while it has focus,
  threaded through DataTable (filterHint) and DataToolbar (searchHint);
  every search box in the app names the fields it really matches
- the command palette says what it takes while the query is empty, and the
  user picker says it is a type-to-search field
- ui-conventions documents both rules

2026-08-03

feat: 💳 custom payment method and multi-student plan assignment - the collect dialog's method was a fixed list; picking "other" now opens a free-text field, and an empty custom value is refused rather than posting a blank method - a fee plan can be assigned to several students in one pass: picked students queue up in a list before saving, capped at 200 - UserSearchSelect gains an optional `onSelect` that hands back the whole PersonRef, since the queue needs the name and username, not just the idBurak Boduroğlu · d95087e
feat: 💳 custom payment method and multi-student plan assignment
- the collect dialog's method was a fixed list; picking "other" now opens
  a free-text field, and an empty custom value is refused rather than
  posting a blank method
- a fee plan can be assigned to several students in one pass: picked
  students queue up in a list before saving, capped at 200
- UserSearchSelect gains an optional `onSelect` that hands back the whole
  PersonRef, since the queue needs the name and username, not just the id

2026-08-02

fix: 🔒 role-gate user search so students/parents never 403Burak Boduroğlu · f6ff360
fix: 🔒 role-gate user search so students/parents never 403

/users/search is teacher+ on the backend, but the picker that calls it
is reachable by every role — most visibly the message-compose recipient
field (messages is open to all roles) and the whiteboard participant
picker (boards are student+). A student or parent typing there hit a
guaranteed 403.

- UserSearchSelect now checks the viewer's role once, centrally: below
  teacher it never calls the endpoint, disables the input, and shows a
  "no permission to search" hint. This covers every call site (compose,
  meal service, course/class management, …) in one place.
- whiteboards create panel uses its own inline search, so it gets the
  same teacher+ gate: a student creates a board for themselves and a
  teacher can add participants later.
- new form.searchNoPermission string (en/tr).

Note: this commit also carries in-flight edits that share these two
files from a parallel change — the combobox open-on-input behavior in
user-search-select and the notes.write/notes.preview i18n keys — since
they could not be separated from the same files.

2026-07-29

fix: 🔍 user search opens on input; retint admin/terms table cards - UserSearchSelect: keep the combobox open while results load (allowsEmptyCollection + controlled open), set loading before the debounce so the "no results" message stops flashing, debounce 250→300ms - admin users + terms: switch tinted table card violet → sky, drop the per-role metric tone mapBurak Boduroğlu · c584a3d
fix: 🔍 user search opens on input; retint admin/terms table cards
- UserSearchSelect: keep the combobox open while results load
  (allowsEmptyCollection + controlled open), set loading before the
  debounce so the "no results" message stops flashing, debounce 250→300ms
- admin users + terms: switch tinted table card violet → sky, drop the
  per-role metric tone map

2026-07-28

feat(ui): 🔍 SearchableSelect component, Kobalte Combobox for user search, color palette picker - add SearchableSelect (Kobalte Combobox wrapper) with search/filter/check indicator - rewrite UserSearchSelect on top of Combobox: debounced server search, single signal - swap native <select> to SearchableSelect in event/grade/exam/homework/meal forms - add ComboboxControl and ComboboxTrigger sub-components, rich item with check icon - add color palette picker to settings: 6 trending Coolors palettes, hex-to-HSL, contrast - add paletteColor to preferences context with localStorage persistence + testsBurak Boduroğlu · 2911d65
feat(ui): 🔍 SearchableSelect component, Kobalte Combobox for user search, color palette picker
- add SearchableSelect (Kobalte Combobox wrapper) with search/filter/check indicator
- rewrite UserSearchSelect on top of Combobox: debounced server search, single signal
- swap native <select> to SearchableSelect in event/grade/exam/homework/meal forms
- add ComboboxControl and ComboboxTrigger sub-components, rich item with check icon
- add color palette picker to settings: 6 trending Coolors palettes, hex-to-HSL, contrast
- add paletteColor to preferences context with localStorage persistence + tests

2026-07-24

chore: ⬆️ update all dependencies; migrate Tailwind v3 → v4 - bump within-range: @tanstack/solid-router 1.170.18, @kobalte/core 0.13.12, solid-js 1.9.14, tailwind-merge 3.6.0, autoprefixer/postcss/ vite-plugin-solid patches - @types/node 24 → 26 (types only) - vite 6 → 8: no config change needed; build/proxy/alias intact, vitest 4 stays compatible (246 tests green) - tailwindcss 3 → 4 via official @tailwindcss/upgrade codemod: - CSS-first config: theme moved into @theme in src/index.css, tailwind.config.js deleted, dark selector kept via @custom-variant - postcss plugin tailwindcss → @tailwindcss/postcss; autoprefixer removed (v4 built-in) - 81 files auto-migrated: shadow-sm→shadow-xs, min-w-[7.5rem]→min-w-30, /[0.08]→/8 opacity shorthand, data-[expanded]:→data-expanded: - fix codemod false-positive: it rewrote the cva variant="outline" prop string to "outline-solid" in role-badge, course-sessions-panel, my-students-page — reverted to "outline" - verified emitted CSS carries the renamed utilities (data-expanded, color-mix opacity, var(--color-*), shadow-xs)Ahmet Kaan Gümüş · b085a74
chore: ⬆️ update all dependencies; migrate Tailwind v3 → v4
- bump within-range: @tanstack/solid-router 1.170.18, @kobalte/core
  0.13.12, solid-js 1.9.14, tailwind-merge 3.6.0, autoprefixer/postcss/
  vite-plugin-solid patches
- @types/node 24 → 26 (types only)
- vite 6 → 8: no config change needed; build/proxy/alias intact,
  vitest 4 stays compatible (246 tests green)
- tailwindcss 3 → 4 via official @tailwindcss/upgrade codemod:
  - CSS-first config: theme moved into @theme in src/index.css,
    tailwind.config.js deleted, dark selector kept via @custom-variant
  - postcss plugin tailwindcss → @tailwindcss/postcss; autoprefixer
    removed (v4 built-in)
  - 81 files auto-migrated: shadow-sm→shadow-xs, min-w-[7.5rem]→min-w-30,
    /[0.08]→/8 opacity shorthand, data-[expanded]:→data-expanded:
  - fix codemod false-positive: it rewrote the cva variant="outline"
    prop string to "outline-solid" in role-badge, course-sessions-panel,
    my-students-page — reverted to "outline"
- verified emitted CSS carries the renamed utilities (data-expanded,
  color-mix opacity, var(--color-*), shadow-xs)

2026-07-21

feat: ✨ manager-assigned course teachers and role-aware empty search messagesBurak Boduroğlu · ca3a4d4
feat: ✨ manager-assigned course teachers and role-aware empty search messages

- mirror backend course teacher contract: teachers array on Course, POST/DELETE /courses/{id}/teachers
- allow manager+ users to select an initial teacher when creating a course in courses-page
- extend course-management rights to assigned teachers while restricting course deletion to creator or manager+
- add CourseTeachersPanel component with teacher search select and confirmation dialogs
- make UserSearchSelect empty messages role-aware (display 'Uygun öğretmen yok' or 'Uygun öğrenci yok')
- style empty search results with destructive red and medium font weight
- add Turkish and English translations for course teacher staffing workflow
- add Vitest API unit tests for postCourseTeacher and deleteCourseTeacherByUserId
refactor: 🗃️ restructure API layer into domain folders and add vitest coverage - move 110+ flat API endpoints into domain-specific subdirectories (e.g., auth, courses, exams, notes, etc.) - add index.ts exports to each domain folder for clean namespace imports - update 70+ components and pages to use the new domain-based API import paths - add comprehensive vitest unit tests (~150 tests) for all API endpoints using fetch mocking - update AGENTS.md rulebook to mandate domain-based folder structure for future API additions - migrate existing bun:test test files in src/lib/ to vitest for consistencyBurak Boduroğlu · 6452b17
refactor: 🗃️ restructure API layer into domain folders and add vitest coverage
- move 110+ flat API endpoints into domain-specific subdirectories (e.g.,
  auth, courses, exams, notes, etc.)
- add index.ts exports to each domain folder for clean namespace imports
- update 70+ components and pages to use the new domain-based API import
  paths
- add comprehensive vitest unit tests (~150 tests) for all API endpoints
  using fetch mocking
- update AGENTS.md rulebook to mandate domain-based folder structure for
  future API additions
- migrate existing bun:test test files in src/lib/ to vitest for consistency
feat: 💬 real messages page with API, compose, folders, and i18nBurak Boduroğlu · 8382995
feat: 💬 real messages page with API, compose, folders, and i18n

- replace mock data with API-driven messages: inbox/sent/archive/trash
  folders, pagination, search, compose SidePanel with UserSearchSelect
- add getMessages, postMessage, patchMessageById, deleteMessageById API
- add Message and MessageFolder types
- user-search-select: clear validation string on valid selection
- full English/Turkish i18n for message UI labels and actions

2026-07-19

fix: ⏱️ debounce user picker search, fix stale abort checkAhmet Kaan Gümüş · 3790224
fix: ⏱️ debounce user picker search, fix stale abort check

One request per typed name instead of one per letter (250ms), keeping
picker traffic inside the shared per-IP API budget. The catch/finally
guards now close over their own AbortController — the old code read
the module-level one, so a superseded request could wrongly clear the
successor's results.

2026-07-15

chore: 🧹 revert unused Role[] support, polish icons, toolbar, menu, and dashboard - getUserSearch + user-search-select: drop unused Role[] type variant - icons: add SVG wrappers for Search, ChevronDown, MoreHorizontal, Check, History - data-toolbar: accept searchValue/onSearchInput for controlled search - dropdown-menu: extract shared item styles, better icon/text alignment - collapsible-help: inline icon, remove separate CollapsibleHelpIcon file - side-nav, user-menu, dashboard: use new icon imports, cleanupBurak Boduroğlu · 0408650
chore: 🧹 revert unused Role[] support, polish icons, toolbar, menu, and dashboard
- getUserSearch + user-search-select: drop unused Role[] type variant
- icons: add SVG wrappers for Search, ChevronDown, MoreHorizontal, Check, History
- data-toolbar: accept searchValue/onSearchInput for controlled search
- dropdown-menu: extract shared item styles, better icon/text alignment
- collapsible-help: inline icon, remove separate CollapsibleHelpIcon file
- side-nav, user-menu, dashboard: use new icon imports, cleanup
fix: 🐛 exclude students from staff-work search, add role-band guards for work pages - getUserSearch + UserSearchSelect: accept Role[] and comma-separate in URL query - staff-work-page: filter search to teacher/manager/admin with localized labels - route-guard + side-nav: maxRole support + roleInRange helper for role bands - work-log-page: guard maxRole=manager so admin uses staff-work instead - dashboard: personal work card only for manager; admin sees staff-work - router: /work beforeLoad uses roleInRange teacher..manager - i18n: work.teacherIdentity, work.noTeachers TR/ENBurak Boduroğlu · 52be1ae
fix: 🐛 exclude students from staff-work search, add role-band guards for work pages
- getUserSearch + UserSearchSelect: accept Role[] and comma-separate in URL query
- staff-work-page: filter search to teacher/manager/admin with localized labels
- route-guard + side-nav: maxRole support + roleInRange helper for role bands
- work-log-page: guard maxRole=manager so admin uses staff-work instead
- dashboard: personal work card only for manager; admin sees staff-work
- router: /work beforeLoad uses roleInRange teacher..manager
- i18n: work.teacherIdentity, work.noTeachers TR/EN
refactor: 🔄 server-pagination api pattern + role-scope-matrix doc - src/api/page.ts: shared Page<T>, PageParams, pageQuery, normalizePage - src/lib/list-page.ts: loadListPage helper (server or client pagination) - all listing API functions: accept PageParams, return Page<T> - pages: adopt loadListPage for pagination state management - docs/role-scope-matrix.md: full role access matrix per page/nav/dashboard - docs/frontend-next-steps: sync pagination audit statusBurak Boduroğlu · 7befd0c
refactor: 🔄 server-pagination api pattern + role-scope-matrix doc
- src/api/page.ts: shared Page<T>, PageParams, pageQuery, normalizePage
- src/lib/list-page.ts: loadListPage helper (server or client pagination)
- all listing API functions: accept PageParams, return Page<T>
- pages: adopt loadListPage for pagination state management
- docs/role-scope-matrix.md: full role access matrix per page/nav/dashboard
- docs/frontend-next-steps: sync pagination audit status
feat: ✨ mobile tab bar, settings dirty-state, terms sidepanel, UX polish batch - MobileTabBar: bottom nav (home/courses/exams/notes/menu) with safe-area - ErrorAlert: shared destructive alert with optional retry button - app-shell: replace hamburger with MobileTabBar, pb-24 on mobile - side-nav: independent multi-group open/close states - settings: dirty-state save gate via JSON baseline, auto-clearing success, Metric cards, locked badges, EmptyRows fallback - terms: SidePanel create/edit + dense table row actions - profile: localized role label instead of raw role+id - student-attendance + student-marks: ErrorAlert, personLabel, onSelectUser, localized emptyMessage - course-sessions-panel: ConfirmDialog for session delete, ErrorAlert - exam-room-page: stale id guard on route change - exam-room + live-monitor: nested breadcrumbs (Exams / title / sub) - dashboard: role-ordered portal cards, guide CTA, empty timeline CTA, compact grid - header create buttons: unified min-w-[7.5rem] rounded-lg - cards grid: cols-2 on sm breakpoint - work-log: localized Status column header - docs: sync frontend-next-steps with batchBurak Boduroğlu · 0be6983
feat: ✨ mobile tab bar, settings dirty-state, terms sidepanel, UX polish batch
- MobileTabBar: bottom nav (home/courses/exams/notes/menu) with safe-area
- ErrorAlert: shared destructive alert with optional retry button
- app-shell: replace hamburger with MobileTabBar, pb-24 on mobile
- side-nav: independent multi-group open/close states
- settings: dirty-state save gate via JSON baseline, auto-clearing success, Metric cards, locked badges, EmptyRows fallback
- terms: SidePanel create/edit + dense table row actions
- profile: localized role label instead of raw role+id
- student-attendance + student-marks: ErrorAlert, personLabel, onSelectUser, localized emptyMessage
- course-sessions-panel: ConfirmDialog for session delete, ErrorAlert
- exam-room-page: stale id guard on route change
- exam-room + live-monitor: nested breadcrumbs (Exams / title / sub)
- dashboard: role-ordered portal cards, guide CTA, empty timeline CTA, compact grid
- header create buttons: unified min-w-[7.5rem] rounded-lg
- cards grid: cols-2 on sm breakpoint
- work-log: localized Status column header
- docs: sync frontend-next-steps with batch
fix: 🐛 role-gate exam room, user search, and courses fetch - hide exam room button for teacher+, deny non-student route access - filter enrollment/attendance/marks user pickers to role=student - skip GET /courses for students (only enrolled list matters) - add optional role param to getUserSearch and UserSearchSelect - document in frontend-next-stepsBurak Boduroğlu · 477b3da
fix: 🐛 role-gate exam room, user search, and courses fetch
- hide exam room button for teacher+, deny non-student route access
- filter enrollment/attendance/marks user pickers to role=student
- skip GET /courses for students (only enrolled list matters)
- add optional role param to getUserSearch and UserSearchSelect
- document in frontend-next-steps

2026-07-13

fix: 💄 Sidebar styling, avatar minimalism, user search focus fix - Sidebar: rounded-lg→rounded-md, single hover bg (icon ayrı değil), gap-2→gap-1.5, gap-1→gap-0.5 - Header px-3→px-2 (icon hizası) - Avatar: border/bg kaldırıldı, nav item'larıyla aynı stil, minimal dropdown - Dropdown item'lar rounded-lg→rounded-md, profile edit icon + dotted separator - UserSearchSelect: createResource→createEffect (Suspense kaynaklı focus kaybı fix)Burak Boduroğlu · 3d3511a
fix: 💄 Sidebar styling, avatar minimalism, user search focus fix
- Sidebar: rounded-lg→rounded-md, single hover bg (icon ayrı değil), gap-2→gap-1.5, gap-1→gap-0.5
- Header px-3→px-2 (icon hizası)
- Avatar: border/bg kaldırıldı, nav item'larıyla aynı stil, minimal dropdown
- Dropdown item'lar rounded-lg→rounded-md, profile edit icon + dotted separator
- UserSearchSelect: createResource→createEffect (Suspense kaynaklı focus kaybı fix)
feat: ✨ improve user search and shadcn wrappersBurak Boduroğlu · 944aa14
feat: ✨ improve user search and shadcn wrappers

- document shadcn-solid as the canonical UI primitive standard

- add shadcn-style dialog, alert-dialog, combobox, and popover wrappers

- move form and confirm dialogs onto the shadcn wrapper API

- add resilient user search flows for admin users, marks lookup, enrollment, and attendance

- polish dashboard cards, page headers, and tables for the dark sidebar shell
fix: 🐛 align user search with backend contractBurak Boduroğlu · 87b4064
fix: 🐛 align user search with backend contract

- remove unsupported role query parameter from /users/search

- simplify the reusable user search select source shape

- drop role props from course enrollment and marks lookup pickers
feat: ✨ add user search picker for person selectionBurak Boduroğlu · 41442f8
feat: ✨ add user search picker for person selection

- add /users/search API wrapper and reusable user search select

- replace raw student id inputs in course enrollment, event attendance, and marks lookup

- keep marks lookup compatible with manual user ids when search returns no match

- show selected student labels in grade confirmation text