Frontend dashboard

From VectorSpaceLab/AREX-Skill · View interactive version

Frontend dashboard is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Operates Airweave's React dashboard: auth, organization context, API client behavior, collections, search UI, billing/admin pages, webhooks, auth providers, usage gates, and cron utilities.

How to use this skill

Skill file

Frontend Dashboard

Use this sub-skill when an Airweave task touches the React/Vite dashboard, user-facing app routes, dashboard API calls, auth state, organization switching, search UI, collection pages, billing/admin screens, webhooks, auth providers, usage gating, or cron schedule display utilities.

Route to the right reference

Operating rules

  1. Use the shared apiClient for dashboard API calls. Endpoint strings should be root-relative, such as /collections, not /api/v1/collections.
  2. Preserve the auth-token provider lifecycle: the app wires AuthContext into apiClient, queues requests until auth is ready, and retries once after 401 or 403 by clearing the cached token.
  3. Preserve organization context. X-Organization-ID comes from the current organization store; successful GET responses with a different accessible organization_id can auto-switch the active organization and clear organization-scoped caches. Mutations must not auto-switch.
  4. Treat usage checks as user-facing gates, not backend authorization. Buttons/search tiers can be disabled from cached /usage checks, but failed or missing checks default to allowed and the backend remains the source of truth.
  5. Keep admin and billing flows explicit. Admin pages require user.is_admin; sync delete/cancel/resync actions are destructive. Billing setup/portal routes redirect through backend-created Stripe sessions and should fail closed with toasts/navigation.
  6. Keep Connect widget internals, MCP server internals, backend implementation details, and Monke orchestration out of this sub-skill. Route those to their sibling sub-skills.

Safe validation anchors

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.