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

feat: skills quiz v2 enhancements #919

Merged
merged 2 commits into from
Jan 15, 2024
Merged

feat: skills quiz v2 enhancements #919

merged 2 commits into from
Jan 15, 2024

Conversation

mahamakifdar19
Copy link
Contributor

@mahamakifdar19 mahamakifdar19 commented Jan 9, 2024

Jira Ticket: https://2u-internal.atlassian.net/browse/ENT-8191
Description: Added skills quiz v2 enhancements mentioned in the ticket and fixes for the style regressions caused in the application highlighted by @adamstankiewicz here

For all changes

  • Ensure adequate tests are in place (or reviewed existing tests cover changes)

Only if submitting a visual change

  • Ensure to attach screenshots
  • Ensure to have UX team confirm screenshots

This comment was marked as outdated.

@mahamakifdar19 mahamakifdar19 force-pushed the maham/ENT-8191 branch 3 times, most recently from 7e034d7 to f9ca83e Compare January 11, 2024 07:51
useEffect(() => {
const fetchLearnerCourseEnrollments = async () => {
try {
const response = await fetchCourseEnrollments();
Copy link
Member

Choose a reason for hiding this comment

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

[curious/clarification] Is this fetchCourseEnrollments function returning all enrollments for the learner across all enterprises? Should we be referring to only the course enrollments relevant for the currently viewed enterprise customer, instead of all enrollments?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@adamstankiewicz Yes, the fetchCourseEnrollments returns a list of all course enrollments for a user.
In Skills Quiz V1, we utilized this function to fetch the list of all enrollments and for consistency, I replicated the same approach in V2 as well.

Copy link
Member

Choose a reason for hiding this comment

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

@mahamakifdar19 While this isn't blocking feedback, I still might recommend verifying with the team / Product whether this should be using all course enrollments vs. just the course enrollments associated with the specific enterprise customer. The Enterprise Learner Portal generally isn't supposed to be aware of B2C enrollments.

src/components/skills-quiz-v2/styles/_Body.scss Outdated Show resolved Hide resolved
src/components/skills-quiz/tests/SkillsQuiz.test.jsx Outdated Show resolved Hide resolved
Copy link
Member

@adamstankiewicz adamstankiewicz left a comment

Choose a reason for hiding this comment

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

LGTM, though I defer to your team for the final approval.

@mahamakifdar19 mahamakifdar19 merged commit 4e2a4bc into master Jan 15, 2024
5 of 6 checks passed
@mahamakifdar19 mahamakifdar19 deleted the maham/ENT-8191 branch January 15, 2024 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants