forge
Explore
Log in

Don't you dare go Hollow

📝 Update project documentation to reflect current state

Browse files at this commit

7067ea0e3cde202267ca4203ca477106962e5b22Burak BoduroğluParent: df3fa00
  • docs
    • 📝 Update project documentation to reflect current state
Show full message
docs: 📝 Update project documentation to reflect current state
- Mark backend-ui-alignment-plan as completed archive
- Add current follow-up document references
- Document navigation patterns (date picking, disclosures, resource staleness)
- Add UI redesign implementation notes (data tables, side panels, disclosures)
docs/backend-ui-alignment-plan.mdmodified+9 -3
@@ -1,4 +1,4 @@
1-# Backend UI Alignment Plan
1+# Backend UI Alignment Plan (Completed Archive)
22
33 ## Context
44
@@ -17,7 +17,7 @@ Current frontend now supports:
1717 - Async duration derived from exam window.
1818 - Open exams untimed by default.
1919
20-This plan covers the remaining backend features that need simple, low-complexity UI support.
20+This document is now a completed archive. It records the backend contract alignment work that was planned and implemented. Do not treat the commit list below as active work unless backend scope changes again.
2121
2222 ## Product Principles
2323
@@ -28,7 +28,7 @@ This plan covers the remaining backend features that need simple, low-complexity
2828 - Run `bun run build` before every commit.
2929 - Commit messages must follow repository rules and require explicit user approval.
3030
31-## Status
31+## Completion Status
3232
3333 - Commit 1 complete in UI: live monitor shows absent count/status, attempt usage, and left timestamp; exam room summary shows attempt usage and left timestamp.
3434 - Commit 2 complete in UI: report card types accept grade-band fields and marks show `mark / grade` when backend sends labels.
@@ -39,6 +39,12 @@ This plan covers the remaining backend features that need simple, low-complexity
3939 - Commit 7 complete in UI: teacher work log page supports check-in, check-out, and recent entry listing.
4040 - No planned backend-alignment commits remain.
4141
42+## Current Follow-Up Documents
43+
44+- Active interaction rules: `docs/navigation-patterns.md`.
45+- Active visual reference: `docs/ui-redesign-tokens.md`.
46+- Active frontend backlog and dashboard plan: `docs/frontend-next-steps.md`.
47+
4248 ## Remaining Commit Order
4349
4450 | Commit | Scope | Priority |
docs/frontend-next-steps.mdadded+121 -0
@@ -0,0 +1,121 @@
1+# Frontend Next Steps
2+
3+This document tracks the remaining frontend work after the backend contract alignment,
4+dense table redesign, side-panel rollout, collapsible detail sections, and request-load
5+cleanup.
6+
7+## Current State
8+
9+- Backend alignment work is complete for settings, terms, course sessions, attendance reports, work logs, exam attempts, and grade bands.
10+- Navigation rules are documented in `docs/navigation-patterns.md`.
11+- Shared UI primitives now cover dense tables, data toolbars, side panels, confirm dialogs, date picking, and animated disclosures.
12+- Course detail and exam detail use animated disclosures for large sections.
13+- Closed disclosure sections do not mount their content, so hidden panels do not fetch data.
14+- Settings requests are cached and refreshed after settings patches.
15+- The Tabler icon dependency was removed after it caused excessive Vite module requests; sidebar icons now use local SVG wrappers.
16+
17+## Remaining Work
18+
19+### Notes UX
20+
21+- Replace note create/edit `FormDialog` with a `SidePanel` or a richer notebook writing layout.
22+- Decide whether the notes page should stay card-based or become a more structured notebook view.
23+- Keep note detail work lightweight unless notes become a durable resource with its own full page.
24+
25+### Exam Question Authoring
26+
27+- `ExamQuestionsPanel` still uses `FormDialog` for add/edit.
28+- This is acceptable while the question form stays small.
29+- Revisit as a `SidePanel` if question authoring grows or needs more vertical space.
30+
31+### Event Detail Optimization
32+
33+- Event detail still fetches attendance on initial page load.
34+- Consider wrapping attendance in `SectionDisclosure` so the attendance list fetches only when opened.
35+- Keep self-attendance visible if it remains a primary action.
36+
37+### Course Table Polish
38+
39+- Add a term filter to the courses page.
40+- Consider an enrolled/all filter for students if the list becomes large.
41+- Keep the table compact and preserve the full detail page for course resources.
42+
43+### Visual Consistency
44+
45+- Decide how far to extend the table/toolbar pattern to `events-page`, `notes-page`, `terms-page`, and `settings-page`.
46+- Preserve non-table layouts only where cards communicate the domain better than rows.
47+
48+## Dashboard Redesign Plan
49+
50+The homepage should become a richer, more useful dashboard while staying observation-only.
51+It must not contain create, edit, delete, or mutation actions.
52+
53+### Goals
54+
55+- Provide a high-signal overview of the school workspace.
56+- Make the first screen useful for students, teachers, managers, and admins.
57+- Keep all cards as links or read-only summaries.
58+- Reduce unnecessary initial API calls by fetching role-specific data only.
59+
60+### Role-Aware Sections
61+
62+- Student:
63+ - today and upcoming events
64+ - active/upcoming exams
65+ - report-card snapshot
66+ - enrolled courses
67+ - recent notebook items
68+- Teacher:
69+ - courses taught
70+ - exams needing questions, monitoring, or grading
71+ - recent attendance/session activity
72+ - upcoming events
73+- Manager:
74+ - term status
75+ - active courses/events/exams
76+ - settings/terms health links
77+- Admin:
78+ - user role directory summary
79+ - management links as read-only status cards
80+
81+### Layout Direction
82+
83+- Use a larger hero/status strip at the top with user context and date.
84+- Use a dense KPI row below it.
85+- Add a “Needs attention” panel for items requiring review.
86+- Add an “Upcoming timeline” panel for events/exams/sessions.
87+- Add compact linked lists for courses, exams, notes, and attendance summaries.
88+- Keep one page-level suspense boundary where practical and avoid spinner cascades.
89+
90+### Request Budget
91+
92+- Dashboard should not blindly fetch notes, events, exams, courses, and marks for every role.
93+- Target initial request counts:
94+ - Student: at most 3-4 requests.
95+ - Teacher: at most 3-4 requests.
96+ - Manager/admin: at most 2-4 requests.
97+- If backend later adds a `/dashboard` endpoint, prefer it over multiple list fetches.
98+
99+## Request Budget Targets
100+
101+- `/courses`: max 2-3 initial API calls.
102+- `/courses/:id`: initial detail data only; closed sections should make zero extra requests.
103+- `/exams/:id`: initial exam data only plus role-required summary data; closed sections should make zero extra requests.
104+- `/events/:id`: consider lazy-loading attendance if the route feels heavy.
105+- Settings-dependent controls should share the cached settings request.
106+
107+## Docs Cleanup
108+
109+- Keep `docs/navigation-patterns.md` as the active interaction rulebook.
110+- Keep `docs/ui-redesign-tokens.md` as the visual system reference.
111+- Keep `docs/backend-ui-alignment-plan.md` as a completed archive unless backend scope changes.
112+- Update docs when a rule changes; do not let completed implementation plans look like active work.
113+
114+## Acceptance Checklist
115+
116+- `bun run build` passes.
117+- No native `date` or `datetime-local` inputs remain where the shared `DatePicker` should be used.
118+- Closed disclosure sections do not trigger network requests.
119+- Dashboard remains observation-only.
120+- Header create buttons use a consistent icon + label style.
121+- Detail routes do not show stale resource content after navigating between ids.
docs/navigation-patterns.mdmodified+11 -1
@@ -5,8 +5,18 @@ Use one of two patterns for every new interaction:
55 - Full page: resources with a durable detail view, such as a course, exam, event, user, exam room, or live monitor. Full pages must include breadcrumbs when nested.
66 - Side panel: short contained work that should return the user to the same list context, such as create, quick edit, and filters.
77
8-Dashboard pages are observation-only. They may link to resource pages, but they must not contain create, edit, or delete actions.
8+Dashboard pages are observation-only. They may link to resource pages, but they must not contain create, edit, delete, or other mutation actions. A richer dashboard is allowed and encouraged, but every card or CTA must remain read-only navigation.
99
1010 Admin pages are action-oriented. Lists should use shared toolbar and table primitives, compact rows, sticky headers, fixed status/action columns, and pagination.
1111
1212 Delete or destructive confirmation stays in a confirm dialog, not a side panel.
13+
14+Header create actions should use a consistent compact button shape: icon plus label, `size="sm"`, and `rounded-sm`.
15+
16+Date picking should use the shared `DatePicker` plus a separate `HH:mm` input when time is needed. Avoid native `date` and `datetime-local` controls in product forms.
17+
18+Animated disclosure sections must not mount their children while closed. Closed sections should not start API requests.
19+
20+Detail routes must avoid showing stale resource data after navigating between ids. If a resource id does not match the current route param, show a loading state instead of old content.
21+
22+Request budgets are part of the UX. Avoid fetching role-specific or hidden-section data until the current role and visible UI need it.
docs/ui-redesign-tokens.mdmodified+9 -0
@@ -76,6 +76,15 @@ Implemented:
7676 - mono IDs and tabular metrics
7777 - neutral surfaces, subtle borders, no gradients or decorative cards
7878
79+## Current Implementation Notes
80+
81+- Data-heavy admin and management views should prefer `DataToolbar`, `DataTableFrame`, and `.data-table`.
82+- Quick create/edit flows should use `SidePanel`; destructive actions stay in confirm dialogs.
83+- Durable resources keep full detail pages with breadcrumbs.
84+- Large detail sections can use `SectionDisclosure`, but closed sections must not mount children or fetch data.
85+- Product date inputs should use the shared `DatePicker`; date-time flows should pair it with a compact `HH:mm` input.
86+- Sidebar icons are local SVG wrappers to keep development builds small and avoid large icon package module graphs.
87+
7988 Static wireframe:
8089
8190 ```text