Commits
Commits on
dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/api/homework/index.tsClear filter2026-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-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