KDS to Studio: Replace ResponsiveDialog by KModal in InfoModal#3075
Merged
bjester merged 1 commit intolearningequality:unstablefrom May 10, 2021
Merged
Conversation
2535261 to
c576dd1
Compare
MisRob
commented
Apr 8, 2021
| }); | ||
| }); | ||
| describe('mastery model info modal', () => { | ||
| it('should open the info modal when button is clicked', () => { |
Member
Author
There was a problem hiding this comment.
I removed this test because this behavior is the responsibility of InfoModal and is already tested there.
MisRob
commented
Apr 8, 2021
| }); | ||
| }); | ||
| describe('visibility info modal', () => { | ||
| it('should open the info modal when button is clicked', () => { |
Member
Author
There was a problem hiding this comment.
I removed this test because this behavior is the responsibility of InfoModal and is already tested there.
marcellamaki
approved these changes
May 3, 2021
Member
marcellamaki
left a comment
There was a problem hiding this comment.
This looks good @MisRob! And I agree, I think keeping InfoModal is useful in this case to better understand the purpose of the modal.
Member
|
Tested at hotfixes.studio.learningequality.org - all looks good. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Description of the change(s) you made
Replace
ResponsiveDialogbyKModalinInfoModal, which affects the following:Manual verification steps performed
Storage request form in settings
Visibility dropdown on resource edit page
License dropdown on resource edit page
Mastery model dropdown on resource edit page
Screenshots
Storage request form in settings
Visibility dropdown on resource edit page
License dropdown on resource edit page
Mastery model dropdown on resource edit page
Does this introduce any tech-debt items?
Nothing that I am aware of.
Reviewer guidance
How can a reviewer test these changes?
Please follow "Manual verification steps"
References
Part of learningequality/kolibri-design-system#157
Comments
An alternative solution would be to get rid of
InfoModalaltogether and useKModaldirectly from the places whereInfoModalis used. I've decided to keepInfoModalbecause I find it to be a useful abstraction as it also contains the logic related to the info icon and opening/closing the modal which would otherwise need to be implemented in every component that usesInfoModal.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)