feat: enable Logbook and Ticket modules in role dashboards - #72
Open
aryanbnrj wants to merge 1 commit into
Open
Conversation
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.