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

[features] Media Library list view #15085

Merged
merged 60 commits into from Dec 16, 2022
Merged

Conversation

ronronscelestes
Copy link
Contributor

@ronronscelestes ronronscelestes commented Dec 5, 2022

What

The media library display is evolving offering the possibility to switch between a list view and a grid view.
The goal is to give an overview of the asset details to have maximum information available at first glance.
This is applied in the Media Library and the Asset Dialog.

While working on the list view, some fixes were also brought to the permissions grid view as users without update permission should not be able to access move or delete actions.

Snapshots

image

image

Tests

Switch from list view to grid view in ML and ML in CM
Check that all permissions are working the same for grid and list view

Acceptance criteria

  • Given that I am in the Media Library
    • When I click on the List view icon
      • I cannot see the Sort by button
      • I can sort on Created, Last updated, Name by clicking table headers arrow icon
    • When I click on a folder row
      • I’m redirected to the folder page
    • When I click on an asset row
      • I can see the edit asset modal open
    • When I don’t have update permissions
      • I can still access edit view of a folder or an asset
      • I can see a disabled form (inputs + actions buttons)
      • I cannot select any folder or asset
  • Given than I am in the Media Library through the Media Library Input in the CM (modals)
    • All the above is true
      • Except When I don’t have update permissions → I cannot select any folder or asset
    • When I want to select
      • I cannot select folders
      • I can only select allowed assets (through field advanced settings in CTB)

jhoward1994 and others added 30 commits November 21, 2022 15:10
[features][ML listview] Assets and Folders into table listview
feat(helper-plugin): persist upload localstroage
[features][ML listview] Sort on table headers
[features][ML listview] Row navigation
Copy link
Member

@joshuaellis joshuaellis left a comment

Choose a reason for hiding this comment

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

Really great work @ronronscelestes & @jhoward1994

Some minor feedback just around comments / jsdocs 😄

jhoward1994
jhoward1994 previously approved these changes Dec 8, 2022
Copy link
Contributor

@jhoward1994 jhoward1994 left a comment

Choose a reason for hiding this comment

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

Great work! 🎉 it works really well

@Marc-Roig
Copy link
Contributor

QA done & LGTM! Amazing work 🚀

Marc-Roig
Marc-Roig previously approved these changes Dec 12, 2022
joshuaellis
joshuaellis previously approved these changes Dec 12, 2022
Copy link
Contributor

@gu-stav gu-stav left a comment

Choose a reason for hiding this comment

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

Well done! 🚀 Added only a few minor questions ...

joshuaellis
joshuaellis previously approved these changes Dec 13, 2022
@ronronscelestes
Copy link
Contributor Author

ronronscelestes commented Dec 16, 2022

sorry for the approve dismissal, I updated the branch on main + caught a small UI issue (e.g. removed the table in BrowseStep when no assets or folders, and added a test case for it too)
@gu-stav @joshuaellis @jhoward1994 @Marc-Roig

Copy link
Contributor

@jhoward1994 jhoward1994 left a comment

Choose a reason for hiding this comment

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

LGTM 👌🏻

@ronronscelestes ronronscelestes removed the flag: documentation This PR requires a documentation update label Dec 16, 2022
@ronronscelestes ronronscelestes added this to the 4.5.5 milestone Dec 16, 2022
@ronronscelestes ronronscelestes merged commit bf9c0d2 into main Dec 16, 2022
@ronronscelestes ronronscelestes deleted the features/MediaLibrary-listview branch December 16, 2022 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: feature This PR adds a new feature source: core:upload Source is core/upload package
Projects
Status: Fixed/Shipped
Development

Successfully merging this pull request may close these issues.

None yet

6 participants