Skip to content

Commit e2ddaec

Browse files
Merge pull request #475 from opentripplanner/dev
Feature Release: October 21, 2021
2 parents 19ea126 + 85f28da commit e2ddaec

File tree

85 files changed

+14318
-6242
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+14318
-6242
lines changed

__tests__/components/viewers/__snapshots__/stop-viewer.js.snap

+11,565-5,611
Large diffs are not rendered by default.

__tests__/reducers/__snapshots__/create-otp-reducer.js.snap

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Object {
1818
"realtimeEffectsDisplayThreshold": 120,
1919
"routingTypes": Array [],
2020
"stopViewer": Object {
21+
"nearbyRadius": 250,
2122
"numberOfDepartures": 3,
2223
"showBlockIds": false,
2324
"timeRange": 345600,
@@ -100,7 +101,7 @@ Object {
100101
"ui": Object {
101102
"diagramLeg": null,
102103
"locale": null,
103-
"localizedMessages": Object {},
104+
"localizedMessages": null,
104105
"mobileScreen": 1,
105106
"printView": false,
106107
"routeViewer": Object {

__tests__/test-utils/mock-data/store.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import clone from 'lodash/cloneDeep'
77
import { Provider } from 'react-redux'
88
import configureStore from 'redux-mock-store'
99
import thunk from 'redux-thunk'
10+
import { IntlProvider } from 'react-intl'
1011

1112
import {getInitialState} from '../../../lib/reducers/create-otp-reducer'
1213

@@ -45,7 +46,9 @@ export function mockWithProvider (
4546
const store = configureStore(storeMiddleWare)(storeState)
4647
const wrapper = mount(
4748
<Provider store={store}>
48-
<ConnectedComponent {...connectedComponentProps} />
49+
<IntlProvider>
50+
<ConnectedComponent {...connectedComponentProps} />
51+
</IntlProvider>
4952
</Provider>
5053
)
5154

example-config.yml

+3
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,9 @@ itinerary:
346346
dateTime:
347347
longDateFormat: DD-MM-YYYY
348348
# stopViewer:
349+
# # The radius (in meters) to use when searching for nearby stops and other
350+
# # amenities (rental vehicles, park and rides) to show for the focused stop.
351+
# nearbyRadius: 250
349352
# # The max. number of departures to show for each trip pattern
350353
# # in the stop viewer Next Arrivals mode
351354
# # (defaults to 3 if unspecified).

0 commit comments

Comments
 (0)