Admin Dashboard

Pastura Farm Store – Admin Control Center
🛠️ Admin Tools

Product Builder

Primary

Create and configure external products with variants, images, and shipping rules. Generate ready-to-paste JSON/JS output.

Call Management

Twilio

Admin call panel for outbound calling, order follow-ups, and customer communication via Twilio Voice SDK.

Order Management

Coming Soon

View, filter, and manage orders. Track shipments, handle refunds, and monitor fulfillment status.

Analytics

Active

Sales trends, customer metrics, product performance, and revenue insights with exportable reports.

User Management

Coming Soon

Manage admin users, permissions, and roles. Control access to sensitive sections and audit logs.

Inventory

Coming Soon

Track stock levels, manage SKUs, set reorder points, and receive low-stock alerts from suppliers.

📋 Documentation

Security & Auth

This dashboard is protected by Firebase Authentication. Only authorized admin emails can access these tools.

  • Auth check runs on page load before content is revealed
  • User email is verified against allowlist
  • Non-admin users are redirected to homepage
  • Unauthenticated users are redirected to login
  • All admin pages use consistent auth gate pattern

Adding New Admin Tools

To add a new admin tool to this dashboard:

  1. Create your tool and protect it with the same Firebase auth gate
  2. Add the tool's email to allowedAdmins Set
  3. Create a new .card section with link here
  4. Use console.log("[admin-*] ...") for logging
  5. Hide UI by default: body { visibility: hidden; }