twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Prefill Relation Fields with Initiating Object Icon and Name

Open Bonapara opened this issue 1 year ago • 2 comments

Current Behavior

Today, when we create a relation:

CleanShot 2024-09-30 at 16 48 26

  1. We display the user icon as the default "Field on XXX" icon.
  2. We display the Field name as the "Field on XXX" placeholder.

Desired Behavior

Since we know the object that initiates the relation creation, we want to prefill the "field on XXX" input and icon:

  1. The object that initiates the relation icon
  2. The object that initiates the relation name (adjusted for plural or singular based on the relation type: one-to-many, many-to-many, or many-to-one)

In the example above, the relation is initiated from the company object so the default "field on people" infos should be prefilled like this:

CleanShot 2024-09-30 at 17 03 09

We should keep the Field name placeholder if the user removes the Object initiator name text.

Bonapara avatar Sep 30 '24 15:09 Bonapara

are you working on this @sid0-0 ?

ehconitin avatar Oct 01 '24 11:10 ehconitin

Yes @ehconitin a PR is raised.

sid0-0 avatar Oct 01 '24 12:10 sid0-0

Closed by #7363

lucasbordeau avatar Oct 10 '24 06:10 lucasbordeau