Skip to content
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

0.18: Groups view updates #12696

Conversation

nucleogenesis
Copy link
Member

@nucleogenesis nucleogenesis commented Oct 2, 2024

Summary

2024-10-02.16-05-03.mp4
  • Updates strings to match new designs per Update views to create new "Groups" pages #12678
  • "Learn more" link opens new "About groups" modal
  • Adds "Learn more" to common strings
  • Adds "header" slot to "PlanHeader" component to permit more flexible display of title/className/description/etc
  • Adds "Enroll learners" option in the "GroupsPage/TableRow" component, emitting "enroll" when selected (handling not implemented yet)

References

Closes #12678

Reviewer guidance

  • Review the designs in Update views to create new "Groups" pages #12678 and look at the Groups tab; see that changes indicated there are in place.
  • Can rename and delete groups from new context menu on manage groups page (where you see users in the group)
  • See "Enroll learners" option in each group's options dropdown in the groups table, clicking it takes you to enroll learners in that row's group
  • Other tabs still work (Lessons, Quizzes)

@nucleogenesis nucleogenesis added the TODO: needs review Waiting for review label Oct 2, 2024
@github-actions github-actions bot added APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend labels Oct 2, 2024
@@ -17,6 +17,11 @@ export const coreStrings = createTranslator('CommonCoreStrings', {
context:
'Button to cancel an action and return to the previous page. Usually this is the opposite of the save button which saves some piece of information.',
},
learnMoreAction: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also defined in

  • MissingresourceAlert (kolibri-common)
  • DataPage (facility)
  • ProfilePage/index (user_profile)

Could update those in this PR, make a follow-up issue, or just revert this change and add this same string to the GroupsPage component

@nucleogenesis nucleogenesis added the TAG: user strings Application text that gets translated label Oct 2, 2024
@pcenov
Copy link
Member

pcenov commented Oct 3, 2024

Hi @nucleogenesis,

I was able to identify the following issues, which I can also report as follow-ups:

  1. When I am within a group and I select the Delete group option then I see some errors in the console and remain at the same page seeing "This group doesn't exist". For this scenario I would expect to be brought back to the Groups page while seeing the snackbar notification that the group is deleted:
delete.a.group.mp4
  1. In Update views to create new "Groups" pages #12678 there's an image suggesting that while viewing a group one should be able to see the name of the class, while currently I can see the number of learners:

missing class name

  1. When I enroll all of the available learners in a group and then open again the "Enroll learners into..." page then I see the following text All users are already enrolled in this class. This is not caused by changes made here, but if possible we should change it to All users are already enrolled in this group

enrolled in group

@nucleogenesis
Copy link
Member Author

Thanks @pcenov your 2) item I will address here.

For 1) and 3) these are great feedback. I also found it odd that there was even a "this group doesn't exist" message there rather than sending us back to the groups page.

As for changing that string, I can update it quickly here unless @marcellamaki thinks this should be a part of some upcoming strings/i18n review

@marcellamaki
Copy link
Member

@nucleogenesis for 3) are we currently using the "already enrolled in this class".... as an "error" string for class enrollments? might need to be an additional string, rather than a change?

@nucleogenesis
Copy link
Member Author

@pcenov I went to fix (2) but ended up fixing all of them.

@marcellamaki that "All learners..." is only used on that component, so I've updated it from class to group accordingly.

Additionally, I've added a line that returns the user to the Groups page if they delete the group from that Group's member list page.

Comment on lines +26 to +29
<KIcon
icon="classes"
class="class-name-icon"
/>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not use a KLabeledIcon here because the classes icon is, by default, far too small compared to the text.

Copy link
Member

@pcenov pcenov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nucleogenesis - I confirm that the reported issues are fixed now - everything is implemented as specified in #12678

@radinamatic

Copy link
Member

@marcellamaki marcellamaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nucleogenesis, looks great. I added one tiny non-blocking suggestion for comment phrasing, but fine to leave as-is if you think it's clearer

default:
// eslint-disable-next-line no-console
console.warn(
`GroupRow: Tried to handleSelection of ${selectedOption}, but that isn't being handled.`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that isn't being handled

totally a nit and not blocking, but, this means there's no matching case, right? I think if you were to say that, instead of "isn't being handled", it would be clearer

@nucleogenesis nucleogenesis merged commit 9e8b8fb into learningequality:develop Oct 7, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend TAG: user strings Application text that gets translated TODO: needs review Waiting for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update views to create new "Groups" pages
3 participants