Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
420 commits
Select commit Hold shift + click to select a range
d4efcc1
refactor(base-map): add onBaseLayerChange for mapbox wordmark
landonreed Sep 10, 2020
75d4e18
fix(LocationField): handle error response from geocoder
landonreed Sep 11, 2020
0fb712b
Merge pull request #4 from ibi-group/mapbox-wordmark-ltr
evansiroky Sep 11, 2020
623224c
Merge pull request #211 from ibi-group/mapbox-wordmark
evansiroky Sep 11, 2020
c0ae3d3
chore(release): 1.0.2 [skip ci]
semantic-release-bot Sep 11, 2020
9290391
Merge pull request #212 from ibi-group/handle-location-field-bad-geocode
landonreed Sep 22, 2020
8e9fcdb
chore(release): 1.0.3 [skip ci]
semantic-release-bot Sep 22, 2020
abc6388
Merge branch 'otp/master' into itinerary-refactor
evansiroky Sep 24, 2020
f3f4dca
fix(core-utils): add agency to route sorting and use feedId + agencyI…
evansiroky Sep 24, 2020
a87a4e2
fix: update code, mocks and stories to use new transitOperators config
evansiroky Sep 24, 2020
5163a21
refactor: address PR comments
evansiroky Oct 13, 2020
e8be2de
ci: run semantic-release after successful run of scripts
evansiroky Oct 13, 2020
72fdb8b
Merge pull request #189 from ibi-group/itinerary-refactor
evansiroky Oct 15, 2020
a11af09
chore(release): 3.0.0 [skip ci]
semantic-release-bot Oct 15, 2020
7d470e7
chore(release): 1.0.3 [skip ci]
semantic-release-bot Oct 15, 2020
8ccf181
chore(release): 1.0.3 [skip ci]
semantic-release-bot Oct 15, 2020
db58707
chore(release): 1.0.2 [skip ci]
semantic-release-bot Oct 15, 2020
f5ca408
chore(release): 1.0.2 [skip ci]
semantic-release-bot Oct 15, 2020
e1613f4
chore(release): 1.0.2 [skip ci]
semantic-release-bot Oct 15, 2020
87cc1cd
chore(release): 1.0.3 [skip ci]
semantic-release-bot Oct 15, 2020
d345959
chore(release): 1.0.2 [skip ci]
semantic-release-bot Oct 15, 2020
4f39e6f
chore(release): 1.0.4 [skip ci]
semantic-release-bot Oct 15, 2020
3aaad4a
chore(release): 1.2.1 [skip ci]
semantic-release-bot Oct 15, 2020
3c6bf8e
chore(release): 1.0.3 [skip ci]
semantic-release-bot Oct 15, 2020
f5b33d0
chore(release): 2.0.2 [skip ci]
semantic-release-bot Oct 15, 2020
c734e2b
chore(release): 1.0.2 [skip ci]
semantic-release-bot Oct 15, 2020
3ceec24
chore(release): 3.0.0 [skip ci]
semantic-release-bot Oct 15, 2020
d733681
chore(release): 1.0.4 [skip ci]
semantic-release-bot Oct 15, 2020
0ddcc0f
chore(release): 1.0.1 [skip ci]
semantic-release-bot Oct 15, 2020
f2c57a4
chore(release): 1.0.3 [skip ci]
semantic-release-bot Oct 15, 2020
0ccf07b
chore(release): 1.1.2 [skip ci]
semantic-release-bot Oct 15, 2020
ba7e424
fix(itinerary-body): revert to old transitOperator lookup
evansiroky Oct 27, 2020
5fa9710
refactor(itinerary-body): revert to core-utils v2 version of mock tra…
evansiroky Oct 27, 2020
9c4f8ec
fix: update opentripplanner dependencies to latest versions
evansiroky Oct 27, 2020
84d1212
refactor(yarn): deduplicate a package in yarn.lock
evansiroky Oct 28, 2020
61db46c
Merge pull request #217 from ibi-group/itinerary-body-place-row-revert
evansiroky Oct 28, 2020
0ccede6
chore(release): 1.2.2 [skip ci]
semantic-release-bot Oct 28, 2020
828071b
Merge pull request #218 from ibi-group/core-utils-v3-part-1
evansiroky Oct 29, 2020
53e1df9
chore(release): 1.0.4 [skip ci]
semantic-release-bot Oct 29, 2020
b9d7297
chore(release): 1.0.4 [skip ci]
semantic-release-bot Oct 29, 2020
e039f00
chore(release): 1.0.3 [skip ci]
semantic-release-bot Oct 29, 2020
2967c16
chore(release): 1.0.5 [skip ci]
semantic-release-bot Oct 29, 2020
1c5b968
fix: update opentripplanner dependencies to latest versions
evansiroky Oct 29, 2020
f027acd
fix(itinerary-body): update to core-utils v3
evansiroky Oct 29, 2020
576b567
Merge pull request #219 from ibi-group/core-utils-v3-part-2
evansiroky Nov 2, 2020
ef1740f
chore(release): 1.0.3 [skip ci]
semantic-release-bot Nov 2, 2020
4a74a95
chore(release): 1.0.3 [skip ci]
semantic-release-bot Nov 2, 2020
23aa602
chore(release): 1.0.3 [skip ci]
semantic-release-bot Nov 2, 2020
a2ab166
chore(release): 1.0.1 [skip ci]
semantic-release-bot Nov 2, 2020
dfca6ea
chore(release): 1.0.4 [skip ci]
semantic-release-bot Nov 2, 2020
9d97db7
chore(release): 2.0.0 [skip ci]
semantic-release-bot Nov 2, 2020
66c79e0
chore(release): 1.0.4 [skip ci]
semantic-release-bot Nov 2, 2020
5b7af7a
chore(release): 1.0.3 [skip ci]
semantic-release-bot Nov 2, 2020
86aa057
chore(release): 1.0.2 [skip ci]
semantic-release-bot Nov 2, 2020
7c49fc2
fix: update opentripplanner dependencies to latest versions
evansiroky Nov 2, 2020
77c28b8
Merge pull request #220 from ibi-group/core-utils-v3-part-3
evansiroky Nov 3, 2020
63c5e6a
chore(release): 2.0.3 [skip ci]
semantic-release-bot Nov 3, 2020
6959f62
chore(release): 3.0.1 [skip ci]
semantic-release-bot Nov 3, 2020
a39347a
chore(release): 1.0.5 [skip ci]
semantic-release-bot Nov 3, 2020
2ac0d11
chore(release): 1.0.3 [skip ci]
semantic-release-bot Nov 3, 2020
d0e94c8
chore(release): 1.0.4 [skip ci]
semantic-release-bot Nov 3, 2020
9951e2a
chore(release): 1.1.3 [skip ci]
semantic-release-bot Nov 3, 2020
2f0a332
fix(core-utils): better sort routes with zero length transit operator…
evansiroky Nov 6, 2020
15d6e3e
Merge pull request #221 from ibi-group/route-sort-with-zero-length-tr…
landonreed Nov 10, 2020
a1a2cba
chore(release): 3.0.1 [skip ci]
semantic-release-bot Nov 10, 2020
9f46109
fix(core-utils): add missing @opentripplanner/geocoder dep
landonreed Nov 13, 2020
e1e1d82
Merge pull request #225 from ibi-group/add-geocoder-dep-core-utils
landonreed Nov 17, 2020
c36e458
chore(release): 3.0.2 [skip ci]
semantic-release-bot Nov 17, 2020
6604678
fix(core-utils): expose some sorting util functions
evansiroky Nov 17, 2020
d4d4df4
Merge pull request #226 from ibi-group/expose-sort-helpers
evansiroky Nov 17, 2020
b5ce9d7
chore(release): 3.0.3 [skip ci]
semantic-release-bot Nov 17, 2020
ebfe5b4
fix(Endpoint): Fix location event data
binh-dam-ibigroup Dec 4, 2020
8d99665
fix(Endpoint): Make buttons transparent.
binh-dam-ibigroup Dec 4, 2020
fea1ef5
ci: replace TravisCI with GitHub actions
evansiroky Jan 9, 2021
d18cc6c
refactor: move semantic-release call to package scripts
evansiroky Jan 9, 2021
663b95f
ci: add codespell GitHub Action
evansiroky Jan 13, 2021
2c4156b
ci: match more branches on node-ci workflow
evansiroky Jan 13, 2021
99bdd30
refactor: fix some spelling errors
evansiroky Jan 13, 2021
c094fd3
refactor: more spelling fixes
evansiroky Jan 13, 2021
b3e3f5f
ci: get codespell wildcards working?
evansiroky Jan 13, 2021
aef52be
refactor: more spelling fixes
evansiroky Jan 13, 2021
f4d0fee
refactor: more spelling fixes
evansiroky Jan 13, 2021
f49eb70
Merge pull request #231 from ibi-group/github-actions
evansiroky Jan 13, 2021
4d8fb38
Merge pull request #229 from ibi-group/fix-endpoint-commands
evansiroky Jan 13, 2021
b063759
fix(leg-icon.js): use default getCompanyIcon and add as prop
landonreed Jan 21, 2021
96dfef5
fix(core-utils): add getCompanyFromLeg util with accompanying tests
landonreed Jan 21, 2021
86852c4
test: remove unneeded comments
landonreed Jan 21, 2021
d9144e8
refactor(itinerary.js): use destructured variable
landonreed Jan 22, 2021
14708dc
Merge pull request #233 from ibi-group/add-getCompanyFromLeg-util
landonreed Jan 22, 2021
49f4a67
chore(release): 3.0.4 [skip ci]
semantic-release-bot Jan 22, 2021
9dae739
chore(release): 1.0.5 [skip ci]
semantic-release-bot Jan 22, 2021
00b5f3a
Merge branch 'master' into fix-leg-icon
landonreed Jan 22, 2021
9af185c
fix(deps): update @opentripplanner deps to latest
landonreed Jan 22, 2021
776e433
refactor(leg-icon.js): use core-utils getCompanyFromLeg
landonreed Jan 22, 2021
a67f30d
test(icons): add story for leg/mode icons
landonreed Jan 22, 2021
c0689ea
refactor(icons): add leg and mode icon stories
landonreed Jan 22, 2021
5c3181c
refactor(mode-icon.story.js): fix check for mode icon
landonreed Jan 22, 2021
080ea90
refactor(icons/index.story.js): refactor filtering out leg/mode icons
landonreed Jan 22, 2021
325b388
refactor(icons/index.story.js): fix leg/mode icon filte
landonreed Jan 22, 2021
93af12c
Merge pull request #234 from ibi-group/fix-leg-icon
landonreed Jan 22, 2021
d99e9de
chore(release): 1.0.5 [skip ci]
semantic-release-bot Jan 22, 2021
f24feba
chore(release): 1.0.6 [skip ci]
semantic-release-bot Jan 22, 2021
325593c
chore(release): 1.0.4 [skip ci]
semantic-release-bot Jan 22, 2021
a354753
chore(release): 1.0.5 [skip ci]
semantic-release-bot Jan 22, 2021
26de812
chore(release): 1.0.6 [skip ci]
semantic-release-bot Jan 22, 2021
faaddba
chore(release): 1.0.4 [skip ci]
semantic-release-bot Jan 22, 2021
d157e17
chore(release): 1.0.4 [skip ci]
semantic-release-bot Jan 22, 2021
21c5462
chore(release): 1.0.4 [skip ci]
semantic-release-bot Jan 22, 2021
fccaa08
chore(release): 1.0.2 [skip ci]
semantic-release-bot Jan 22, 2021
d2df13c
chore(release): 1.0.4 [skip ci]
semantic-release-bot Jan 22, 2021
20cdf5f
chore(release): 2.0.1 [skip ci]
semantic-release-bot Jan 22, 2021
6e3f48b
chore(release): 1.0.5 [skip ci]
semantic-release-bot Jan 22, 2021
87471dc
chore(release): 3.0.2 [skip ci]
semantic-release-bot Jan 22, 2021
f23cb59
chore(release): 2.0.4 [skip ci]
semantic-release-bot Jan 22, 2021
c6dce38
chore(release): 1.0.6 [skip ci]
semantic-release-bot Jan 22, 2021
ce4a680
chore(release): 1.0.4 [skip ci]
semantic-release-bot Jan 22, 2021
ed04793
chore(release): 1.0.5 [skip ci]
semantic-release-bot Jan 22, 2021
fa45865
chore(release): 1.1.4 [skip ci]
semantic-release-bot Jan 22, 2021
08536aa
Update MapIcon hover title tag and hover cursor.
noletorious Feb 24, 2021
b069760
fix(place-row): use messages prop place-row; title -> "View on map"
landonreed Feb 25, 2021
2d42dd3
Merge pull request #236 from ibi-group/tweak-map-icon-message
landonreed Feb 26, 2021
5da51eb
chore(release): 2.0.2 [skip ci]
semantic-release-bot Feb 26, 2021
da2600a
fix(CustomTransitLegSummary): add required onClick prop
landonreed Mar 30, 2021
2fcf765
feat(query.js): override query params w/ config#defaultQueryParams
landonreed Apr 7, 2021
b5a43eb
refactor(query.js): dry out isNotDefaultQuery; add another test
landonreed Apr 8, 2021
927332d
refactor(query.js): move applicability logic to isParamApplicable
landonreed Apr 9, 2021
8c045d5
Merge pull request #244 from ibi-group/override-query-param
landonreed Apr 9, 2021
8a2bd50
chore(release): 3.1.0 [skip ci]
semantic-release-bot Apr 9, 2021
31ff616
chore(transitive-js): Upgrade transitive-js to 0.13.7.
binh-dam-ibigroup Apr 27, 2021
5288cb0
fix(package.json): Add fix commit for release...
binh-dam-ibigroup Apr 28, 2021
940821f
Merge pull request #245 from ibi-group/transitive-js-0.13.7
evansiroky Apr 28, 2021
75c68cf
chore(release): 1.0.6 [skip ci]
semantic-release-bot Apr 28, 2021
00b026c
fix(TransitiveOverlay): Expose styles and labeledModes transitive props.
binh-dam-ibigroup May 6, 2021
7549a68
docs(TransitiveOverlay): Fix typo.
binh-dam-ibigroup May 6, 2021
25c470b
refactor(TransitiveOverlay): Copy otpModeToGtfsType
binh-dam-ibigroup May 6, 2021
cfb2d3e
fix(vehicle-rental): hide zero-capacity bike rental stations
evansiroky May 7, 2021
20490af
Merge pull request #247 from opentripplanner/evansiroky-patch-1
evansiroky May 11, 2021
02c30cd
chore(release): 1.0.7 [skip ci]
semantic-release-bot May 11, 2021
bff6fa2
refactor(TransitiveOverlay.story): Add support for custom transitive …
binh-dam-ibigroup May 12, 2021
2a40d11
fix(core-utils/map): Add support for custom route labels in transitiv…
binh-dam-ibigroup May 12, 2021
3b5315f
Merge pull request #248 from ibi-group/transitive-custom-route-label
evansiroky May 14, 2021
239ee20
chore(release): 3.1.1 [skip ci]
semantic-release-bot May 14, 2021
d231abf
Merge branch 'master' into transitive-styles
binh-dam-ibigroup May 14, 2021
8d09480
fix(transitive-overlay): Bump core-utils to 3.1.1.
binh-dam-ibigroup May 14, 2021
f689783
feat: add typescript support for two packages
evansiroky May 16, 2021
d15c1a5
feat: add types to location-icon package.json
evansiroky May 16, 2021
c52d825
Merge pull request #246 from ibi-group/transitive-styles
evansiroky May 17, 2021
b8c4e94
chore(release): 1.0.7 [skip ci]
semantic-release-bot May 17, 2021
d0adfd6
Merge pull request #242 from ibi-group/fix-custom-leg-example
fpurcell May 19, 2021
8d3f113
chore(release): 2.0.3 [skip ci]
semantic-release-bot May 19, 2021
77eb527
Merge branch 'otp/master' into typescript
evansiroky May 25, 2021
423c8fa
chore: update Storybook from v5 to v6
evansiroky May 27, 2021
01b7308
test: turn off some eslint rules conflicting with prettier
evansiroky May 27, 2021
2695404
refactor: add some comments
evansiroky Jun 5, 2021
834ca39
docs: properly encapsulate table headers in thead tag
evansiroky Jun 8, 2021
88f089a
fix(rt vehicle): add a 'switch' parameter (boolean) to the panTo util…
fpurcell Jun 8, 2021
5a3caef
feat: export esm modules from each package
evansiroky Jun 9, 2021
0f5df38
chore: add cross-env to ensure windows compatibility for build:esm sc…
evansiroky Jun 9, 2021
8ea8804
Update packages/transit-vehicle-overlay/src/index.story.js
fpurcell Jun 9, 2021
e49d044
fix(rt vehicle): clean up docs and param names for controlling panTo …
fpurcell Jun 9, 2021
ad9b212
fix(rt vehicle): clean up story ... back to master
fpurcell Jun 9, 2021
af98016
Merge pull request #255 from opentripplanner/rt-vehicle-tracking-switch
fpurcell Jun 9, 2021
480241e
chore(release): 2.0.5 [skip ci]
semantic-release-bot Jun 9, 2021
df9f753
Make absoluteDirection prop optional on stepsType
grant-humphries Jun 14, 2021
e7340f1
Merge pull request #257 from opentripplanner/step-prop-type-adjustment
fpurcell Jun 15, 2021
ef6aa0a
Merge pull request #250 from ibi-group/typescript
evansiroky Jun 18, 2021
c9eff52
chore(release): 1.0.0 [skip ci]
semantic-release-bot Jun 18, 2021
5809554
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 18, 2021
d29cd43
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 18, 2021
d70fb65
Merge branch 'otp/master' into esm-modules
evansiroky Jun 18, 2021
27dfc9d
build: don't generate transpiled ts test files and have jest ignore e…
evansiroky Jun 18, 2021
06afe54
fix(query-params): add less commonly used params
landonreed Jun 24, 2021
4a34116
refactor(query-params): fix bad param; update snapshots
landonreed Jun 24, 2021
e28995a
Merge pull request #256 from ibi-group/esm-modules
landonreed Jun 28, 2021
faa003c
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
24df12e
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
b498714
chore(release): 1.2.0 [skip ci]
semantic-release-bot Jun 28, 2021
7833ee8
chore(release): 3.2.0 [skip ci]
semantic-release-bot Jun 28, 2021
ca2bbce
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
9c312da
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
c8861de
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
b82cba8
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
98150e6
chore(release): 1.2.0 [skip ci]
semantic-release-bot Jun 28, 2021
4a07395
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
3dc7722
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
0b72e47
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
35f9c0e
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
581df31
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
218b765
chore(release): 2.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
8f4708d
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
9d4df7b
chore(release): 3.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
3de4150
chore(release): 2.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
d721b70
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
7296e11
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
cfcafdc
chore(release): 1.1.0 [skip ci]
semantic-release-bot Jun 28, 2021
881ecbd
chore(release): 1.2.0 [skip ci]
semantic-release-bot Jun 28, 2021
9b9fdd9
refactor(query-params): address PR comments
landonreed Jun 28, 2021
29104a3
test: update snaps
landonreed Jun 28, 2021
a3da932
Merge pull request #258 from ibi-group/add-missing-params
evansiroky Jul 1, 2021
f9e65ec
chore(release): 3.2.1 [skip ci]
semantic-release-bot Jul 1, 2021
61526d8
fix: fix transit-vehicle-overlay deps/coreUtils imports
landonreed Jul 1, 2021
1887760
refactor: address PR comments
landonreed Jul 6, 2021
551a204
fix: include required babel plugin for certain async/await code
evansiroky Jul 8, 2021
ad1a6e2
fix: bump humanize-distance to latest version in various packages
evansiroky Jul 8, 2021
6710381
Merge pull request #6 from ibi-group/babel-fix
landonreed Jul 8, 2021
b4353a5
Merge pull request #259 from ibi-group/fix-vehicle-deps
evansiroky Jul 8, 2021
6b0cda2
chore(release): 1.2.1 [skip ci]
semantic-release-bot Jul 8, 2021
0c34825
chore(release): 2.1.1 [skip ci]
semantic-release-bot Jul 8, 2021
25ad84e
chore(release): 2.1.1 [skip ci]
semantic-release-bot Jul 8, 2021
ab0969b
chore(release): 1.1.1 [skip ci]
semantic-release-bot Jul 8, 2021
7e55b9f
chore(release): 1.2.1 [skip ci]
semantic-release-bot Jul 8, 2021
03c4928
fix: include brief documentation update to trigger release
evansiroky Jul 9, 2021
36533d9
Merge pull request #261 from ibi-group/babel-fix-core-utils-release
evansiroky Jul 9, 2021
b12b0f8
chore(release): 3.2.2 [skip ci]
semantic-release-bot Jul 9, 2021
67033ee
fix(vehicle-rental-overlay): hide overlay when set to not be visible
miles-grant-ibigroup Jul 14, 2021
8d34fad
fix(vehicle-rental-overlay): address pr comments
miles-grant-ibigroup Jul 19, 2021
50e0e7d
refactor(vehicle-rental-overlay): move base-map to peerDependencies
miles-grant-ibigroup Jul 19, 2021
e821591
Merge pull request #265 from opentripplanner/hide-vehicle-overlay
landonreed Jul 19, 2021
eaebf8c
chore(release): 1.1.1 [skip ci]
semantic-release-bot Jul 19, 2021
0e73304
Make alert icons on itinerary configurable
grant-humphries Jul 13, 2021
2fc43f2
fix: properly render vehicle rental layer with 0 stations
evansiroky Jul 20, 2021
838c5f1
feat: update various packages and improve testing
evansiroky Jul 20, 2021
2030f38
refactor(vehicle-rental-overlay): add knob to story; update comment
landonreed Jul 20, 2021
80af39a
feat(itin-body): make alert icons on itinerary configurable
landonreed Jul 20, 2021
5e89678
Merge pull request #264 from opentripplanner/itinerary-icon-props
landonreed Jul 20, 2021
188643f
chore(release): 2.2.0 [skip ci]
semantic-release-bot Jul 20, 2021
644bf08
Merge pull request #7 from ibi-group/vehicle-rental-overlay-fixes-ltr
evansiroky Jul 20, 2021
585c0f6
docs(vehicle-rental-overlay): add code comments about visibility prop
evansiroky Jul 21, 2021
3ea55d1
Merge pull request #267 from ibi-group/vehicle-rental-overlay-fixes
evansiroky Jul 21, 2021
b6da184
chore(release): 1.1.2 [skip ci]
semantic-release-bot Jul 21, 2021
420d110
Merge branch 'otp/master' into storyshot
evansiroky Jul 21, 2021
9a28041
test: update storyshot snapshots
evansiroky Jul 22, 2021
ee2f276
docs: add to note about Storyshot to project readme
evansiroky Jul 22, 2021
b27996f
fix: fix color contrast (accessibility)
miles-grant-ibigroup Aug 5, 2021
011e412
refactor(trip-detail): a11y: add title to wordless button
miles-grant-ibigroup Aug 5, 2021
dc65df3
refactor: address color-contrast issues
miles-grant-ibigroup Aug 5, 2021
6dbf5d3
test: add a11y storyshot testing
miles-grant-ibigroup Aug 5, 2021
d00c763
chore: don't lint storybook static output
miles-grant-ibigroup Aug 5, 2021
e6fd90b
Merge branch 'storyshot' into a11y-testing
miles-grant-ibigroup Aug 5, 2021
1486cf1
test: update snapshots to match a11y fixes
miles-grant-ibigroup Aug 5, 2021
86bb38c
refactor: a11y fixes and notices
miles-grant-ibigroup Aug 5, 2021
59cfcfb
refactor: address pr comments
miles-grant-ibigroup Aug 5, 2021
6afe849
chore: update react peer dependencies to correct version
evansiroky Aug 10, 2021
9befb32
build: always run yarn before starting storybook
evansiroky Aug 10, 2021
1d369ae
docs: note changes to running storybook and storyshot
evansiroky Aug 10, 2021
2d095a0
Merge branch 'storyshot' of github.com:ibi-group/otp-ui into a11y-tes…
miles-grant-ibigroup Aug 11, 2021
641de5f
test: extract a11y tests to seperate command
miles-grant-ibigroup Aug 11, 2021
1f02f4c
refactor: remove previous color comments
miles-grant-ibigroup Aug 11, 2021
abc8fdd
refactor: properly seperate a11y and storybook tests
miles-grant-ibigroup Aug 11, 2021
fd2a17e
refactor: add a11y tests to test command
miles-grant-ibigroup Aug 12, 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
15 changes: 15 additions & 0 deletions .github/workflows/codespell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# GitHub Action to automate the identification of common misspellings in text files.
# https://github.com/codespell-project/actions-codespell
# https://github.com/codespell-project/codespell
name: codespell
on: pull_request
jobs:
codespell:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
skip: ./.git,yarn.lock,*__mocks__/*
48 changes: 48 additions & 0 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Node.js CI

on:
push:
branches:
- master
- alpha
- beta
- next
- next-major
# This is an attempt to match semantic-release's branch pattern using
# GitHub Actions' regex-like matching
# See https://semantic-release.gitbook.io/semantic-release/v/beta/usage/configuration#branches
# See https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#filter-pattern-cheat-sheet
- "[0-9]+.[0-9]+.x"
- "[0-9]+.x.x"
- "[0-9]+.x"
pull_request:

jobs:
test-build-release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install npm packages using cache
uses: bahmutov/npm-install@v1
- name: Lint code
run: yarn lint:js
- name: Lint styles
run: yarn lint:styles
- name: Type check
run: yarn typescript
- name: Run tests
run: yarn unit
- name: Run a11y tests
run: yarn a11y-test

# at this point, the build is successful
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
*.log
.DS_Store
.jest-*
esm
lib
node_modules
.idea
storybook-static/
10 changes: 8 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"repositoryUrl": "https://github.com/opentripplanner/otp-ui.git",

"fail": [],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/github",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/release-notes-generator"
],
"repositoryUrl": "https://github.com/opentripplanner/otp-ui.git",
"success": []
}
5 changes: 0 additions & 5 deletions .storybook/addons.js

This file was deleted.

3 changes: 0 additions & 3 deletions .storybook/config.js

This file was deleted.

29 changes: 29 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const path = require("path");

module.exports = {
"addons": [
"@storybook/addon-a11y",
"@storybook/addon-actions",
"@storybook/addon-docs",
"@storybook/addon-essentials",
"@storybook/addon-knobs",
"@storybook/addon-links",
{
name: '@storybook/addon-storysource',
options: {
rule: {
// test: [/\.stories\.jsx?$/], This is default
include: [path.resolve(__dirname, './src')],
},
loaderOptions: {
prettierConfig: { printWidth: 80, singleQuote: false },
}
}
},
"@storybook/addon-viewport"
],
"stories": [
"../packages/**/*.story.mdx",
"../packages/**/*.story.@(js|jsx|ts|tsx)"
]
}
10 changes: 10 additions & 0 deletions .storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { addons } from '@storybook/addons';

addons.setConfig({
sidebar: {
// This prevents showing "roots" or headings for certain stories that have
// nested hierarchies.
// See https://storybook.js.org/docs/react/writing-stories/naming-components-and-hierarchy#roots
showRoots: false
}
})
31 changes: 31 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

export const parameters = {
a11y: {
config: {
rules: [
{
// moved to technical backlog
id: 'aria-required-parent',
reviewOnFail: true,
},
{
// Appears to be a story bug
id: 'duplicate-id',
reviewOnFail: true
},
{
// Appears to be a story bug
id: 'duplicate-id-aria',
reviewOnFail: true
}
],
},
},
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
}
28 changes: 0 additions & 28 deletions .storybook/webpack.config.js

This file was deleted.

13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

28 changes: 8 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ See:

```bash
git checkout https://github.com/opentripplanner/otp-ui.git
yarn install
yarn dev # (opens storybook to running component library on localhost:5555)
yarn dev # (installs packages, transpiles files, opens storybook to running component library on localhost:5555)
```

## Development
Expand All @@ -30,16 +29,12 @@ Some packages in otp-ui depend on sibling packages (e.g., `@opentripplanner/core

> "@opentripplanner/package-to-test": **"file:../package-to-test"**

2. In your source files, find and replace:

> opentripplanner/package-to-test/**lib**/types
2. Run:
`yarn && yarn dev`

with
### Storyshot testing

> opentripplanner/package-to-test/**src**/types

3. Run:
`yarn && yarn dev`
This repo utilizes the [Storyshot](https://storybook.js.org/docs/react/workflows/snapshot-testing) Storybook addon to perform snapshot tests of every story in this monorepo. Whenever the script `yarn unit` is ran, the Storyshot addon will be included along with all the other tests. It will compare the initial output of every story to the saved snapshot of that story. This provides a quick way to make sure nothing drastic has changed and that every single story is able to initially render without an error. Storyshot doesn't snapshot all possible changes that can be done while interacting with story components. Often times these snapshots will need to be updated and that can be accomplished by running `yarn unit -u`.

## Stack

Expand All @@ -64,15 +59,8 @@ Some packages in otp-ui depend on sibling packages (e.g., `@opentripplanner/core
- `npx lerna diff` - Show specifically what files have cause the packages to change.
- `npx lerna create <packageName>` - Creates new package and walks through setting up package.json

## Lerna Publish to NPM
## Releasing

Some commands you might need to execute for lerna to publish to npm:
This project uses semantic-release to create releases to NPM. It is expect that contributors create [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/) messages. These are then parsed by semantic-release which will automatically create an appropriate release for each package whenever a branch is merged to master.

```bash
npm whoami
(if whomai comes back null, then: npm login; npm config set access public)
npx lerna changed
npx lerna publish # option 1: default publish
npx lerna publish 0.0.21 --force-publish=* # option 2: publish all components to version X
yarn deploy-storybook
```
Sometimes when creating new releases, it will be necessary to update numerous packages within this repo at once to a newer internal package version. For this purpose there is the `update-internal-dependencies` script. This should be ran manually as needed. By default, `yarn update-internal-dependencies` will update all dependencies with the `@opentripplanner` scope in all packages within this project. To only update specific dependencies, it is possible to run something like `yarn update-internal-dependencies core-utils base-map`. This would update all dependencies on either the `@opentripplanner/base-map` or the `@opentripplanner/core-utils` in all packages in this project.
Loading