openedx / frontend-app-authoring

Front-end for the Open edX Studio experience, implemented in React and Paragon.
GNU Affero General Public License v3.0
13 stars 76 forks source link

Add library content to a course #1337

Open jmakowski1123 opened 3 weeks ago

jmakowski1123 commented 3 weeks ago

User story: As a course author, I want to find a piece of content in my library and add it to my course, without navigating away from my course outline.

Assumptions:

Requirements:

User clicks on the new "Library Content" tile/block in the Add New Component section on the unit page. See here: https://github.com/openedx/frontend-app-authoring/issues/1335

When a user clicks on the tile, then they see the "Select a Library" modal. For the MVP, the modal can simply display a list of all available libraries, displayed alphabetically.

The modal contains a free-text search bar, which enables users to search for libraries by name. This experience can be the same experience as searching for a Library on the Studio Home Library tab.

[Out of scope: The steppers at the top of the modals, and the recently used library section.]

Users may only click one library at a time in the list.

Image

When a user clicks "next" from the "Select a Library" modal, then the selected Library opens in an "Add to [Course]" state. This state is the the same as the Library Home experience, but with a few changes:

Other expected behavior:

Image

Image

Once a user clicks Add (either from the component tile or from the sidebar), then the Library modal closes and the user is back on the Unit Page in the course. The Library content displays as the newest component in that unit.

bradenmacdonald commented 3 days ago

@jmakowski1123 @sdaitzman This hasn't merged yet but you can start testing it on the sandbox now.

(Two known issues: the icons on the green buttons are missing due to a theming incompatibility that just affects our sandbox, and the Next/Cancel buttons in the dialog are awkward and need to be re-worked)

jmakowski1123 commented 1 day ago

Two other small UI nit, but will let @sdaitzman comment - it seems like the spacing is weird between the search bar and the library list?

Screen Shot 2024-10-20 at 6 09 31 PM

And the "cancel" button to exit out of the "add to" state without adding content gets hidden. Should that follow the same pattern as the "next" button, big and blue and on the right?

Screen Shot 2024-10-20 at 6 28 15 PM
jmakowski1123 commented 1 day ago

A question I think we'll want to test in usability testing is whether it's obvious that component tiles can be clicked to open the sidebars in the "add to state".

jmakowski1123 commented 1 day ago

In general this is looking fantastic