Skip to main content

Admin Dashboard Overview

The Bike4Mind admin dashboard is the central hub for platform administration. It provides tools for managing users, monitoring system health, configuring settings, and analyzing platform usage. Access is restricted to users with admin privileges; non-admin users see an "Admin Access Only" message.

Layout

The admin panel is organized as a full-screen view with three main areas:

AreaDescription
Environment BannerA color-coded sticky bar at the top indicating the current environment
Left SidebarAn accordion-based navigation menu for switching between admin tabs
Main Content AreaThe active tab's content, occupying the majority of the screen

Environment Banner

The environment banner is always visible at the top of the admin panel. It uses color coding to clearly indicate which environment you are working in, reducing the risk of unintended changes in production.

EnvironmentColorHostname Pattern
Local DevelopmentGreenlocalhost
StagingBlueContains staging
ProductionRedapp.bike4mind.com
UnknownYellowAny other hostname

The banner includes a close button on the right side that navigates back to the previous page.

The left sidebar uses an accordion group with three collapsible sections. Each section can be independently expanded or collapsed. All three sections are expanded by default.

User Ops

The User Ops section contains tabs focused on user and account management:

TabDescription
UsersSearch, view, edit, and manage user accounts
Email VerificationMonitor and manage email verification status
FeedbacksReview and triage user-submitted feedback
MigrationBulk migrate users into the platform (conditional, requires feature flag)
AnalyticsView user activity reports and analytics
Invite CodesManage registration invite codes
SubscribersView and manage newsletter subscribers (shows a badge count for waiting subscribers)
Email MarketingEmail marketing campaigns
SubscriptionsManage user subscriptions
OrganizationsManage organizations
Credit AnalyticsAnalyze credit usage across the platform
Bulk ImportImport users in bulk
TeamManage team members

General Ops

The General Ops section contains tabs for system configuration and operational tools:

TabDescription
Admin SettingsPlatform-wide configuration settings
System HealthMonitor system health status
LLM DashboardLarge language model configuration and monitoring
Tool DefinitionsManage tool definitions available to AI
Rapid ReplyConfigure rapid reply templates
System PromptsManage system-level prompts
Agent OperationsMonitor and manage AI agent operations
DocumentationInternal documentation management
ModalsConfigure application modals
What's NewManage "What's New" announcement modals
LiveOps TriageLive operations triage (conditional, hidden on fork production environments)
Secrets RotationManage secret rotation schedules
System SecretsView and manage system secrets
Identity ProvidersConfigure identity provider integrations
Slack WorkspacesManage Slack workspace connections
Model MetricsView model performance metrics
Event MetricsTrack system event metrics
Slack MetricsMonitor Slack integration metrics
Security DashboardSecurity monitoring dashboard

Advanced

The Advanced section contains specialized tools:

TabDescription
World TimeView current time across different time zones

Tab System

The admin panel uses a vertical tab system where clicking a sidebar button activates the corresponding tab in the main content area. Tabs are lazy-loaded, meaning their content is only rendered when the tab is active, which improves initial load performance. Several tabs use dynamic imports via next/dynamic for code splitting.

Default Tab Behavior

  • The default active tab is Users when the admin panel opens.
  • If the enableUserMigration feature flag is active and the current tab is Users, the panel automatically switches to the Migration tab instead.

Notification Badges

The Subscribers tab displays a red notification badge when there are waiting subscribers. The badge shows the count of pending subscribers and can be dismissed. This badge is only visible when the count is greater than zero and the notification has not been hidden.

Best Practices

  • Always check the environment banner color before making changes to confirm you are in the intended environment.
  • Use the sidebar accordion collapse feature to reduce visual clutter when working within a specific section.
  • The admin panel requires the isAdmin flag on the current user -- ensure admin privileges are granted appropriately through the Users tab.