Allow field groups on record page to default to collapsed #20002
bananasharkme
started this conversation in
Unsolvable issues
Replies: 1 comment
-
|
Thanks for the idea! I agree this would add value |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On the record page, field groups rendered by
FieldsWidgetGroupContaineralways start expanded. The component accepts a
defaultExpandedprop, butFieldsWidget.tsxnever passes it for user-defined groups — only theauto-generated "More (N)" hidden-fields group is collapsed by default.
For objects with many groups this is painful. In our workspace the Person
card has 10 groups. Opening a person means scrolling past
the entire fields card before reaching relation widgets (Company,
Opportunities, etc.).
Users can collapse groups manually, but because the state is local
useStateit resets on every page reload — so every visit restarts thescroll problem.
Proposal
Add a
defaultExpanded: Booleanproperty to each group inUpsertFieldsWidgetInputand the storedFieldsWidgetConfiguration.Default to
trueso existing workspaces behave identically.Surface a toggle in the group configuration UI
(
FieldsConfigurationGroupEditor.tsx) so workspace admins can pickper-group which sections start collapsed.
Pass it through in
FieldsWidget.tsx:Scope of this PR
UpsertFieldsWidgetInputandFieldsWidgetConfigurationwithdefaultExpanded: boolean(default
true).FieldsWidget.tsx— forward the prop.FieldsConfigurationGroupEditor.tsx— add a "Collapsed by default"toggle.
layout widget, so an added optional field is backward compatible.
Beta Was this translation helpful? Give feedback.
All reactions