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

Revert iTwinUI v3 #114

Merged
merged 3 commits into from
Dec 14, 2023
Merged

Revert iTwinUI v3 #114

merged 3 commits into from
Dec 14, 2023

Conversation

veekeys
Copy link
Member

@veekeys veekeys commented Dec 13, 2023

Changed version of iTwinUI to v2. Some major changes reverted, some kept.
Checked storybook, looked OK.
For manage-versions package made changes as none, thought #112 would be the one getting the patch.. But probably should make 2 separate releases anyway ?

@raplemie
Copy link
Collaborator

@Pooja17-bentley, @anirban-chakraborty-bentley, @SorexBentley, @DanishMehmood-bit, @aruniverse, @manwadkaraksh, @kckst8

With this PR we are looking at reverting the changes we introduced last week with iTwinUI V3, the main reason being the theme not being synched between V2 and V3, an upcoming minor to iTwinUI V3 should fix this, but we have pending PRs and upcoming requests that will make this a bit difficult for the time being to stay on V3, on top of the missed Breaking change I tries to address in #113.

The plan short term is to release this as a patch, if you already added the styles to your application, it will not be a problem because it will not impact these packages, and you will be ready for the next version, which will be a Major, when the few issues are adressed by iTwinUI V3.

I cant reach out to everyone, but you are the latest ones that contributed or reached out directly to me with these changes.

@aruniverse
Copy link
Member

an upcoming minor to iTwinUI V3 should fix this

do we have an eta for this?

…date_2023-12-13-13-05.json

Co-authored-by: Arun George <11051042+aruniverse@users.noreply.github.com>
@raplemie
Copy link
Collaborator

an upcoming minor to iTwinUI V3 should fix this

do we have an eta for this?

The PR is already merged, I don't know what is iTwinUI release schedule.
iTwin/iTwinUI#1735
@mayank99 is the release date for 3.1 known ?

@mayank99
Copy link

The PR is already merged, I don't know what is iTwinUI release schedule. iTwin/iTwinUI#1735 @mayank99 is the release date for 3.1 known ?

3.1.0 was released just now! Try it out and let us know if the theme inheritance works like you'd expect.


Do you still want to revert to v2 or is this PR no longer necessary? Could just merge #112 and #113 instead and make a patch release.

@aruniverse
Copy link
Member

3.1.0 was released just now! Try it out and let us know if the theme inheritance works like you'd expect.

worked for me in my test app

@raplemie
Copy link
Collaborator

@aruniverse Can you confirm that you dont see that weird light theme flicker that I get in Storybook ?

chrome_l3ScrXVW33.mp4

@aruniverse
Copy link
Member

Confirm,

Screen.Recording.2023-12-13.at.3.15.05.PM.mov

@aruniverse
Copy link
Member

aruniverse commented Dec 13, 2023

3.1.0 was released just now! Try it out and let us know if the theme inheritance works like you'd expect.

worked for me in my test app

you can play with it here, https://viewer.itwin.dev/, see 3.0.x deployed here

@anirban-chakraborty-bentley

@raplemie Now that we have 3.1.0 are we still planning to proceed with this PR?

@veekeys
Copy link
Member Author

veekeys commented Dec 14, 2023

But if I understand correctly, we are not running away from the need of importing styles.css in consuming app and we need to document that throughout these packages...?
There are some visual impact @Pooja17-bentley pointed out, so I would still rather go with this one, let the changes be merged from #112 and calmly then update again to v3 and verify the scope of impact.

@Pooja17-bentley
Copy link
Contributor

Pooja17-bentley commented Dec 14, 2023

But if I understand correctly, we are not running away from the need of importing styles.css in consuming app and we need to document that throughout these packages...? There are some visual impact @Pooja17-bentley pointed out, so I would still rather go with this one, let the changes be merged from #112 and calmly then update again to v3 and verify the scope of impact.

I have tried with new itwinui-react v3.1.0 and importing styles in application using alias to v3 version but still getting below issues for manage-version package:

  1. Not getting scroll when we have numerous changesets/nv in tables.
  2. For create/update modal-
    image
  3. Changes tab content loading issue on its first render
    loading issue
    Note: - the above loading issue occurs on using composition API for tab, with legacy API we don't get this issue.

@raplemie
Copy link
Collaborator

Given the visual changes, we'll move on with this and then release a proper Major update, with 3.1.0 already fixing the theming, it is just a question of reacting to different changes, but there is still the styles.css import which is a breaking change and shouldnt have made it in a minor, I also noticed that we were using deprecated stuff in the UploadImage component, so we'll take some time to fix those correctly and release the Major then.

Some of the people that already updated noticed it, but we still have a lot of usage using the previous minor so not everyone have hit this issue yet, for those, we should make it clear and not continue on our mistake.

Copy link
Collaborator

@raplemie raplemie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with this, we will move back to iTwinUI V3 soon to help adoption with a clear Major and documentation.

@raplemie raplemie merged commit bc7eb72 into main Dec 14, 2023
3 checks passed
@raplemie raplemie deleted the vyki/revert-iui-update branch December 14, 2023 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants