This pull request refactors the mobility-utils.js file and adds a new parameter to the renderMobilityEntry function to enable different levels of detail for the mobility entries. It also updates the MobilityCard and mobility.js components to use the new parameter and show concise or detailed information accordingly. It deletes the package.json file as it is not needed.
Walkthrough
Add a detailed parameter to the renderMobilityEntry function to control the level of detail for displaying mobility entries (link, link, link)
Extract the logic of formatting time strings for mobility entries into a new helper function formatTimes and use it in the renderMobilityEntry function (link, link)
Reorder the import statements in the mobility-utils.js file to follow a consistent and logical order (link)
🤖 Generated by Copilot at 21ada16
Summary
📝🌟♻️
This pull request refactors the
mobility-utils.js
file and adds a new parameter to therenderMobilityEntry
function to enable different levels of detail for the mobility entries. It also updates theMobilityCard
andmobility.js
components to use the new parameter and show concise or detailed information accordingly. It deletes thepackage.json
file as it is not needed.Walkthrough
detailed
parameter to therenderMobilityEntry
function to control the level of detail for displaying mobility entries (link, link, link)formatTimes
and use it in therenderMobilityEntry
function (link, link)mobility-utils.js
file to follow a consistent and logical order (link)package.json
file (link)Screenshots