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

Integrate shopping cart into lesson resource selection side panel #12996

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

AlexVelezLl
Copy link
Member

@AlexVelezLl AlexVelezLl commented Jan 13, 2025

Summary

  • Integrates shopping cart into lesson resource selection side panel.
  • Implemts functionality to add selected resources to lesson.
  • Adds a guard to show a closing confirmation modal when closing the modal with modified changes.
Compartir.pantalla.-.2025-01-13.16_12_02.mp4

References

Closes #12990.

Reviewer guidance

  • Create or edit a lesson
  • Change browser route path from "/lesson" to "lessontemp".
  • Select/deselect resources to add to the lesson.
  • Check the shopping cart, its reactiveness, buttons, etc.
  • Check that save button works in different scenarios.

Implementation notes

As we shouldnt have repeated resources in a lesson, I have make sure to save unique resoures in the list. This implies that if a user is selecting a resource that is already in the lesson, it will just "ignore" it (because of the unification process). So it wont take it into account to make the save request, neither to show the close confirmation message if no new resources are being added. Does this makes sense?

@github-actions github-actions bot added APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend labels Jan 13, 2025
@@ -0,0 +1,263 @@
<template>
Copy link
Member Author

Choose a reason for hiding this comment

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

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Follow up: update shopping cart to consume the "current working state" rather than the saved lesson state
1 participant