Skip to content

CG-0MO4SXRMY007LEA9: Main Street responsive 2x5 street layout#435

Merged
SorraTheOrc merged 21 commits intomainfrom
feature/CG-0MO4SXRMY007LEA9-main-street-layout-2x5
Apr 19, 2026
Merged

CG-0MO4SXRMY007LEA9: Main Street responsive 2x5 street layout#435
SorraTheOrc merged 21 commits intomainfrom
feature/CG-0MO4SXRMY007LEA9-main-street-layout-2x5

Conversation

@SorraTheOrc
Copy link
Copy Markdown
Member

Summary

Implements a responsive UI re-layout for Main Street that addresses multiple layout issues from the original work item:

Changes Made

  • Street 2x5 grid: Render street as 2 rows x 5 columns (10 slots) instead of single horizontal row
  • Responsive layout: Added with interface that adapts to desktop and narrow/mobile viewports
  • Compacted action controls: Bottom-right action buttons made more compact
  • Header bar: 2/3 width, centered, with centered text (Coins, Rep, Score)
  • Removed labels: "Your Street" and "Your Hand" labels removed
  • Turn counter: Moved to bottom center with instruction text
  • Activity Log: Top aligned with market, bottom aligned with market bottom border
  • Challenges panel: Positioned left of Activity Log, aligned with incidents container
  • Incidents: Border wraps cards properly, label changed to just "Upcoming"
  • Deck counts: Now immediately below row labels

Layout Positioning

  • Market at top
  • Incident queue to the right of market
  • Street 2x5 grid between queue and hand
  • Challenges panel between hand and Activity Log
  • Hand at bottom right
  • Activity Log on far right
  • All zones non-overlapping on desktop and narrow viewports

Tests

  • Added browser tests validating 2x5 street rendering and non-overlapping zones
  • All tests pass

Files Changed

    • Main layout changes
    • Layout validation tests
    • Updated documentation
    • Added Main Street to example games list
    • Layout screenshots

Related Work Item

CG-0MO4SXRMY007LEA9

Sorra added 21 commits April 18, 2026 10:46
… add browser test to validate texture and aspect
- Render street as 2 rows x 5 columns (10 slots total) instead of single horizontal row
- Add responsive layout computation computeLayout() with SceneLayout interface
- Compact action buttons and move hand area to bottom to free vertical space
- Add layout validation tests for non-overlapping zones
- Update card-dimensions.md and README with layout notes
- Include screenshots demonstrating desktop and narrow mobile layouts
- Increase incident queue card height from 64px to 72px to match market cards
- Fix handY to not offset below screen on desktop
- Update screenshot showing corrected layout
…llenges panel

- Use same BASE_QUEUE_CARD dimensions as market cards for consistency
- Position Challenges panel above the hand area on desktop to make it visible
- Update screenshot showing corrected layout
- Smaller market cards (120x64) moved higher
- Incident queue positioned to right at same Y level as market, matching card size
- Street moved up closer to queue (2x5 grid at slotW=88, slotH=86)
- Challenge panel above hand area
- Activity log on right side when space available
- All zones non-overlapping on 1280x720 desktop

Screenshot shows final desktop layout.
These constants are now computed inline in computeLayout().
This fixes the overlap between street and challenges panel. Now challenges are positioned above the hand area at the bottom of the screen.
…edback

- Activity Log top aligned with marketTop
- Challenges top aligned with queueTop, right edge aligned to margin
- Hand card aligned to right edge margin, bottom aligned to margin
- Build passes
- Turn (top) removed from HUD, added centered at bottom aligned to margin
- Changed Rep: to Reputation:
- Score now positioned to right of Reputation
- Removed Your Street label from street grid
- Removed Your Hand label from player hand section
This fixes gameH is not defined error.
- Remove Your Street label
- Remove Your Hand label
- Log left edge just left of right margin
- Log top aligns with market border
- Log bottom aligns with market bottom border
…enges left of log

- Turn 1/20 and Phase moved to bottom center
- Instruction text moved to bottom center
- Deck counts moved below row labels for Business, Investments, Incident queue
- Challenges panel moved to left of Activity Log
- Build passes
…ges narrower

- Header bar now 2/3 width centered
- Removed duplicate turn counter, keeping only the one at bottom with instructions
- Deck counts now immediately under row labels
- Challenges box narrower to fit in gap
- Score moved left away from settings/help icons
- Build passes
…y label

- Center Coins, Rep, Score in the header strip
- Shrink incidents box width to just fit cards
- Expand challenges box to fill gap
- Remove 'Incidents' from label, just say 'Upcoming'
- Move Upcoming border to start at x=110 to wrap the cards
- Expand challenges box wider
- Move challenges slightly higher
- Challenges top aligned with incidents container top
- Challenges height increased to align with incidents bottom
- Incidents border right edge aligns with second card with margin
@SorraTheOrc SorraTheOrc merged commit ddba71e into main Apr 19, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant