-
Notifications
You must be signed in to change notification settings - Fork 256
Update how About License information is displayed in EditSourceModal #4716
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
Update how About License information is displayed in EditSourceModal #4716
Conversation
marcellamaki
left a comment
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 Liana - this looks good thank you for working on it. I also did manual QA and it is working as expected, and since these strings were pre-existing, I did the review in Spanish and confirmed that they were all being imported and referenced correctly.
A (very tiny) nitpick change and also a clarifying question, but overall this seems more-or-less ready to go.
| }, | ||
| data() { | ||
| return { | ||
| reqeuestFormStrings: crossComponentTranslator(RequestForm), |
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.
A small nitpick and a curiosity question:
- there's a typo here
reqeuest(it's working, though! the spelling is consistent. but a nice small cleanup) - It seems like even though I had problems with the modal interaction previously, it was working for you with the correct text (modal-in-modal, as originally designed). I'm wondering how the strings were working? I don't see crossComponent translator used in the deleted file. It's not a problem! I'm just trying to figure it out for the sake of a comprehensive review 😄
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 catching this, not sure how I missed it!
- I believe the problems you were having was because the License input was disabled. I noticed this happening when it is unable to be edited I think because it is not in its original location. The strings worked fine but they were directly in the deleted file so instead of adding them over again in
LicenseDropdown.vue, I decided to use the crossComponent translator. I was unsure if adding the same strings toLicenseDropdown.vuewould import the translated strings the correct way.
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.
okay thank you @LianaHarris360!
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.
| :hide-selected="isMixedLicense" | ||
| :menu-props="{ ...menuProps, maxHeight: 250 }" | ||
| class="ma-0" | ||
| :class="{ 'with-trailing-input-icon': box }" |
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 had this class to include the trailing icon for the about licenses modal. As we are removing this, we need to remove also this line and/or fix these alignment styles, and all the related styles here https://github.com/LianaHarris360/studio/blob/0cefdcec13a859cb739914fdb6cd0fabb65c99d9/contentcuration/contentcuration/frontend/shared/views/LicenseDropdown.vue#L242, as this cause this little misalign in the dropdown icon.
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 pointing this out, I was wondering about this misalignment but didn't initially see where it was being set. Now I can get it fixed!
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 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 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 believe this bug was present before these changes were made. I attempted to edit the source on unstable and encountered the same issue. Adding a minimum width fixes it! I also noticed it had a slightly darker background than the rest of the inputs in the EditSource modal and updated that as well.
EditSourceLicense.mov
hmmmmm. this is a good point, @AlexVelezLl, thank you for raising. I don't know if we want to change this within the edit modal or not. @LianaHarris360 can I think on this for a day? I don't think it's necessarily a problem if we do. I just want to make sure we're being intentional. (cc @akolson and @radinamatic) |
|
I think this is ready to merge. Any additional issues, which I don’t see as blockers, can be addressed in a follow-up issue. cc @marcellamaki. @AlexVelezLl could you please create an issue with the details and approve this so it can be merged? Thanks @LianaHarris360 for the fix and follow through. |
AlexVelezLl
left a comment
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 Liana! Looks good to me! @akolson I son see any aditional issues, just finishing the decisioin whether we want this version in the "edit all details" modal, although imo there is no problem with that, and it would be good for concistency. Thanks!






Summary
Description of the change(s) you made
This PR resolves the confusion surrounding the question mark icon in the disabled License input field, which previously made it unclear if the question mark icon was interactive. It ensures that even when the input is disabled, users can still access information about licenses and removes the modal opening another modal functionality.
Screenshots (if applicable)
Before:
AboutLicensesBefore.mov
After:
AboutLicensesAfter.mov
References
Closes #4679
Comments
AboutLicensesModal.vueand contents within toLicenseDropdown.vueSET_SHOW_ABOUT_LICENSESand references.isAboutLicensesModalOpengetter.KButtontoLicenseDropdown.vueand toggling functionality.Contributor's Checklist
PR process:
CHANGELOGlabel been added to this PR. Note: items with this label will be added to the CHANGELOG at a later timedocslabel has been added if this introduces a change that needs to be updated in the user docs?requirements.txtfiles also included in this PRStudio-specifc:
notranslateclass been added to elements that shouldn't be translated by Google Chrome's automatic translation feature (e.g. icons, user-generated text)pages,components, andlayoutsdirectories as described in the docsTesting:
Reviewer's Checklist
This section is for reviewers to fill out.
yarnandpip)