feat(studio): searchable, live, draft-badged collection panes#421
Open
ignmandagaran wants to merge 2 commits into
Open
feat(studio): searchable, live, draft-badged collection panes#421ignmandagaran wants to merge 2 commits into
ignmandagaran wants to merge 2 commits into
Conversation
Phase 2 of the page-builder port, adapted to this project's flat content model (no page/pageFolder hierarchy). Replaces the default documentTypeListItem for the Content, Company and Careers collections with a custom CollectionPane that adds: - inline filter/search, - live updates (client.listen + debounced refetch), - a 'Draft' badge for documents with unpublished edits, - a slug/role/client subtitle line. 'Create new' and document-edit intents are preserved via the structure component's menuItems + canHandleIntent. Adds @sanity/ui as a direct dep (already used transitively by sanity).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
- Show a mini thumbnail (heroImage/cover/image/logo/avatar) on the left of each row, falling back to the collection's icon when there's no image. - Render the slug subtitle as a path (/my-slug).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Stacked on #419 (merge that first).
Replaces the default document lists for the Content, Company and
Careers collections with a custom
CollectionPanethat adds: filter/search,live updates (
client.listen+ debounced refetch), a Draft badge for docswith unpublished edits, and a slug/role/client subtitle.
Create newanddocument editing are preserved via
menuItems+canHandleIntent. Singletonsand 3D Config are untouched.
Adds
@sanity/uias a direct dep (already transitive viasanity).Verification
tscclean on changed files;eslint+prettierclean./studiocompiles and boots with zero console errors.doc with unpublished edits shows the Draft badge; "Create new" works;
clicking a row opens + highlights it.