-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: [FC-0044] group configurations MFE page #929
feat: [FC-0044] group configurations MFE page #929
Conversation
Thanks for the pull request, @ruzniaievdm! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
5afea18
to
9d30839
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #929 +/- ##
========================================
Coverage 92.00% 92.01%
========================================
Files 612 645 +33
Lines 10745 11255 +510
Branches 2304 2431 +127
========================================
+ Hits 9886 10356 +470
- Misses 830 867 +37
- Partials 29 32 +3 ☔ View full report in Codecov by Sentry. |
2652b60
to
5da4665
Compare
* feat: [AXIMST-63] Index group configurations page * fix: resolve discussions * fix: resolve second round discussions
* feat: [AXIMST-75, AXIMST-69, AXIMST-81] Content group actions * fix: resolve conversations
* feat: [AXIMST-87] group-configuration page sidebar * refactor: [AXIMST-87] add changes after review * refactor: [AXIMST-87] add changes after review * refactor: [AXIMST-87] add changes ater review --------- Co-authored-by: Kyrylo Hudym-Levkovych <[email protected]>
* feat: [AXIMST-93, 99, 105] Group configuration - Experiment Groups * fix: [AXIMST-518, 537] Group configuration - resolve bugs * fix: review discussions * fix: revert classname case
fix: [AXIMST-714] icon is aligned with text (#210)
1682aac
to
111917b
Compare
66fd541
to
ae15f69
Compare
Sandbox deployment successful 🚀 |
{isEditMode && ( | ||
<OverlayTrigger | ||
overlay={( | ||
<Tooltip | ||
id={`delete-restriction-tooltip-${values.newGroupName}`} | ||
> | ||
{formatMessage( | ||
isUsedInLocation | ||
? messages.deleteRestriction | ||
: messages.deleteButton, | ||
)} | ||
</Tooltip> | ||
)} | ||
> | ||
<Button | ||
disabled={isUsedInLocation} | ||
variant="outline-primary" | ||
onClick={onDeleteClick} | ||
> | ||
{formatMessage(messages.deleteButton)} | ||
</Button> | ||
</OverlayTrigger> | ||
)} |
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.
Remove, the delete option should only be shown in the non-edit mode
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.
No problem, will be removed
Do we need to apply the same logic for the experiment configurations container?
src/group-configurations/messages.js
Outdated
containsGroups: { | ||
id: 'course-authoring.group-configurations.container.contains-groups', | ||
defaultMessage: 'Contains {len} groups', | ||
description: 'Message indicating the number of groups contained within a container.', | ||
}, | ||
containsGroup: { | ||
id: 'course-authoring.group-configurations.container.contains-group', | ||
defaultMessage: 'Contains 1 group', | ||
description: 'Message indicating that there is only one group contained within a container.', | ||
}, |
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.
These can be combined into one message
containsGroups: { | |
id: 'course-authoring.group-configurations.container.contains-groups', | |
defaultMessage: 'Contains {len} groups', | |
description: 'Message indicating the number of groups contained within a container.', | |
}, | |
containsGroup: { | |
id: 'course-authoring.group-configurations.container.contains-group', | |
defaultMessage: 'Contains 1 group', | |
description: 'Message indicating that there is only one group contained within a container.', | |
}, | |
containsGroups: { | |
id: 'course-authoring.group-configurations.container.contains-groups', | |
defaultMessage: 'Contains {len, plural, one {group} other {groups}}', | |
description: 'Message indicating the number of groups contained within a container.', | |
}, |
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.
It seems we have only two options. There are groups with contains groups
and contains group
without a counter. Am I understanding this correctly?
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.
This update utilizes the plural function available with intl()
based on the value of len
. If len
equals one, it will use "group". If 'len' equals any other number, it will use "groups". This is a reduces the amount of messages required.
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.
containsGroups: {
id: 'course-authoring.group-configurations.container.contains-groups',
defaultMessage: 'Contains {len, plural, one {group} other {groups}}',
description: 'Message indicating the number of groups contained within a container.',
},
The defaultMessage
should be
containsGroups: {
id: 'course-authoring.group-configurations.container.contains-groups',
defaultMessage: 'Contains {len, plural, one {1 group} other {{len} groups}}',
description: 'Message indicating the number of groups contained within a container.',
},
src/group-configurations/messages.js
Outdated
usedInLocations: { | ||
id: 'course-authoring.group-configurations.container.used-in-locations', | ||
defaultMessage: 'Used in {len} locations', | ||
description: 'Message indicating the number of locations where the group configurations are used.', | ||
}, | ||
usedInLocation: { | ||
id: 'course-authoring.group-configurations.container.used-in-location', | ||
defaultMessage: 'Used in 1 location', | ||
description: 'Message indicating that the group configurations are used in only one location.', | ||
}, |
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.
usedInLocations: { | |
id: 'course-authoring.group-configurations.container.used-in-locations', | |
defaultMessage: 'Used in {len} locations', | |
description: 'Message indicating the number of locations where the group configurations are used.', | |
}, | |
usedInLocation: { | |
id: 'course-authoring.group-configurations.container.used-in-location', | |
defaultMessage: 'Used in 1 location', | |
description: 'Message indicating that the group configurations are used in only one location.', | |
}, | |
usedInLocations: { | |
id: 'course-authoring.group-configurations.container.used-in-locations', | |
defaultMessage: 'Used in {len, plural, one {location} other {locations}', | |
description: 'Message indicating the number of locations where the group configurations are used.', | |
}, |
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.
usedInLocations: {
id: 'course-authoring.group-configurations.container.used-in-locations',
defaultMessage: 'Used in {len, plural, one {location} other {locations}',
description: 'Message indicating the number of locations where the group configurations are used.'
},
The defaultMessage
should be
usedInLocations: {
id: 'course-authoring.group-configurations.container.used-in-locations',
defaultMessage: 'Used in {len, plural, one {1 location} other {{len} locations}',
description: 'Message indicating the number of locations where the group configurations are used.'
},
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.
Will you add a test that checks the experimental title and button render as expected?
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.
Do you mean update according to the changes above? Or do you want to cover this functionality because the tests are already added here ExperimentCard.test.jsx
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 missed that. You can ignore this comment.
0b72443
to
1b7a9c4
Compare
Sandbox deployment successful 🚀 |
Sandbox deployment successful 🚀 |
@ruzniaievdm 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Settings
Issue (figma url contains)
openedx/platform-roadmap#318
Learn about group configurations:
Testing instructions
make dev.up.lms+cms + frontend-app-course-authoring
and make checkout on this branch.contentstore.new_studio_mfe.use_new_group_configurations_page
in the CMS admin panel.Demo
Content Group
Screen.Recording.Content.Group.mov
Enrollment Track group
Screen.Recording.Enrollment.Track.Group.mov
Experiment configurations
Screen.Recording.Experiment.Configurations.mov