forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to src/api/__tests__/homework/homework.test.tsClear filter

2026-09-25

feat: 🔎 send the new server filters from the list pagesAhmet Kaan Gümüş · 76f3534
feat: 🔎 send the new server filters from the list pages

Events/exams windows, homework due tabs, meals slot, users roles,
courses kind/q/taught, appointments teacher/status/window, pomodoro
window, messages/boards search, sessions month window — the pages
query the server instead of downloading a capped list and filtering
in JS. Past/completed tabs read the recent tail (loadCappedTail)
because a before-bound sorts ascending server-side.

2026-09-18

fix: 🎧 play the finished episode from its job's own audio doorAhmet Kaan Gümüş · 1f37a9a
fix: 🎧 play the finished episode from its job's own audio door

The panel's "ready" player pointed at /api/podcast/audio?path=…, a door the
backend no longer has: the request answers 404 with an empty body, so the
element dies on a format error and shows 0:00 / 0:00 with no sound. The live
contract streams an episode by job id — GET /podcast/jobs/{id}/audio — with
409 not_ready for a job that has not finished, 409 audio_missing for a row
whose blob is gone, and 404 for a job the caller does not own. The helper now
takes the job id, and the panel hands it result().job_id.

Sweeping every hand-built /api URL in src/ against the live OpenAPI paths
turned up a second dead shape: the roster's per-student file download
composed /homework/{id}/submissions/{user}/files/{fid}, which no route
answers (empty 404, where a matched-but-missing route answers a JSON 404).
A teacher reads any file under a homework they manage through
/homework/{id}/submission/files/{fid}, so the roster uses that one helper
and the second URL shape is gone with it. The two SSE stream URLs, the
question/answer image URLs, the note and course-note file URLs, the avatar
URL and both WebSocket rooms all still resolve.

Tests: the audio helper pin moves to the job door, the panel gains a pin
that the element's src is built from job_id (fails if handed audio_id), the
roster's URL pin goes with its helper, and the contract probe now asks the
live door for a job id that is not the caller's instead of the retired path
door.

2026-08-03

fix: 🔍 drop query filters the backend never implemented - GET /homework takes limit/offset only, yet getHomework advertised a due_after window; GET /courses and /courses/me likewise take no kind/q/term_id. Serde drops unknown query keys silently, so every one of these looked applied while the response came back unfiltered - the visible symptom was the homepage "courses" stat, which asked for kind=course and counted studies and clubs along with it; it now counts over the unpaged list client-side, the way the courses page already did - three unit tests and one contract test encoded the phantom filters — the contract test claimed "returns filtered courses" and passed only because the backend ignored the filters it sentBurak Boduroğlu · 18dcd69
fix: 🔍 drop query filters the backend never implemented
- GET /homework takes limit/offset only, yet getHomework advertised a
  due_after window; GET /courses and /courses/me likewise take no
  kind/q/term_id. Serde drops unknown query keys silently, so every one
  of these looked applied while the response came back unfiltered
- the visible symptom was the homepage "courses" stat, which asked for
  kind=course and counted studies and clubs along with it; it now counts
  over the unpaged list client-side, the way the courses page already did
- three unit tests and one contract test encoded the phantom filters —
  the contract test claimed "returns filtered courses" and passed only
  because the backend ignored the filters it sent

2026-07-28

feat(api): 🔌 align backend contractsBurak Boduroğlu · 4e531e5
feat(api): 🔌 align backend contracts

- add runtime limits and complete meal endpoint clients

- align course, homework, report, and settings payloads

- drive auth validation from server limits

2026-07-23

feat: ✨ complete homework and answer attachmentsBurak Boduroğlu · c563a97
feat: ✨ complete homework and answer attachments

- add teacher homework submission detail view with text and file downloads

- add roster submission file URL helper and homework API test coverage

- add student answer image upload beside drawing in the exam room

- add teacher answer image download from answer review

- localize new homework and answer image actions

2026-07-22

feat: ✨ add homework API coverageBurak Boduroğlu · 6d0e29c
feat: ✨ add homework API coverage

- add frontend homework endpoint wrappers and shared response types

- expose course homework creation and listing helpers

- add missing small parity wrappers for note, session, subject, term, and user endpoints

- cover new and updated API helpers with targeted vitest tests

- update build rule to skip repeat builds after a passing build or explicit user waiver