aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript
AgeCommit message (Collapse)Author
2018-04-26:fire: log6486-fix-bumpy-frontZog
2018-04-26Refs #6486; Fix bumpy frontZog
2018-04-26Merge pull request #471 from af83/6491-timetable-confirm-modal-cancelAlban Peignier
Fix cancel button actions in confirm modal. Refs #6491
2018-04-25Refs #6620; Do not show the 'chrono' on the last stopZog
2018-04-25Refs #6620; Show 'chrono' icon in computed journeysZog
2018-04-25Refs #6779; Fix diabled buttons in archived referentials6779-fix-info-button-on-vjs-editorZog
2018-04-25Use CustomFields default values in React componentsZog
2018-04-25Merge pull request #519 from af83/6472-itls-exclusionsAlban Peignier
Add Constraint Zone exclusions to journeys. Refs #6472
2018-04-25Refs #6472; Add Constraint Zone exclusions to journeys6472-itls-exclusionsZog
along with the React interface
2018-04-24Refs #6633; Prevent duplicate error message during journey creationZog
2018-04-24Refs #6376 Add some english translationscedricnjanga
2018-04-23Refs #6664; Fix journeys creation6664-fix-journeys-creationZog
2018-04-19Refs #6193; Show journey length in VJs editorZog
If `journey_length_in_vehicle_journeys` feature is enabled
2018-04-16Refs #6449; Fix tags field when it is emptyZog
2018-04-16Refs #6449; Fix tags in timetables editorZog
2018-04-16Refs #6551; Add CustomFields to JourneyPatterns6551-add_custom_field_values_to_journey_patternsZog
2018-04-13Refs 6456; Fix timtables button in VJs editorZog
Don't open the timetables of the return journeys if these are displayed. Same for the purchase windows
2018-04-13Merge pull request #439 from af83/6383-stop-point-default-attributesLuc Donnet
Refs #6383 Fix Stop point defautlt attributes
2018-04-12Refs #6491 Fix cancel button actions in confirm modal6491-timetable-confirm-modal-cancelcedricnjanga
2018-04-11Make ReactJS views IE-compliant :firework:ie-fixesZog
2018-04-10Refs #6411; Fix routes editorZog
Disable "moveup" action on first stop, and "mouvedown" on last
2018-04-10Refs #6459; Use first stop's TZ as base TZ for schedules computationZog
2018-04-10Merge pull request #445 from af83/6370-translations-2Luc Donnet
Refs #6370 Add some more translations
2018-04-10Merge pull request #448 from af83/6424-clean-timetable-i18nLuc Donnet
Refs #6424 Clean timetable i18n
2018-04-06Refs #6311; Fix Purchase Windows assignment6311-fix-calendars-assignmentZog
2018-04-05Refs #6424 Clean timetable i18n6424-clean-timetable-i18ncedricnjanga
2018-04-05Merge pull request #442 from af83/6213-fix-journey-pattern-editorLuc Donnet
6213 Fix JourneyPattern editor
2018-04-04Merge branch 'master' into 6370-translations-26370-translations-2cedricnjanga
2018-04-04Refs #6370 Add some more translationscedricnjanga
2018-04-04Refs #6405; Allow for Timetables & Calendars without periods6405-allow-timtables-without-periodsZog
2018-04-04Refs #6213; Fix JourneyPattern editor6213-fix-journey-pattern-editorZog
Fix a bug when a Route uses the same stop multiple times
2018-04-04Refs #6316; String-type CustomFieldsZog
2018-04-03Merge pull request #436 from af83/6386-fix-timetables-editorLuc Donnet
6386 Fix Timetables edit
2018-04-03Refs #6383 Fix Stop point defautlt attributes6383-stop-point-default-attributescedricnjanga
2018-04-03Refs #6386; Fix Timetables edit6386-fix-timetables-editorZog
2018-04-03Refs #6400 Fix typos for VJ i18n6400-vehicle-journey-i18ncedricnjanga
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