-
Notifications
You must be signed in to change notification settings - Fork 34
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
[map-layers] migrate map layers to itwinui 3 #1136
Draft
hl662
wants to merge
14
commits into
master
Choose a base branch
from
nam/map-layer-ui3
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 8 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
855e436
migrate map layers to itwinui 3, fix build errors
hl662 705d27b
Merge branch 'master' into nam/map-layer-ui3
hl662 8f944c5
update missing documentation, update deps
hl662 ae8ca29
one test done...
hl662 ef0dfed
just mapManagerSettings tests left
hl662 f91c7fb
Merge remote-tracking branch 'origin/master' into nam/map-layer-ui3
hl662 cc2f4ec
fix the remaining test
hl662 2fb5767
Empty commit
hl662 fa304dd
replace deprecated event.Keycode
hl662 4a9536a
update itwin eslint to 5.x, related deps to latest, removed unneeded …
hl662 1435cb4
update changefile to use minor
hl662 626d893
update changefile to be major, bump itwin core pkgs to latest, remove…
hl662 60f39c7
address imodel components react deprecations, bump up to react 18, ad…
hl662 42a83b6
remove pnpm override temporarily, add some comfortable refactored com…
hl662 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@itwin-map-layers-ccc19b28-3b8c-4963-aa0f-a5d8a10efa3a.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "migrate map-layers to iTwinUI 3", | ||
"packageName": "@itwin/map-layers", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,28 +38,24 @@ | |
}, | ||
"dependencies": { | ||
"@itwin/itwinui-icons-color-react": "^2.1.0", | ||
"@itwin/itwinui-icons-react": "^2.6.0", | ||
"@itwin/itwinui-react": "^2.11.2", | ||
"classnames": "^2.3.1", | ||
"@itwin/itwinui-icons-react": "^2.8.0", | ||
"react-beautiful-dnd": "^13.1.1" | ||
}, | ||
"devDependencies": { | ||
"@itwin/appui-abstract": "^4.3.0", | ||
"@itwin/appui-layout-react": "^4.0.1", | ||
"@itwin/appui-react": "^4.0.1", | ||
"@itwin/build-tools": "^4.3.0", | ||
"@itwin/components-react": "^4.0.1", | ||
"@itwin/components-react": "^4.10.0", | ||
"@itwin/core-bentley": "^4.3.0", | ||
"@itwin/core-common": "^4.3.0", | ||
"@itwin/core-frontend": "^4.3.0", | ||
"@itwin/core-geometry": "^4.3.0", | ||
"@itwin/core-orbitgt": "^4.3.0", | ||
"@itwin/core-quantity": "^4.3.0", | ||
"@itwin/core-react": "^4.0.1", | ||
"@itwin/core-react": "^4.10.0", | ||
"@itwin/core-telemetry": "^4.3.0", | ||
"@itwin/eslint-plugin": "^4.0.0-dev.38", | ||
"@itwin/imodel-components-react": "^4.0.1", | ||
"@itwin/itwinui-variables": "^2.0.0", | ||
"@itwin/eslint-plugin": "^5.0.0", | ||
"@itwin/imodel-components-react": "^4.10.0", | ||
"@itwin/itwinui-react": "^3.16.0", | ||
"@itwin/map-layers-formats": "^4.3.0", | ||
"@itwin/webgl-compatibility": "^4.3.0", | ||
"@testing-library/dom": "^8.12.0", | ||
|
@@ -105,18 +101,18 @@ | |
"source-map-support": "^0.5.6", | ||
"ts-node": "^10.9.1", | ||
"typemoq": "^2.1.0", | ||
"typescript": "~4.6.0" | ||
"typescript": "~5.0.0" | ||
}, | ||
"peerDependencies": { | ||
"@itwin/appui-abstract": "^4.0.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe you should update the core peers to the latest? |
||
"@itwin/appui-layout-react": "^4.0.0", | ||
"@itwin/appui-react": "^4.0.0", | ||
"@itwin/components-react": "^4.0.0", | ||
"@itwin/appui-react": "^4.10.0", | ||
"@itwin/components-react": "^4.10.0", | ||
"@itwin/core-bentley": "^4.3.0", | ||
"@itwin/core-common": "^4.3.0", | ||
"@itwin/core-frontend": "^4.3.0", | ||
"@itwin/core-react": "^4.3.0", | ||
"@itwin/imodel-components-react": "^4.0.0", | ||
"@itwin/core-react": "^4.10.0", | ||
"@itwin/imodel-components-react": "^4.10.0", | ||
"@itwin/itwinui-react": "^3.16.0", | ||
"@itwin/map-layers-formats": "^4.3.0", | ||
"react": "^17.0.0", | ||
"react-dom": "^17.0.0" | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updating peers will technically be a major ver bump,
might be able to get away with minor here but that might piss off some,
if we do a major ver bump, id want to make sure we are going to the latest versions of 4.x and react to all deprecations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this to minor, could be keen on doing major, after running the linter I've reacted to the deprecations in appui, no other deprecations were found (aside from event.Keycode)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
id ant to update core and all other peer deps to the latest as well if we do a major bump
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we could split that into multiple prs, just need to hold off on publishing map-layers pkg until we are ready, or we do pre-releases
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I switched the changefile
type
to major and bumped all core pkgs and other peerDeps to the latest, minus appui-react and imodel-components-react (which would require bumping up to their 5.x vers). Do we want to bump those 2? Should we also update the peerDeps to the latest as well?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would look at what that change means, im not sure how big of an update it will be for those pkgs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's quite big... some of the components used from `imodel-components-react' are marked deprecated. On top of that, these 2 packages drop support for react 17, so we have to bump up to react 18, and respectively update peer deps of React. We'll have to use new components, edit the test cases and update type definitions for some of the react hooks in the package. Probably a larger amount of effort than what this PR is about
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there are only 3 imports from
imodel-components-react
i imagine the colorswatch components are deprecated in favor of itwinui v3 components which we should be using
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also now that im looking i see there was a mixup on what latest meant, i meant the latest 4.x, not latest version of appui which is 5.0, my apologies, shouldve been more clear
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of going directly to a major, we should publish a pre-release to make sure everything works, and can also look updating other peer dep majors to include in the full major release