forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/components/layout/shell-unread-badge.test.tsxClear filter

2026-09-12

feat: 🎨 recompose the screens onto the Figma design, and name what is missingBurak Boduroğlu · 777e8b5
feat: 🎨 recompose the screens onto the Figma design, and name what is missing

- the earlier migration recolored the app but left every layout alone, so
  the pages still read as the old product wearing new tokens; the screens
  are now built to the shape their Figma frame actually shows
- classes, courses and staff work move from tables and link lists to the
  designed card grids; exams, homework, the question bank and the user
  roster gain the tab rows the design puts above them, every one computed
  from data already fetched rather than a new round trip
- the admin home becomes the designed hero: a centered heading, a live
  student search and quick-link columns over an Analitik section
- teacher, student and parent homes gain what real data supports — a
  deduped student count and the pending appointment requests addressed to
  a teacher, a week of focus minutes for a student, and for a parent a
  child selector, an attendance card and a fee-plan card
- the marks report splits into Genel and Derslere göre, attendance leads
  with the four rates the design names, and the calendar's week view is a
  real timetable instead of a strip of coloured dots
- notification panel, a branded 404, a 403 and a 500 card, and a banner
  driven by the browser's own online/offline events
- where no endpoint can fill a value, the element is drawn and marked
  "yakında" rather than dropped, so a reader can tell a missing number
  from an unbuilt feature; controls that would do nothing are disabled
  beside the badge instead of sitting there inert
- a delta arrow with no baseline and a progress bar with no ratio carry
  no information, so they are left out rather than badged; settings keeps
  its three working tabs instead of growing four empty ones
- two recurring bugs fixed again where the new layouts met them: name
  cells with no truncate overlapping the column beside them, and two raw
  rose badges that had escaped the token sweep

Every screen was walked in a browser at 1440px and 393px against its
Figma frame, as each role it belongs to. Nothing here invents a value the
API cannot serve.

2026-08-02

fix: 🌍 locale-aware notification dates and a real pomodoro countdown - notification-center: date/time formatting used toLocaleString([], …), which ignores the app's language toggle and follows the browser's own locale instead — now threaded through the user's actual preference - notification-center: hardcoded Turkish strings (title, empty state, clear-all, dismiss) moved to i18n so English mode renders correctly too - exam-detail-page: results tab's DataTable used PageSpinner as its Suspense fallback instead of DataTableSkeleton, same size-mismatch jump as the earlier course-detail panels - pomodoro-page: the clock now counts down from a configurable target (15/25/45/60 min presets or a custom value, persisted locally) instead of counting up forever; flips to a highlighted "+overtime" readout and fires one flash once the target is crossed, matching the technique's fixed work interval — the backend session itself is still an open-ended start/finish stopwatch, this only changes the displayBurak Boduroğlu · 6cb863c
fix: 🌍 locale-aware notification dates and a real pomodoro countdown
- notification-center: date/time formatting used toLocaleString([], …),
  which ignores the app's language toggle and follows the browser's own
  locale instead — now threaded through the user's actual preference
- notification-center: hardcoded Turkish strings (title, empty state,
  clear-all, dismiss) moved to i18n so English mode renders correctly too
- exam-detail-page: results tab's DataTable used PageSpinner as its
  Suspense fallback instead of DataTableSkeleton, same size-mismatch
  jump as the earlier course-detail panels
- pomodoro-page: the clock now counts down from a configurable target
  (15/25/45/60 min presets or a custom value, persisted locally) instead
  of counting up forever; flips to a highlighted "+overtime" readout and
  fires one flash once the target is crossed, matching the technique's
  fixed work interval — the backend session itself is still an
  open-ended start/finish stopwatch, this only changes the display

2026-07-28

feat(nav): 🧭 rebuild role navigationBurak Boduroğlu · 53173ce
feat(nav): 🧭 rebuild role navigation

- add role-specific primary links and grouped sidebar sections

- expose student, school, meal, appointment, and legacy redirects

- move message and notification controls into the header

2026-07-25

fix: 🔍 correct 21 defects the last 24h of commits shipped greenAhmet Kaan Gümüş · f9efbbc
fix: 🔍 correct 21 defects the last 24h of commits shipped green

Adversarial audit of 49f9928..ffb1d47: four verifiers found 15 defects the
317-test suite passed over, and a two-lens panel found 6 more in the fixes
themselves. Three of those commits claimed fixes they did not deliver.

- exam room: "saved" was still a lie. Acks were keyed on question_id alone,
  so a timed-out send's late frame settled the retry and the badge claimed
  Saved for a payload the server never took. Replaced with per-send FIFO
  plus an integer debt count per question: superseded/timed-out sends are
  disowned and their frames paid off before any live send settles. failAll
  now takes a required cause — an unattributed error frame keeps the debt
  (the socket stays open), only a real close clears it
- shell feed leaked across accounts: the provider outlived logout, so user B
  saw user A's inbox, badge and appointments until the refetch landed. The
  feed is now built inside a memo keyed on the user id, so a switch disposes
  it rather than relying on a mutate call
- appointments offered actions the backend rejects: book on in-progress
  slots (list filter used where the book guard applies), and a teacher lost
  reschedule permanently because the backend never clears proposed_* — action
  availability now derives from a standing proposal, in a tested pure gate
- every 403 and 404 message was dead: formatApiError returned the per-status
  generic before consulting the table, so entries added for the question bank
  never rendered. Table now wins; 8 appointment 409s and the refresh-from-bank
  400 localized against the backend's exact strings
- request deadline escaped as a raw DOMException because the body read sat
  outside its try, showing Turkish users an English abort message
- unread badge under-counted from a capped inbox page, the two shell badges
  disagreed, and dismiss-all could not clear a count above ten
- students and parents saw their own name on every calendar appointment
- question bank stranded the user on an empty page after deleting the last row
- tests: 317 -> 336, all new ones watched failing before they passed. One
  existing test asserted the ack bug as intended behaviour and was rewritten
- comments in create-ack-waiter claimed safety properties the code lacked;
  rewritten to describe actual behaviour

Known and accepted: shell events/exams fetch unpaged (~3.37MB/poll at 5000
rows) because the backend cannot express a schedule window. Follow-ups for
the backend: starts_after on /events and /exams, and a client seq echoed in
the exam ws saved/error frames to replace the debt heuristic with exact
identity.