Admin dashboard for PARQH. React + Vite + TypeScript + Tailwind, talking directly to Supabase (Auth, Postgres, Storage, RLS). No server of its own, so it deploys as a static site on GitHub Pages.
Dashboard · Orders (status timeline, tracking, cancel, return/refund) · Delivery · Leads & inquiries (CRM, follow-ups, WhatsApp, convert to order) · Customers · Products (photos, variants, publish/draft) · Categories · Inventory (stock in/out/adjust, history) · Coupons · Website content (banners, about, contact, social) · Reports (sales, product performance, lead conversion, CSV export) · Settings (brand, GST, shipping, COD, low-stock, admin users).
- Set up Supabase first (see
../DOCUMENTATION/SETUP.md). cp .env.example .envand fill inVITE_SUPABASE_URLandVITE_SUPABASE_ANON_KEY.npm install && npm run dev
- Push this folder to its own GitHub repo (branch
main). - Repo → Settings → Secrets and variables → Actions → add
VITE_SUPABASE_URLandVITE_SUPABASE_ANON_KEY. - Repo → Settings → Pages → Source: GitHub Actions. Every push to
maindeploys.
The app uses hash routing (/#/orders), so it works under any repo path.
Only the anon key is used. All admin rights come from the admin_users table and Row Level Security in SUPABASE/01_schema.sql; a logged-in non-admin sees nothing.