Code Farm: front-view server rack and API-backed terminal #176

Open
blindxfish wants to merge 2 commits from blindxfish/devplacepy:codex/code-farm-rack-terminal into master
Contributor

Replaces Code Farm's plot cards and dropdowns with a tall, straight-on server rack. Purchased plots become selectable servers, and the workload picker shows costs, build times, rewards, and unlock requirements. Cooling, networking, power, infrastructure, and Neon cosmetics reflect the existing upgrade state.

Adds an embedded game terminal with command history, Tab completion, live activity, and commands covering all 24 current game API routes. Controls and commands share request handling, keep the displayed rack consistent after neighbour actions, and retain drafts and selection across live refreshes. Existing progression, social actions, and forms without JavaScript remain available.

Updates the player guide and adds API-contract, rack, and terminal regression coverage. Leaderboard browser assertions compare the rendered names with the real API response, independent of other farms in the test database.

Validation:

  • 295 game tests passed on Ubuntu/WSL with Python 3.12 and headless Chromium: python -m pytest tests/unit/services/game tests/api/game tests/e2e/game (isolated server on port 10509).
  • Full make test completed all three tiers (5,026 collected), followed by rerunning all five failures against the final branch. Combined result: 5,016 passed, 7 skipped, 3 existing failures. Both corrected game tests pass on the final branch.
  • All 24 game routes and their form fields are checked against the Python router/model contract; the command parser also passes with Node 18.
  • JavaScript, templates, Python, CSS, and whitespace checks passed. Responsive previews were checked from 360 to 1440 pixels.

All three remaining failures also reproduce on unchanged base commit 7274cc18 in the same environment:

tests/api/admin/communities/index.py::test_update_saves_sync_options_and_keeps_unsent_ones
tests/api/skills/index.py::test_toggle_flips_and_sets_explicitly
tests/unit/services/containers/api.py::test_raw_query_survives_a_hash_in_the_path

These cover a community alias resetting, a skill toggle staying disabled, and URL query parsing. Upstream CI already fails on the base commit, including test-server startup timeouts: base CI run. PR CI is still running.

Preview with sample data:

Front-view rack, workload picker, terminal, and visual upgrades

Replaces Code Farm's plot cards and dropdowns with a tall, straight-on server rack. Purchased plots become selectable servers, and the workload picker shows costs, build times, rewards, and unlock requirements. Cooling, networking, power, infrastructure, and Neon cosmetics reflect the existing upgrade state. Adds an embedded game terminal with command history, Tab completion, live activity, and commands covering all 24 current game API routes. Controls and commands share request handling, keep the displayed rack consistent after neighbour actions, and retain drafts and selection across live refreshes. Existing progression, social actions, and forms without JavaScript remain available. Updates the player guide and adds API-contract, rack, and terminal regression coverage. Leaderboard browser assertions compare the rendered names with the real API response, independent of other farms in the test database. Validation: - **295 game tests passed** on Ubuntu/WSL with Python 3.12 and headless Chromium: `python -m pytest tests/unit/services/game tests/api/game tests/e2e/game` (isolated server on port 10509). - Full `make test` completed all three tiers (5,026 collected), followed by rerunning all five failures against the final branch. Combined result: **5,016 passed, 7 skipped, 3 existing failures**. Both corrected game tests pass on the final branch. - All 24 game routes and their form fields are checked against the Python router/model contract; the command parser also passes with Node 18. - JavaScript, templates, Python, CSS, and whitespace checks passed. Responsive previews were checked from 360 to 1440 pixels. All three remaining failures also reproduce on unchanged base commit `7274cc18` in the same environment: ``` tests/api/admin/communities/index.py::test_update_saves_sync_options_and_keeps_unsent_ones tests/api/skills/index.py::test_toggle_flips_and_sets_explicitly tests/unit/services/containers/api.py::test_raw_query_survives_a_hash_in_the_path ``` These cover a community alias resetting, a skill toggle staying disabled, and URL query parsing. Upstream CI already fails on the base commit, including test-server startup timeouts: [base CI run](https://retoor.molodetz.nl/retoor/devplacepy/actions/runs/1784/jobs/2358). [PR CI](https://retoor.molodetz.nl/retoor/devplacepy/actions/runs/1790/jobs/2364) is still running. Preview with sample data: ![Front-view rack, workload picker, terminal, and visual upgrades](https://retoor.molodetz.nl/attachments/4e423b9c-c996-40a7-9317-284ccf5897bd)
blindxfish added 1 commit 2026-10-19 21:33:17 +02:00
Code Farm: add front-view server rack and API-backed terminal
DevPlace CI / test (pull_request) Failing after 46m19s
8155f394bd
blindxfish added 1 commit 2026-10-19 21:46:42 +02:00
Verify live game panels and leaderboard API contents
DevPlace CI / test (pull_request) Failing after 46m7s
213cb833ef
Author
Contributor

meh....

meh....
Some required checks failed
DevPlace CI / test (pull_request) Failing after 46m7s
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u http://retoor.molodetz.nl/blindxfish/devplacepy codex/code-farm-rack-terminal:blindxfish-codex/code-farm-rack-terminal
git checkout blindxfish-codex/code-farm-rack-terminal
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: retoor/devplacepy#176