Collapsible option for single (non-list) objects
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- frontend
Research direction
The issue names no file or component. The screenshot shows the editor's meta object panel at the bottom of the UI, so start by finding the component that renders object-typed fields there. Check the four comments for any agreed approach or maintainer decision before writing code. Done means an object field can be collapsed and expanded in the editor, with the default state settled in the discussion.
Written by the indexing model from the issue text.
Description
Request
Let a single object field collapse, like list items can:
- name: meta
label: SEO
type: object
collapsible:
collapsed: true
summary: "{fields.title}"
fields:
- name: title
type: string
- name: description
type: text
Secondary groups such as SEO, social or advanced settings could then sit at the bottom of an entry, closed until needed. Entries with several of them are currently long to scroll through, especially for clients.
Current behaviour (3.0.1)
collapsibleis only accepted underlist(ListSchemainsrc/shared/configuration-schema.ts).- List items only collapse when there are two or more (
options.collapsible && values.length > 1insrc/components/structured-content-field.tsx), so a one-item list doesn't work around it.
Suggestion
- Accept
collapsible: true | { collapsed, summary }onobjectfields, reusing the list item UI. - Use the same
summarytemplates as lists, defaulting to the field label. - Expand it when one of its fields fails validation, so errors aren't hidden.
- Dominant language
- TypeScript
- Stars
- 4.1k
- Forks
- 564
- Avg merge
- 8m
- Merged PRs (30d)
- 5
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hunvreus/pagescms
-
Media browser returns "Not found" for repositories using the SHA-256 object formatPossibly taken @adamchodera claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Hosted 3.0.1: email code sign-in fails for an invited collaborator ("code could not be verified")Open
Difficulty 3/5 1-2 days Newbie friendliness 52/100
hunvreus/pagescms#483 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Maintainers usually reply within 1 day
All issues in hunvreus/pagescms
Similar issues
-
Follow-ups from #312Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
janhesters/remixcn#318 ·
Maintainers usually reply within 1 day
-
Interceptor LaunchTestProfile.sh: no Windows (Git Bash/MSYS) branch, test profile never launchesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
danielmiessler/LifeOS#3150 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Make the "%" unit spacing the same in the web and in A10Possibly taken @kragent66-glitch claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 comment ·
-
NP OSS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
siteboon/claudecodeui#1905 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day