<feed xmlns='http://www.w3.org/2005/Atom'>
<title>chouette-core/app/javascript, branch 6156-journey_pattern-translations</title>
<subtitle>Chouette manage transport static data</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/'/>
<entry>
<title>Refs #6156 Update english journey pattern translations</title>
<updated>2018-03-28T05:48:14+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2018-03-28T05:48:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=d0c6da104082a9279daac7d732c1f32a5e830117'/>
<id>d0c6da104082a9279daac7d732c1f32a5e830117</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #406 from af83/6303-vj-edit-modal-label</title>
<updated>2018-03-27T07:10:37+00:00</updated>
<author>
<name>Luc Donnet</name>
</author>
<published>2018-03-27T07:10:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=b6124228b93680a797e4cd555ecff71a9889386d'/>
<id>b6124228b93680a797e4cd555ecff71a9889386d</id>
<content type='text'>
Refs #6303 Fix published journey identifier label</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Refs #6303 Fix published journey identifier label</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6220 Change conditions to displays vehicle journeys errors</title>
<updated>2018-03-26T07:05:28+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2018-03-23T13:00:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=c2a288a9d9db99ce06eb963246fc5e760cfb831d'/>
<id>c2a288a9d9db99ce06eb963246fc5e760cfb831d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6303 Fix published journey identifier label</title>
<updated>2018-03-23T14:41:17+00:00</updated>
<author>
<name>cedricnjanga</name>
</author>
<published>2018-03-23T14:41:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=165bf2d655434b50559ecf835a53d418b71b4d8a'/>
<id>165bf2d655434b50559ecf835a53d418b71b4d8a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>JourneyPatternsCollection#show: Fallback to route costs</title>
<updated>2018-03-15T16:44:22+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-15T15:19:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=fa0fdbe92d441e1a226a56c792c014a032fd46e9'/>
<id>fa0fdbe92d441e1a226a56c792c014a032fd46e9</id>
<content type='text'>
When editing a `JourneyPattern`, you can edit the distance &amp; 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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When editing a `JourneyPattern`, you can edit the distance &amp; 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
</pre>
</div>
</content>
</entry>
<entry>
<title>Hide full_journey_time/commercial_journey_time labels when costs_in_journey_patterns feature is not present. Refs #6102</title>
<updated>2018-03-15T13:02:53+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-03-15T13:02:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=5557c7f1cee12a4c8214342ab9a9f125eb8886de'/>
<id>5557c7f1cee12a4c8214342ab9a9f125eb8886de</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #370 from af83/6102-commercial-missions</title>
<updated>2018-03-15T12:18:02+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-03-15T12:18:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=9dff6c9addb3dfedffd9f9dd53c6f815b91d082e'/>
<id>9dff6c9addb3dfedffd9f9dd53c6f815b91d082e</id>
<content type='text'>
Add label in JourneyPattern Editor header. Refs #6102 </content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add label in JourneyPattern Editor header. Refs #6102 </pre>
</div>
</content>
</entry>
<entry>
<title>Fixes extraHeaders position in VehicleJourneys component. Refs #6143</title>
<updated>2018-03-15T12:11:33+00:00</updated>
<author>
<name>Alban Peignier</name>
</author>
<published>2018-03-15T12:11:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=7f201cf151c49b63f356b49c9e714116e9714f2c'/>
<id>7f201cf151c49b63f356b49c9e714116e9714f2c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Refs #6143; Configurable extra headers on VJs editor</title>
<updated>2018-03-15T12:08:52+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-03-12T09:42:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=410457e1c1cad57ed2109fe8de9d1dc1eecf353f'/>
<id>410457e1c1cad57ed2109fe8de9d1dc1eecf353f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix bug on VJs editor when invalid journeys are already in db.</title>
<updated>2018-03-14T16:01:24+00:00</updated>
<author>
<name>Zog</name>
</author>
<published>2018-03-14T16:01:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/fork/chouette-core/commit/?id=4c84e00c87d7aaa4263c8b18f3ab7481a47951f1'/>
<id>4c84e00c87d7aaa4263c8b18f3ab7481a47951f1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
