twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Object relation variant in case of 1:N or 1:1

Open Bonapara opened this issue 1 year ago • 2 comments

Desired Behavior

When the relationship displayed on the show is either One to One or Many to One (The record has only one parent but some "siblings."), we should adapt the display as follows:

  1. Display the related object name in singular form.
  2. Hide the "Display All" option.
  3. When hovering, show a pen icon instead of a "+" symbol.

CleanShot 2024-01-12 at 16 26 08

Bonapara avatar Jan 12 '24 15:01 Bonapara

Hi @Bonapara, For 1), I think it should be the field name instead of the related object's singular name. For instance, if Company has a "CEO" field which is a Person, we should see "CEO", not "Person". Which is already implemented.

thaisguigon avatar Jan 22 '24 12:01 thaisguigon

Yes @thaisguigon, well noticed

Bonapara avatar Jan 22 '24 14:01 Bonapara