Skip to content

Build participant-facing Parcel Society UI#5

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

Build participant-facing Parcel Society UI#5
Spbd1 wants to merge 1 commit into
codex/build-api-routes-for-parcel-societyfrom
codex/build-participant-facing-web-ui-for-parcel-society

Conversation

@Spbd1

@Spbd1 Spbd1 commented May 8, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Provide a simple, participant-focused web UI so players can read a short tutorial, pass a comprehension check, join waiting research servers, and play the parcel game in a clear round-by-round dashboard.
  • Gate joining so participants must pass a stored comprehension check before joining a server to ensure basic understanding prior to participation.
  • Surface essential game state and per-player summaries so participants can make informed decisions and review round/final outcomes.

Description

  • Added participant pages and flows: / landing (reworked content), /tutorial, /comprehension-check (client UI), /join, /game/[serverId] (dashboard), /game/[serverId]/summary, and /game/[serverId]/final, plus simple responsive layout and Tailwind styling.
  • Implemented client helper requestJson and UI features including a 10x10 map with highlighted player parcel, action panel with AP tracking and validation, contract target/amount inputs, loading and error states, and passed/fail feedback for the comprehension check.
  • Added server-side API endpoints and schema updates: api/comprehension-check (persist answers), api/join-server (now checks for a passed comprehension check), api/servers/[serverId]/state, api/servers/[serverId]/round-summary (enriched), and api/servers/[serverId]/final-summary, and a new comprehensionCheckSchema in lib/api/schemas.ts.
  • Minor layout and content updates to app/layout.tsx and app/page.tsx to route the participant flow and surface Join/Tutorial links.

Testing

  • Ran git diff --check which reported no problems.
  • Attempted dependency install with pnpm install, but it failed due to the environment returning a 403 Forbidden from the npm registry for eslint, preventing node_modules installation.
  • Ran pnpm --filter @parcel-society/web typecheck, pnpm --filter @parcel-society/web lint, pnpm --filter @parcel-society/web test, and pnpm --filter @parcel-society/web build, all of which could not complete because required dependencies were not installed; typecheck produced many module/JSX errors primarily because node_modules is missing 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