Closed ANIALLATOR114 closed 2 months ago
This pull request implements new statistics web pages for the SimplyTransport application. The changes include the addition of expandable sections for statistics tables, new templates for displaying operator data, static data, and stop features data, and updates to the routing and service layers to support these new pages. Additionally, some refactoring and cleanup were done in the controllers and OpenAPI configuration.
Files | Changes |
---|---|
SimplyTransport/templates/stats/operator_data.html SimplyTransport/templates/stats/static_data.html SimplyTransport/templates/stats/stop_features_data.html |
Replaced placeholder text with tables displaying relevant statistics and added JavaScript for table sorting functionality. |
SimplyTransport/templates/stats/index.html SimplyTransport/templates/widgets/toggle_visibility.html |
Added expandable sections for different statistics categories and updated the toggle visibility script. |
SimplyTransport/controllers/__init__.py SimplyTransport/controllers/stats.py |
Added new route handlers and a new controller for statistics endpoints. |
SimplyTransport/domain/services/statistics_service.py SimplyTransport/domain/database_statistics/model.py |
Added new methods and models to support the calculation and representation of statistics with percentage values. |
SimplyTransport/lib/openapi/openapiconfig.py SimplyTransport/templates/api_docs.html |
Updated OpenAPI configuration and API documentation links. |
SimplyTransport/templates/base.html |
Moved script tags for better loading performance and added a new script for charts. |
Expandable sections for statistics tables
Summary by Sourcery
This pull request introduces new statistics web pages with sortable tables for operator route data, operator trip data, and stop features data. It also adds expandable sections on the statistics index page and updates the API documentation links.