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

Adds ability to preview non-practice resources from the sidepanel #13012

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

Conversation

AllanOXDi
Copy link
Member

Summary

Updated the KCard in the resource selection in lessons to navigate to preview resources.
Used the existing content renderer to display the content using the /lessonstemp/ path in the updated side panel.

Before

Screenshot 2025-01-17 at 21 52 07

After

Screenshot 2025-01-17 at 21 38 21

Closes #12988

References

#12988

Reviewer guidance

  • See this
  • Navigate through the lesson workflow using the /lessonstemp path.
  • Can you successfully preview any non-exercise materials that use the content renderer ?
  • Is the side panel mobile responsiveness and a11y?

Currently not implemented

Ability to add a resource to a lesson
Have not figured out what triggered the KBreadcrumbs error in the console

@github-actions github-actions bot added APP: Coach Re: Coach App (lessons, quizzes, groups, reports, etc.) DEV: frontend labels Jan 17, 2025
Copy link
Member

@AlexVelezLl AlexVelezLl left a comment

Choose a reason for hiding this comment

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

Hey @AllanOXDi! I have left just a few comments, mainly to migrate this work to the new subPages structure we have for the LessonResourceSelection side panel :). Please let me know if you have any question :)

@@ -155,18 +155,24 @@ export default [
path: 'channels',
component: SelectFromChannels,
},
{
name: PageNames.LESSON_PREVIEW_RESOURCE,
path: 'preview-selected-resources',
Copy link
Member

Choose a reason for hiding this comment

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

I think the path here could be just "preview" or "preview-resource" as "preview-selected-resources" is not completely acurate and can be confused with path to the shopping cart

Copy link
Member

Choose a reason for hiding this comment

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

I see that previous to this change, we had a path like this preview-resources/:nodeId:

      {
        name: PageNames.LESSON_PREVIEW_RESOURCE,
        path: 'preview-resources/:nodeId',
        component: PreviewSelectedResources,
      },

Was there any reason to change the path and the param to be a query?

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 don't think there was a particular reason to

@AllanOXDi AllanOXDi marked this pull request as ready for review January 24, 2025 15:40
@AllanOXDi AllanOXDi requested a review from AlexVelezLl January 24, 2025 15:40
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.

Build out "resource preview" for non-practice resources
2 participants