Lean 101 Admin Panel

Separate operator login and client access controls from the Hunter Premium Produce workspace.

Use this admin surface for internal access changes, export validation, and operator-only workflows.

Managed clients {data.clients.length}
Total users {totalUsers}
Enabled features {totalFeatures}
{#if !$sessionHydrated}

Checking Session

Restoring the Lean 101 admin session before deciding whether sign-in is needed.

The admin sign-in form only appears when no saved operator session is available.

{:else if !$adminSession}

Admin Sign-In

Authenticate here to unlock the admin navigation and client access controls.

The public client workspace no longer exposes this operator sign-in.

{#if loginError} {loginError} {/if}
{:else}

Session Active

{$adminSession.name} is signed in to the Lean 101 Admin Panel.

Open the client access workspace to manage users, feature flags, and the Power BI export preview.

Open Client Access View Hunter workspace
{/if}

Scope

What belongs in admin

Client access control Manage new users, existing users, and feature access by client.
Power BI export validation Verify the live export payload after each access change.
Operator-only sign-in Keep internal authentication separate from the client workspace at `/`.

Preview Snapshot

Current export summary

Last generated {formatDate(data.exportPreview.generated_at)}

Client rows {data.exportPreview.client_rows.length}
User rows {data.exportPreview.user_rows.length}
Feature rows {data.exportPreview.feature_rows.length}