aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript
AgeCommit message (Collapse)Author
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 #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
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