Skip to content

feat(vehicles): show installed combat stats and operating stations - #223

Merged
octfx merged 1 commit into
developfrom
feat/vehicle-mounting-position-details
Nov 21, 2026
Merged

octfx merged 1 commit into
developfrom
feat/vehicle-mounting-position-details

Conversation

@octfx

@octfx octfx commented Nov 21, 2026

Copy link
Copy Markdown
Member

Summary

  • Expose installed combat stats by payload and mount. Keep missile damage separate from gun DPS.
  • Replace unreleased technical control routes with verified operating stations. Installed mounts without verified stations show Unknown; vacant mounts show a dash.
  • Preserve legacy turret summaries and snapshot-aware item links.

Evidence

The focused vehicle API and detail page suite passed: 36 tests and 415 assertions. The checked-in OpenAPI schema matches the new fields.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T09:43:11.365454Z c9a7c82 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: c9a7c82afc

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +75 to +78
if (isset($position['OperatingStations'])) {
$mapped['operating_stations'] = array_map(static fn (array $station): array => self::mapFields($station, [
'Kind', 'SeatPortId', 'Name',
]), $position['OperatingStations']);

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 Suppress operating stations for vacant positions

When a dump retains stale OperatingStations on a position whose Occupied value is false—a case explicitly exercised by VehicleShowTest—the API still publishes those stations because this mapping is unconditional. The web view hides them, but direct v3 API consumers receive a phantom verified station for a position that has no installed weapon or tool, contradicting the new field's documented semantics; omit operating_stations for vacant positions.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in 2c70564. The v3 resource now omits operating_stations for vacant positions, even if the dump contains stale entries. The imported-response regression failed before the guard and passes with it; OpenAPI now documents the omission.

@octfx
octfx force-pushed the feat/vehicle-mounting-position-details branch from c9a7c82 to 2c70564 Compare November 21, 2026 09:47
@octfx
octfx merged commit edf7463 into develop Nov 21, 2026
3 checks 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