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

Quiz creation resource selection: Topic selection & "Select all" #11864

Conversation

nucleogenesis
Copy link
Member

@nucleogenesis nucleogenesis commented Feb 13, 2024

Summary

  • Implements topic selection logic (can select topic when all children are fetched and are exercises)
  • [De]select all accounts for possibility of topics, using new hasCheckbox logic
  • Only shows "Select all" when every child hasCheckbox based on the new logic
  • Generally begins moving logic into relevant blocks within setup()
  • Show warning icon & message on topic cards which cannot be selected
  • Show message above cards list when any topic is listed that cannot be selected

image

References

Closes #11790

Reviewer guidance

Messaging

  • Go to create a quiz and use a channel like the QA channel to get a mix of folders which meet the messaging criteria
  • Navigate and see that when you cannot select a folder, it has the warning on the card
  • Note that if any topic has the warning, then the message appears at the top as shown in the screenshot above
  • No non-folder should ever have the warning message
  • The message at the top should not be visible if there are no folders which have the warning

Select all logic

  • When a folder has a checkbox and you click it, you should see all of it's child exercises have been selected

@github-actions github-actions bot added APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend SIZE: medium labels Feb 13, 2024
@nucleogenesis nucleogenesis force-pushed the fix--topics-checkbox-and-select-all branch from 2204222 to e40d90e Compare February 16, 2024 19:16
@nucleogenesis nucleogenesis marked this pull request as ready for review February 16, 2024 19:33
@@ -296,6 +400,8 @@
resetWorkingResourcePool,
contentPresentInWorkingResourcePool,
//contentList,
cannotSelectTopicCard$,
cannotSelectSomeTopicWarning$,
Copy link
Member

@AllanOXDi AllanOXDi Feb 26, 2024

Choose a reason for hiding this comment

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

I also want to note that this string is showing at up at the first level when I use back navigation to navigate back . In addition, I tested with QA channel and tigil-fajod but one will not show up at the end of the routes when using the back button to exit the navigation except the active working resource pool .
Screenshot 2024-02-27 at 00 03 02

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 think that once #11862 is merged with this that this will be resolved - I'll make note of this to check it specifically in testing after merging.

@@ -366,6 +458,12 @@
},
},
methods: {
showTopicSizeWarningCard(content) {
Copy link
Member

Choose a reason for hiding this comment

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

This makes me think that we need to properly update this method to handle to topic selection- for now I think it's getting lost in the way we are handling back route navigation.

<div
v-if="showTopicSizeWarning()"
class="shadow"
:style=" { padding: '1em', backgroundColor: $themePalette.grey.v_100 }"
Copy link
Member

Choose a reason for hiding this comment

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

Just curious how this will look in the new LE's theme.

Copy link
Member Author

@nucleogenesis nucleogenesis Feb 26, 2024

Choose a reason for hiding this comment

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

Yeah that's a good point - @jtamiace mentioned to me that the colors palette will be reduced a bit so I think uses of the palette like this might need to be updated when that happens.

- Implements topic selection logic (can select topic when all children are fetched and are exercises)
- [De]select all accounts for possibility of topics, using new `hasCheckbox` logic
- Only shows "Select all" when every child `hasCheckbox` based on the new logic
- Generally begins moving logic into relevant blocks within setup()
@nucleogenesis nucleogenesis force-pushed the fix--topics-checkbox-and-select-all branch from e40d90e to ecb5920 Compare February 26, 2024 23:08
Copy link
Member

@AllanOXDi AllanOXDi left a comment

Choose a reason for hiding this comment

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

Looks good! The navigation business will be handled in #11862 . Thanks @nucleogenesis

@nucleogenesis nucleogenesis merged commit 3ddc601 into learningequality:develop Feb 27, 2024
31 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 SIZE: medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Quiz Creation Select Resources- Implement disabled topic checkbox messaging
2 participants