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

[5.x] Ability to customize columns in the Asset Browser #10806

Draft
wants to merge 2 commits into
base: 5.x
Choose a base branch
from

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Sep 16, 2024

This pull request makes it possible to customise the columns in the Asset Browser.

Closes statamic/ideas#202.
Partially addresses statamic/ideas#1002.

To Do

  • UX: Figue out the best way to handle folders when the first column isn't the filename
  • UX: When switching between Grid & List view, the customize column button disappears/reappears. What's the best way to handle this? (maybe it's fine 🤷‍♂️)
  • The setColumns logic is duplicated in BrowserController/SearchedAssetsCollection. Figure out a way to DRY this up.
    • In an ideal world, we'd be using a resource for the "all assets" listing request. However, due to the fact we're returning multiple types of "things" (folders & assets), we're not doing that here, hence the duplication. Need to think about the best place to put this. 🤔
  • Ensure it works fine with the Assets fieldtype
  • Fix failing tests

@duncanmcclean duncanmcclean changed the title [5.x] Add the ability to customize columns in the Asset Browser [5.x] Ability to customize columns in the Asset Browser Sep 16, 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.

Customize columns for asset browser
1 participant