Skip to content

feat: add seat extras#667

Closed
darioackermann wants to merge 1 commit into
johanohly:mainfrom
darioackermann:dac/seat-extras
Closed

feat: add seat extras#667
darioackermann wants to merge 1 commit into
johanohly:mainfrom
darioackermann:dac/seat-extras

Conversation

@darioackermann

@darioackermann darioackermann commented Jul 14, 2026

Copy link
Copy Markdown

For det første: Tak for dette utroligt nyttige tip!

What problem does this solve?

Allows users to track any extras that comes with their seat.
For me as a tall person, this is primarily useful to track how often I managed to get a (free) extra legroom and/or emergency exit seat.

What does this MR do?

  • Adds a new field seatExtras, defaulting to []
    • Multiple tags can be selected at once
  • Adds a PieChart for those
  • Extends tests accordingly

Screenshots

image image

Feedback needed

  • The current tags are a suggestion. Let me know if one is missing or should be removed from the list.

AI-Disclaimer: AI assisted in this MR. I have manually reviewed and verified suggestions where applicable.

Note

Add seat extras field to flight seat records with statistics and form support

  • Adds a seatExtras string array field to the seat table via a new Prisma migration, with a default of [].
  • Extends the seat information form in SeatInformation.svelte with toggle buttons for selecting multiple extras per seat.
  • Adds a 'Seat Extras' pie chart to the statistics modal and implements the full aggregation and filter-matching logic in aggregations.ts.
  • Updates all import processors (AITA, ByAir, Flighty, FR24, JetLog, OpenFlights, TripIt, etc.) to include seatExtras: [] on imported seats.

Macroscope summarized aad157e.

@github-actions github-actions Bot added the Web label Jul 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Label error. Requires exactly 1 of: changelog:.*. Found: Web

Comment thread src/lib/stats/aggregations.ts Outdated
@sonarqubecloud

Copy link
Copy Markdown

@evanrich

Copy link
Copy Markdown

can we also add "empty row" or "extra seat" to this? some flights offer, for an extra fee, a guaranteed seat, meaning that you can either have an empty seat next to you (I guess technically you could do this buy clicking the "add seat" option today), or if it's you and another person, an entire row to yourself.

@evanrich

Copy link
Copy Markdown

boarding group might be an option too?

@johanohly

Copy link
Copy Markdown
Owner

Thanks for the contribution! I ended up solving this more generally in #679 by adding per-passenger custom fields, including multi-select fields. That covers seat extras without baking a fixed list into AirTrail, so I'm closing this in favor of that approach.

@johanohly johanohly closed this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants