The classes query filtered by teacher_id when isAdmin was momentarily false
(roles not yet loaded) and never refetched — cache key lacked isAdmin. Gate on
!loading and include isAdmin in the query key.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Admin server function (service-role) to create accounts, set role, and
optionally link a parent to a student; wired via env_file (.env.secret)
- Admin > Users: "Add a user" form (teacher/parent/admin) with one-time temp password
- Student profile > Family: "Parent portal access" — create + link a parent login
- Parents can now edit their own child's profile (RLS-scoped); internal notes stay admin-only
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Profile / Family & pickup / Academics tabs now render a clean read-only
view with an Edit toggle that reveals the editable form (Save/Cancel/Done).
Guardian/pickup/login cards show summaries in view mode, inputs in edit mode.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
students.tsx was the list AND the parent of students.new / students.$id but
rendered no <Outlet/>, so child routes never showed. Make students.tsx an
Outlet layout and move the list to students.index.tsx. Add an errorComponent
to students.new as a safety net.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Migration: student intake fields (health, academic, dismissal, agreement),
student_guardians + student_curriculum_logins tables, extend authorized_pickups
(alt_phone, notes, kind) with RLS mirroring existing policies
- New /students/new full-page multi-section form (replaces the add dialog)
- Students list links to the full page; regenerate Supabase types
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Point .env + supabase/config.toml at EDU (qgmcpounpkgsjlwosjdi)
- Replace Lovable Google-OAuth shim with native supabase.auth.signInWithOAuth
- Remove src/integrations/lovable and @lovable.dev/cloud-auth-js dependency
- Drop .lovable metadata; gitignore supabase/.temp
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
I need a website for school similar to: https://praxipower.com/solutions/
*Attendance - by class would be nice, especially as we expand. A teacher would only see their students.
*Student information: standard contact information. Authorized pick up. Allergies. Photo release (yes/no). Upload signed contracts (this behind an admin wall).
*Tuition ledger card
-Monthly payment plan
-Late pick up
-Activity fees
*Sending text/emails to parents. A lot of our parents communicate via text, so it would be nice to have this feature, but I’m sure it’s limited because of cell phone stuff. But could there be a communication portal? Or… how do doctor’s offices send texts??
*Can they complete documents electronically? I don’t want these public facing, but If I push out a document through the site to current students to secure their spot for next year, could the parent complete that electronically and it automatically populated into the student account? It’s okay to tell me I’m far reaching LOL Maybe that
*Can this be linked to our current website? Could it be behind a parent login wall?
*Calendar (very low on the list…could just be a document that shows the school year at a glance… like BPS basic calendar).
X-Lovable-Edit-ID: edt-c8f62e11-9706-4a04-8b29-68fc71cf8991
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>