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

[FC-0059] Components tab #41

Conversation

ChrisChV
Copy link
Member

@ChrisChV ChrisChV commented Jun 19, 2024

Description

This PR adds:

  • Library components card
  • Card Grid in Library Home - Components tab.
  • Connect with API to get library components.

Supporting information

Testing instructions

yusuf-musleh and others added 30 commits June 3, 2024 15:44
When lib mode is set to "mixed", both "Libraries" and "Legacy Libraries" tabs are show in the Studio Home. When "Libraries" is clicked, v2 libraries are fetched, when "Legacy Libraries" is clicked, v1 libraries are fetched.

When lib mode is set to "v1 only" or "v2 only", only one tab "Libraries" is show and only the respective libraries are fetched when the tab is clicked.
This is to switch between different library modes.
The path updates when selecting tabs, when accessing the url with the path directly it will open its respective tab. Navigating using the browser back/forward buttons is also supported.
This commit is temporary as the current frontend build system in tests doesnt support TS syntax. That should be fixed soon, and this commit should be removed.
This is a temporary commit since there are currently no webpack loaders that support tsx files in the test running. This commit should be removed once that is fixed upstream.
When lib mode is set to "mixed", both "Libraries" and "Legacy Libraries" tabs are show in the Studio Home. When "Libraries" is clicked, v2 libraries are fetched, when "Legacy Libraries" is clicked, v1 libraries are fetched.

When lib mode is set to "v1 only" or "v2 only", only one tab "Libraries" is show and only the respective libraries are fetched when the tab is clicked.
This is to switch between different library modes.
The path updates when selecting tabs, when accessing the url with the path directly it will open its respective tab. Navigating using the browser back/forward buttons is also supported.
This commit is temporary as the current frontend build system in tests doesnt support TS syntax. That should be fixed soon, and this commit should be removed.
This is a temporary commit since there are currently no webpack loaders that support tsx files in the test running. This commit should be removed once that is fixed upstream.
@ChrisChV ChrisChV force-pushed the chris/FAL-3757-components-tab branch from 0cd2193 to 0843a1e Compare June 21, 2024 00:21
@rpenido rpenido force-pushed the rpenido/fal-3753-library-home-page-bare-bones branch from e3daf6a to 55acb06 Compare June 24, 2024 12:32
@ChrisChV ChrisChV changed the title Components tab [FC-0059] Components tab Jun 26, 2024
Copy link

codecov bot commented Jun 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (rpenido/fal-3753-library-home-page-bare-bones@62fe7f5). Learn more about missing BASE report.

Additional details and impacted files
@@                               Coverage Diff                                @@
##             rpenido/fal-3753-library-home-page-bare-bones      #41   +/-   ##
================================================================================
  Coverage                                                 ?   92.65%           
================================================================================
  Files                                                    ?      696           
  Lines                                                    ?    12365           
  Branches                                                 ?     2712           
================================================================================
  Hits                                                     ?    11457           
  Misses                                                   ?      876           
  Partials                                                 ?       32           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@rpenido rpenido left a comment

Choose a reason for hiding this comment

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

Hi @ChrisChV ! Great work here! Thank you!
I tested it, and everything is working fine.

I made some comments for small changes.

src/generic/block-type-utils/constants.js Outdated Show resolved Hide resolved
src/generic/block-type-utils/index.jsx Outdated Show resolved Hide resolved
src/library-authoring/components/LibraryComponents.tsx Outdated Show resolved Hide resolved
src/library-authoring/data/apiHook.ts Outdated Show resolved Hide resolved
src/library-authoring/data/apiHook.ts Outdated Show resolved Hide resolved
@ChrisChV ChrisChV marked this pull request as ready for review July 1, 2024 09:15
@rpenido rpenido force-pushed the rpenido/fal-3753-library-home-page-bare-bones branch from ca33c18 to 6acee0a Compare July 3, 2024 14:27
@ChrisChV
Copy link
Member Author

Closed. Follow: openedx#1109

@ChrisChV ChrisChV closed this Jul 10, 2024
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.

4 participants