Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Fireinthebellyy/ftb-web/llms.txt

Use this file to discover all available pages before exploring further.

What is the Admin Panel?

The Admin Panel is a powerful dashboard that allows administrators to manage all aspects of the FTB Hustle platform. It provides centralized control over user management, content moderation, toolkit catalog, coupons, and broadcast posts.

Accessing the Admin Panel

The admin panel is only accessible to users with the admin role.

Access Requirements

  • Must be logged in with a verified account
  • User role must be set to admin in the database
  • Available at /admin route
Only users with the admin role can access the admin panel. Attempting to access this page with user or member roles will redirect to the homepage.

User Roles in FTB Hustle

FTB Hustle has three user role levels:

User

Default role for all new users. Can create opportunities, internships, and engage with platform content.

Member

Enhanced permissions for trusted community members. Can access exclusive features and content.

Admin

Full platform access. Can manage all users, content, toolkits, coupons, and site settings.

Admin Dashboard Sections

The admin panel is organized into five main tabs:

Pending Opportunities

Review and approve or reject opportunities submitted by users

User Management

Manage user accounts and assign roles (user, member, admin)

Toolkit Management

Create and manage paid toolkits with lessons and content

Coupons

Create and manage discount coupons for toolkit purchases

Ungatekeep

Manage announcements, resources, and company experience posts
The admin dashboard features:
  • Tab-based navigation: Switch between different management sections using the tab bar
  • Search and filters: Quickly find specific items in tables
  • Action buttons: Create new content or perform bulk operations
  • Real-time updates: Changes reflect immediately across the platform

Source Code Location

# Admin page and components
app/admin/page.tsx
app/admin/AdminTabs.tsx
app/admin/Admin*Table.tsx

# Admin API routes
app/api/admin/*/route.ts

# User role enum
lib/schema.ts (userRoleEnum)

Quick Actions

1

Access the Admin Panel

Navigate to /admin in your browser. You’ll be redirected to login if not authenticated.
2

Select a Section

Use the tab bar to switch between Opportunities, Users, Toolkits, Coupons, and Ungatekeep.
3

Perform Actions

Use the action buttons, switches, and dropdown menus to manage content.
4

Monitor Changes

All changes are reflected immediately. Use the refresh button if needed.

Admin Dashboard Features

Statistics Display

Each section shows relevant statistics:
  • Total count of items (users, opportunities, toolkits, coupons, posts)
  • Pending requests count
  • Active/inactive status summaries

Bulk Operations

Perform actions on multiple items:
  • Approve/reject multiple opportunities
  • Update user roles in batches
  • Toggle toolkit or coupon activation status

Search and Filtering

Every data table includes:
  • Search bar to filter by name, title, or code
  • Column sorting (ascending/descending)
  • Pagination for large datasets
Admin actions are powerful and can affect the entire platform. Always verify your changes before confirming destructive operations like deletes or role changes.

Build docs developers (and LLMs) love