-
Notifications
You must be signed in to change notification settings - Fork 185
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
Refactored Icon to use KIcon #4502
Conversation
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 @BabyElias, great work overall. Thanks so much. I imagine it took lots of time and effort. Also thanks for the overview of places that still need some work. Taking into account that this PR is already large, you took steps to ensure that the remaining places won't break, some design decisions will be needed for some of the blocked issues, and neither of them is time pressing, I will plan for the remaining work later in the form of gradually opening new issues.
I tested several places, including those with more tricky elements like tooltips, and aside from my feedback, they all looked good to me. As agreed with @bjester, after we merge this work, there will be more thorough testing as part of the pre-release QA.
Finally, here's a summary of what needs to happen in this PR:
- I'm leaving several requests for updates, primarily regarding the use of KDS theme tokens and palette. I've explained in detail in some more complex places but left simpler ones without explanation. To understand why I suggest particular tokens or colors, you can refer to the KDS documentation on colors, where tokens are documented along with recommendations for their usage. And feel free to ask any clarifying questions.
- The tests need to be fixed before we can merge. Have you had a chance to look at what the problem is?
- Let's chat about a few things that I posted clarifying questions for
contentcuration/contentcuration/frontend/administration/pages/Channels/ChannelDetails.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/administration/pages/Users/UserDetails.vue
Outdated
Show resolved
Hide resolved
...ontentcuration/frontend/channelEdit/components/AssessmentItemEditor/AssessmentItemEditor.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/channelEdit/components/edit/EditModal.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/channelEdit/components/AssessmentItemToolbar.vue
Show resolved
Hide resolved
...ration/contentcuration/frontend/channelEdit/components/AssessmentEditor/AssessmentEditor.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/channelEdit/components/ContentNodeChangedIcon.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/channelList/views/Channel/ChannelItem.vue
Outdated
Show resolved
Hide resolved
contentcuration/contentcuration/frontend/shared/views/HelpTooltip.vue
Outdated
Show resolved
Hide resolved
@BabyElias Yes, I confirm the |
That worked! Thank youu so much |
contentcuration/contentcuration/frontend/channelEdit/components/AssessmentItemToolbar.vue
Show resolved
Hide resolved
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.
Thanks for taking this on! I think some attention is needed to RTL language flipping, but overall it looks great!
Some rtl-flip
classes that still exist on some icons can probably be cleaned up. More info in my comments.
...on/contentcuration/frontend/channelEdit/views/ImportFromChannels/ImportFromChannelsModal.vue
Outdated
Show resolved
Hide resolved
Good catch @bjester, thanks. It is indeed the responsibility of Even though I don't know about the specific cases in detail, I already saw situations in our products where we flipped something that was already flipped causing it not to be flipped at all :)! In any case, I'm pretty sure that if we discover some issues after removing it, those need to be addressed in KDS and not in Studio anyways. |
Made the required changes wrt rtl-flip. |
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.
Thanks @BabyElias, I reviewed the additions all is looking good to me now. Good work!
@BabyElias In retrospect, I realized that we don't have the |
Description of the change(s) you made
VIconWrapper
to facilitate usage by other Vuetify componentsManual verification steps performed
Ran
studio
after making all the changes and verified manually if the icons are behaving as expected.Does this introduce any tech-debt items?
A few occurrences of Icon could not be replaced, majorly due to problems associated with KTooltip that need to be fixed first before working on replacing them. They have been listed with proper reasons in this file.
Reviewer guidance
How can a reviewer test these changes?
Running the application locally.
Are there any risky areas that deserve extra testing?
Places where icons have been used under slow-internet testing conditions.
Comments
80% of the audit has been completed. Almost 30 icons remain to be audited now, out of 160 total. Since the review might take some time, I have created a draft PR for ensuring smooth review process.
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
)