forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on dcf123a8823bd55f0a656ce94de6b865f41dc08aFiltered to src/components/ui/data-table.test.tsxClear filter

2026-09-19

feat: ✨ center student tables and improve date controlsBurak Boduroğlu · a473470
feat: ✨ center student tables and improve date controls

- show student names and class membership in teacher-facing tables\n- center shared table cells, expose horizontal scroll, and simplify single actions\n- collapse profile badges and improve date entry and month-year navigation

2026-09-18

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: 🧩 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: 📱 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).

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)

2026-08-04

fix: 🧱 render a display column's own cell instead of the empty dash - DataTable replaced a cell with "-" whenever cell.getValue() was empty, without ever calling the column's own render function. A display column (no accessorFn/accessorKey) has no value to be empty — getValue() is always undefined — so every column that draws itself from row.original silently rendered a dash - the payments student roster showed "-" on every row while the backend was returning full display names - the empty-cell fallback now applies only to columns that actually carry a value; the "actions"/"update"/"select" id allowlist stays as a second guardBurak Boduroğlu · a616723
fix: 🧱 render a display column's own cell instead of the empty dash
- DataTable replaced a cell with "-" whenever cell.getValue() was empty,
  without ever calling the column's own render function. A display column
  (no accessorFn/accessorKey) has no value to be empty — getValue() is
  always undefined — so every column that draws itself from row.original
  silently rendered a dash
- the payments student roster showed "-" on every row while the backend
  was returning full display names
- the empty-cell fallback now applies only to columns that actually carry
  a value; the "actions"/"update"/"select" id allowlist stays as a second
  guard

2026-07-30

refactor: 📊 restyle DataTable and drop density + resize - headers Title Case (drop uppercase/bold) → medium weight, muted, tracking-normal - cells tabular-nums for aligned digits without a mono font; remove zebra striping - lighten sticky frozen-column seam: clean border + softer shadow - remove column resizing (handles, sizing state, width persistence) and row density toggle - simplify table-preferences to visibility-only; drop density/reset i18n keys - search + columns button: rounded-full pill → rounded-lg - refresh ui-redesign-tokens doc + ui-conventions skill; sync .codex mirrorBurak Boduroğlu · 83a0fda
refactor: 📊 restyle DataTable and drop density + resize
- headers Title Case (drop uppercase/bold) → medium weight, muted, tracking-normal
- cells tabular-nums for aligned digits without a mono font; remove zebra striping
- lighten sticky frozen-column seam: clean border + softer shadow
- remove column resizing (handles, sizing state, width persistence) and row density toggle
- simplify table-preferences to visibility-only; drop density/reset i18n keys
- search + columns button: rounded-full pill → rounded-lg
- refresh ui-redesign-tokens doc + ui-conventions skill; sync .codex mirror
fix: 📊 align table headers with cells, fix page-size + inline averages - drop text-align from `.data-table th`: the `.data-table th` rule out-specified per-column text-right/center utilities and forced every header left while cells aligned fine (header/cell mismatch) - add `meta.align` to DataTable as the single source of alignment for both head and cell; sort button offsets by align instead of a blanket -ml-3 - migrate numeric columns (marks/attendance/homework reports, my-students, student-marks) off ad-hoc header spans to meta.align - add opt-in `meta.stickyLeft` frozen-left column + `meta.divider` and a directional border/shadow seam; rename sticky-right classes; clearer sort icons (ChevronsUpDown → ArrowUp/ArrowDown) - TablePagination: always include the active page size in the options so the selector shows a value instead of blank on non-standard sizes - standardize the generic 12-row list default to 10 across pages - student-marks: re-materialize table data when the per-student marks resource resolves so the inline average fills in without needing a sortBurak Boduroğlu · 72a2390
fix: 📊 align table headers with cells, fix page-size + inline averages
- drop text-align from `.data-table th`: the `.data-table th` rule
  out-specified per-column text-right/center utilities and forced every
  header left while cells aligned fine (header/cell mismatch)
- add `meta.align` to DataTable as the single source of alignment for both
  head and cell; sort button offsets by align instead of a blanket -ml-3
- migrate numeric columns (marks/attendance/homework reports, my-students,
  student-marks) off ad-hoc header spans to meta.align
- add opt-in `meta.stickyLeft` frozen-left column + `meta.divider` and a
  directional border/shadow seam; rename sticky-right
  classes; clearer sort icons (ChevronsUpDown → ArrowUp/ArrowDown)
- TablePagination: always include the active page size in the options so
  the selector shows a value instead of blank on non-standard sizes
- standardize the generic 12-row list default to 10 across pages
- student-marks: re-materialize table data when the per-student marks
  resource resolves so the inline average fills in without needing a sort
feat: ✨ align UI and table workflowsBurak Boduroğlu · 23adf31
feat: ✨ align UI and table workflows

- apply bDash tokens across shared controls and application shell
- add compact persistent tables, pagination, and sticky actions
- add durable detail routes and operational side panels