forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/stores/preferences-context.tsxClear filter

2026-09-19

perf: ⚡ load only the active language's dictionary - split the en/tr dictionaries out of messages.ts into their own chunks; the boot awaits the stored locale before the first render - a locale switch waits for its dictionary before flipping, last request wins - preferences chunk drops from ~290 KB to ~83 KB; each session fetches one ~105 KB dictionary instead of both - tests register both dictionaries through a shared setup file - includes the new keys used by the fixes that followBurak Boduroğlu · 877419e
perf: ⚡ load only the active language's dictionary
- split the en/tr dictionaries out of messages.ts into their own chunks;
  the boot awaits the stored locale before the first render
- a locale switch waits for its dictionary before flipping, last request wins
- preferences chunk drops from ~290 KB to ~83 KB; each session fetches one
  ~105 KB dictionary instead of both
- tests register both dictionaries through a shared setup file
- includes the new keys used by the fixes that follow

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-08-23

fix: 📱 theme the system chrome, keep typed text readable, stop false save errors - pin color-scheme per theme instead of letting the meta tag follow the OS: the caret, the selection handles and the overscroll canvas were painted from the phone's setting, so a dark app on a light phone drew a black caret in a black field and rubber-banding past the end of a list showed a white strip under the composer - paint <html> with the theme background and stop overscroll chaining, so the strip revealed below the last element matches the page - keep the system bars in the theme: a theme-color meta, set before first paint from the boot script and repainted from --background on every theme change - name color, caret and selection on form controls, and re-assert the placeholder's own fill, which the field's -webkit-text-fill-color would otherwise inherit over - interactive-widget=resizes-content: the soft keyboard now shrinks the layout viewport, so a fixed panel's composer stays above the keys - Çelebi: the composer strip is opaque rather than a gradient the last message showed through, the transcript follows new messages while the reader is at the bottom, and the thread chips get real icons and states - the command palette hands its initial focus to the query field; the dialog's focus trap used to swallow the focus() queued from an effect - classes: a refetch that fails after a successful write no longer reports the write as failed, and a failed reload of one class no longer replaces the whole page with an error screen while the class is in handBurak Boduroğlu · 4d56b03
fix: 📱 theme the system chrome, keep typed text readable, stop false save errors
- pin color-scheme per theme instead of letting the meta tag follow the OS:
  the caret, the selection handles and the overscroll canvas were painted
  from the phone's setting, so a dark app on a light phone drew a black
  caret in a black field and rubber-banding past the end of a list showed
  a white strip under the composer
- paint <html> with the theme background and stop overscroll chaining, so
  the strip revealed below the last element matches the page
- keep the system bars in the theme: a theme-color meta, set before first
  paint from the boot script and repainted from --background on every
  theme change
- name color, caret and selection on form controls, and re-assert the
  placeholder's own fill, which the field's -webkit-text-fill-color would
  otherwise inherit over
- interactive-widget=resizes-content: the soft keyboard now shrinks the
  layout viewport, so a fixed panel's composer stays above the keys
- Çelebi: the composer strip is opaque rather than a gradient the last
  message showed through, the transcript follows new messages while the
  reader is at the bottom, and the thread chips get real icons and states
- the command palette hands its initial focus to the query field; the
  dialog's focus trap used to swallow the focus() queued from an effect
- classes: a refetch that fails after a successful write no longer reports
  the write as failed, and a failed reload of one class no longer replaces
  the whole page with an error screen while the class is in hand

2026-08-02

feat: 🎨 theme-aware accent color with pinned lightness variants - picked hue is kept, saturation clamped, but lightness pinned per theme (light 40, dark 68) so pastel and near-black picks stay legible in both modes; foreground chosen by relative luminance - --accent-light/--accent-dark CSS vars (with fg counterparts) feed --ui-accent/--primary-foreground/--ring, both set up front so a live theme toggle applies instantly via the dark cascadeBurak Boduroğlu · 67af0d4
feat: 🎨 theme-aware accent color with pinned lightness variants
- picked hue is kept, saturation clamped, but lightness pinned per theme
  (light 40, dark 68) so pastel and near-black picks stay legible in
  both modes; foreground chosen by relative luminance
- --accent-light/--accent-dark CSS vars (with fg counterparts) feed
  --ui-accent/--primary-foreground/--ring, both set up front so a live
  theme toggle applies instantly via the dark cascade

2026-08-01

feat: ✨ collaborative whiteboard + accent-color backend sync - boards API domain (src/api/boards): create/list/read, current-epoch strokes, full history + epoch index, patch (title/roster/lock), clear, close, delete — with mandatory domain tests - board-stroke-codec: Stroke <-> segmented wire payload in board-space, split under the 4096B cap, reassembled by sid; unit-tested - live canvas (whiteboard-canvas) reusing draw-stroke primitives: pen/eraser/colour/width + pan/zoom, onStroke emit + remote-apply controller - board room WS component modelled on exam-room-ws: join/resync, optimistic draw with resync-from-REST on reject, id dedupe, backoff reconnect - whiteboards list page (create side-panel + participant picker, parents excluded) and board room page (creator commands, roster, epoch replay via DrawingPlayback) - router routes /whiteboards and /whiteboards/$id, nav entry (minRole student), tr/en messages - accent-color sync: palette_color on User + PatchMyPreferences body; setPaletteColor persists to PATCH /users/me/preferences ("" clears), hydratePreferences seeds it on login; users API testsBurak Boduroğlu · 58593cc
feat: ✨ collaborative whiteboard + accent-color backend sync
- boards API domain (src/api/boards): create/list/read, current-epoch
  strokes, full history + epoch index, patch (title/roster/lock), clear,
  close, delete — with mandatory domain tests
- board-stroke-codec: Stroke <-> segmented wire payload in board-space,
  split under the 4096B cap, reassembled by sid; unit-tested
- live canvas (whiteboard-canvas) reusing draw-stroke primitives:
  pen/eraser/colour/width + pan/zoom, onStroke emit + remote-apply controller
- board room WS component modelled on exam-room-ws: join/resync, optimistic
  draw with resync-from-REST on reject, id dedupe, backoff reconnect
- whiteboards list page (create side-panel + participant picker, parents
  excluded) and board room page (creator commands, roster, epoch replay
  via DrawingPlayback)
- router routes /whiteboards and /whiteboards/$id, nav entry (minRole
  student), tr/en messages
- accent-color sync: palette_color on User + PatchMyPreferences body;
  setPaletteColor persists to PATCH /users/me/preferences ("" clears),
  hydratePreferences seeds it on login; users API tests

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
fix: 🛡️ guard runtime errors, storage failures, and guest dashboard edge cases - catch TypeError (network/runtime/provider errors) in formatApiError with user-friendly messages instead of exposing raw JS error text - guard localStorage writes behind try/catch so blocked/full storage does not break preferences for the session - restructure DashboardPage so RouteGuard wraps content; add guest redirect testBurak Boduroğlu · 8b9f154
fix: 🛡️ guard runtime errors, storage failures, and guest dashboard edge cases
- catch TypeError (network/runtime/provider errors) in formatApiError with
  user-friendly messages instead of exposing raw JS error text
- guard localStorage writes behind try/catch so blocked/full storage does not
  break preferences for the session
- restructure DashboardPage so RouteGuard wraps content; add guest redirect test

2026-07-21

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

2026-07-16

feat: ✨ persist user preferencesBurak Boduroğlu · 60e7901
feat: ✨ persist user preferences

- add theme and language fields to the user API type
- wire PATCH /users/me/preferences for self-managed preferences
- save theme and language changes from the preference store to the backend
- hydrate local preferences from the authenticated user response

2026-07-12

feat: ✨ rebuild Hezarfen frontend for the full campus backendBurak Boduroğlu · 4deb240
feat: ✨ rebuild Hezarfen frontend for the full campus backend

- SolidJS + Vite + TanStack Router + Tailwind/shadcn-solid (Kobalte)
- Session cookie auth, role guards, TR/EN i18n, light/dark theme
- Notes, events + attendance status chips, admin users search/filter
- Courses with roster enrollment; exams created under a course with weight
- Report card (/marks) with weighted course averages and overall average
- Dashboard KPIs (notes/events/exams/average), wide list panels, guide
- Sidebar guide pinned above centered @Hezarfen - 2026 footer
- Vite proxy for /auth /users /notes /events /exams /courses /marks