aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript
AgeCommit message (Collapse)Author
2018-03-29Merge pull request #418 from af83/6156-journey_pattern-translationscedricnjanga
Refs #6156 Update english journey pattern translations
2018-03-29Refs #6156 Fix typocedricnjanga
2018-03-29Refs #6156 Update Vehicle journey translationscedricnjanga
2018-03-29Refs #6075 Change default attributes for stop areascedricnjanga
2018-03-29Refs #6075 Set defaults attributes for stop point depending on stop area kindcedricnjanga
2018-03-29Prevent multiple concurent queries for routes costsZog
2018-03-29Refs #6248 Get journey pattern total distance and kms in first rendercedricnjanga
2018-03-29Refs #6156 Update translations for react validate buttonscedricnjanga
2018-03-27Refs #6156 Update english journey pattern translationscedricnjanga
2018-03-27Merge pull request #406 from af83/6303-vj-edit-modal-labelLuc Donnet
Refs #6303 Fix published journey identifier label
2018-03-26Refs #6220 Change conditions to displays vehicle journeys errorscedricnjanga
2018-03-23Refs #6303 Fix published journey identifier label6303-vj-edit-modal-labelcedricnjanga
2018-03-15JourneyPatternsCollection#show: Fallback to route costsTeddy Wing
When editing a `JourneyPattern`, you can edit the distance & time costs between stops. We want to pre-fill these cost values (in the input fields) if they haven't already been set by a user. This way, they get an existing estimate of the cost and don't have to enter a value manually unless the default doesn't work. The pre-filled values come from `Route#costs`, which get calculated ahead of time via the TomTom API. Add a new `fetchRouteCosts` function that will fetch the costs for the current route from the API. This function also caches the value on `actions` so we don't keep making requests since the data isn't going to change. Put the cached fetch in a `requestAnimationFrame` as a sort of timeout to prevent a warning from React complaining about doing this during a `render()` call. Update `getTimeAndDistanceBetweenStops` to use the cost value from the route costs instead of the journey pattern costs if it doesn't exist. The `totalDistance` and `totalTime` we moved into `componentWillUpdate` instead of `render()` because we thought that might be the cause of the `render()` warning I mentioned above. Decided to leave this part in even though it doesn't have anything to do with the goal of the changes here, because it seemed like an okay change. The `RECEIVE_ROUTE_COSTS` reducer will update the state with route costs. We need the default distance:0 time:0 to avoid infinitely fetching the costs API if a cost with the given key can't be found. Put the route cost API URL in `window.routeCostsUrl` to allow us to get it from the Rails URL helper. Huge thanks to Johan for pairing with me on this code and walking me through the setup for integrating the route costs JSON response into the frontend interface. Refs #6203
2018-03-15Hide full_journey_time/commercial_journey_time labels when ↵Alban Peignier
costs_in_journey_patterns feature is not present. Refs #6102
2018-03-15Merge pull request #370 from af83/6102-commercial-missionsAlban Peignier
Add label in JourneyPattern Editor header. Refs #6102
2018-03-15Fixes extraHeaders position in VehicleJourneys component. Refs #61436143-extra-rows-in-vjs-editor-headerAlban Peignier
2018-03-15Refs #6143; Configurable extra headers on VJs editorZog
2018-03-14Fix bug on VJs editor when invalid journeys are already in db.Zog
2018-03-14Merge pull request #348 from af83/6036-fix-journeys-editorAlban Peignier
Fix the journeys time editor. Refs #6036
2018-03-14Merge pull request #367 from af83/6042-detailed_purchase_windowsAlban Peignier
Add detailed view for purchase windows. Refs #6042
2018-03-13Merge pull request #371 from af83/5567-routes-map-on-line-showLuc Donnet
5567 Disable routes by default
2018-03-12Refs #5567; Disable routes by default5567-routes-map-on-line-showZog
2018-03-12Refs #6133; Add options on the Exports, and forward them tu the UXZog
2018-03-12Refs #6102; Add label in JourneyPattern Editor header6102-commercial-missionsZog
Refs #6104; Add commercial-only journey time in JourneyPattern Editor
2018-03-09Refs #6042; Add detailed view for purchazse windows6042-detailed_purchase_windowsZog
2018-03-05Merge pull request #349 from af83/6039-handle-long-delats-in-vj-editorLuc Donnet
6039 Display '+' when a delta is > 99
2018-03-03Merge pull request #351 from ↵Luc Donnet
af83/6008-no-transition-time-for-journeys-start-and-end 6008 Use same time for arrival & departure in 1st and last stops
2018-03-02Merge pull request #337 from af83/5982-add-error-message-on-vj-creation-modalteddywing
5982 Show error in VJ creation modal when no JP is selected
2018-03-02Show labels on a signle columnenhance-map-with-several-routesZog
Display full name on hover
2018-02-27Refs #6008; Use same time for arrival & departure in 1st and last stops6008-no-transition-time-for-journeys-start-and-endZog
2018-02-27Refs #6039; Display '+' when a delta is > 996039-handle-long-delats-in-vj-editorZog
2018-02-27Refs #6063; Fix the journeys time editor6036-fix-journeys-editorZog
2018-02-23Refs #5982; Show error in VJ creation modal when no JP is selectedZog
2018-02-23Hide opposite routesZog
2018-02-23Better UI for maps showing mltiple routesZog
2018-02-22Refs #5993; Homogenize calendars display5993-enhance-detailed-calendarZog
2018-02-21Refs #5942; Apply users TZ when computing a schedule5942-apply-user-tzZog
2018-02-21Refs #5944; Skip automated times calculation when no start time is set5944-skip-schedule-calculation-when-no-time-is-setZog
2018-02-20Refs #5901; Makes TimeTable search accent insensitiveZog
2018-02-20Merge pull request #294 from af83/5863-use-shallow-urls-for-referentialsLuc Donnet
5863 Remove workbench id from the querystring
2018-02-20Refs #5863 @6h; Remove workbench id from the querystringZog
Infer it when possible, and use a nested otherwise
2018-02-19Merge pull request #303 from af83/5899-use-waiting-time-in-schedulesAlban Peignier
Use waiting_time in schedules computation. Refs #5899
2018-02-19Refs #5853; Better cssZog
2018-02-19Refs #5853 @2h; Add a detailed calendars view on VJs editorZog
2018-02-12Refs #5899 @1h; Use waiting_time in schedules computation5899-use-waiting-time-in-schedulesZog
2018-02-12Refs #5888; Fix I18n in JS5888-fix-i18n-in-jsZog
2018-02-09Refs #4126 @2h; Add more translationsZog
2018-02-09Refs #4126 @6h; Add i18n to JSZog
2018-02-06Merge pull request #276 from af83/5825-fix-vjs-indexLuc Donnet
5825 Fix info window behaviour on VJs editor
2018-02-02Refs #3542; Add a date lookupZog