Commits
Commits on
dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/components/exams/question-form.tsxClear filter2026-09-19
style: 💄 exam question panel and flush table headers - exam "add/edit question" opens in the wide side panel instead of a centred dialog whose footer covered the scrolling form - form footer reaches over the panel's bottom padding, right-aligned actions, and a hint that tapping a letter marks the correct answer - sectioned DataTable frame drops its inner padding, so the header row sits flush on the card edge and the sticky header no longer lets rows show above it - includes the i18n keys for the question generator that followsBurak Boduroğlu · e726e76
style: 💄 exam question panel and flush table headers - exam "add/edit question" opens in the wide side panel instead of a centred dialog whose footer covered the scrolling form - form footer reaches over the panel's bottom padding, right-aligned actions, and a hint that tapping a letter marks the correct answer - sectioned DataTable frame drops its inner padding, so the header row sits flush on the card edge and the sticky header no longer lets rows show above it - includes the i18n keys for the question generator that follows
feat: ✨ refine detail panels and question bankBurak Boduroğlu · 45223be
feat: ✨ refine detail panels and question bank - organize admin, exam, and homework details into consistent surface cards\n- fix filter localization and keep toolbar actions compact\n- anchor side-panel form actions and add a playful pixel-art question bank header
2026-09-18
style: 🔎 no text below 11px except avatar initials - 75 uses of 8, 9 and 10px text (nav 'soon' chips, calendar month chips, chart ticks, heatmap labels, message badges, kbd hints) move to 11px - the 16px and 24px initial circles keep 10px so two letters still fit - 12px stays the aim; dense chips and calendar cells need a visual pass before going furtherBurak Boduroğlu · 41a3aba
style: 🔎 no text below 11px except avatar initials - 75 uses of 8, 9 and 10px text (nav 'soon' chips, calendar month chips, chart ticks, heatmap labels, message badges, kbd hints) move to 11px - the 16px and 24px initial circles keep 10px so two letters still fit - 12px stays the aim; dense chips and calendar cells need a visual pass before going further
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
2026-09-15
fix: 🔄 keep tables on screen while their data refreshes - add lib/create-resource: accessor reads .latest, so a resource suspends only on its first load instead of on every refetch or source change - switch every createResource import to it; a row delete or save no longer swaps the table card for its skeleton or resets its page and search - solidjs-pitfalls skill documents the import ruleBurak Boduroğlu · 61b19be
fix: 🔄 keep tables on screen while their data refreshes - add lib/create-resource: accessor reads .latest, so a resource suspends only on its first load instead of on every refetch or source change - switch every createResource import to it; a row delete or save no longer swaps the table card for its skeleton or resets its page and search - solidjs-pitfalls skill documents the import rule
2026-07-25
test: 🧪 component tests, so UI behaviour can be proven at allAhmet Kaan Gümüş · 41d1040
test: 🧪 component tests, so UI behaviour can be proven at all - the repo had no DOM environment, so every UI change was code-read verified only; that gap let a wrong option image, a mis-tagged subject and a lying save badge all ship - add jsdom and @solidjs/testing-library as devDependencies (nothing ships; entry bundle is 8 bytes smaller) - split vitest into two projects: node runs the existing *.test.ts untouched, dom runs *.test.tsx with the Solid transform. One bun run test still runs everything; the contract suite stays out - first tests cover bugs that actually shipped: a stored subject that is no longer pickable shows as disabled and blocks submit, no choice is pre-marked correct, submit is blocked until one is, an option keeps its own image after the row above it is removed, and the bank picker refuses to insert until a subject is explicitly picked - add data-choice-id to the choice row so a test can assert which option an image belongs to without coupling to styling
fix: 🏦 stable choice ids, real bank paging, private-by-default templatesAhmet Kaan Gümüş · 88492c2
fix: 🏦 stable choice ids, real bank paging, private-by-default templates
- choices become {id, text} with server-minted stable ids; correct and
the student's selected answer name an id, never a position, and
option images key off the id
- fix: blanking a choice above the marked one silently moved the answer
key on graded exams — the form sent a pre-compaction index
- fix: removeChoice left correct pointing at the row that slid into the
deleted slot
- delete the download-then-reupload image restore in both panels and
drop src/lib/choice-compaction.ts: a PATCH now preserves images for
every choice whose id is unchanged, so the compensating transaction
has nothing to compensate for
- extract the choice-edit reducer to src/lib/choice-set.ts and property
test it with fast-check (devDependency, out of the bundle): text,
picture and correct-flag stay attached to a choice identity across
arbitrary edit sequences
- bank list is server-paged, newest first, with server-side text search
— it silently hid every template past the first 100 while still
reporting saves as successful
- search folds Turkish casing: q=istanbul now finds İSTANBUL, and one
shared table folds the needle and the column so they cannot drift
- templates are private by default with an explicit share step; the
confirm names the consequence, since publishing hands the answer key
to every teacher in the school and copies cannot be recalled
- source_bank splits into from_bank and banked_as, so a question added
from the bank no longer claims it was already saved to it
- bank page shows how many exam copies a template has, and a question
added from the bank can be refreshed from its template until the
first attempt starts
- no more silent first-item defaults: subject and target subject must
be picked, and an unavailable stored subject is shown, not swapped
- live contract suite (bun run test:contract) against a real backend,
skipped without CONTRACT_BASE_URL2026-07-24
feat: 🏦 school-wide question bank with two-way exam bridgesAhmet Kaan Gümüş · 0f9e79a
feat: 🏦 school-wide question bank with two-way exam bridges - mirror the backend bank contract: src/api/bank-questions (create/list/ read/update/delete, question + per-choice image upload/fetch/delete) with types, BANK_QUESTION_LIMITS, and full API tests - bridges in src/api/exams: postExamQuestionFromBank instantiates a template into an exam, postExamQuestionToBank saves an exam question back as a template; add the missing getExamChoiceImageBlob - /question-bank page, teacher+ guarded: subject and owner filters, side-panel create/edit, confirm delete, nav item - exam questions panel gains "Add from bank" (hidden once read-only, since from-bank mutates the exam) and a per-row "Save to bank" that stays available on finished exams — saving copies out, it never touches the exam - repeat saves confirm first and relabel to "save another copy": the copies are independent, editing one never changes the other - generalize question-form for both flows instead of forking it: widen initial to a structural type, pass image sources as props - fix: correct answer was sent as a pre-compaction index, so blanking a choice above it silently moved the answer key on graded exams; remap by row identity and block submit when the marked choice is blanked - fix: a PATCH carrying choices wipes every per-option image server-side and the exam path never restored them; one shared choice-compaction helper now re-uploads at post-compaction slots and names the options it could not carry over - fix: removeChoice left correct pointing at the row that slid into the deleted slot - read the question count off .latest so the new refetch paths cannot blank the panel - localize the bank 403/409 strings; EN/TR throughout
chore: ⬆️ update all dependencies; migrate Tailwind v3 → v4 - bump within-range: @tanstack/solid-router 1.170.18, @kobalte/core 0.13.12, solid-js 1.9.14, tailwind-merge 3.6.0, autoprefixer/postcss/ vite-plugin-solid patches - @types/node 24 → 26 (types only) - vite 6 → 8: no config change needed; build/proxy/alias intact, vitest 4 stays compatible (246 tests green) - tailwindcss 3 → 4 via official @tailwindcss/upgrade codemod: - CSS-first config: theme moved into @theme in src/index.css, tailwind.config.js deleted, dark selector kept via @custom-variant - postcss plugin tailwindcss → @tailwindcss/postcss; autoprefixer removed (v4 built-in) - 81 files auto-migrated: shadow-sm→shadow-xs, min-w-[7.5rem]→min-w-30, /[0.08]→/8 opacity shorthand, data-[expanded]:→data-expanded: - fix codemod false-positive: it rewrote the cva variant="outline" prop string to "outline-solid" in role-badge, course-sessions-panel, my-students-page — reverted to "outline" - verified emitted CSS carries the renamed utilities (data-expanded, color-mix opacity, var(--color-*), shadow-xs)Ahmet Kaan Gümüş · b085a74
chore: ⬆️ update all dependencies; migrate Tailwind v3 → v4
- bump within-range: @tanstack/solid-router 1.170.18, @kobalte/core
0.13.12, solid-js 1.9.14, tailwind-merge 3.6.0, autoprefixer/postcss/
vite-plugin-solid patches
- @types/node 24 → 26 (types only)
- vite 6 → 8: no config change needed; build/proxy/alias intact,
vitest 4 stays compatible (246 tests green)
- tailwindcss 3 → 4 via official @tailwindcss/upgrade codemod:
- CSS-first config: theme moved into @theme in src/index.css,
tailwind.config.js deleted, dark selector kept via @custom-variant
- postcss plugin tailwindcss → @tailwindcss/postcss; autoprefixer
removed (v4 built-in)
- 81 files auto-migrated: shadow-sm→shadow-xs, min-w-[7.5rem]→min-w-30,
/[0.08]→/8 opacity shorthand, data-[expanded]:→data-expanded:
- fix codemod false-positive: it rewrote the cva variant="outline"
prop string to "outline-solid" in role-badge, course-sessions-panel,
my-students-page — reverted to "outline"
- verified emitted CSS carries the renamed utilities (data-expanded,
color-mix opacity, var(--color-*), shadow-xs)2026-07-22
feat: 📎 client-side upload limits and shared error handling - extract formatBytes/maxUploadBytes into shared src/lib/upload-limits.ts - add client-side file size validation in exam room, question form, solution form, and ask-question dialog - add known API error messages for file upload, exam, event, and pomodoro errors - extract errorMessageFromPayload helper for client/form/blob endpoints with Pydantic validation detail support - add status-code handling for 409, 413, 422 - show max file size in question/solution upload UIBurak Boduroğlu · fed2a93
feat: 📎 client-side upload limits and shared error handling - extract formatBytes/maxUploadBytes into shared src/lib/upload-limits.ts - add client-side file size validation in exam room, question form, solution form, and ask-question dialog - add known API error messages for file upload, exam, event, and pomodoro errors - extract errorMessageFromPayload helper for client/form/blob endpoints with Pydantic validation detail support - add status-code handling for 409, 413, 422 - show max file size in question/solution upload UI
2026-07-21
feat: 🎨 editable freehand drawings for notes and text examsAhmet Kaan Gümüş · 3758bf0
feat: 🎨 editable freehand drawings for notes and text exams - add a canvas drawing pad (pen, eraser, 5 colors, 3 widths, undo, clear) that saves a PNG with its stroke JSON embedded in a tEXt chunk, so a saved drawing displays as a normal image and reopens for editing - lib/png-meta embeds/extracts PNG text chunks (crc32); draw-stroke gains DrawScene + parseScene; drawing-file turns canvas+scene into a PNG File and parses stored bytes back to a scene (all pure, unit-tested) - reopened drawings rescale to the current pad (aspect preserved); when editing you can clear a drawing and save the blank to erase it - notes: draw new attachments and edit saved *.hzdraw.png ones in place (create-new-then-delete-old, no data loss); PNG/JPEG device export - teacher exam questions: draw or re-edit the question illustration - student text answers: draw the answer in the exam room, reopen to edit or remove; teacher sees it in the grading answer sheet - answer-image api wrappers + question-image blob fetch, answer_image on AttemptAnswer/StudentAnswer, EN/TR i18n keys - DrawCanvas is its own lazy chunk (~2.6KB gzip); main bundle unchanged
refactor: 🎯 compact question form with better visual hierarchyBurak Boduroğlu · cda1ab7
refactor: 🎯 compact question form with better visual hierarchy - textarea + image upload combined into one card - subject/kind/points as compact inline bar (h-9) - choices single-column with emerald correct-answer highlight - choice images as minimal text-[10px] buttons
refactor: 🧹 questions panel, exam list, course detail, and form polishBurak Boduroğlu · af7500b
refactor: 🧹 questions panel, exam list, course detail, and form polish - exam-questions-panel: count badge, always-show add button, dashed empty state with CTA, reduced heading size - question-form: consistent spacing, compact select/input layout, image upload styling - course-detail-page: exam list integration with status badges - exams-page: improved column layout, schedule visibility, kind/mode column refinements - exam-detail-page: minor header padding adjustment
refactor: 🗃️ restructure API layer into domain folders and add vitest coverage - move 110+ flat API endpoints into domain-specific subdirectories (e.g., auth, courses, exams, notes, etc.) - add index.ts exports to each domain folder for clean namespace imports - update 70+ components and pages to use the new domain-based API import paths - add comprehensive vitest unit tests (~150 tests) for all API endpoints using fetch mocking - update AGENTS.md rulebook to mandate domain-based folder structure for future API additions - migrate existing bun:test test files in src/lib/ to vitest for consistencyBurak Boduroğlu · 6452b17
refactor: 🗃️ restructure API layer into domain folders and add vitest coverage - move 110+ flat API endpoints into domain-specific subdirectories (e.g., auth, courses, exams, notes, etc.) - add index.ts exports to each domain folder for clean namespace imports - update 70+ components and pages to use the new domain-based API import paths - add comprehensive vitest unit tests (~150 tests) for all API endpoints using fetch mocking - update AGENTS.md rulebook to mandate domain-based folder structure for future API additions - migrate existing bun:test test files in src/lib/ to vitest for consistency
2026-07-20
feat: ✨ live monitor overhaul, choice letters, image sizing fix - answer-sheet: choice letter (A/B/C) labels, ✗ badge for wrong answers - exam room: radio → letter-labeled choice buttons (A/B/C...) - question form / panel: fixed image height + full width + bg fallback - live monitor: displayStatus (no_attempts_left, exam-aware), finished_at - live monitor count cards: icons with semantic colors, 6-col grid - badge: min-w-28 whitespace-nowrap - i18n: shorter "no rights left" / "hak bitti" - exam-status: skip no_attempts_left when in_progressBurak Boduroğlu · f123ed2
feat: ✨ live monitor overhaul, choice letters, image sizing fix - answer-sheet: choice letter (A/B/C) labels, ✗ badge for wrong answers - exam room: radio → letter-labeled choice buttons (A/B/C...) - question form / panel: fixed image height + full width + bg fallback - live monitor: displayStatus (no_attempts_left, exam-aware), finished_at - live monitor count cards: icons with semantic colors, 6-col grid - badge: min-w-28 whitespace-nowrap - i18n: shorter "no rights left" / "hak bitti" - exam-status: skip no_attempts_left when in_progress
2026-07-19
feat: 🖼️ question/choice image upload and delete UI - question-form: image and choice_image file inputs with preview, dashed dropzone labels, sr-only native file inputs - exam-questions-panel: submit now posts images after question save, inline delete buttons per image/choice-image with loading guard - 6 new API wrappers: post/delete/get blob for question and choice images - question kind toggle: segmented button group replaces plain selectBurak Boduroğlu · 758d094
feat: 🖼️ question/choice image upload and delete UI - question-form: image and choice_image file inputs with preview, dashed dropzone labels, sr-only native file inputs - exam-questions-panel: submit now posts images after question save, inline delete buttons per image/choice-image with loading guard - 6 new API wrappers: post/delete/get blob for question and choice images - question kind toggle: segmented button group replaces plain select
2026-07-17
feat: ✨ add course subjects to exam questionsBurak Boduroğlu · 4ec6b8a
feat: ✨ add course subjects to exam questions - add course subject API helpers and frontend types - manage subjects from the course detail page - require a subject when creating or editing exam questions - show question subject badges in the exam question list - update docs for subject permissions and exam question tagging
2026-07-12
fix: 🐛 improve exam question editing UXBurak Boduroğlu · bc76d2d
fix: 🐛 improve exam question editing UX - keep choice inputs stable while typing - show saved choices with A/B/C/D labels instead of numeric indexes - add spacing and correct-answer emphasis to choice rows - paginate the question list to keep the panel compact - jump to the last page after creating a new question
fix: 🐛 harden exam state transitionsBurak Boduroğlu · 8117750
fix: 🐛 harden exam state transitions - make exam status badges and detail restrictions update as time passes - keep live monitor polling stable while switching finished exams to final state - keep exams visible when their course data is unavailable - close and block question editing when an exam becomes read-only - move the exam question form into its own component file