Skip to content

Mark aircraft that imports added as unconfirmed and let operations confirm them - #363

Merged
oskarbarcz merged 1 commit into
mainfrom
confirm-unconfirmed-aircraft
Nov 18, 2026
Merged

oskarbarcz merged 1 commit into
mainfrom
confirm-unconfirmed-aircraft

Conversation

@oskarbarcz

@oskarbarcz oskarbarcz commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

What changes

Aircraft that a SimBrief import added show as Unconfirmed, and operations can confirm them. Since mypreflight/api#347, an imported plan whose registration isn't in the fleet adds that aircraft, using the type typed into SimBrief, and marks it unconfirmed. Until now the app didn't show which aircraft those were.

  • An amber Unconfirmed badge appears next to the registration in the fleet table, on the fleet cards on phones, and under the registration on the aircraft page.
  • While the aircraft is unconfirmed, its page offers Confirm correctness beside Update airframe data. The dialog says the registration and type were typed into SimBrief and may be wrong. It asks operations to confirm only if it's a real one of that type in that airline's fleet, and to fix anything wrong with Update airframe data first. Confirming shows a toast and reloads the page, and the badge and button go away.

Code

  • Aircraft.isConfirmed. AircraftService.confirm sends PATCH /api/v1/operator/:operatorId/aircraft/:aircraftId with { "isConfirmed": true }.
  • UnconfirmedAircraftBadge (app/features/aircraft/components/Aircraft/) renders nothing for a confirmed aircraft. ConfirmAircraftModal (app/features/aircraft/components/AircraftDetails/).
  • Version 2.137.0.

Checked

  • On a clean checkout of this commit, npm run lint, npm run typecheck, npm run build, npm run build-storybook and npm run test:storybook all exit 0.

Related

🤖 Generated with Claude Code

…nfirm them

A SimBrief import adds a registration that isn't in the fleet, with the
type typed into SimBrief, and the API marks it unconfirmed. The fleet
table, the fleet cards and the aircraft page now show an Unconfirmed
badge on it, and the aircraft page offers Confirm correctness, which
asks operations to check the registration and type before confirming.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oskarbarcz
oskarbarcz added this pull request to stack #365 November 18, 2026 08:36
@oskarbarcz oskarbarcz self-assigned this Nov 18, 2026
@oskarbarcz
oskarbarcz merged commit f55b450 into main Nov 18, 2026
3 checks passed
@oskarbarcz
oskarbarcz deleted the confirm-unconfirmed-aircraft branch November 18, 2026 11:03
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