Skip to content

Repository files navigation

Solid Management Portal

Admin dashboard for managing Solid users and viewing account balances.

Features

  • User list with search, sorting, and pagination
  • User detail view with balances and activity
  • Dashboard-wide search (⌘K / Ctrl+K, or /) — see below

Search

The search box in the top bar (and on the Users page) opens a command palette built on the shadcn Command component (cmdk):

  • Users by username, email, wallet, Safe, referral code, user ID — and by card: a Rain or Wirex card ID (whole, or its first characters), a replaced card's old ID, a Wirex user ID or a Rain consumer ID. Results say which ID matched.
  • Recent users: every profile you open is kept (per admin, in this browser) and listed when the search opens empty.
  • Pages, sections and actions from lib/search-index.ts. A section links to an id on its page (/rewards-config#referral-system); the user profile, wallets and referral review keep their tab in ?tab=. SectionScroller waits for the section to render, scrolls to it and flashes it; a collapsed config section opens itself, and a button marked data-search-open (e.g. "New campaign") is pressed. When you rename or move a section, update its entry in lib/search-index.ts.
  • Wallets from the treasury registry, by name, purpose or address.
  • Error Refs go to the error lookup; a 24-character user ID opens the profile directly.

Tech Stack

  • Framework: Next.js 16 (App Router)
  • Styling: Tailwind CSS
  • Data Fetching: React Query (TanStack Query)
  • UI Icons: Lucide React

Getting Started

Prerequisites

  • Node.js 20+
  • npm or pnpm

Installation

npm install

Environment Variables

Create a .env.local file:

NEXT_PUBLIC_SOLID_API_BASE_URL=http://localhost:5001

For production, set this to your production backend URL.

Development

npm run dev

Open http://localhost:3000 in your browser.

Build

npm run build
npm start

Deployment

Vercel

  1. Install Vercel CLI (if not already installed):

    npm i -g vercel
  2. Deploy:

    vercel
  3. Set environment variables in Vercel dashboard:

    • NEXT_PUBLIC_SOLID_API_BASE_URL: Your production backend URL

Environment Variables for Production

Make sure to set these in your Vercel project settings:

  • NEXT_PUBLIC_SOLID_API_BASE_URL: Production backend URL (e.g., https://api.solid.com)

Project Structure

├── app/
│   ├── (auth)/
│   │   └── login/          # Login page (redirects to /users)
│   ├── (dashboard)/
│   │   ├── layout.tsx      # Dashboard layout with header
│   │   └── users/
│   │       ├── page.tsx    # Users list
│   │       └── [id]/
│   │           └── page.tsx # User detail
│   ├── layout.tsx          # Root layout with providers
│   └── page.tsx            # Root page (redirects to /users)
├── components/
│   ├── auth-provider.tsx   # Firebase sign-in, limited to the admin domain
│   ├── providers.tsx       # Global providers
│   ├── users-table.tsx     # Users list table
│   ├── balances-card.tsx   # User balances display
│   └── activity-list.tsx   # User activity list
├── lib/
│   ├── api.ts              # Axios instance
│   └── firebase.ts         # Firebase config
├── hooks/
│   └── use-debounce.ts     # Debounce hook
└── types/
    └── index.ts            # TypeScript types

API Endpoints

The frontend expects the following backend endpoints:

  • GET /accounts/v1/admin/users - List users with pagination
  • GET /accounts/v1/admin/users/:id - Get user details
  • GET /accounts/v1/admin/users/:id/balances - Get user balances
  • GET /accounts/v1/admin/users/:id/activity - Get user activity

License

Private.

Releases

Packages

Contributors

Languages