Skip to content

fix: color trade offer resources by type instead of blanket green/red#183

Merged
njbrake merged 1 commit intomainfrom
fix/trade-response-resource-colors
Apr 8, 2026
Merged

fix: color trade offer resources by type instead of blanket green/red#183
njbrake merged 1 commit intomainfrom
fix/trade-response-resource-colors

Conversation

@njbrake
Copy link
Copy Markdown
Contributor

@njbrake njbrake commented Apr 8, 2026

Description

The trade response context bar colored all offered resources green and all wanted resources red. This conflicted with the per-resource color system used in the player panel and defined in DESIGN.md. Now each resource in the trade offer is colored by its type (Wood=Green, Brick=Red, Sheep=LightGreen, Wheat=Yellow, Ore=Gray), consistent with the rest of the UI.

Fixes #180

PR Type

  • New Feature
  • Bug Fix
  • Refactor
  • Documentation
  • Infrastructure / CI

Checklist

  • I understand the code I am submitting
  • New and existing tests pass
  • Documentation was updated where necessary

AI Usage

  • No AI was used
  • AI was used for drafting/refactoring
  • This is fully AI-generated

AI Model/Tool used: Claude Code (Claude Opus 4.6)

Any Additional AI Details you'd like to share: Fix implemented and reviewed by Claude Code.

NOTE:
When responding to reviewer questions, please respond yourself rather than copy/pasting reviewer comments into an AI and pasting back its answer. We want to discuss with you, not your AI :)

  • I am an AI Agent filling out this form (check box if true)

The trade response context bar colored all offered resources green and all
wanted resources red, which conflicted with the per-resource color system
used everywhere else. Now each resource in the trade offer is colored by
its type (Wood=Green, Brick=Red, Sheep=LightGreen, Wheat=Yellow, Ore=Gray),
matching the player panel and DESIGN.md spec.

Fixes #180

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@njbrake njbrake merged commit 19c3610 into main Apr 8, 2026
5 checks passed
@njbrake njbrake deleted the fix/trade-response-resource-colors branch April 8, 2026 13:35
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.

offered trade coloring is off

1 participant