Commits
Commits on
dcf123a8823bd55f0a656ce94de6b865f41dc08a2026-09-18
perf: ⏱️ dashboard panels load on their own - each board section (highlights, role panels, deadlines, heatmap) gets its own Suspense with a panel skeleton, so a slow source holds back only its panel instead of the whole homepage behind one page spinner - the page spinner stays as the outer fallback for reads outside a panelBurak Boduroğlu · 364395f
perf: ⏱️ dashboard panels load on their own - each board section (highlights, role panels, deadlines, heatmap) gets its own Suspense with a panel skeleton, so a slow source holds back only its panel instead of the whole homepage behind one page spinner - the page spinner stays as the outer fallback for reads outside a panel
feat: 📱 tables become cards on phone-width screens - below the sm breakpoint DataTable renders each row as a card: the first column as its title, the actions menu top-right, the other visible columns as label/value pairs, instead of a table scrolling sideways (rosters were min-w-[940px], with scrollbars hidden) - row click and keyboard activation carry over; a press on the actions menu does not open the row; list semantics stay on the li - mobileLayout="scroll" keeps the table where a grid reads better - createMediaQuery helper; without matchMedia the table layout stays - test for the card layoutBurak Boduroğlu · 90f1d65
feat: 📱 tables become cards on phone-width screens - below the sm breakpoint DataTable renders each row as a card: the first column as its title, the actions menu top-right, the other visible columns as label/value pairs, instead of a table scrolling sideways (rosters were min-w-[940px], with scrollbars hidden) - row click and keyboard activation carry over; a press on the actions menu does not open the row; list semantics stay on the li - mobileLayout="scroll" keeps the table where a grid reads better - createMediaQuery helper; without matchMedia the table layout stays - test for the card layout
fix: ↕️ server-paged tables stop sorting a single page - DataTable sorting is client-side and the backend takes no sort parameter (checked against the live OpenAPI), so with manualPagination a header sort reordered only the visible page while implying the whole list; it is now off there unless a caller opts in - affects the payments and question bank tables - test: header sort offered for client paging, not for server pagingBurak Boduroğlu · 0ce9d6b
fix: ↕️ server-paged tables stop sorting a single page - DataTable sorting is client-side and the backend takes no sort parameter (checked against the live OpenAPI), so with manualPagination a header sort reordered only the visible page while implying the whole list; it is now off there unless a caller opts in - affects the payments and question bank tables - test: header sort offered for client paging, not for server paging
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 rulefix: ♿ accessibility pass over shell, palette and icon buttons - command palette follows the combobox pattern: the field controls a listbox of grouped options, aria-activedescendant tracks the arrow keys, the result count is a status, the clear button is labelled - toasts sit in a polite live region; Dismiss and the date picker's month arrows and Today label come from i18n - icon-only edit/delete/remove buttons on questions, notes, exam questions, choices and payment rows get accessible names - skip-to-content link and a focusable main landmark in the shell - scroll-padding-top keeps focused elements out from under the sticky header (WCAG 2.4.11) - test: palette roles and active optionBurak Boduroğlu · 8433af2
fix: ♿ accessibility pass over shell, palette and icon buttons - command palette follows the combobox pattern: the field controls a listbox of grouped options, aria-activedescendant tracks the arrow keys, the result count is a status, the clear button is labelled - toasts sit in a polite live region; Dismiss and the date picker's month arrows and Today label come from i18n - icon-only edit/delete/remove buttons on questions, notes, exam questions, choices and payment rows get accessible names - skip-to-content link and a focusable main landmark in the shell - scroll-padding-top keeps focused elements out from under the sticky header (WCAG 2.4.11) - test: palette roles and active option
feat: 🏷️ field-level errors for form inputs - Input and Textarea take an error message: shown under the field, the field marked aria-invalid and described by it - the backend's error body is {error, code} with no field name, so server failures stay in the form alert; field errors come from client checks - pilot: the new-class form checks its name itself (noValidate), so a blank or spaces-only name is flagged in the app's words and not sent - test for the class name check and its aria wiringBurak Boduroğlu · 0840786
feat: 🏷️ field-level errors for form inputs
- Input and Textarea take an error message: shown under the field, the
field marked aria-invalid and described by it
- the backend's error body is {error, code} with no field name, so server
failures stay in the form alert; field errors come from client checks
- pilot: the new-class form checks its name itself (noValidate), so a
blank or spaces-only name is flagged in the app's words and not sent
- test for the class name check and its aria wiringfeat: 🛟 side panels ask before throwing input away - SidePanel takes dirty (explicit) or guardUnsaved (any input or change inside counts); Escape, an outside click or the close button then open a discard confirm, while a submit or explicit Cancel still closes directly - pilot: class create, meal publish and the exam create details step - fix: a press inside the confirm read as an outside click to the non-modal panel and reopened the confirm - fix: Kobalte hands plain dialogs the alertdialog role whenever an AlertDialog is in the tree; SidePanel and Dialog set role=dialog - fix: ConfirmDialog's cancel button was announced as an English "Dismiss"; it now carries its visible label - SidePanel close button label moves into i18n - tests for the guard, the role and guardUnsavedBurak Boduroğlu · a69482e
feat: 🛟 side panels ask before throwing input away - SidePanel takes dirty (explicit) or guardUnsaved (any input or change inside counts); Escape, an outside click or the close button then open a discard confirm, while a submit or explicit Cancel still closes directly - pilot: class create, meal publish and the exam create details step - fix: a press inside the confirm read as an outside click to the non-modal panel and reopened the confirm - fix: Kobalte hands plain dialogs the alertdialog role whenever an AlertDialog is in the tree; SidePanel and Dialog set role=dialog - fix: ConfirmDialog's cancel button was announced as an English "Dismiss"; it now carries its visible label - SidePanel close button label moves into i18n - tests for the guard, the role and guardUnsaved
fix: 🧩 failures stop reading as empty data - createBoardResources: a failed source reads as undefined instead of throwing, keeps its .error, and retryFailed refetches only what failed - dashboard: one failed request no longer takes every panel down; stats over a failed source show a dash instead of a made-up 0, and the notice says panels are missing data and offers Try again - calendar: each feed stands alone; a failed one is named above the grid with Try again, and a loading line shows while feeds are in flight (feeds used to start as [] and read as an empty calendar) - DataTable: a search that matches nothing says so and offers Clear search, instead of the list's own empty-state copy - calendar prev/next buttons get accessible labels - tests for each caseBurak Boduroğlu · 391e238
fix: 🧩 failures stop reading as empty data - createBoardResources: a failed source reads as undefined instead of throwing, keeps its .error, and retryFailed refetches only what failed - dashboard: one failed request no longer takes every panel down; stats over a failed source show a dash instead of a made-up 0, and the notice says panels are missing data and offers Try again - calendar: each feed stands alone; a failed one is named above the grid with Try again, and a loading line shows while feeds are in flight (feeds used to start as [] and read as an empty calendar) - DataTable: a search that matches nothing says so and offers Clear search, instead of the list's own empty-state copy - calendar prev/next buttons get accessible labels - tests for each case
fix: 🧯 a failing page no longer blanks the whole app - reproduced: a rejected getClasses on /management/classes threw through resource.latest to the app-wide ErrorBoundary, replacing shell and nav with a full-screen 500 - the router gets a defaultErrorComponent, so solid-router wraps each route in a CatchBoundary: the error card renders in the page slot, the shell stays, and Try again remounts the page (its resources refetch) - bilingual without t(), since the root route can also render it - tests: a throwing route keeps the shell and recovers on retry; the app router is wired to the componentBurak Boduroğlu · e0d37b1
fix: 🧯 a failing page no longer blanks the whole app - reproduced: a rejected getClasses on /management/classes threw through resource.latest to the app-wide ErrorBoundary, replacing shell and nav with a full-screen 500 - the router gets a defaultErrorComponent, so solid-router wraps each route in a CatchBoundary: the error card renders in the page slot, the shell stays, and Try again remounts the page (its resources refetch) - bilingual without t(), since the root route can also render it - tests: a throwing route keeps the shell and recovers on retry; the app router is wired to the component
feat: 🧭 shared breadcrumbs on every detail page - new Breadcrumbs component: nav landmark with an ordered list, ancestors as links, the current page marked aria-current - course, exam and instance details move from inline crumb markup to it - event, homework, meal, class, question, bank question, whiteboard and admin user details gain a hub -> record trail - the in-page Back buttons on those pages go: the crumb and the shell back button already cover it; eyebrows that repeated the hub label go too - event and meal headers render no empty action group for non-managersBurak Boduroğlu · a4ab2e9
feat: 🧭 shared breadcrumbs on every detail page - new Breadcrumbs component: nav landmark with an ordered list, ancestors as links, the current page marked aria-current - course, exam and instance details move from inline crumb markup to it - event, homework, meal, class, question, bank question, whiteboard and admin user details gain a hub -> record trail - the in-page Back buttons on those pages go: the crumb and the shell back button already cover it; eyebrows that repeated the hub label go too - event and meal headers render no empty action group for non-managers
fix: ↩️ the shell back button never leaves the app - with an in-app history entry it still goes back (useCanGoBack + router.history.back) - on a deep link, new tab or reload it navigates to the nearest existing parent route instead of calling window.history.back() - instances go to the /courses hub, exam rooms to /exams, profiles home - backTarget is a pure helper over the router's route paths, with testsBurak Boduroğlu · 2834536
fix: ↩️ the shell back button never leaves the app - with an in-app history entry it still goes back (useCanGoBack + router.history.back) - on a deep link, new tab or reload it navigates to the nearest existing parent route instead of calling window.history.back() - instances go to the /courses hub, exam rooms to /exams, profiles home - backTarget is a pure helper over the router's route paths, with tests
fix: 🗑️ confirm before emptying the message trash - Empty trash opens a destructive ConfirmDialog instead of deleting at once - the summary says how many messages go, and that only the loaded page is emptied when the trash holds more - the button label moves from a hardcoded Turkish string into i18n - test: no delete call until the dialog is confirmedBurak Boduroğlu · 3eb380a
fix: 🗑️ confirm before emptying the message trash - Empty trash opens a destructive ConfirmDialog instead of deleting at once - the summary says how many messages go, and that only the loaded page is emptied when the trash holds more - the button label moves from a hardcoded Turkish string into i18n - test: no delete call until the dialog is confirmed
fix: ✂️ say when a capped list left rows out - new loadCappedList: first load keeps the 100-row cap from 61d2048 but returns the server total, and fetches every row on request - TruncationNotice shows "first N of total" with a Load all button, above the events, exams and admin users tables (users keep their 200 cap) - tests for the helper, the notice and the events page round trip - other capped reads (dashboard, calendar, payments, meal detail, terms and more) still cap silently; they follow in later layer A workBurak Boduroğlu · 15be768
fix: ✂️ say when a capped list left rows out - new loadCappedList: first load keeps the 100-row cap from 61d2048 but returns the server total, and fetches every row on request - TruncationNotice shows "first N of total" with a Load all button, above the events, exams and admin users tables (users keep their 200 cap) - tests for the helper, the notice and the events page round trip - other capped reads (dashboard, calendar, payments, meal detail, terms and more) still cap silently; they follow in later layer A work
fix: 🔌 close the last gaps against the live API contract - PodcastJobArtifacts matches the live JobArtifacts: drop audio_ids, script_id and script_ids, and duration_secs and format are nullable - add getInsightsPending (GET /insights/pending), with a testBurak Boduroğlu · e6e9aad
fix: 🔌 close the last gaps against the live API contract - PodcastJobArtifacts matches the live JobArtifacts: drop audio_ids, script_id and script_ids, and duration_secs and format are nullable - add getInsightsPending (GET /insights/pending), with a test
fix: 🩹 a withheld trend slope says why instead of vanishingAhmet Kaan Gümüş · 6d123ba
fix: 🩹 a withheld trend slope says why instead of vanishing
ZEKA now suppresses `slope_per_30d` when the mark series spans fewer than the
regression window and sends a reason with it — but the drawer only rendered
`trend.reason` inside the unavailable fallback, so an *available* trend with a
null slope silently lost its "30 günlük değişim" row with no explanation. The
reason is rendered in the row's place, as a note line in the same style as the
other honest-absence lines; the row itself stays absent (no 0, no "—").
Tests: an available trend with `slope_per_30d: null` + reason renders the
sentence and no scoring row; an available trend with a slope renders the row
("+3,4 puan / 30 gün") and no reason line. 9/9 pass; deleting the note turns
exactly the first one red.♻️ refactor(insights): one label map, one pending lineAhmet Kaan Gümüş · 2cb6c6b
♻️ refactor(insights): one label map, one pending line Two same-class residuals from the delta review: - The run status had two maps. The table's inline list used the app's dictionary (insights.status.*) while the report kept a private table — and they had ALREADY drifted: tr `running` read "Çalışıyor" in the dictionary and "Sürüyor" in the report. runReportStatusLabel now reads the dictionary, the table badge calls it, and there is one place a new status gets a label. An unknown status stays raw on both surfaces. - The pending-students expression was copied between the panel and the export. pendingStudentsLine(locale, model) builds the one line (count, names in the ledger's order, `—` where the roster cannot resolve a name) and both render it, so the export cannot drift from the screen. The em-dash case now has a test on the same line the panel shows. Gates: tsc clean; insight-run-report.test.tsx 11/11. Live: the ledger badge and the report's Durum both read "Tamamlandı", the student rows read "Kararlı".
merge: no false school-wide claim, no raw dimension in the drawerAhmet Kaan Gümüş · 2c0ed86Browse files
🐛 fix(insights): the run report speaks Turkish, not the service's enumAhmet Kaan Gümüş · 0550b10
🐛 fix(insights): the run report speaks Turkish, not the service's enum Three flags from the batch verification, one commit: - The Güven column printed the raw confidence tier (exploratory / stable / none). It now reads the app's own dictionary (insights.confidence.*), the same labels the student drawer shows, in both the view and the Markdown; an unknown tier stays raw rather than being guessed at. - failed_modules are zeka pipeline stage names (discover_students / fetch / compute / store). They get labels with an honest fallback for a stage this build does not know, the same sweep applied to the runs table's own issue line, and the raw stage list stays in the technical disclosure. - The export counted the pending students while the panel named them. The export now carries the same list in the same order (`—` for a student the roster could not resolve), so the .md, the clipboard and the print sheet say what the screen says. Tests pin each: the panel and the export show Keşifsel/Kararlı and never the raw enum; a known stage reads Veri toplama while an unknown one keeps its technical name and the raw list survives in the JSON disclosure; the pending line names Ayça Şahin.
fix: 🩹 the drawer stops calling an unresolved course school-wideAhmet Kaan Gümüş · 37ac68d
fix: 🩹 the drawer stops calling an unresolved course school-wide Two refute-first flags on the previous commit, both closed: - `courseLine` claimed "Okul geneli" for any course id whose title failed to resolve. The attention payload's own contract is that a *null* course is the school-wide case, so an unresolved id was inventing a fact on a student's report. A null course now says school-wide; an unresolved id reads "Ders adı çözümlenemedi" and its raw id stays in the technical disclosure. - The evidence renderer printed `dimension` raw, so one drawer showed both "Boyut: dikkat_tuzagi" and the segments section's "Dikkat tuzağı" for the same vocabulary. The dimension map moved to the i18n module and both call sites share it; an unmapped dimension is omitted from the human view and named in the technical-disclosure count instead. Tests: two new cases pin both flags — school-wide wording only for a null course, asserted together with the exact count of school-wide claims, and no snake_case dimension anywhere in the human view while the raw value survives in the disclosure. 7/7 pass; reverting either fix turns exactly its own test red.
fix: 🩹 the episode download is one interactive element, not a button in a linkAhmet Kaan Gümüş · a253819Browse files
✨ feat(insights): a readable school report behind each run rowAhmet Kaan Gümüş · 9895664
✨ feat(insights): a readable school report behind each run row
The Analiz tab's run ledger was counters only — no row action, no route, and
nothing behind it. Each run row now opens a report of what that run produced,
built from the doors that exist: the ledger row (GET /insights/runs), the
school roster (/users/search?role=student) and one student at a time
(/insights/students/{id}). There is no school-level read door; the three
/insights/{summaries,segments,recommendations} routes are the bridge's WRITE
side, so the school picture is composed here and every number states how many
students it was computed over.
The report carries the run's own counters (date, status, processed/skipped/
failed, rows written, duration, budget, issue lines), module coverage with each
module's own limitation sentence, and every covered student's headline numbers
with a door into their existing analysis drawer (InsightDetail, reused). Where a
module measured nothing the report says so ("veri yok") instead of rendering a
blank panel, and a student that was never computed says that instead.
The same model renders the panel, the print sheet and the Markdown, so
Kopyala, İndir (.md) and Yazdır / PDF export exactly what is on screen —
print hides the app chrome through a body class and a document-only root.
The runs table's own copy also gains the two keys it referenced but never had
(insights.pendingStudents, insights.failedModules); the report's strings live in
their own lane-scoped module to keep one writer per file.merge: rag output view+export (note-reader-panel union: both panels get noteTitle)Ahmet Kaan Gümüş · a5591e3Browse files
fix: 🩹 the student analysis drawer speaks Turkish labels, not payload keysAhmet Kaan Gümüş · deabe8e
fix: 🩹 the student analysis drawer speaks Turkish labels, not payload keys
A school manager opening "Analizi görüntüle" saw ZEKA's raw payload: `Class es`,
`Trend Available`, `Within Student Contrast`, a course uuid key rendered as a
column squeezed until words broke mid-token. The data was never the problem —
the drawer rendered it with a generic key walker.
- Every module member gets a Turkish label, per module: attendance, marks,
study and submission each have their own renderer instead of one key flattener.
- Course and class ids resolve to names: `course_title` from the marks module
answers for the attendance list and the recommendation cards too (same keys);
a class list with no titles in the payload is reported as a count.
- Honest states read as sentences: the service's own `reason`/`limitation`
lines are rendered verbatim ("eğilim için en az 6 not gerekir",
"Veri toplanıyor (2/3)") instead of being dumped as fields.
- Attention triggers, segment dimensions, card products and card scopes are
labelled; unlabelled machine names are left out rather than shown raw.
- Layout: container queries (`@container`, `@md:`/`@lg:`) so the drawer reads at
1440px and stacks at 390px, one-column rows that wrap instead of squeezing,
and bounded scroll areas for course/homework lists.
- Nothing is dropped: a collapsed "Teknik ayrıntı" disclosure below the human
view holds the whole raw payload, and a visible count names the fields that
only live there.
Copy lives in a lane-scoped `src/i18n/insights-detail.ts` (Turkish-only, like
the payloads themselves); the shared `messages.ts` dictionary is untouched.
`src/lib/is-record.ts` is the canonical runtime record guard this needed.
Tests: 5 new drawer cases (labels present, no uuid in the human view, reasons
as sentences, raw payload in the disclosure, cards-only mode) — all five fail
against the pre-fix drawer.feat: ✨ view and export AI outputs from the note studioAhmet Kaan Gümüş · 84c2372
feat: ✨ view and export AI outputs from the note studio Every stored AI output was a one-sentence summary with a delete action, so the service's own payload (attachments, produced prose, lesser fields) was unreachable from the UI. Clicking a card — or the new View item in its menu — now opens a drawer that shows the output by name: date, note title, source attachments, the produced text, the remaining payload fields with labels, and the raw record behind a Technical details disclosure. Degraded outputs (failed attachments, no text) render as an honest sentence, not a blank drawer. The drawer also exports what it renders: Copy writes the same Markdown to the clipboard with a visible confirmation, Download (.md) saves it as a dated file, and Print / PDF isolates the document from the app chrome (and hides the actions and the raw disclosure) with a print stylesheet. Delete is unchanged. Drawer copy lives in a lane-scoped typed module (src/components/notes/rag-output-messages.ts) instead of the shared i18n table, which sibling lanes are editing this hour. Tests: rag-output-drawer.test.tsx (card opens the drawer and shows the output; the built Markdown carries title, date, source names and body with no raw ids; clipboard receives exactly that string and the confirmation shows; download blob carries it; a failed[]-and-no-text output shows the honest sentence); existing rag-outputs-panel.test.tsx still green. bun run check clean.
feat: ⬇️ download a produced episode from the studio and the historyAhmet Kaan Gümüş · 804d098Browse files
fix: 🩹 the note picker opens, toggles and closes on a field clickAhmet Kaan Gümüş · 2ec3110
fix: 🩹 the note picker opens, toggles and closes on a field click
The Kobalte combobox behind SearchableSelect opened only from the chevron or on
typing: its default triggerMode ("input") ignores a click on the field, and
focus mode — which opens on click — can never close again, refocusing the input
after every close so the list reopens by itself.
The field now owns the open state (controlled open/onOpenChange plus an onClick
toggle on the input): click opens, click again closes, a pick leaves it closed,
outside-click and Escape still close, typing still filters, ArrowDown opens and
the chevron still toggles.merge: 🎧 the history shows the open note by default, with a Tümü switchAhmet Kaan Gümüş · edbe8b0Browse files
fix: 🩹 the note picker opens its list on a click anywhere on the fieldAhmet Kaan Gümüş · 161bacfBrowse files
🎧 feat(podcast): scope the episode history to the open noteAhmet Kaan Gümüş · d5ffe71
🎧 feat(podcast): scope the episode history to the open note The section lived inside the note-scoped studio panel but listed every note's jobs, so picking another note looked like it kept the same results. It now asks the door for the open note's jobs and carries a `Bu not` / `Tümü` switch that widens to the whole history, with a caption naming the scope on screen and a scope-aware empty state. `listPodcastJobs` gains an optional `sourceId`, appended url-encoded only when given; absent keeps today's query byte for byte.
🧾 feat(podcast): the studio lists the caller's own episodesAhmet Kaan Gümüş · 37d12e5
🧾 feat(podcast): the studio lists the caller's own episodes GET /podcast/jobs reads the caller's own history newest-first; the studio had no surface reading it, so a finished episode was reachable only by remembering which note produced it. listPodcastJobs wraps the paged door and a new Podcast History section under the Ses Atölyesi panel renders each row: the note title (falling back to the source id once the note is gone), a state chip — Hazır / Hazırlanıyor / Başarısız (with the failure's own code) / İptal edildi — the created date and the running time when the service has declared one. Only a done row gets a play control, and it streams through the same job-id audio door the panel's own player uses (podcastAudioUrl(job_id)). The section is one-directional: it never starts a generation; when the panel sees a job reach done it bumps a refetch key and the list pulls the fresh page. An empty history shows its own state, and a failed list call is contained in an alert so the rest of the panel keeps working. New keys land in both locales and the message union, so tsc proves every locale carries them.
merge: 🎧 play a finished episode from its job's own audio doorAhmet Kaan Gümüş · 5352a4aBrowse files
fix: 🩹 stop claiming summary work happens in the backgroundAhmet Kaan Gümüş · 2c2da01
fix: 🩹 stop claiming summary work happens in the background The AI outputs panel flashed "Summary generation continues in the background" whenever a reindex poll found no new output. Nothing was running: the rag service refused the call in milliseconds, so the panel was telling the user a lie. Say what is true instead. A poll that ends without a new row now shows that the summary was not created, that nothing is indexed for the note yet, and that the button can be pressed again — an inline warning plus a distinct empty-state line, in both locales. The happy path is unchanged: a new row still toasts `courseNotes.ragReady` and renders at once. Also make the button's disabled state honest: `/ai/capabilities` lists what connected workers actually serve, so the button is live only when some worker declares `rag.index`. A bridge reported off, or a fleet with no rag worker, disables it with the reason visible; a discovery failure still leaves it live so the call itself can report. `courseNotes.ragQueued` is deleted — nothing may claim it again.
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.fix: 📱 sweep the last shrink-0 action row into the same patternAhmet Kaan Gümüş · a3421b2
fix: 📱 sweep the last shrink-0 action row into the same pattern PageHeader's actions row carried the same `flex shrink-0 flex-wrap` class string the table and section hosts had, so the class was three hosts wide and one of them was left behind: a wide action row there could push the document past a narrow viewport the same way. min-w-0 lets the box shrink below its max-content width while flex-wrap keeps the children wrapping. The shrink guard in data-table.test.tsx now renders all three hosts, so the spelling cannot drift again (it fails on the old PageHeader row and passes on the new one).
fix: 🎯 give each role its own Çelebi examples on the AI hubAhmet Kaan Gümüş · 22d6d3a
fix: 🎯 give each role its own Çelebi examples on the AI hub
The hub showed the same three example questions to every viewer; for a staff
viewer two of them sit outside the role's scope, so the live assistant
answered with a refusal or a "please rephrase" — the UI was advertising
questions its own viewer cannot ask.
- the launcher picks its examples with the same role predicate the hub uses
for its tabs: student, teacher, and a manager+admin band (a parent never
reaches the tab and keeps the student fallback)
- every string is one the deployed assistant answers for the role that sees
it, checked over HTTP per role (POST /chatbot/threads/{id}/messages, reply
read back); the old "summarise my next exam" example is dropped because the
live bot answers it with its clarification fallback even for students
- the examples stay Turkish in both locales: Çelebi's intent engine only
understands Turkish, and the English wording of the same questions comes
back as "please rephrase"2026-09-17
fix: 📱 let the header action toolbar shrink on narrow viewportsAhmet Kaan Gümüş · ffc324a
fix: 📱 let the header action toolbar shrink on narrow viewports - the shared header toolbar (DataTable's actions row and DataSection's twin) carried `shrink-0`, so on a 390px viewport it kept its max-content width inside the constrained parent and widened the whole document: on /management/modules document.scrollWidth measured 431 against a 390 viewport - replace `shrink-0` with `min-w-0` on both hosts, keeping `flex flex-wrap` and the `[&_button]` utilities: the row may now shrink below its content width and the action buttons wrap onto extra lines instead of overflowing, and the two renderings cannot drift apart - the table's own data-table-wrap is untouched; it already scrolls internally - guard it with a test that renders both hosts and pins `min-w-0` without `shrink-0` on each toolbar (fails before this commit, passes after)
fix: 🎓 open the class the create envelope namesAhmet Kaan Gümüş · a6c4974
fix: 🎓 open the class the create envelope names
- POST /classes answers an envelope — { class, skipped, stocked_from } — but
postClass was typed as the bare ClassGroup, so a create navigated to
/management/classes/undefined and the route 404'd on a class that existed
- CreateClassResponse joins the client types; the page reads created.class.id
- a create whose grade's blueprint left pairs behind now reports them first:
the amber skipped alert plus the skipped-pairs panel, with the course titles
read once up front, and closing the panel opens the new class
- the classes API test mocks the real envelope and asserts it comes back
- the live contract suite read the same response as a bare class in two
fixtures, so both now assert `skipped` is an array and take the id from
`class` — the suite was outside the src/ client sweep
- a new page test proves the create handler navigates to the created id, and
holds the page while the skip report is open