Gate 0B: claim → place → earn → collect vertical slice (k claim) - #99
Merged
Conversation
PEP604 union syntax blocked auth import so every /api route 404'd in local pytest. Pillow 12 is unavailable on py3.9; pin a compatible range for baseline health. Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce typed BlockSceneManifest, LiveBlockState, and AttackSnapshot on frontend and backend with unit tests, plus CLAIM_BLOCK_COST=5000 shared constant. Co-authored-by: Cursor <cursoragent@cursor.com>
Rewrite block claim/my-blocks onto the mock/Supabase adapter, add player state and placement/income endpoints, and prove claim→deploy→earn→reload in pytest. Co-authored-by: Cursor <cursoragent@cursor.com>
TerritoryMap claims through blocksApi, placements/collect sync to the server, and useEmpireHydration reloads cash and blocks after refresh. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
main-tL2525: FlaskDBAdapteris authoritative for claim / place / tick-income / collect +GET /player/state, with sharedCLAIM_BLOCK_COST = $5000.BlockSceneManifest/LiveBlockState/AttackSnapshotcontracts (TS + Python) and vertical-slice tests.useEmpireHydrationto Flask; keeps main’s address→DNA/satellite claim path while replacing the local$2000claim with the Gate 0B API.Why this branch (not old
feat/mvp-vertical-slice)feat/mvp-vertical-slicewas 28 commits behindmain-tL2525(Phaser sprints #90/#93, art wiring #82/#83, raids, trap app, etc.) and duplicated Las Olas history already squash-merged via #76. This PR cherry-picks Gate 0B onto today’s default branch for a clean review.Test plan
cd backend/python && ./venv/bin/python -m pytest -q tests/test_gate_0b_vertical_slice.py tests/test_block_contracts.py(5 passed locally)SUPABASE_URLinbackend/python/.env; start Flask; claim eligible block for $5000; place dealer; tick/collect; refresh — cash + placements hydrateOut of scope
Made with Cursor