Files
rickyandClaude Opus 5.5 4d3dc7150a Add spreadsheet flight import; fix oil/fuel consumption charts
Flight import (owners, Flights tab → Import from spreadsheet):
- Upload .xlsx or .csv, preview, then confirm. Columns are matched by
  header name (Date, From, To, Tach, Hobbs, Oil, Fuel, Flight Time).
- Each flight's time is derived from the previous row's meter reading;
  rows are kept in file order so typos (tach going backwards) are
  flagged and skipped while the next good row absorbs the time.
- Unchanged tach imports as a 0.0 hr entry so fuel/oil isn't lost;
  "Full" fuel is warned about; re-imports skip existing rows.
- History only: component hours are untouched unless the owner opts in
  to advancing the aircraft's meters to the last reading.
- Upload redirects to a GET preview (Turbo ignores 200 renders after a
  form POST, which made the button appear to do nothing).

Consumption charts:
- Replace per-fill math (qty ÷ hours since last add), which spiked to
  80 gal/hr on partial fills and top-offs, with a rolling rate (total
  added ÷ hours over a trailing 10 h fuel / 25 h oil window).
- Headline shows recent (last ~50/100 hrs) and lifetime rates; straight
  chart lines instead of splines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 19:23:47 -05:00

614 B

1DateFromToTach TimeHobbs TimeOil AddedFuel AddedFlight Time
210/17/26KAAAKBBB7277.8141.3N14.31.6
310/17/26KBBBKCCC7278.4142.1NN0.8
410/18/26KCCCKDDD7278.9143.0N12.10.9
510/18/26KDDDKCCC7279.5143.8NN0.8
610/20/26KCCCKEEE7280.6145.0NN1.2
710/20/26KEEEKCCC7281.8146.4N12.91.4
810/21/26KCCCKFFF7282.4147.2N7.30.8
910/21/26KFFFKCCC7283.2148.1NN0.9
1010/23/26KCCCKGGG7283.0149.018.70.9
1110/23/26KGGGKCCC7284.5149.8NN0.8
1210/24/26KCCCKHHH7287.2152.8N8.13.0
1310/24/26KHHHKJJJ7289.1154.8N15.452.0
1410/24/26KJJJKKKK7290.3156.1NN1.3
15