Skip to content

v0.1.1

Latest

Choose a tag to compare

@LRenTi LRenTi released this 09 Apr 19:21
· 18 commits to master since this release
6c07134

Type

enhancement, other


Description

  • Automated airline data retrieval by reading from a JSON file in python/main.py.
  • Enhanced the UI with a dynamic airline selection dropdown and map updates based on selection in js/map.js.
  • Implemented sidebar toggle functionality in js/sidebar.js.
  • Redesigned the UI to include a sidebar for airline selection and future features in index.html.
  • Styled the new UI layout, including the sidebar and map controls, in css/sidebar.css and css/style.css.
  • Updated Python dependencies in requirements.txt.
  • Added a JSON file data/airlines.json containing airline data for UI selection.

Changes walkthrough

Relevant files
Enhancement
main.py
Automate Airline Data Retrieval from JSON File                     

python/main.py

  • Added JSON import for reading airline data from a file.
  • Implemented a loop to process multiple airlines from a JSON file.
  • Removed hardcoded airline ID input and replaced it with automatic
    retrieval from the JSON file.
  • Added print statements to indicate the retrieval status for each
    airline ID.
  • +19/-14 
    map.js
    Dynamic Airline Selection and Map Update                                 

    js/map.js

  • Introduced a function to dynamically populate airline selection
    dropdown from JSON.
  • Added event listener to update the map based on selected airline.
  • Implemented initial map creation for the first airline in the list.
  • Added map removal before creating a new one to avoid overlay issues.
  • +48/-24 
    sidebar.js
    Implement Sidebar Toggle Functionality                                     

    js/sidebar.js

  • Implemented sidebar toggle functionality for showing and hiding the
    sidebar.
  • Added event listeners for sidebar show/hide buttons.
  • +33/-0   
    index.html
    Redesign UI with Sidebar and Airline Selection                     

    index.html

  • Added Bootstrap and FontAwesome for styling.
  • Restructured the HTML to include a sidebar with airline selection.
  • Included scripts and stylesheets for map and sidebar functionality.
  • Added placeholders for future features in the sidebar.
  • +169/-20
    sidebar.css
    Style Sidebar with Custom CSS                                                       

    css/sidebar.css

  • Defined styles for the sidebar including animations and layout.
  • Styled the sidebar content, menu, and footer.
  • Added theme-specific styles for the chiller-theme.
  • +483/-0 
    style.css
    Update Styles for New UI Layout                                                   

    css/style.css

  • Adjusted body and map styles to accommodate the new sidebar.
  • Added styles for map controls to match the dark theme.
  • +24/-4   
    Dependencies
    requirements.txt
    Update Python Dependencies                                                             

    requirements.txt

    • Added new Python package dependencies required for the project.
    +33/-1   
    Configuration changes
    airlines.json
    Add Airline Data JSON File                                                             

    data/airlines.json

    • Added a JSON file containing airline data for selection in the UI.
    +16/-0   

    What's Changed

    • Updated UI (Dark theme, sidebar), first Airlineselction function & updated python script by @LRenTi in #2

    New Contributors

    • @LRenTi made their first contribution in #2

    Full Changelog: v0.1...v0.1.1