Closed ANIALLATOR114 closed 2 days ago
This pull request implements visual updates and performance improvements across multiple files. The changes include CSS styling enhancements, HTML structure modifications, JavaScript optimizations, and database query refinements. The updates aim to improve the user interface, enhance code readability, and optimize data retrieval processes.
sequenceDiagram
participant User
participant System
User->>System: Call get_realtime_schedules_for_trips(trips)
System->>System: Calculate sixty_mins_ago
System->>System: Execute stops_and_trips_statement
System->>System: Retrieve stop_times_and_trips
System->>User: Return most_recent_updates
journey
title Updated Copy-to-Clipboard Feature
section Copy Table
User->System: Clicks 'Copy Table' button
System->User: Copies formatted table to clipboard
System->User: Shows 'Table copied to clipboard' popup
section Copy Raw
User->System: Clicks 'Copy Raw' button
System->User: Copies raw table to clipboard
System->User: Shows 'Table copied to clipboard' popup
classDiagram
class GTFSRealtimeImporter {
+bulk_upsert_stop_times_statement(objects_to_commit)
+bulk_upsert_stop_times(objects_to_commit, session)
+get_data() dict | None
+import_stop_times(data, progress) int
}
Change | Details | Files |
---|---|---|
Improved table copying functionality and styling |
|
SimplyTransport/templates/widgets/copy_to_clipboard.html SimplyTransport/templates/realtime/stop.html SimplyTransport/static/static/style.css |
Optimized realtime schedule retrieval |
|
SimplyTransport/domain/realtime/realtime_schedule/repo.py |
Enhanced navbar and footer design |
|
SimplyTransport/templates/navbar.html SimplyTransport/templates/footer.html |
Improved performance of stop times bulk upsert |
|
SimplyTransport/lib/gtfs_realtime_importers.py |
Updated about page content and base HTML template |
|
SimplyTransport/templates/about.html SimplyTransport/templates/base.html |
Minor updates and version bump |
|
SimplyTransport/lib/settings.py SimplyTransport/templates/events/events_main.html SimplyTransport/domain/realtime/stop_time/model.py |
closes #31
Summary by Sourcery
Enhance the user interface and performance of SimplyTransport by refining the copy-to-clipboard feature, updating navigation elements, and optimizing data handling in the GTFS real-time importers. Extend the real-time data fetching window and update documentation to align with the current feature set. Increment the application version to 0.6.0.
Enhancements:
Documentation:
Chores: