Build admin dashboard with server management pages, UI primitives, and analytics#6
Open
Spbd1 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
Card,StatCard,ServerStatusBadge,ConditionBadge,AdminPageHeader,EmptyState,LoadingState,ErrorState,ButtonLink,DataTable,ConfirmDialog, and an admin shell/sidebar for the App Router (files underapps/web/app/admin/_components)./admin), servers list (/admin/servers), create server (/admin/servers/new), server detail and actions (/admin/servers/:serverId), and per-server subpages forconfig,players,parcels,rounds,contracts,events, andanalytics, plusexports,audit-log, andadmin/login(files underapps/web/app/admin/**).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 (createServeraction usescreateServerMap).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 (formatutilities includegini).rechartstoapps/web/package.jsonfor charting and wired all pages to use server-side TypeScript/Prisma queries for actual data (no mock UI).Testing
pnpm --filter @parcel-society/web lint, which passed after minor fixes to new files.pnpm --filter @parcel-society/web typecheck, which was blocked by the local environment reportingTS5103: Invalid value for '--ignoreDeprecations'and a missingnode_moduleswarning, so full TypeScript verification could not complete locally.rechartsdependency withpnpm install --lockfile-only, but the registry request failed with a403 Forbiddenwhen fetching@eslint/js, preventing a full install in this environment.Codex Task