[18ZOO] Display stock market metadata#12752
Open
carlorusso1984 wants to merge 1 commit into
Open
Conversation
perwestling
previously approved these changes
Jun 14, 2026
perwestling
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed with AI assistance by Mistral Vibe
✅ Strengths
- Implements requested feature (closes #12723)
- Comprehensive change: adds appreciation thresholds, dividends, president bonuses
- Clean UI implementation with enlarged 2D cells for metadata
- Extensive verification:
- Audited shared
grid_2drenderer across 60 markets - Confirmed 18ZOO is only game using
SharePrice#info - Manual testing of 1880, 1822, 1866, 18MS (appropriate for frontend code)
- Audited shared
- All backend tests pass (179 examples, 0 failures)
- RuboCop passes
- Adds backend regression tests for metadata
❓ Questions
- Have you considered adding a screenshot of the new UI to the PR description?
✅ Verdict: Approve
Well-crafted implementation. The frontend changes are appropriately verified through manual testing, and backend changes are well-tested.
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.
Closes #12723
Change from:


To:
Summary
Shared renderer audit
grid_2drenderer across 60 two-dimensional stock-market definitions; one-dimensional, zigzag, and hexagonal markets use separate renderersSharePrice#info, so only 18ZOO selects the enlarged metadata layoutflatten.compactsafely ignores empty cells, addressing the failure mode of the reverted 2023 implementationTesting
docker compose exec rack bundle exec rspec spec/lib/engine/game/g_18_zoo/game_spec.rb(179 examples, 0 failures)docker compose exec rack bundle exec rubocop lib/engine/game/g_18_zoo/game.rb assets/app/view/game/stock_market.rb spec/lib/engine/game/g_18_zoo/game_spec.rbgit diff --check