-
Notifications
You must be signed in to change notification settings - Fork 189
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
Upgrade the unstable branch to KDS v3.0.0 #4412
Upgrade the unstable branch to KDS v3.0.0 #4412
Conversation
Installs the dependency
Fixes "Error: Can't resolve 'kolibri-design-system/lib/utils/i18n'" caused by removal of this file in KDS v2.0.0 by copying the removed file content directly to Studio.
Remove deprecated `value` prop in favor of the new `buttonValue` prop that's supposed to replace it in `KRadioButton`.
101fb87
to
0311c02
Compare
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.
Hi Misha! I went through all components that have changed from e9a2ff34716bb6412fe99f835ded5b17345bab94 to v3.0.0 that were present in studio and didn't find any errors either in the console or visually.
But I noticed that the accessibility issue about the invisible outline in the KCheckbox and KRadioButtons when navigating with the keyboard is still present after the KDS update. I saw a bit about why it was happening and it seems to be an issue with the globalThemeState.inputModality
not recognizing that we are navigating with the keyboard, but it's definitely not something related to the KDS update as it was happening before too, so I'll open a new issue for this.
Oh I also checked that place @bjester and didn't find any errors. But I just replicated it now, it seems that it is necessary to delete the |
@AlexVelezLl Oh that's a good catch! Any reason we aren't updating the |
I had flagged this to @MisRob earlier this week too, so I think it will be going into the checklist for future releases (although I had also missed the preceding v issue!), so hopefully this will not be a problem for subsequent upgrades! |
Yes, apologies, I forgot to do that. Thanks @AlexVelezLl, as you say, removing |
Requiring any and all contributors to delete KDS from |
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.
Great - thanks @bjester and @AlexVelezLl for your reviews, and @MisRob for your work on this! The code changes make sense to me as well, so let's go ahead and merge. I think anything that might come up during later QA would be small enough that we can address separately.
And thanks, @AlexVelezLl for noticing the focus problem with the inputModality
and offering to write a follow up issue for it! that would be great. :)
Summary
Description of the change(s) you made
Upgrades KDS version in Studio from the KDS commit e9a2ff34716bb6412fe99f835ded5b17345bab94 from Jun 7, 2022, to the new KDS
v3.0.0
(and several versions in between).Manual verification steps performed
First, I audited Studio, KDS release notes and diffs to get an idea of the scope and affected places. Results are here #4411.
For components that shouldn't have breaking updates, I previewed them visually at a few places. Quite often on both desktop and mobile. I also tried to use them when relevant. Checked the nature of changes in the release notes, and if I knew about some updates that weren’t in the older release notes, I peaked into git diffs to see if there’s something to be careful about.
I also tried to observe unexpected UI shifts and related browser errors when navigating the Studio. Haven’t noticed anything but I likely didn’t visit all pages.
For components with breaking updates:
KCheckbox
: Made an update, see the commit messages.KButton
: Searched for buttons that use bothtext
prop and default slot since buttons are said to break only in this case. I haven't find any.KCheckbox
: Searched for checkboxes that have<label>
in their default slot since the breaking change applies only to them. I haven't find any.Also clicked all these and tested some workflows that use them.
Reviewer guidance
First, please read through #4411 that includes Studio audit and linked KDS release notes. Then, you could
Are there any risky areas that deserve extra testing?
References
See many release notes and links to diff linked in Upgrade the
unstable
branch to KDSv3.0.0
#4411Closes Upgrade the
unstable
branch to KDSv3.0.0
#4411Closes Install KDS Version 2.0.0 #4311
Contributor's Checklist
PR process:
CHANGELOG
label been added to this PR. Note: items with this label will be added to the CHANGELOG at a later timedocs
label has been added if this introduces a change that needs to be updated in the user docs?requirements.txt
files also included in this PRStudio-specifc:
notranslate
class been added to elements that shouldn't be translated by Google Chrome's automatic translation feature (e.g. icons, user-generated text)pages
,components
, andlayouts
directories as described in the docsTesting:
Reviewer's Checklist
This section is for reviewers to fill out.
yarn
andpip
)