Repository navigation
feat(vehicles): show installed combat stats and operating stations - #223
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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".
| if (isset($position['OperatingStations'])) { | ||
| $mapped['operating_stations'] = array_map(static fn (array $station): array => self::mapFields($station, [ | ||
| 'Kind', 'SeatPortId', 'Name', | ||
| ]), $position['OperatingStations']); |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
c9a7c82 to
2c70564
Compare
Summary
Evidence
The focused vehicle API and detail page suite passed: 36 tests and 415 assertions. The checked-in OpenAPI schema matches the new fields.