MASTER ADMIN

Enter the Owner Admin Secret to unlock God-Mode controls. This token is sent as a bearer credential to every privileged Worker route and is never stored beyond this browser session.

Staff member? Go to the Staff Portal instead.

Overview
/
Master Admin
Total Users0Across all roles
Active Campaigns0Live ad ledger
Open Tickets0Awaiting response
AI Providers Live0Of 7 integrated

Recent Activity

Live-simulated system feed

Platform Status

Maintenance ModeOff
Ad EngineRunning
Blocked Regions
Active AI Providers

Live App-Wide Theme Engine

Color pickers preview instantly on this page. Accent Glow also saves to the public site's live config.

Preview only
Preview only
Saves live

Background & Text bind to this dashboard's own CSS root variables in real time. Propagating them into the Flutter app / public landing page requires extending backend/workers/remote_config.js's schema (currently only accent_color, font_family, hero_title, and legal copy are stored server-side).

Public Site Config

Persisted via /api/config — read by the landing page & Flutter app.

God-Mode User Control

Local demo directory — wire to Supabase Admin API for real enforcement (see inline comments).

User IDNameEmailRoleStatusJoined

AI Provider & API Key Command Center

Toggle providers app-wide and rotate keys. Demo vault — see security note below.

Security note: this panel edits keys in local browser storage for demonstration only. In production, wire "Save" to a Worker endpoint (e.g. POST /admin/ai-providers, gated by requireOwnerAdmin) that writes to a dedicated KV namespace and never echoes the plaintext key back to the client.

Live Payment & Campaign Ledger

Real data from GET /admin/payments/ledger.

Campaign IDStatusAmount (PKR)GatewayUpdated
Sign in with a valid Owner Admin Secret and refresh to load live data.

Global Maintenance Mode ARMED

Locks the public app for all non-admin users and shows a maintenance screen.

Emergency Ad Engine Freeze ARMED

Pauses all active ad delivery and billing processes instantly.

Regional Geo-Block

Real data via /admin/geoblock.

Live Server Logs & Metrics

Simulated real-time event stream — API hits, webhooks, errors.