G2-Pair1: VMS module — final submission#226
Open
WhoamiI00 wants to merge 1 commit into
Open
Conversation
Visitor Management System frontend (final submission for IT3C03). Roll numbers: 23BCS028, 23BCS208, 23BCS017 New module at src/Modules/VMS/: * VmsStaffPage — gate operations: register, issue QR pass (one-click verify+issue chain), verify, record entry/exit, deny, log incident, assign/release escort * VmsAdminPage — blacklist mgmt (by id_number or visit_id), Grant VIP Status, Generate Reports + PDF, Import Visitor Data (with sample loader), Export Visitor History, System Configuration, Configure Visiting Hours, Configure Access Zones * VmsAccessGuard — route-level RBAC gate; calls /vms/me/, redirects users without HostAuthority to /dashboard, blocks non-admin users from the admin console * useVmsController — shared state hook * VmsTable — Visitor Records / Security Snapshot / Recently Registered * api.js — axios wrappers for every /vms/ endpoint * helpers.js — option lists, default payloads (Aadhaar default) * vmsExportPdf — client-side PDF generators for reports + history Minimal wiring deltas (only VMS-specific lines): * src/App.jsx — 2 imports (VmsPage, VmsAccessGuard) + 3 Route blocks for /vms, /vms-demo-staff, /vms-demo-admin * src/components/sidebarContent.jsx — VmsIcon import, /vms/me/ fetch to resolve user's HostAuthority level, sidebar entry, conditional filter so the entry only renders for users with VMS access No other modules touched. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Visitor Management System frontend (final submission for IT3C03). Roll numbers: 23BCS028, 23BCS208, 23BCS017
New module at src/Modules/VMS/:
Minimal wiring deltas (only VMS-specific lines):
No other modules touched.