twenty
twenty copied to clipboard
Record identifers & Object preview
Scope & Context
The identifiers for records in an object view are the "label" and "illustration" of each record, They will be displayed in the first column of an object table view.
- Record label identifier can either be a
textfield or aNumberfield. (In the future they might also beComputed fields) - Record image identifier should be an
imagefield type (Not implemented yet)
Expected behavior
In the settings, on a Custom Object detail page, the second column of the fields should be "Identifier" instead of "Field type" (As all fields of a custom object are custom)
Edit a record identifiers from an object's detail page:
The first method is to click on the dropdown menu for the fields:
Edit a record identifiers from an object settings panel:
1. Navigate to the object settings panel.
2. Edit the record label and illustration under the object preview
We should implement the object preview with this issue. The default record "illustration" should be a Box icon, while the default identifer should be the first record id.
Please note that the identifier settings under the preview should not be visible when creating a new object, as no field would have been created yet.
Banner displayed when no identifier has been set.
If no identifier has been set, a banner should be displayed on the object detail page:
The Configure button should redirect to the object settings panel.
Table views
As for Standard objects, the record identifier should be displayed in the first column of the table. It should not be movable or hideable.
Figma
https://www.figma.com/file/xt8O9mFeLl46C5InWwoMrN/Twenty?type=design&node-id=11338-64076&mode=design&t=BPGkFQDJNvsZsRl7-11
https://www.figma.com/file/xt8O9mFeLl46C5InWwoMrN/Twenty?type=design&node-id=11473-95826&mode=design&t=BPGkFQDJNvsZsRl7-11
### Tasks
- [ ] https://github.com/twentyhq/twenty/issues/2597
- [ ] https://github.com/twentyhq/twenty/issues/2598
- [ ] https://github.com/twentyhq/twenty/issues/3301
- [ ] https://github.com/twentyhq/twenty/issues/3302
- [ ] https://github.com/twentyhq/twenty/issues/3303
- [ ] Settings/Objects/Object Edit - Settings section - Add section with Object preview
- [ ] Settings/Objects/Object Edit - Settings section - Add Record identifier form under Object preview
- [ ] Settings/Objects/Object Detail - Display banner if Record identifier has not been set