Skip to content

Add flight time editing and manual entry with yyyy-mm-dd date format#1

Merged
mschmid09 merged 10 commits intomainfrom
copilot/edit-flight-timing-feature
Jan 15, 2026
Merged

Add flight time editing and manual entry with yyyy-mm-dd date format#1
mschmid09 merged 10 commits intomainfrom
copilot/edit-flight-timing-feature

Conversation

Copy link
Contributor

Copilot AI commented Jan 14, 2026

Users need to correct flight times when data is inaccurate and manually enter flight details when searches return no results.

Changes

Time Editing

  • Clock icon (🕒) next to each flight opens modal with text inputs
  • Date format: yyyy-mm-dd hh:mm (24-hour time, space separator)
  • Custom times passed to backend via hidden form fields and applied during iCal generation
  • Client-side validation ensures departure precedes arrival
  • Pattern validation enforces correct format

Manual Entry

  • "Enter Flight Details Manually" button surfaces when flight lookup fails
  • Form captures: flight number, airline, airports/codes, times, timezones
  • Date format: yyyy-mm-dd hh:mm (24-hour time, space separator)
  • Server validates airport codes (3 uppercase letters), datetime formats, and required fields
  • New make_ics_from_manual_data() handles yyyy-mm-dd hh:mm format

Date Format Standardization

  • All date/datetime inputs use yyyy-mm-dd format (never mm/dd/yyyy)
  • Text inputs with pattern validation replace HTML5 date/datetime-local inputs
  • Clear placeholders guide users on expected format
  • Homepage flight date: yyyy-mm-dd
  • Manual entry and time edit modal: yyyy-mm-dd hh:mm

Technical improvements

  • HTML5 DOCTYPE declarations added to all templates
  • UTC timestamps for iCal dtstamp fields
  • Import organization (moved re to top-level imports)
  • Backend datetime parsing updated to handle yyyy-mm-dd hh:mm format

Screenshots

Homepage with yyyy-mm-dd format

Manual entry form with yyyy-mm-dd hh:mm format

Time edit modal with yyyy-mm-dd hh:mm format

Implementation Note

Existing make_ical_event() expects YYYYMMDD HHMM format from flight API, while make_ics_from_manual_data() accepts YYYY-MM-DD HH:MM from text inputs with pattern validation. Both convert to timezone-aware datetime objects before iCal generation.

Original prompt

I need you to create a PR which allows you to edit the timing of a flight if the times are wrong, maybe if the flights are found there's a clock icon next to it which brings a time changing pop up. Also allow for an option to manually input the details of no flight is found for the inputted flight code - everything that's needed. Keep the design and feel the same throughout


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits January 14, 2026 22:58
Co-authored-by: mschmid09 <88450858+mschmid09@users.noreply.github.com>
…imestamps

Co-authored-by: mschmid09 <88450858+mschmid09@users.noreply.github.com>
Co-authored-by: mschmid09 <88450858+mschmid09@users.noreply.github.com>
Copilot AI changed the title [WIP] Add ability to edit flight timing via popup Add flight time editing and manual entry capabilities Jan 14, 2026
Copilot AI requested a review from mschmid09 January 14, 2026 23:14
@mschmid09
Copy link
Owner

use date format yyyy-mm-dd for inputs never mm/dd/yyyy @copilot

Co-authored-by: mschmid09 <88450858+mschmid09@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 15, 2026

use date format yyyy-mm-dd for inputs never mm/dd/yyyy @copilot

Done! Changed all date inputs to use yyyy-mm-dd format (never mm/dd/yyyy). All datetime inputs now show yyyy-mm-dd hh:mm format with clear placeholders and pattern validation. (01a8c8e)

Updated formats:

  • Homepage flight date: yyyy-mm-dd
  • Manual entry times: yyyy-mm-dd hh:mm
  • Time edit modal: yyyy-mm-dd hh:mm

Homepage with yyyy-mm-dd
Manual entry with yyyy-mm-dd hh:mm
Time modal with yyyy-mm-dd hh:mm

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.flightradar24.com
    • Triggering command: /usr/bin/python python app.py (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Add flight time editing and manual entry capabilities Add flight time editing and manual entry with yyyy-mm-dd date format Jan 15, 2026
@mschmid09 mschmid09 marked this pull request as ready for review January 15, 2026 00:19
@mschmid09 mschmid09 merged commit 7f0ad2f into main Jan 15, 2026
2 checks passed
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.

2 participants