Skip to content

Firebase setup#4

Merged
HyperAfnan merged 4 commits into
mainfrom
firebase-setup
Jan 21, 2026
Merged

Firebase setup#4
HyperAfnan merged 4 commits into
mainfrom
firebase-setup

Conversation

@HyperAfnan

Copy link
Copy Markdown
Owner

No description provided.

* Removed Redux-based auth and replaced with React Query and Firebase Auth.
* Added useUser and useAuth hooks for authentication and user state.
* Implemented getUserData API for fetching user roles and profiles from Firestore.
* Migrated all Supabase data fetching/mutations to Firestore equivalents.
* Updated all dashboard and sidebar components to use new hooks.
* Removed Redux store/auth slice and related logic from components.
* Enabled RBAC auto-seeding for first user as admin in Firestore.
* Updated routing and RequireAuth to use new user state.
* Improved localStorage persistence for user, roles, and token.
* Disabled avatar upload and teacher creation during migration for safety.
* Migrated backend and frontend to use Firebase Firestore and Auth
* Added scripts for admin creation, database seeding, and admin fix
* Implemented Firestore security rules and composite indexes
* Refactored all entities to use camelCase field names
* Updated all CRUD logic for classes, rooms, subjects, and teachers
* Centralized role and permission constants for RBAC
* Added ProtectedRoute and Unauthorized components for access control
* Improved user profile fetching and authentication flow
* Removed legacy functions and deprecated code for Supabase
@netlify

netlify Bot commented Jan 21, 2026

Copy link
Copy Markdown

Deploy Preview for wonderful-bavarois-f01487 failed.

Name Link
🔨 Latest commit 993abdd
🔍 Latest deploy log https://app.netlify.com/projects/wonderful-bavarois-f01487/deploys/69707f61f03f33000866025f

* Updated Firestore queries and data access to use camelCase field names
  (e.g., departmentId, className, timeSlotId, startTime) for consistency
* Added debug scripts to inspect user and class schemas in Firestore
* Improved class name display logic to handle multiple possible field names
* Enhanced timetable table and hooks to match new field naming conventions
* Added debug logging for easier troubleshooting and data inspection
@HyperAfnan HyperAfnan merged commit f572b18 into main Jan 21, 2026
0 of 5 checks passed
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