Skip to content

Production view refactor#167

Merged
tsg21 merged 7 commits into
mainfrom
production-view
May 21, 2026
Merged

Production view refactor#167
tsg21 merged 7 commits into
mainfrom
production-view

Conversation

@tsg21

@tsg21 tsg21 commented May 17, 2026

Copy link
Copy Markdown
Owner

No description provided.

@tsg21 tsg21 force-pushed the production-view branch from 158a357 to 43ac7ef Compare May 17, 2026 19:07
@tsg21

tsg21 commented May 18, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 84549d22e7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +106 to +107
const qty = e.shiftKey ? 5 : 1;
onAdd(row.itemType, row.designId, row.targetType, qty);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Disallow bulk-add quantity for planetary scanners

This click handler applies the Shift-based quantity=5 multiplier to every palette row, including planetary_scanner. That produces add_production_item commands with itemType="planetary_scanner" and quantity>1, which the backend command model rejects (planetary_scanner must be exactly 1), so users can stage an invalid queue and hit submit errors from the new production UI path.

Useful? React with 👍 / 👎.

Comment on lines +384 to +386
const [selectedPlanetId, setSelectedPlanetId] = useState<string | null>(
() => initialPlanetId ?? sortedOwnedPlanets[0]?.id ?? null,
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate initial planet selection against owned planets

The workspace initialises selectedPlanetId from initialPlanetId without checking whether that ID is in ownedPlanets. If the user opens Production while an unowned planet is selected, selectedPlanet resolves to null and the centre/palette panes show the empty-state message even though owned planets exist, which is a broken first-load flow for this screen.

Useful? React with 👍 / 👎.

@tsg21 tsg21 merged commit 3359201 into main May 21, 2026
1 check passed
@tsg21 tsg21 deleted the production-view branch May 21, 2026 20:22
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