twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Record identifers & Object preview

Open Bonapara opened this issue 2 years ago • 0 comments

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 text field or a Number field. (In the future they might also be Computed fields)
  • Record image identifier should be an image field type (Not implemented yet)

image

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)

image

Edit a record identifiers from an object's detail page:

The first method is to click on the dropdown menu for the fields:

image

Edit a record identifiers from an object settings panel:

1. Navigate to the object settings panel. image

2. Edit the record label and illustration under the object preview CleanShot 2023-11-13 at 18 23 07

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:

CleanShot 2023-11-13 at 18 26 04

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

Bonapara avatar Nov 13 '23 17:11 Bonapara