Repository navigation
Show a pilot only their own flights, and ask a new pilot for their first plan - #366
Merged
Merged
Conversation
oskarbarcz
force-pushed
the
pilot-own-flights
branch
from
November 18, 2026 11:03
1de008c to
26e9ebc
Compare
…rst plan Recent flights and Flight history list only the flights the pilot captained, and Next scheduled flight is the earliest ready flight in a rotation Operations released to them, so a new pilot no longer sees other pilots' flights as theirs. With nothing scheduled and no flight in progress, the card asks for the first step: Add SimBrief ID opens the SimBrief connection on the dashboard and goes straight on to the import, or Import from SimBrief once an ID is set. Until the first flight closes, Recent flights is left out and the card spans its row. Every empty dashboard card now uses one calm empty state: an outline icon on a quiet tile, a short title and one line. The import window shows the plan line by line: the airports as IATA codes over their cities, the scheduled off-block and on-block with the block time between them, and the aircraft with its picture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
oskarbarcz
force-pushed
the
pilot-own-flights
branch
from
November 18, 2026 11:14
26e9ebc to
cb6b2f7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
Once pilots import their own plans (#364), the dashboard has to be the pilot's own, and a new pilot needs one clear first step.
captain=me(List only the signed-in pilot's flights, and name the cities in the SimBrief preview api#349). Until now they listed every pilot's flights./user/me/rotations. It replaces the shared pool of ready flights, which showed AA4906 as every new pilot's "next flight".EmptyState,app/shared/ui/Layout/):Code
useNextScheduledFlight(rotations, loading, currentFlightId)picks the leg and loads the flight.useCurrentRotationalso returnsactive.FlightService.fetchAllFlightstakescaptain.SimbriefPlanTile(app/features/user/components/) is used byImportSimbriefFlightModal.SimbriefAirportgainscity.DESIGN.mddescribesEmptyStateand the first-run card.Checked
npm run lint,npm run typecheck,npm run buildandnpm run build-storybookexit 0.npm run test:storybookpassed 232 of 236 while the API suite ran alongside; the four failures (Signed-in devices, two route chart globes, Report predicted times) are in untouched stories and pass on a rerun, 22 of 22.Related
captain=meand the cities.🤖 Generated with Claude Code