I have polished the Admin Console interface based on your feedback.
- Inputs: Now use
admin-inputclass for a glassmorphic look (dark translucent background). - Layout: Better spacing and grouping in the "Assign Co-Admin" form.
- Table: Enhanced readability with avatars and status badges.
- Fix: Ensured
GlobalDatais safely accessed.
Open Command Center > Manage Co-Admins. The form should look sleek and professional now.
Request: Add skilmatrix3@gmail.com as Admin.
Action: Updated auth.js to whitelist this email.
The system now checks against a list of Super Admins:
tanishqagrawal1103@gmail.comskilmatrix3@gmail.com
Login with the new email. You should be redirected to the Admin Dashboard immediately.
I have updated the Google Login implementation.
Switched from signInWithRedirect to signInWithPopup.
Redirect flows often fail on local environments (file://) or due to strict browser tracking prevention, causing the "throw back to login" loop. Popups maintain the session context much better.
- Refresh the login page.
- Click Continue with Google.
- A popup window should appear. Sign in.
- The popup will close, and you will be redirected to the Dashboard automatically.
Issue: Dashboard blank / tools not working for Guest.
Cause: Firebase event loop bypassed guest check.
Fix: Added explicit fallback to Guest dispatch in auth.js.
- Click "Continue as Guest".
- Dashboard should load.
- Tools (Notes, Planner) should be clickable.