Commits
Commits on
dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/pages/classes-page.test.tsxClear filter2026-09-18
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 wiring2026-09-17
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