Repository navigation
Add multiple aircraft per account (fleets) - #58
Merged
Merged
Conversation
One account can now track up to 25 aircraft. Each plane has its own info card, block time and time in service (with their manual floors), service timeline, and log book. - New Aircraft entity. Per-plane fields move off User; timeline rows, flights, flight suggestions, subscriptions and import proposals point at an aircraft and keep user_id for ownership checks. - AircraftBackfill runs on boot: each existing account's data becomes its first aircraft, and the old one-subscription-per-user constraint is dropped. Idempotent; checked against a copy of a PostgreSQL database. The legacy users columns stay one release (see the migration note). - Every dashboard request carries the aircraft on screen (X-Aircraft-Id), ownership-checked in one resolver, so two tabs on two planes can't mix. - Header plane picker with overdue / due-soon counts. Add aircraft works in 3 taps on a phone (tail number only, 16px input, Save above the keyboard). Remove asks for the tail number; the last plane can't go. - Alerts send one email for the whole fleet, grouped by tail number. PDF covers the plane on screen; flight sync is per plane. - MCP: new list_aircraft tool; imports name their target aircraft. - Removes the empty-timeline "Import with AI" prompt; narrow headers show Share / Import with AI as icons. The bare / address now redirects to /dashboard instead of a 404.
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.
One account can now track up to 25 aircraft. Each plane has its own info card, block time and time in service (with manual floors), service timeline, and log book.
aircrafttable; timeline rows, flights, suggestions, subscriptions and import proposals point at an aircraft (and keepuser_idfor ownership checks).AircraftBackfillruns on boot and turns each account into its first aircraft, and drops the old one-subscription-per-user constraint. Idempotent. Checked on a copy of a local PostgreSQL DB: all rows, order, hours and floors carried over; second boot changed nothing. Legacyuserscolumns stay one release (seedocs/migrations/2026-11-09_multi_aircraft.sql).X-Aircraft-Id), checked against the signed-in owner in one resolver. Another account's aircraft is a 404; two tabs on two planes can't mix.list_aircraft, and imports name their target aircraft./now redirects to/dashboardinstead of a 404 when signed in.After deploy: check the boot log for
Aircraft backfill: N users, M rows attachedon staging before promoting.Tests: 211 unit/integration, 82 browser.