Role-secured business back office · 2025
iBots Operations Console
An admin console for a client's operations: employee provisioning, enquiry pipelines, teams, analytics and one-click PDF/Excel reports.
The vision
Replace a business's spreadsheets with one secure console where admins provision staff, track every enquiry and pull a report in a click.
Problem
The client managed staff accounts, customer enquiries and team assignments by hand, with no access control and no reporting.
Solution
A React 19 + TypeScript console on Firebase. Admin-only callable Cloud Functions create staff auth accounts, with the caller's role verified on the server. Roles (admin, manager, staff) gate routes in the UI, and Firestore security rules gate the data. Configurable data tables include column toggles, row actions and PDF/XLSX export, and charts summarise activity.
Architecture
- React console to Firebase Auth
- React console to Callable functions (createUser)
- Callable functions to Firebase Auth (provision)
- React console to Firestore rules
- Firestore rules to Firestore
- Callable functions to Firestore
- React console to PDF / XLSX
Engineering highlights
- Server-verified admin provisioning through callable Cloud Functions; clients can never self-elevate
- Three-tier RBAC (admin / manager / staff) enforced by route guards and Firestore rules
- TanStack Table data grids with column toggles and row actions
- One-click PDF (jsPDF + AutoTable) and Excel exports
- Recharts analytics dashboard and calendar views
- Seed scripts for repeatable environments