-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: display record identifier field as first column in table #3788
Conversation
bc798db
to
c7b3cbd
Compare
|
||
const availableColumnKeys = get( | ||
availableTableColumnsStateScopeMap({ scopeId }), | ||
).map(({ fieldMetadataId }) => fieldMetadataId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't we use a dedicated selector for that ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
c7b3cbd
to
0827f01
Compare
Good catch, done! |
Absolutely! Done, thank you! |
Not sure how to go about this one, as the "Untitled" value is generated on backend (default value for the "name" field). Maybe @Weiko has some input on this? |
That means "default value" should be editable for existing fields. I'm not sure this has been really tested since the UI does not allow that, but yes it should work 🤔. |
@Weiko @thaisguigon From an API perspective, all fields are non required because they are either nullable in DB or have a default value. (here name has default value so is non-required) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thaisguigon I think we are adding too much complexity on the recordTable:
- I think we should aim to reduce the number of selectors we have as this gets quickly out of control : contributors are not forced to re-use selectors so they usually re-code the logic again and again, or introduce their own selectors that are slightly different. It's hard to get this factored. I prefer having basic states and basic selector and factorize logic in components or utils if it's needed, but usually it is not: for example the availableTableColumnKey is only extracting the availableTableColumnKey
- I think we should not add all this logic about labelIdentifiers fetching in the table itself. We could add it to mapViewFieldsToColumnDefinitions "isLabelIdentifer"?
b824666
to
6c24b79
Compare
@charlesBochet Done:
|
ffa2df1
to
83e9b8f
Compare
& forbid hiding and moving record identifier column Closes #3303
…menu for other columns
…olumnDefinitions + remove selectors
eaf9dbd
to
761658c
Compare
& forbid hiding and moving record identifier column
Closes #3303