feat(ui): supports collection scoped folders (#12797)

As discussed in [this
RFC](https://github.com/payloadcms/payload/discussions/12729), this PR
supports collection-scoped folders. You can scope folders to multiple
collection types or just one.

This unlocks the possibility to have folders on a per collection instead
of always being shared on every collection. You can combine this feature
with the `browseByFolder: false` to completely isolate a collection from
other collections.

Things left to do:
- [x] ~~Create a custom react component for the selecting of
collectionSlugs to filter out available options based on the current
folders parameters~~


https://github.com/user-attachments/assets/14cb1f09-8d70-4cb9-b1e2-09da89302995


---
- To see the specific tasks where the Asana app for GitHub is being
used, see below:
  - https://app.asana.com/0/0/1210564397815557
This commit is contained in:
Jarrod Flesch
2025-07-17 13:24:22 -04:00
committed by GitHub
parent 6ae730b33b
commit 12539c61d4
102 changed files with 2127 additions and 768 deletions

View File

@@ -284,6 +284,7 @@ jobs:
- fields__collections__Text
- fields__collections__UI
- fields__collections__Upload
- folders
- hooks
- lexical__collections__Lexical__e2e__main
- lexical__collections__Lexical__e2e__blocks
@@ -418,6 +419,7 @@ jobs:
- fields__collections__Text
- fields__collections__UI
- fields__collections__Upload
- folders
- hooks
- lexical__collections__Lexical__e2e__main
- lexical__collections__Lexical__e2e__blocks