Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release (2021-07) #402

Merged
merged 118 commits into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
7389e85
fix(ConnectedTransitiveOverlay): Expose new props from OTP-UI Transit…
binh-dam-ibigroup May 6, 2021
2842877
fix(transitive): Upgrade to core-utils/transitive-overlay 1.0.7.
binh-dam-ibigroup May 19, 2021
79b042e
refactor(transitive): Prevent some unnecessary rerenders, tweak comme…
binh-dam-ibigroup May 19, 2021
e8d72e7
ci: remove codecov
evansiroky May 19, 2021
128e77d
fix(calltaker): Add config to show call hist on load; clear itins on …
binh-dam-ibigroup May 20, 2021
4e571b5
Merge pull request #368 from opentripplanner/remove-codecov
binh-dam-ibigroup May 20, 2021
5dfbc61
refactor: use a selector to compute transitive data
evansiroky May 21, 2021
b05c167
refactor: make selector even more selective
evansiroky May 21, 2021
cf720f4
feat(mailables): add mailables for calltaker
landonreed May 21, 2021
cd1bd19
refactor(calltaker): Start a call on clicking Plan button.
binh-dam-ibigroup May 21, 2021
cd054ce
refactor(util/state.js): Tweak selector to prevent extra itinerary.js…
binh-dam-ibigroup May 25, 2021
de56380
Merge pull request #370 from opentripplanner/transitive-styles-eas
binh-dam-ibigroup May 25, 2021
6672b59
refactor(util/state.js): Reuse getVisibleItinerary, add JSDoc.
binh-dam-ibigroup May 25, 2021
09cac4d
Update lib/reducers/call-taker.js
binh-dam-ibigroup May 26, 2021
4638a55
refactor(call-taker): Autostart call on plan btn click only.
binh-dam-ibigroup May 28, 2021
3cbf55c
Merge pull request #369 from opentripplanner/calltaker-recording-tweaks
landonreed Jun 3, 2021
b14f529
fix(batch-routing-panel.js): Added the reverse directions button
Jun 3, 2021
2048780
chore(lint): Add pre-commit hook to enforce formatting.
binh-dam-ibigroup Jun 3, 2021
1e12f52
Merge branch 'dev' into mailables
landonreed Jun 3, 2021
f92ffdb
perf(transitive): avoid unnecessary rerenders
evansiroky Jun 3, 2021
fbf4506
style(app-menu): Test styles
binh-dam-ibigroup Jun 3, 2021
398a4bb
chore(lint): Remove interference with yarn lint.
binh-dam-ibigroup Jun 3, 2021
c2c9ee9
refactor(call-taker): increase call history limit
landonreed Jun 4, 2021
d44fd2f
Revert "style(app-menu): Test styles"
binh-dam-ibigroup Jun 4, 2021
e66a45d
chore(lint): Use only mastarm eslint settings.
binh-dam-ibigroup Jun 4, 2021
72e65ac
Merge pull request #379 from opentripplanner/transitive-styles-eas
binh-dam-ibigroup Jun 4, 2021
344fc9f
refactor(util/state): Address PR comments.
binh-dam-ibigroup Jun 4, 2021
32d6757
fix(batch-routing-panel.js): Fixed the code so the button shows.
Jun 7, 2021
61236f2
refactor(transitive-overlay): Remove componentShouldUpdate
binh-dam-ibigroup Jun 8, 2021
da12627
fix(calltaker): Do not require modules in config.
binh-dam-ibigroup Jun 9, 2021
b9e07a1
fix(SavedTripScreen): Initialize trip monitored days using itin trans…
binh-dam-ibigroup Jun 10, 2021
0e87eb2
docs(tests/itinerary): Fix comment typo.
binh-dam-ibigroup Jun 10, 2021
4eaa000
refactor(util/itinerary): Add monitored days calculation for non-tran…
binh-dam-ibigroup Jun 10, 2021
1616cfa
refactor(batch-routing-panel.js): Added the class back for the Viewer…
Jun 11, 2021
b63fbe7
Merge pull request #377 from opentripplanner/precommit-code-formatting
landonreed Jun 11, 2021
2532fa9
refactor(mailables): update config, add menu item in navbar
landonreed Jun 14, 2021
d66db6d
refactor(mailables): tweak window height
landonreed Jun 14, 2021
b9be1c3
Merge branch 'dev' into mailables
landonreed Jun 14, 2021
a0e0384
refactor(mailables): fix lint
landonreed Jun 14, 2021
5c4d8f6
Update lib/util/state.js per PR suggestion.
binh-dam-ibigroup Jun 15, 2021
2584b1f
Merge pull request #366 from opentripplanner/transitive-styles
binh-dam-ibigroup Jun 15, 2021
fa122b9
refactor: remove otpState middleman
evansiroky Jun 16, 2021
d7c4dc9
Merge branch 'dev' into refactor-otp-state-selectors
evansiroky Jun 16, 2021
6cc6a0d
refactor: add a few otpState fixes that got forgotten
evansiroky Jun 16, 2021
2a15f62
Merge pull request #383 from opentripplanner/fix-non-calltaker-loading
evansiroky Jun 17, 2021
6c23d7e
fix(routingQuery): Properly revert to list view after planning trip.
philip-cline Jun 17, 2021
85f47ab
test(Update snapshots):
philip-cline Jun 17, 2021
6e4b2c0
refactor(Add FIXME):
philip-cline Jun 17, 2021
cdc6c7c
Merge pull request #380 from opentripplanner/bug-add-reverse-directio…
evansiroky Jun 17, 2021
6058031
Merge pull request #385 from opentripplanner/fix-monitoredtrip-defaul…
evansiroky Jun 17, 2021
8ae80cb
refactor(mailables): address remaining mailables feedback
landonreed Jun 22, 2021
b818fb2
refactor(mailables): check if mailables is enabled
landonreed Jun 22, 2021
f04d90a
refactor(mailables): address PR comments
landonreed Jun 23, 2021
5638633
refactor(mailables): address remainder of PR feedback
landonreed Jun 23, 2021
275a97e
Merge branch 'dev' into mailables
landonreed Jun 23, 2021
dfc83e6
refactor(config): add config util file
landonreed Jun 23, 2021
45471f7
docs: fix jsdoc
landonreed Jun 23, 2021
f9492f4
feat(field-trip): add daily report feature; improve perf
landonreed Jun 23, 2021
76766a7
refactor(field-trip): clean up url method
landonreed Jun 23, 2021
57fa70a
refactor(mailables): address PR comments
landonreed Jun 24, 2021
64bb147
refactor: separate mailable components
evansiroky Jun 24, 2021
428ba0c
feat(form): add plan first/previous/next/last buttons
landonreed Jun 25, 2021
7b7dc52
refactor(api): simplify getRoutingParams; skip empty string/null params
landonreed Jun 25, 2021
be7a1bc
refactor(plan-first-last): fix time offset
landonreed Jun 25, 2021
71802b7
refactor: update field-trip-list.js with React#useMemo
landonreed Jun 25, 2021
28b6721
refactor(mailables): update LETTER_FIELDS jsdoc
landonreed Jun 25, 2021
f9c514c
refactor(mailable): better name css-in-js variable
evansiroky Jun 25, 2021
fa5dbec
fix(calltaker): Reinstate searchId _CALL suffix for previewing past c…
binh-dam-ibigroup Jun 25, 2021
f1f986f
Merge pull request #391 from opentripplanner/mailable-eas
evansiroky Jun 25, 2021
00dbe27
Merge pull request #378 from opentripplanner/mailables
evansiroky Jun 25, 2021
ae0daa4
refactor(Remove DEFAULT itinerary view):
philip-cline Jun 28, 2021
0876bd9
refactor(Fix typos):
philip-cline Jun 28, 2021
701b06d
Merge pull request #387 from opentripplanner/fix-revert-to-list-view
philip-cline Jun 28, 2021
d9c780d
refactor: remove unused import
landonreed Jun 28, 2021
bbc7434
fix(actions/call-taker): Wait for call query to save before refetchin…
binh-dam-ibigroup Jun 28, 2021
48a0718
fix(QueryRecord): Convert arriveBy value to string for OTP-UI.
binh-dam-ibigroup Jun 28, 2021
72cd7de
refactor(field-trip): fix report url
landonreed Jun 28, 2021
c742687
Merge pull request #389 from opentripplanner/ft-add-report
landonreed Jun 28, 2021
a2cfb73
refactor(util/call-taker): Add improved JSON param parsing.
binh-dam-ibigroup Jun 29, 2021
7892055
refactor(actions/call-taker): Convert .thens into awaits in endCall.
binh-dam-ibigroup Jun 29, 2021
5fc3050
Merge branch 'dev' into refactor-otp-state-selectors
evansiroky Jun 29, 2021
a317e28
Update lib/util/call-taker.js
binh-dam-ibigroup Jun 29, 2021
babfeab
Merge pull request #386 from opentripplanner/refactor-otp-state-selec…
evansiroky Jun 29, 2021
0a43793
refactor(calltaker): Make fetchCalls async, change CallRecord key prop.
binh-dam-ibigroup Jun 29, 2021
076454b
Merge branch 'fix-calltaker-recording' of https://github.com/opentrip…
binh-dam-ibigroup Jun 29, 2021
ceb28a7
Merge branch 'dev' into fix-calltaker-recording
binh-dam-ibigroup Jun 29, 2021
d0a9b8b
refactor(plan-first-last): finalize buttons; use styled
landonreed Jun 29, 2021
7fd9672
refactor(plan-first-last): address PR comments
landonreed Jun 29, 2021
0b27f00
Merge branch 'dev' into plan-first-last
landonreed Jun 29, 2021
d24513f
feat(field-trip): Add skeleton code for printing field trips.
binh-dam-ibigroup Jun 29, 2021
73bfdbe
refactor(PrintFieldTripLayout): Decode saved group itineraries.
binh-dam-ibigroup Jun 30, 2021
da26d25
refactor(PrintFieldTripLayout): Refine layout and styles.
binh-dam-ibigroup Jun 30, 2021
05c0ba2
improvement(PrintFieldTripLayout): Set correct window title for print.
binh-dam-ibigroup Jun 30, 2021
a3f2599
docs(util/call-taker): Fix comment typos.
binh-dam-ibigroup Jun 30, 2021
e1792f2
refactor: address PR comments
landonreed Jun 30, 2021
79054b9
Merge pull request #397 from opentripplanner/plan-first-last
landonreed Jun 30, 2021
6918774
refactor: address PR comments
landonreed Jun 30, 2021
4339459
refactor(util/print.js): Extract common print boilerplate.
binh-dam-ibigroup Jun 30, 2021
1328328
refactor(trip-page): warn on navigating away with unsaved changes
miles-grant-ibigroup Jun 30, 2021
9e3a9ea
refactor(PrintFieldTripLayout): Avoid fetching all field trips to pri…
binh-dam-ibigroup Jun 30, 2021
a266e27
refactor(PrintTripFieldLayout): Extract styled components to ext. file.
binh-dam-ibigroup Jun 30, 2021
134ab20
Update lib/util/call-taker.js
binh-dam-ibigroup Jun 30, 2021
e5ace26
refactor(PrintFieldTripLayout): Improve print page title.
binh-dam-ibigroup Jun 30, 2021
63bb394
Merge branch 'calltaker-print-group-itins' of https://github.com/open…
binh-dam-ibigroup Jun 30, 2021
db60c02
Merge branch 'dev' into calltaker-print-group-itins
binh-dam-ibigroup Jun 30, 2021
c9bc5ff
refactor(trip-page): don’t show prevention dialog when submitting
miles-grant-ibigroup Jun 30, 2021
ce51a6a
refactor(trip-page): don't show navigation prevention prompt when cli…
miles-grant-ibigroup Jun 30, 2021
96f4939
refactor(trip-page): make comment match code
miles-grant-ibigroup Jun 30, 2021
22c1734
refactor(trip-page): clarify use of new state variable
miles-grant-ibigroup Jun 30, 2021
6ef72b9
refactor(field-trip): Address PR comments
binh-dam-ibigroup Jun 30, 2021
1ed767a
Merge pull request #398 from opentripplanner/calltaker-print-group-itins
evansiroky Jul 1, 2021
2dd8523
Merge branch 'dev' into fix-calltaker-recording
evansiroky Jul 1, 2021
f18fa7e
Merge pull request #395 from opentripplanner/fix-calltaker-recording
evansiroky Jul 2, 2021
f5efbc1
refactor(trip-basics-pane.js): address PR comments
miles-grant-ibigroup Jul 2, 2021
471c3f4
fix(trip-basics-pane.js): Add warning when navigating away from unsav…
miles-grant-ibigroup Jul 7, 2021
7eb7b8d
style(stacked-pane-display.js): remove semicolons
miles-grant-ibigroup Jul 7, 2021
01d34e1
docs(trip-basics-pane.js): add note of caveat of using Prompt component
miles-grant-ibigroup Jul 7, 2021
fb581ac
Merge pull request #400 from opentripplanner/trip-navigation-away-war…
landonreed Jul 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,12 @@ jobs:
run: yarn lint
- name: Lint docs
run: yarn lint-docs
- name: Run tests with coverage
run: yarn cover
- name: Run tests
run: yarn jest
- name: Build example project
run: yarn build

# at this point, the build is successful
- name: Codecov
uses: codecov/codecov-action@v1.2.0
continue-on-error: true
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
11 changes: 10 additions & 1 deletion __tests__/actions/__snapshots__/api.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

exports[`actions > api routingQuery should gracefully handle bad response 1`] = `
Array [
Array [
[Function],
],
Array [
Object {
"payload": Object {
Expand All @@ -16,6 +19,9 @@ Array [
Array [
[Function],
],
Array [
[Function],
],
Array [
Object {
"payload": Object {
Expand All @@ -35,6 +41,9 @@ Array [

exports[`actions > api routingQuery should make a query to OTP 1`] = `
Array [
Array [
[Function],
],
Array [
Object {
"payload": Object {
Expand All @@ -52,4 +61,4 @@ Array [
]
`;

exports[`actions > api routingQuery should make a query to OTP: OTP Query Path 1`] = `"/api/plan?fromPlace=Origin%20%2812%2C34%29%3A%3A12%2C34&toPlace=Destination%20%2834%2C12%29%3A%3A34%2C12&mode=WALK%2CTRANSIT"`;
exports[`actions > api routingQuery should make a query to OTP: OTP Query Path 1`] = `"/api/plan?fromPlace=Origin%20%2812%2C34%29%3A%3A12%2C34&toPlace=Destination%20%2834%2C12%29%3A%3A34%2C12&mode=WALK%2CTRANSIT&ignoreRealtimeUpdates=false"`;
77 changes: 73 additions & 4 deletions __tests__/util/itinerary.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
/* globals describe, expect, it */

import { itineraryCanBeMonitored } from '../../lib/util/itinerary'
import {
getItineraryDefaultMonitoredDays,
itineraryCanBeMonitored
} from '../../lib/util/itinerary'
import { WEEKDAYS, WEEKEND_DAYS } from '../../lib/util/monitored-trip'

const walkLeg = {
mode: 'WALK'
}

describe('util > itinerary', () => {
describe('itineraryCanBeMonitored', () => {
Expand All @@ -20,9 +28,6 @@ describe('util > itinerary', () => {
mode: 'MICROMOBILITY_RENT',
rentedVehicle: true
}
const walkLeg = {
mode: 'WALK'
}
const rideHailLeg = {
mode: 'CAR_HAIL',
hailedCar: true
Expand Down Expand Up @@ -80,4 +85,68 @@ describe('util > itinerary', () => {
})
})
})
describe('getItineraryDefaultMonitoredDays', () => {
const transitLegWeekday = {
mode: 'BUS',
serviceDate: '20210609', // Wednesday
transitLeg: true
}
const transitLegSaturday = {
mode: 'BUS',
serviceDate: '20210612', // Saturday
transitLeg: true
}
const transitLegSunday = {
mode: 'BUS',
serviceDate: '20210613', // Sunday
transitLeg: true
}

const testCases = [{
expected: WEEKDAYS,
itinerary: {
legs: [walkLeg, transitLegWeekday]
},
title: 'should be [\'monday\' thru \'friday\'] for an itinerary starting on a weekday.'
}, {
expected: WEEKEND_DAYS,
itinerary: {
legs: [walkLeg, transitLegSaturday]
},
title: 'should be [\'saturday\', \'sunday\'] for an itinerary starting on a Saturday.'
}, {
expected: WEEKEND_DAYS,
itinerary: {
legs: [walkLeg, transitLegSunday]
},
title: 'should be [\'saturday\', \'sunday\'] for an itinerary starting on a Sunday.'
}, {
expected: WEEKDAYS,
itinerary: {
legs: [walkLeg],
startTime: 1623341891000 // Thursday 2021-06-10 12:18 pm EDT
},
title: 'should be [\'monday\' thru \'friday\'] for an itinerary without transit starting on a weekday (fallback case).'
}, {
expected: WEEKEND_DAYS,
itinerary: {
legs: [walkLeg],
startTime: 1623514691000 // Saturday 2021-06-12 12:18 pm EDT
},
title: 'should be [\'saturday\', \'sunday\'] for an itinerary without transit starting on a Saturday (fallback case).'
}, {
expected: WEEKEND_DAYS,
itinerary: {
legs: [walkLeg],
startTime: 1623601091000 // Sunday 2021-06-13 12:18 pm EDT
},
title: 'should be [\'saturday\', \'sunday\'] for an itinerary without transit starting on a Sunday (fallback case).'
}]

testCases.forEach(({ expected, itinerary, title }) => {
it(title, () => {
expect(getItineraryDefaultMonitoredDays(itinerary)).toBe(expected)
})
})
})
})
14 changes: 9 additions & 5 deletions __tests__/util/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@ describe('util > state', () => {
const testCases = [{
expected: false,
input: {
currentQuery: {
from: fakeFromLocation
otp: {
currentQuery: {
from: fakeFromLocation
}
}
},
title: 'should not be valid with only from location'
}, {
expected: true,
input: {
currentQuery: {
from: fakeFromLocation,
to: fakeToLocation
otp: {
currentQuery: {
from: fakeFromLocation,
to: fakeToLocation
}
}
},
title: 'should be valid with from and to locations'
Expand Down
51 changes: 51 additions & 0 deletions example-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,31 @@ map:
- name: Stamen Toner Lite
url: http://tile.stamen.com/toner-lite/{z}/{x}/{y}.png
attribution: 'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.'
### Optional transitive.js (route rendering) properties:
### - labeledModes: an array of OTP modes for which the route label should be
### rendered on the map. Example of OTP modes: BUS, RAIL, ...
### The label is rendered under the condition that a route_short_name is provided
### in the GTFS feed for those routes, or that a getTransitiveRouteLabel function is defined
### in the ComponentContext (see example.js for more).
### - styles.labels,
### styles.segment_labels: styles attributes recognized by transitive.js.
### For examples of applicable style attributes, see
### https://github.com/conveyal/transitive.js/blob/master/stories/Transitive.stories.js#L47.
# transitive:
# labeledModes:
# - BUS
# - RAIL
# styles:
# labels:
# font-size: 14px
# font-family: Hind, sans-serif
# segment_labels:
# border-color: "#FFFFFF"
# border-radius: 6
# border-width: 2
# color: "#FFE0D0"
# font-family: Hind, sans-serif
# font-size: 18px

# it is possible to leave out a geocoder config entirely. In that case only
# GPS coordinates will be used when finding the origin/destination.
Expand Down Expand Up @@ -135,6 +160,29 @@ modes:
label: Own Bike
iconWidth: 18

# # The following modules require the datastoreUrl and trinetReDirect properties
# # to be set. Note: Most of these components are currently only configured for
# # TriMet.
# datastoreUrl: https://localhost:9000
# trinetReDirect: https://localhost:9001
# modules:
# # Provides UI elements for Call Takers to record calls/trip queries.
# - id: call
# # Provides UI elements for planning field trips on transit vehicles.
# - id: ft
# # Provides a form for constructing PDF documents for mailing to customers.
# - id: mailables
# items:
# - name: Rte 1 Schedule (1-Vermont)
# largePrint: true
# # The below settings allow for customizing the PDF letter.
# horizontalMargin: 108
# verticalMargin: 120
# introduction: 'Thank you for calling us to request information. We have enclosed for you the following item(s):'
# conclusion: Thank you for your patronage!
# footer: Transit Agency • 555-555-RIDE
# # NOTE: headerGraphic requires a valid URL to a png file.
# headerGraphic: 'https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/Trimet_logo.svg/1280px-Trimet_logo.svg.png'

routingTypes:
- key: ITINERARY
Expand All @@ -145,6 +193,9 @@ itinerary:
# Show fares for each transit leg (false if omitted).
# (Requires using LineItinerary.)
showRouteFares: false
# Whether the plan first/previous/next/last buttons should be shown along with
# plan trip itineraries.
showPlanFirstLastButtons: false

# The transitOperators key is a list of transit operators that can be used to
# order transit agencies when sorting by route. Also, this can optionally
Expand Down
20 changes: 17 additions & 3 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ import {
BatchResultsScreen,
BatchRoutingPanel,
BatchSearchScreen,
CallHistoryWindow,
CallTakerControls,
CallTakerPanel,
CallTakerWindows,
DefaultItinerary,
DefaultMainPanel,
FieldTripWindows,
MailablesWindow,
MobileResultsScreen,
MobileSearchScreen,
ResponsiveWebapp,
Expand Down Expand Up @@ -72,6 +73,7 @@ const TermsOfStorage = () => (
// define some application-wide components that should be used in
// various places. The following components can be provided here:
// - defaultMobileTitle (required)
// - getTransitiveRouteLabel (optional, with signature itineraryLeg => string)
// - ItineraryBody (required)
// - ItineraryFooter (optional)
// - LegIcon (required)
Expand All @@ -84,7 +86,18 @@ const TermsOfStorage = () => (
// - TermsOfService (required if otpConfig.persistence.strategy === 'otp_middleware')
// - TermsOfStorage (required if otpConfig.persistence.strategy === 'otp_middleware')
const components = {

defaultMobileTitle: () => <div className='navbar-title'>OpenTripPlanner</div>,
/**
* Example of a custom route label provider to pass to @opentripplanner/core-utils/map#itineraryToTransitive.
* @param {*} itineraryLeg The OTP itinerary leg for which to obtain a custom route label.
* @returns A string with the custom label to display for the given leg, or null to render no label.
*/
getTransitiveRouteLabel: itineraryLeg => {
if (itineraryLeg.mode === 'RAIL') return 'Train'
if (itineraryLeg.mode === 'BUS') return itineraryLeg.routeShortName
return null // null or undefined or empty string will tell transitive-js to not render a route label.
},
ItineraryBody: DefaultItinerary,
LegIcon: MyLegIcon,
MainControls: isCallTakerModuleEnabled ? CallTakerControls : null,
Expand All @@ -95,8 +108,9 @@ const components = {
: DefaultMainPanel,
MapWindows: isCallTakerModuleEnabled
? () => <>
<CallTakerWindows />
<CallHistoryWindow />
<FieldTripWindows />
<MailablesWindow />
</>
: null,
MobileResultsScreen: isBatchRoutingEnabled
Expand Down Expand Up @@ -124,7 +138,7 @@ if (process.env.NODE_ENV === 'development') {
// set up the Redux store
const store = createStore(
combineReducers({
callTaker: createCallTakerReducer(),
callTaker: createCallTakerReducer(otpConfig),
otp: createOtpReducer(otpConfig),
user: createUserReducer(),
router: connectRouter(history)
Expand Down
Loading