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

Upstream merge 2024-08-01 #219

Merged
merged 232 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
3ca1a0c
Implement query for filtering by service days
leonardehrenfried May 23, 2024
c3cb2d6
Move filtering logic into class
leonardehrenfried May 24, 2024
775a776
Add test for range handling
leonardehrenfried May 24, 2024
7e66dfd
Add tests
leonardehrenfried May 24, 2024
cbe912d
Flesh out tests
leonardehrenfried May 24, 2024
d6b568f
Rename service day to service date
leonardehrenfried May 24, 2024
3f0d492
Add example for LocalDate
leonardehrenfried May 24, 2024
28b078d
Update test
leonardehrenfried May 24, 2024
e6971b4
Add more test cases
leonardehrenfried May 27, 2024
244da3f
Update test case for edge case
leonardehrenfried May 27, 2024
994d0b5
Be strict about accepting RFC3339
leonardehrenfried Jun 4, 2024
782964a
Update documenation about service date
leonardehrenfried Jun 4, 2024
1734b8a
Clarify which date formats are allowed
leonardehrenfried Jun 10, 2024
9cfc1d7
Allow overriding of description
leonardehrenfried Jun 10, 2024
e4a664b
Merge remote-tracking branch 'upstream/dev-2.x' into route-filter
leonardehrenfried Jun 10, 2024
591405c
Instantiate real service instead of mocking it
leonardehrenfried Jun 10, 2024
5d29a44
Rename argument provider methods
leonardehrenfried Jun 10, 2024
b618e71
Pass in functions rather than the whole transit service
leonardehrenfried Jun 11, 2024
93f400b
Merge remote-tracking branch 'upstream/dev-2.x' into route-filter
leonardehrenfried Jun 11, 2024
4ad42e7
Resolve merge conflicts
leonardehrenfried Jun 11, 2024
df587e3
Merge remote-tracking branch 'upstream/dev-2.x' into route-filter
leonardehrenfried Jun 11, 2024
3c3bd18
Throw exception if both start/end are null
leonardehrenfried Jun 11, 2024
0a8d03c
Rename and deprecate
leonardehrenfried Jun 11, 2024
baa1a75
Create geocoder with Dagger
leonardehrenfried Jun 10, 2024
f554b8f
Add lucene index to OTP server context
leonardehrenfried Jun 10, 2024
9e21b04
Wire up Geocoder with Dagger
leonardehrenfried Jun 10, 2024
5a7b2ef
Add consolidated stops to geocoder
leonardehrenfried Jun 12, 2024
d826aeb
Filter nullable codes
leonardehrenfried Jun 12, 2024
ba12693
Remove logging
leonardehrenfried Jun 12, 2024
8258a1e
Add Google's truth test assertion library, add test
leonardehrenfried Jun 13, 2024
d5ea5af
Extract two separate methods for Transmodel and GTFS scalar versions
leonardehrenfried Jun 17, 2024
b77d50b
Merge remote-tracking branch 'upstream/dev-2.x' into route-filter
leonardehrenfried Jun 17, 2024
54b2fe2
Refer to API documentation
leonardehrenfried Jun 17, 2024
665ce7a
Move small helper method into separate class
leonardehrenfried Jun 17, 2024
49ac4b7
Move invalid trip id test
leonardehrenfried Jun 17, 2024
3f79d0e
Move assertions into separate class
leonardehrenfried Jun 17, 2024
c442d17
Move skipped tests
leonardehrenfried Jun 17, 2024
7cb284b
Move ADDED tests
leonardehrenfried Jun 17, 2024
50701c1
Move ADDED tests
leonardehrenfried Jun 17, 2024
d85c67a
Refactor handling of schedule relationships
leonardehrenfried Jun 17, 2024
58005ac
Simplify access
leonardehrenfried Jun 17, 2024
3e346d4
Remove unused method
leonardehrenfried Jun 17, 2024
6412eea
Remove method that is only used in test
leonardehrenfried Jun 17, 2024
4d0dc4c
Add SingeCriteriaComparator to itinerary filter
t2gran Jun 17, 2024
f549d05
Mention new filter engine
leonardehrenfried Jun 18, 2024
6844979
Return error code for invalid trip IDs
leonardehrenfried Jun 18, 2024
17858f5
Make module tests a lot more compact
leonardehrenfried Jun 18, 2024
ee4887e
Switch to endExclusive
leonardehrenfried Jun 18, 2024
e9fc8d6
Add McMinimumNumberItineraryFilter - a multi-criteria version of the …
t2gran Jun 18, 2024
02cb8f7
Increase code reuse in SkippedTest
leonardehrenfried Jun 18, 2024
21e745f
Simplify AddedTest
leonardehrenfried Jun 19, 2024
6755cbc
Update Javadoc
leonardehrenfried Jun 19, 2024
4bbe43e
Re-add backwards-compatibility
leonardehrenfried Jun 19, 2024
960f243
Add OTPFeature MultiCriteriaGroupMaxFilter - turn on/off
t2gran Jun 19, 2024
78c4a17
refactor: rename package mcmin to mcmax
t2gran Jun 19, 2024
04574fa
refactor: rename McMinimumNumberItineraryFilter to McMaxLimitFilter
t2gran Jun 19, 2024
ef6ff0e
feature: Integrate McMaxLimitFilter in ItineraryListFilterChain
t2gran Jun 19, 2024
a714a53
Inject transit model instead of transit service
leonardehrenfried Jun 20, 2024
29a750d
Add comment
leonardehrenfried Jun 20, 2024
9b17f97
Remove trailing and leading whitespace
leonardehrenfried Jun 20, 2024
f95fd60
Add comment about unusal instantiation of DefaultTransitService
leonardehrenfried Jun 21, 2024
47b944f
Merge remote-tracking branch 'upstream/dev-2.x' into gtfsrt-module-tests
leonardehrenfried Jun 25, 2024
e754695
Merge remote-tracking branch 'upstream/dev-2.x' into route-filter
leonardehrenfried Jun 25, 2024
6915d08
Apply suggestions from code review
t2gran Jun 27, 2024
c1dc4b3
refactor: Fix spelling SingleCriteriaComparator
t2gran Jun 27, 2024
dd4bf1b
Apply suggestions from code review
t2gran Jun 27, 2024
9b4b7fe
refactor: Remove System.out
t2gran Jun 27, 2024
13d55c2
Rename ServiceDateFilterInput to LocalDateRangeInput
leonardehrenfried Jul 1, 2024
b21dd60
Merge remote-tracking branch 'upstream/dev-2.x' into route-filter
leonardehrenfried Jul 1, 2024
0edc190
Move logic into mapper, extract separate class for date range
leonardehrenfried Jul 1, 2024
85d513a
Move assertion class to another package
leonardehrenfried Jul 1, 2024
8c3364e
Rename Stop to StopCall
leonardehrenfried Jul 1, 2024
1301e96
Make assertion return void
leonardehrenfried Jul 2, 2024
a83a9e8
Update src/main/java/org/opentripplanner/apis/gtfs/PatternByServiceDa…
leonardehrenfried Jul 2, 2024
b88a35e
Update error message
leonardehrenfried Jul 2, 2024
3d138af
Make record private
leonardehrenfried Jul 3, 2024
d62afd4
Merge remote-tracking branch 'upstream/dev-2.x' into route-filter
leonardehrenfried Jul 3, 2024
2e22b5e
Clean up after merge
leonardehrenfried Jul 3, 2024
67c3279
Fix indentation
leonardehrenfried Jul 3, 2024
cf87f16
refactor: Move transit-group-priority to the domain model
t2gran Jun 28, 2024
916a9a9
refactor: Rename to RaptorTransitGroupPriorityCalculator
t2gran Jul 3, 2024
3627e50
refactor: Move DefaultTransitGroupCalculator to grouppriority package
t2gran Jul 3, 2024
dea9911
refactor: Move TransitGroupPriority32nTest to grouppriority package
t2gran Jul 3, 2024
82b2168
refactor: Rename to TransitGroupPriorityService from PriorityGroupCon…
t2gran Jul 3, 2024
376a05f
refactor: Extract Matcher interface in group-priority
t2gran Jul 3, 2024
6ca1e8b
refactor: Rename local class to Matchers from PriorityGroupMatcher
t2gran Jul 3, 2024
af2bff2
refactor: Cleanup access modifiers in group-priority
t2gran Jul 3, 2024
7f9e186
refactor: Rename DefaultTransitGroupPriorityCalculator
t2gran Jul 3, 2024
d683b22
feature: Prepare to support group-priority for trips
t2gran Jul 3, 2024
cea94e4
refactor: Create TransitGroupPriorityService in RoutingWorker and pas…
t2gran Jul 3, 2024
90213ef
refactor: Cleanup on Itinerary and Leg
t2gran Jul 3, 2024
cefcc05
feature: Add c2 for street itineraries if transit-group-priority is used
t2gran Jul 3, 2024
de7c698
test: Add missing tests to o.o.transit.model.network.grouppriority
t2gran Jul 3, 2024
361ff91
Move helper code into utils
leonardehrenfried Jul 4, 2024
364d33e
Update src/main/java/org/opentripplanner/transit/model/network/groupp…
t2gran Jul 5, 2024
b6de830
Rename method
leonardehrenfried Jul 5, 2024
614434f
Move code inside date range in order to remove feature envy
leonardehrenfried Jul 5, 2024
4b55d2a
Remove reference to TimetableSnapshot in TransitModelIndex
vpaturet Jul 8, 2024
b617f95
Rework test
leonardehrenfried Jul 8, 2024
dbdc80b
Parse parking lots from NeTEx
leonardehrenfried Jul 3, 2024
8550feb
Flesh out parsing, add test
leonardehrenfried Jul 3, 2024
e95b675
Fix building of capacity
leonardehrenfried Jul 3, 2024
b5d492a
Change wiring of vehicle parking
leonardehrenfried Jul 3, 2024
3133496
Improve building of the links
leonardehrenfried Jul 3, 2024
96b9004
Swap colour order
leonardehrenfried Jul 3, 2024
90ddcec
Format code
leonardehrenfried Jul 4, 2024
39f13f3
Update snapshot tests
leonardehrenfried Jul 4, 2024
2dd6589
Update docs
leonardehrenfried Jul 4, 2024
aab96e6
Update Javadoc and implementation
leonardehrenfried Jul 4, 2024
6df518f
Add test for linking
leonardehrenfried Jul 4, 2024
c12d713
Add more tests
leonardehrenfried Jul 4, 2024
5525701
Use HierarchicalMapById
leonardehrenfried Jul 8, 2024
c15db15
Show quay ID in leg view
leonardehrenfried Jul 10, 2024
d770a67
Add icon for stay-seated tranfers
leonardehrenfried Jul 10, 2024
6d9ff33
Update documentation on REST API [ci skip]
leonardehrenfried Jul 11, 2024
7695a1e
Use transit editor service in SIRI timetable snapshot source
vpaturet Jul 8, 2024
4d1ef04
Merge remote-tracking branch 'upstream/dev-2.x' into gtfsrt-module-tests
leonardehrenfried Jul 12, 2024
b508c79
Make TimetableSnapshot state final
vpaturet Jul 12, 2024
126b602
Fix Javadoc [ci skip]
leonardehrenfried Jul 15, 2024
c6ae01a
Add test for allPassengerVehicles
leonardehrenfried Jul 15, 2024
acaa41f
Take NeTEx hierarchy into account when mapping lots
leonardehrenfried Jul 15, 2024
506c90f
Take NeTEx hierarchy into account when mapping lots
leonardehrenfried Jul 15, 2024
ac046c6
Take missing capacity into account
leonardehrenfried Jul 15, 2024
618e0a1
Add more robust null check for issue
leonardehrenfried Jul 15, 2024
3dda63c
fix(deps): update dependency edu.ucar:netcdf4 to v5.6.0
renovate[bot] Jul 16, 2024
cd86c22
Merge pull request #5954 from entur/remove_timetable_snapshot_in_tran…
vpaturet Jul 16, 2024
098123a
Apply review suggestion
vpaturet Jul 16, 2024
949a6c7
Add comment
leonardehrenfried Jul 16, 2024
44edc44
Add config option to ignore parking
leonardehrenfried Jul 16, 2024
3a88dd3
Add code reuse
leonardehrenfried Jul 16, 2024
e0f60f5
Fix TimetableSnapshot merge conflict
vpaturet Jul 16, 2024
499fb93
Merge pull request #5972 from entur/fix_timetable_snapshot_merge_conf…
leonardehrenfried Jul 16, 2024
938f451
Merge remote-tracking branch 'upstream/dev-2.x' into netex-parking
leonardehrenfried Jul 16, 2024
1238429
Add Javadoc
leonardehrenfried Jul 16, 2024
cc659fa
Replace typo in 'finishUp'
leonardehrenfried Jul 16, 2024
b5e0ee6
Enforce non-null coordinates on multimodal station
vpaturet Jul 16, 2024
5bc0b78
Apply review suggestion
vpaturet Jul 16, 2024
d880072
Merge branch 'refs/heads/dev-2.x' into use_transit_editor_service_in_…
vpaturet Jul 16, 2024
e58ff95
Apply review suggestion
vpaturet Jul 16, 2024
8205880
Merge pull request #5971 from entur/enforce_non_null_coordinates_on_m…
vpaturet Jul 16, 2024
dffd3d8
Add changelog entry for #5971 [ci skip]
Jul 16, 2024
baa490c
Merge pull request #5953 from entur/use_transit_editor_service_in_sir…
vpaturet Jul 16, 2024
5917ddf
Merge pull request #5968 from entur/make_timetable_snapshot_state_final
vpaturet Jul 16, 2024
5813d2c
Merge remote-tracking branch 'upstream/dev-2.x' into netex-parking
leonardehrenfried Jul 17, 2024
990ce7c
Invert check
leonardehrenfried Jul 17, 2024
5991d60
Merge pull request #5916 from ibi-group/gtfsrt-module-tests
leonardehrenfried Jul 17, 2024
f99542b
Encapsulate TransitModelIndex
vpaturet Jul 9, 2024
f101f49
Remove duplicate wrapping in unmodifiable map
vpaturet Jul 17, 2024
8b0e462
Use TransitEditorService in TransitLayerUpdater
vpaturet Jul 17, 2024
1b81847
Update documentation
vpaturet Jul 17, 2024
7baf92b
Refactor unit tests
vpaturet Jul 17, 2024
23e24b0
Merge pull request #5969 from opentripplanner/renovate/netcdf4.version
leonardehrenfried Jul 18, 2024
01266a8
Auto-merge test reporter [ci skip]
leonardehrenfried Jul 18, 2024
4198402
chore(deps): update dependency me.fabriciorby:maven-surefire-junit5-t…
renovate[bot] Jul 18, 2024
cfe6947
Add car rental to Transmodel street mode options
leonardehrenfried Jul 19, 2024
c3c1ea0
chore(deps): update dependency io.github.git-commit-id:git-commit-id-…
renovate[bot] Jul 18, 2024
d4943c0
Add newline in client to trigger build
leonardehrenfried Jul 19, 2024
cc74ad8
Format code
leonardehrenfried Jul 19, 2024
6382fd8
Add newline change to trigger build
leonardehrenfried Jul 19, 2024
23bbf89
fix(deps): update geotools.version to v31.3
renovate[bot] Jul 19, 2024
6181512
Merge remote-tracking branch 'upstream/dev-2.x' into netex-parking
leonardehrenfried Jul 19, 2024
0ff397d
chore(deps): update vitest monorepo to v2
renovate[bot] Jul 22, 2024
5765d58
Clarify where logback extensions file should be in a container
optionsome Jul 22, 2024
896805d
Merge pull request #5945 from entur/otp2_add_group_priority_to_direct…
t2gran Jul 23, 2024
6764a08
Fix megre conflict in TransitGroupPriorityServiceTest
t2gran Jul 23, 2024
18985db
Apply suggestions from code review
leonardehrenfried Jul 23, 2024
b8130ca
Merge pull request #5978 from opentripplanner/renovate/geotools.version
vpaturet Jul 23, 2024
03dae4e
Bump serialization version id for #5978
Jul 23, 2024
fc53d94
Apply review suggestions
vpaturet Jul 23, 2024
7b1f760
Fix copy&paste error
leonardehrenfried Jul 23, 2024
fd33464
Merge remote-tracking branch 'otp/dev-2.x' into otp2_transit_priority…
t2gran Jul 23, 2024
18ef555
Move component into separate file
leonardehrenfried Jul 23, 2024
1876a04
Replace identity with equality
leonardehrenfried Jul 23, 2024
1cfaa38
Add Javadoc for KeyValue
leonardehrenfried Jul 23, 2024
a2eaecc
Rename variable
leonardehrenfried Jul 23, 2024
b9813cf
Merge pull request #5982 from HSLdevcom/improve-docker-docs
optionsome Jul 23, 2024
fa60b78
Merge pull request #5973 from entur/encapsulate_transit_model_index
vpaturet Jul 24, 2024
2c34a4e
Remove lock on Timetable snapshot buffer
vpaturet Jul 12, 2024
892449a
Use current buffer from SiriTimetableSnapshotSource
vpaturet Jul 12, 2024
78dd01f
use current buffer in TransitEditorService
vpaturet Jul 12, 2024
2050550
Reduce visibility of commitTimetableSnapshot
vpaturet Jul 16, 2024
79802f0
Introduce timetable snapshot flush
vpaturet Jul 16, 2024
104ee66
PUblish timetable snapshot with ConcurrentPublished
vpaturet Jul 19, 2024
0f77374
Commit snapshot only from the TimetableSnapshotFlush periodic task.
vpaturet Jul 19, 2024
850a2be
Document transit editor service in TimetableSnapshotSource and SiriTi…
vpaturet Jul 23, 2024
7fe6999
Ignore exceptions in TimetableSnapshotFlush
vpaturet Jul 23, 2024
d1d7f43
Commit snapshot while applying trip updates in RealtimeTestEnvironment
vpaturet Jul 24, 2024
7f5bc33
Add parsing of 'any'
leonardehrenfried Jul 19, 2024
85b9ec0
Implement NeTEx version 'any'
leonardehrenfried Jul 23, 2024
d71fcc1
Add documentation
leonardehrenfried Jul 23, 2024
cd8e29e
Added Javadoc
vpaturet Jul 24, 2024
ae363f4
Update src/main/java/org/opentripplanner/apis/gtfs/model/LocalDateRan…
leonardehrenfried Jul 24, 2024
1ebfc42
Format code
leonardehrenfried Jul 24, 2024
52c7536
Merge pull request #5957 from opentripplanner/renovate/major-vitest-m…
testower Jul 25, 2024
1a8ccb6
Upgrade debug client to version 2024/07/2024-07-25T05:46
Jul 25, 2024
73e03e9
chore(deps): update debug ui dependencies (non-major)
renovate[bot] Jul 25, 2024
9e377f3
Merge pull request #5937 from opentripplanner/renovate/debug-ui-depen…
leonardehrenfried Jul 25, 2024
09ced42
Upgrade debug client to version 2024/07/2024-07-25T05:56
Jul 25, 2024
3ee1b46
Return null
leonardehrenfried Jul 25, 2024
de56d00
Merge pull request #5974 from entur/publish_timetable_snapshot_in_bac…
vpaturet Jul 25, 2024
80fedfa
Make method private
leonardehrenfried Jul 25, 2024
3cf6130
Make method private
leonardehrenfried Jul 25, 2024
6eae019
Ignore NeTEx parking by default
leonardehrenfried Jul 25, 2024
82bfdd2
Merge pull request #5977 from leonardehrenfried/transmodel-car-rental
leonardehrenfried Jul 25, 2024
f21ea0f
Upgrade debug client to version 2024/07/2024-07-25T14:19
Jul 25, 2024
984f199
Add changelog entry for #5977 [ci skip]
Jul 25, 2024
ed6b165
Update tests
leonardehrenfried Jul 25, 2024
9858691
Merge pull request #5962 from leonardehrenfried/stop-id-debug
leonardehrenfried Jul 25, 2024
ae6fbc8
Upgrade debug client to version 2024/07/2024-07-25T20:39
Jul 25, 2024
0afcedd
Add changelog entry for #5962 [ci skip]
Jul 25, 2024
3c2dd45
Merge pull request #5983 from leonardehrenfried/italian-profile
leonardehrenfried Jul 26, 2024
d6cf79d
Add changelog entry for #5983 [ci skip]
Jul 26, 2024
ed3651a
Merge pull request #5919 from entur/otp2_transit_priority_in_group_fi…
t2gran Jul 26, 2024
2787322
Add changelog entry for #5919 [ci skip]
Jul 26, 2024
475ea53
Merge pull request #5946 from leonardehrenfried/netex-parking
leonardehrenfried Jul 29, 2024
a314730
Add changelog entry for #5946 [ci skip]
Jul 29, 2024
4c33d38
Bump serialization version id for #5946
Jul 29, 2024
f2d24ae
Upgrade debug client to version 2024/07/2024-07-29T12:38
Jul 29, 2024
19b8ff1
Merge pull request #5907 from ibi-group/cluster-consolidated-stops
leonardehrenfried Jul 29, 2024
09be088
Merge pull request #5869 from ibi-group/route-filter
leonardehrenfried Jul 30, 2024
18625fc
Add changelog entry for #5869 [ci skip]
Jul 30, 2024
44864d6
Update Debug UI dependencies (non-major)
renovate[bot] Jul 31, 2024
d04c26c
Automerge truth, fixes #5988 [ci skip]
leonardehrenfried Jul 31, 2024
b04d1d5
Schedule test dependency upgrades once a month [ci skip]
leonardehrenfried Jul 31, 2024
7ded957
Merge pull request #5986 from opentripplanner/renovate/debug-ui-depen…
testower Aug 1, 2024
669d042
Upgrade debug client to version 2024/08/2024-08-01T06:45
Aug 1, 2024
d3685d3
Merge remote-tracking branch 'upstream/dev-2.x' into upstream-merge-2…
leonardehrenfried Aug 1, 2024
74949a1
Improve test assertion
leonardehrenfried Aug 1, 2024
db62d62
Fix spelling [ci skip]
leonardehrenfried Aug 4, 2024
0ceb951
Fix conversion of parent station id in vector tiles
leonardehrenfried Aug 6, 2024
c58311e
Merge pull request #5995 from ibi-group/vector-tile-parent
leonardehrenfried Aug 6, 2024
5775704
Merge remote-tracking branch 'upstream/dev-2.x' into upstream-merge-2…
leonardehrenfried Aug 6, 2024
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
1 change: 1 addition & 0 deletions client/.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
VITE_API_URL=/otp/transmodel/v3
VITE_DEBUG_STYLE_URL=/otp/routers/default/inspector/vectortile/style.json

1,113 changes: 592 additions & 521 deletions client/package-lock.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,33 +23,33 @@
"graphql-request": "7.1.0",
"maplibre-gl": "4.5.0",
"react": "18.3.1",
"react-bootstrap": "2.10.3",
"react-bootstrap": "2.10.4",
"react-dom": "18.3.1",
"react-map-gl": "7.1.7"
},
"devDependencies": {
"@graphql-codegen/cli": "5.0.2",
"@graphql-codegen/client-preset": "4.3.1",
"@graphql-codegen/client-preset": "4.3.3",
"@graphql-codegen/introspection": "4.0.3",
"@parcel/watcher": "2.4.1",
"@testing-library/react": "16.0.0",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "7.14.1",
"@typescript-eslint/parser": "7.14.1",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@vitejs/plugin-react": "4.3.1",
"@vitest/coverage-v8": "1.6.0",
"@vitest/coverage-v8": "2.0.5",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-react": "7.34.3",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-refresh": "0.4.7",
"jsdom": "24.1.0",
"prettier": "3.3.2",
"typescript": "5.5.2",
"vite": "5.3.2",
"vitest": "1.6.0"
"eslint-plugin-react-refresh": "0.4.9",
"jsdom": "24.1.1",
"prettier": "3.3.3",
"typescript": "5.5.4",
"vite": "5.3.5",
"vitest": "2.0.5"
}
}
22 changes: 22 additions & 0 deletions client/src/components/ItineraryList/InterchangeInfo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import logo from '../../static/img/stay-seated.svg';
import { Leg } from '../../gql/graphql.ts';

/**
* Displays an icon if a leg has a stay-seated transfer from the previous one.
*/
export function InterchangeInfo({ leg }: { leg: Leg }) {
if (leg.interchangeFrom?.staySeated) {
return (
<img
alt="Stay-seated transfer"
title="Stay-seated transfer"
src={logo}
width="20"
height="20"
className="d-inline-block align-middle"
/>
);
} else {
return null;
}
}
16 changes: 13 additions & 3 deletions client/src/components/ItineraryList/ItineraryLegDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Leg, Mode } from '../../gql/graphql.ts';
import { LegTime } from './LegTime.tsx';
import { formatDistance } from '../../util/formatDistance.ts';
import { formatDuration } from '../../util/formatDuration.ts';
import { InterchangeInfo } from './InterchangeInfo.tsx';

export function ItineraryLegDetails({ leg, isLast }: { leg: Leg; isLast: boolean }) {
return (
Expand All @@ -10,8 +11,12 @@ export function ItineraryLegDetails({ leg, isLast }: { leg: Leg; isLast: boolean
{formatDistance(leg.distance)}, {formatDuration(leg.duration)}
</div>
<div>
<LegTime aimedTime={leg.aimedStartTime} expectedTime={leg.expectedStartTime} hasRealtime={leg.realtime} /> -{' '}
<LegTime aimedTime={leg.aimedEndTime} expectedTime={leg.expectedEndTime} hasRealtime={leg.realtime} />
<InterchangeInfo leg={leg} />
<LegTime
aimedTime={leg.aimedStartTime}
expectedTime={leg.expectedStartTime}
hasRealtime={leg.realtime}
/> - <LegTime aimedTime={leg.aimedEndTime} expectedTime={leg.expectedEndTime} hasRealtime={leg.realtime} />
</div>
<div className="mode">
<b>{leg.mode}</b>{' '}
Expand All @@ -24,7 +29,12 @@ export function ItineraryLegDetails({ leg, isLast }: { leg: Leg; isLast: boolean
</>
)}{' '}
<div></div>
{leg.mode !== Mode.Foot && <u>{leg.fromPlace.name}</u>} {!isLast && <u>→ {leg.toPlace.name}</u>}
{leg.mode !== Mode.Foot && (
<>
<u title={leg.fromPlace.quay?.id}>{leg.fromPlace.name}</u> →{' '}
</>
)}{' '}
{!isLast && <u title={leg.toPlace.quay?.id}>{leg.toPlace.name}</u>}
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/MapView/MapView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function MapView({
}}
// it's unfortunate that you have to list these layers here.
// maybe there is a way around it: https://github.com/visgl/react-map-gl/discussions/2343
interactiveLayerIds={['regular-stop', 'area-stop', 'group-stop', 'vertex', 'edge', 'link']}
interactiveLayerIds={['regular-stop', 'area-stop', 'group-stop', 'parking-vertex', 'vertex', 'edge', 'link']}
onClick={showFeaturePropPopup}
// put lat/long in URL and pan to it on page reload
hash={true}
Expand Down
12 changes: 12 additions & 0 deletions client/src/hooks/useTripQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,15 @@ const query = graphql(`
duration
fromPlace {
name
quay {
id
}
}
toPlace {
name
quay {
id
}
}
toEstimatedCall {
destinationDisplay {
Expand All @@ -71,6 +77,12 @@ const query = graphql(`
pointsOnLink {
points
}
interchangeTo {
staySeated
}
interchangeFrom {
staySeated
}
}
systemNotices {
tag
Expand Down
8 changes: 8 additions & 0 deletions client/src/static/img/stay-seated.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions client/src/util/getColorForMode.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { Mode } from '../gql/graphql.ts';

export const getColorForMode = function (mode: Mode) {
if (mode === Mode.Foot) return '#444';
if (mode === Mode.Foot) return '#191616';
if (mode === Mode.Bicycle) return '#5076D9';
if (mode === Mode.Scooter) return '#253664';
if (mode === Mode.Car) return '#444';
if (mode === Mode.Car) return '#7e7e7e';
if (mode === Mode.Rail) return '#86BF8B';
if (mode === Mode.Coach) return '#25642A';
if (mode === Mode.Metro) return '#D9B250';
Expand Down
2 changes: 2 additions & 0 deletions docs/BuildConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Sections follow that describe particular settings in more depth.
|    [groupFilePattern](#nd_groupFilePattern) | `regexp` | Pattern for matching group NeTEx files. | *Optional* | `"(\w{3})-.*\.xml"` | 2.0 |
|    ignoreFareFrame | `boolean` | Ignore contents of the FareFrame | *Optional* | `false` | 2.3 |
|    [ignoreFilePattern](#nd_ignoreFilePattern) | `regexp` | Pattern for matching ignored files in a NeTEx bundle. | *Optional* | `"$^"` | 2.0 |
|    ignoreParking | `boolean` | Ignore Parking elements. | *Optional* | `true` | 2.6 |
|    noTransfersOnIsolatedStops | `boolean` | Whether we should allow transfers to and from StopPlaces marked with LimitedUse.ISOLATED | *Optional* | `false` | 2.2 |
|    [sharedFilePattern](#nd_sharedFilePattern) | `regexp` | Pattern for matching shared NeTEx files in a NeTEx bundle. | *Optional* | `"shared-data\.xml"` | 2.0 |
|    [sharedGroupFilePattern](#nd_sharedGroupFilePattern) | `regexp` | Pattern for matching shared group NeTEx files in a NeTEx bundle. | *Optional* | `"(\w{3})-.*-shared\.xml"` | 2.0 |
Expand Down Expand Up @@ -106,6 +107,7 @@ Sections follow that describe particular settings in more depth.
|       [groupFilePattern](#tf_1_groupFilePattern) | `regexp` | Pattern for matching group NeTEx files. | *Optional* | `"(\w{3})-.*\.xml"` | 2.0 |
|       ignoreFareFrame | `boolean` | Ignore contents of the FareFrame | *Optional* | `false` | 2.3 |
|       [ignoreFilePattern](#tf_1_ignoreFilePattern) | `regexp` | Pattern for matching ignored files in a NeTEx bundle. | *Optional* | `"$^"` | 2.0 |
|       ignoreParking | `boolean` | Ignore Parking elements. | *Optional* | `true` | 2.6 |
|       noTransfersOnIsolatedStops | `boolean` | Whether we should allow transfers to and from StopPlaces marked with LimitedUse.ISOLATED | *Optional* | `false` | 2.2 |
|       [sharedFilePattern](#tf_1_sharedFilePattern) | `regexp` | Pattern for matching shared NeTEx files in a NeTEx bundle. | *Optional* | `"shared-data\.xml"` | 2.0 |
|       [sharedGroupFilePattern](#tf_1_sharedGroupFilePattern) | `regexp` | Pattern for matching shared group NeTEx files in a NeTEx bundle. | *Optional* | `"(\w{3})-.*-shared\.xml"` | 2.0 |
Expand Down
7 changes: 7 additions & 0 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ based on merged pull requests. Search GitHub issues and pull requests for smalle
- Fix copy-on-write in TimetableSnapshot [#5941](https://github.com/opentripplanner/OpenTripPlanner/pull/5941)
- Generate documentation for OSM tag mappers [#5929](https://github.com/opentripplanner/OpenTripPlanner/pull/5929)
- Disable Legacy REST API by default [#5948](https://github.com/opentripplanner/OpenTripPlanner/pull/5948)
- Enforce non-null coordinates on multimodal station [#5971](https://github.com/opentripplanner/OpenTripPlanner/pull/5971)
- Add car rental to Transmodel street mode options [#5977](https://github.com/opentripplanner/OpenTripPlanner/pull/5977)
- Add debug information for stop/quay ID and stay-seated transfers [#5962](https://github.com/opentripplanner/OpenTripPlanner/pull/5962)
- Handle NeTEx `any` version [#5983](https://github.com/opentripplanner/OpenTripPlanner/pull/5983)
- Keep at least one result for min-transfers and each transit-group in itinerary-group-filter [#5919](https://github.com/opentripplanner/OpenTripPlanner/pull/5919)
- Extract parking lots from NeTEx feeds [#5946](https://github.com/opentripplanner/OpenTripPlanner/pull/5946)
- Filter routes and patterns by service date in GTFS GraphQL API [#5869](https://github.com/opentripplanner/OpenTripPlanner/pull/5869)
[](AUTOMATIC_CHANGELOG_PLACEHOLDER_DO_NOT_REMOVE)

## 2.5.0 (2024-03-13)
Expand Down
Loading
Loading