forge
Explore
Log in

Don't you dare go Hollow

📝 add pagination and request audit plan

Browse files at this commit

212dcef071c549863eb57645396f9c09dcc571adBurak BoduroğluParent: 085a3fd
  • docs
    • 📝 add pagination and request audit plan
Show full message
docs: 📝 add pagination and request audit plan
- add pagination audit as Priority 2 in frontend-next-steps
- add pagination and request rules to navigation-patterns.md
- add server-side pagination note to README UI patterns
- renumber subsequent priorities in frontend-next-steps
README.mdmodified+1 -0
@@ -84,6 +84,7 @@ Dashboard and table summaries must use the same role scope as the related page.
84 - Short create/edit/filter work uses `SidePanel`.84 - Short create/edit/filter work uses `SidePanel`.
85 - Destructive actions use confirm dialogs.85 - Destructive actions use confirm dialogs.
86 - Data-heavy views use `DataToolbar`, `DataTableFrame`, `.data-table`, and `TableRowActions`.86 - Data-heavy views use `DataToolbar`, `DataTableFrame`, `.data-table`, and `TableRowActions`.
87+- Large list pages should use server-side pagination/search/filtering when the backend supports it; client-side slicing is only acceptable for small or temporary datasets.
87 - Date fields use the shared `DatePicker`; date-time flows pair it with an `HH:mm` input.88 - Date fields use the shared `DatePicker`; date-time flows pair it with an `HH:mm` input.
88 - Closed disclosure sections should not mount or fetch hidden content.89 - Closed disclosure sections should not mount or fetch hidden content.
89 90
docs/frontend-next-steps.mdmodified+33 -1
@@ -44,13 +44,43 @@ Audit checklist:
44 44
45 ## Priority 2: README Update45 ## Priority 2: README Update
46 46
47+## Priority 2: Pagination And Request Audit
48+
49+Audit list pages for pagination behavior and request shape.
50+
51+- Identify which pages use client-side pagination after fetching full lists.
52+- Identify which backend endpoints support server-side pagination, filtering, or search.
53+- Verify frontend requests use backend pagination where available.
54+- For pages that must stay client-side for now, document the reason and expected data size.
55+- Check that table pagination, search, filters, and sorting are consistent with the request model.
56+- Avoid claiming a page is paginated if it only slices already-fetched full data.
57+
58+Pages to check:
59+
60+- Courses list.
61+- Exams list.
62+- Admin users directory.
63+- Live monitor roster.
64+- Work log.
65+- Terms/settings lists if they grow beyond small configuration data.
66+- Detail sub-tables such as enrollments, results, attendance, sessions, and questions.
67+
68+Acceptance criteria:
69+
70+- Every list page is classified as server-paginated, client-paginated, or intentionally unpaginated.
71+- Request URLs and API helpers match the chosen pagination model.
72+- Large or growing datasets do not fetch all records unless explicitly accepted.
73+- UI pagination controls do not hide excessive network payloads.
74+
75+## Priority 3: README Update
76+
47 - Update stack, scripts, and local setup notes.77 - Update stack, scripts, and local setup notes.
48 - Document role hierarchy and UI scope rules.78 - Document role hierarchy and UI scope rules.
49 - Document dashboard behavior and table action standards.79 - Document dashboard behavior and table action standards.
50 - Link the active docs under `docs/`.80 - Link the active docs under `docs/`.
51 - Keep build verification as `bun run build`.81 - Keep build verification as `bun run build`.
52 82
53-## Priority 3: Docs Cleanup83+## Priority 4: Docs Cleanup
54 84
55 - Keep `docs/navigation-patterns.md` as the active interaction rulebook.85 - Keep `docs/navigation-patterns.md` as the active interaction rulebook.
56 - Keep `docs/ui-redesign-tokens.md` as the visual system reference.86 - Keep `docs/ui-redesign-tokens.md` as the visual system reference.
@@ -96,11 +126,13 @@ Audit checklist:
96 - `/events/:id`: consider lazy-loading attendance if the route feels heavy.126 - `/events/:id`: consider lazy-loading attendance if the route feels heavy.
97 - Dashboard should avoid broad role-specific requests unless that role actually needs global scope.127 - Dashboard should avoid broad role-specific requests unless that role actually needs global scope.
98 - Settings-dependent controls should share the cached settings request.128 - Settings-dependent controls should share the cached settings request.
129+- Paginated tables should prefer server-side pagination when backend support exists.
99 130
100 ## Acceptance Checklist131 ## Acceptance Checklist
101 132
102 - `bun run build` passes.133 - `bun run build` passes.
103 - Role-based UI audit is complete for sidebar, routes, dashboard, and actions.134 - Role-based UI audit is complete for sidebar, routes, dashboard, and actions.
135+- Pagination and request audit is complete for list pages and large detail tables.
104 - README is current with stack, scripts, roles, UI patterns, and docs links.136 - README is current with stack, scripts, roles, UI patterns, and docs links.
105 - Docs reflect active rules and do not contradict current implementation.137 - Docs reflect active rules and do not contradict current implementation.
106 - No native `date` or `datetime-local` inputs remain where the shared `DatePicker` should be used.138 - No native `date` or `datetime-local` inputs remain where the shared `DatePicker` should be used.
docs/navigation-patterns.mdmodified+7 -0
@@ -17,6 +17,13 @@ Role scope rules:
17 17
18 Admin pages are action-oriented. Lists should use shared toolbar and table primitives, compact rows, sticky headers, fixed status/action columns, and pagination.18 Admin pages are action-oriented. Lists should use shared toolbar and table primitives, compact rows, sticky headers, fixed status/action columns, and pagination.
19 19
20+Pagination and request rules:
21+
22+- Do not treat client-side slicing as complete pagination for large datasets.
23+- If the backend endpoint supports pagination, filtering, search, or sorting, the API helper and page should use those request parameters.
24+- If a page intentionally fetches the full list and paginates in memory, document that the expected dataset is small or temporary.
25+- Search/filter/sort UI should match the request model: server-side controls for server-paginated lists, client-side controls only for accepted small lists.
26+
20 Table action rules:27 Table action rules:
21 28
22 - Row actions use `TableRowActions` with a centered three-dot trigger.29 - Row actions use `TableRowActions` with a centered three-dot trigger.