Skip to content

Build admin dashboard with server management pages, UI primitives, and analytics#6

Open
Spbd1 wants to merge 1 commit into
codex/build-participant-facing-web-ui-for-parcel-societyfrom
codex/build-admin-dashboard-for-parcel-society
Open

Build admin dashboard with server management pages, UI primitives, and analytics#6
Spbd1 wants to merge 1 commit into
codex/build-participant-facing-web-ui-for-parcel-societyfrom
codex/build-admin-dashboard-for-parcel-society

Conversation

@Spbd1

@Spbd1 Spbd1 commented May 10, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Provide a fully functional admin UI for operating experiment servers, inspecting state, running server actions, and exporting data.
  • Surface server- and round-level metrics and visualizations to support monitoring and research workflows.

Description

  • Added a reusable admin UI library and layout, including Card, StatCard, ServerStatusBadge, ConditionBadge, AdminPageHeader, EmptyState, LoadingState, ErrorState, ButtonLink, DataTable, ConfirmDialog, and an admin shell/sidebar for the App Router (files under apps/web/app/admin/_components).
  • Implemented admin pages and routes with server-side Prisma fetching for the requested sections: dashboard (/admin), servers list (/admin/servers), create server (/admin/servers/new), server detail and actions (/admin/servers/:serverId), and per-server subpages for config, players, parcels, rounds, contracts, events, and analytics, plus exports, audit-log, and admin/login (files under apps/web/app/admin/**).
  • Built admin actions with confirmation and preview support (AdminActions) that call existing admin APIs (generate map, start/resolve/complete/archive, export), and added a server creation action that can optionally generate a 10x10 map server-side (createServer action uses createServerMap).
  • Integrated Recharts wrappers (AdminCharts) for line/bar/pie/distribution charts and implemented round- and server-level analytics pages; added a 10x10 parcel map UI and parcel-quality Gini calculations (format utilities include gini).
  • Added recharts to apps/web/package.json for charting and wired all pages to use server-side TypeScript/Prisma queries for actual data (no mock UI).

Testing

  • Ran lint with pnpm --filter @parcel-society/web lint, which passed after minor fixes to new files.
  • Attempted typecheck with pnpm --filter @parcel-society/web typecheck, which was blocked by the local environment reporting TS5103: Invalid value for '--ignoreDeprecations' and a missing node_modules warning, so full TypeScript verification could not complete locally.
  • Attempted to add the recharts dependency with pnpm install --lockfile-only, but the registry request failed with a 403 Forbidden when fetching @eslint/js, preventing a full install in this environment.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant