Skip to content

feat: enable Logbook and Ticket modules in role dashboards - #72

Open
aryanbnrj wants to merge 1 commit into
vicharanashala:mainfrom
aryanbnrj:feat/surface-logbook-and-ticketing
Open

feat: enable Logbook and Ticket modules in role dashboards#72
aryanbnrj wants to merge 1 commit into
vicharanashala:mainfrom
aryanbnrj:feat/surface-logbook-and-ticketing

Conversation

@aryanbnrj

Copy link
Copy Markdown

Summary

This PR exposes two existing but unreachable features by mounting already-implemented components in the appropriate dashboards.

Changes
Added an Audit Logbook section for Admin and Superadmin dashboards by mounting the existing LogbookView component.
Added Ticket Submission to Teacher and School dashboards by mounting the existing TicketSubmission component.
Reused the existing backend APIs:
/api/logbook
/api/tickets
No backend, database, authentication, or AI pipeline changes.
Why

Both LogbookView and TicketSubmission were already implemented and imported into RoleDashboards.tsx but were never rendered, making these workflows inaccessible from the UI.

This PR makes the existing functionality available to users while keeping the implementation minimal and aligned with the current architecture.

Scope
✅ Frontend only
✅ No schema changes
✅ No API changes
✅ No breaking changes
Related SRS
FR-11 – Audit Logbook access
Section 14.3 – Teacher feedback / ticket submission workflow
Testing
Verified Logbook is accessible only from administrative dashboards.
Verified Teacher and School users can access the Ticket Submission interface.
Confirmed existing API endpoints continue to function without modification.

The LogbookView and TicketSubmission components were already built and
imported into RoleDashboards but never mounted, leaving SRS FR-11 and
Sec 14.3 feedback requirements unreachable in the UI.

- Add an 'Audit Logbook' tab to Superadmin and Admin (Block-Admin-and-above)
  dashboards, mounting the existing LogbookView (filter + CSV export).
- Mount TicketSubmission in Teacher and School dashboards so curriculum/general
  feedback tickets can actually be submitted (Sec 14.3).

No backend, schema, auth, or AI changes. Reuses existing endpoints
(/api/logbook, /api/tickets).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant