Admin dashboard for managing Solid users and viewing account balances.
- User list with search, sorting, and pagination
- User detail view with balances and activity
- Dashboard-wide search (⌘K / Ctrl+K, or
/) — see below
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 anidon its page (/rewards-config#referral-system); the user profile, wallets and referral review keep their tab in?tab=.SectionScrollerwaits for the section to render, scrolls to it and flashes it; a collapsed config section opens itself, and a button markeddata-search-open(e.g. "New campaign") is pressed. When you rename or move a section, update its entry inlib/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.
- Framework: Next.js 16 (App Router)
- Styling: Tailwind CSS
- Data Fetching: React Query (TanStack Query)
- UI Icons: Lucide React
- Node.js 20+
- npm or pnpm
npm installCreate a .env.local file:
NEXT_PUBLIC_SOLID_API_BASE_URL=http://localhost:5001For production, set this to your production backend URL.
npm run devOpen http://localhost:3000 in your browser.
npm run build
npm start-
Install Vercel CLI (if not already installed):
npm i -g vercel
-
Deploy:
vercel
-
Set environment variables in Vercel dashboard:
NEXT_PUBLIC_SOLID_API_BASE_URL: Your production backend URL
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)
├── 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
The frontend expects the following backend endpoints:
GET /accounts/v1/admin/users- List users with paginationGET /accounts/v1/admin/users/:id- Get user detailsGET /accounts/v1/admin/users/:id/balances- Get user balancesGET /accounts/v1/admin/users/:id/activity- Get user activity
Private.