Skip to content

G2-Pair1: VMS module — final submission#226

Open
WhoamiI00 wants to merge 1 commit into
FusionIIIT:visitor-management-v2from
WhoamiI00:vms-pair1-clean
Open

G2-Pair1: VMS module — final submission#226
WhoamiI00 wants to merge 1 commit into
FusionIIIT:visitor-management-v2from
WhoamiI00:vms-pair1-clean

Conversation

@WhoamiI00
Copy link
Copy Markdown

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.

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>
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