github →

New request

#19173: Custom Data Models — "Note Targets" & "Task Targets" relations have unchangeable icons and inconsistent naming

We'll provision a sandbox, run an agent against the issue, and open a draft PR. You can pull the branch and iterate from there.

Issue
sonarly:medium
<html> <body> <!--StartFragment--><p class="font-claude-response-body break-words whitespace-normal leading-[1.7]">When creating a <strong>custom Data Model object</strong>, the automatically generated relations "Note Targets" and "Task Targets" have two issues:</p> <ol class="[li_&amp;]:mb-0 [li_&amp;]:mt-1 [li_&amp;]:gap-1 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal flex flex-col gap-1 pl-8 mb-3"> <li class="whitespace-normal break-words pl-2"><strong>Icons cannot be changed</strong> — Unlike the standard/default Data Models (e.g., People, Companies, Opportunities) where Note and Task relations use consistent icons, the auto-generated "Note Targets" and "Task Targets" on custom objects display a generic/different icon that cannot be modified through the UI.</li> <li class="whitespace-normal break-words pl-2"><strong>Naming is inconsistent</strong> — Standard/default Data Models show relations like "Notes" and "Tasks" in their relation list. However, custom Data Models show "Note Targets" and "Task Targets" instead, which is confusing and inconsistent with the standard object naming convention.</li> </ol> <h2 class="text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold">Steps to Reproduce</h2> <ol class="[li_&amp;]:mb-0 [li_&amp;]:mt-1 [li_&amp;]:gap-1 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-decimal flex flex-col gap-1 pl-8 mb-3"> <li class="whitespace-normal break-words pl-2">Go to <strong>Settings → Data Model</strong></li> <li class="whitespace-normal break-words pl-2">Create a <strong>new custom object</strong> (e.g., "Anfragen" / "Requests")</li> <li class="whitespace-normal break-words pl-2">Observe the automatically created relations for the new object</li> <li class="whitespace-normal break-words pl-2">Notice that <strong>"Note Targets"</strong> and <strong>"Task Targets"</strong> appear in the relations list</li> <li class="whitespace-normal break-words pl-2">Try to change the icon for "Note Targets" or "Task Targets" → <strong>Not possible</strong></li> <li class="whitespace-normal break-words pl-2">Compare with a standard object like <strong>Companies</strong> or <strong>People</strong> → Their Note/Task relations are simply called "Notes" and "Tasks" and use the standard icons</li> </ol> <h2 class="text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold">Expected Behavior</h2> <ul class="[li_&amp;]:mb-0 [li_&amp;]:mt-1 [li_&amp;]:gap-1 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc flex flex-col gap-1 pl-8 mb-3"> <li class="whitespace-normal break-words pl-2">Custom Data Model objects should have their Note and Task relations named <strong>"Notes"</strong> and <strong>"Tasks"</strong> (consistent with standard objects), not "Note Targets" and "Task Targets"</li> <li class="whitespace-normal break-words pl-2">The icons for these relations should either: <ul class="[li_&amp;]:mb-0 [li_&amp;]:mt-1 [li_&amp;]:gap-1 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc flex flex-col gap-1 pl-8 mb-3"> <li class="whitespace-normal break-words pl-2">Match the standard Note/Task icons used on built-in objects, OR</li> <li class="whitespace-normal break-words pl-2">Be editable/customizable like other relation icons</li> </ul> </li> </ul> <h2 class="text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold">Actual Behavior</h2> <ul class="[li_&amp;]:mb-0 [li_&amp;]:mt-1 [li_&amp;]:gap-1 [&amp;:not(:last-child)_ul]:pb-1 [&amp;:not(:last-child)_ol]:pb-1 list-disc flex flex-col gap-1 pl-8 mb-3"> <li class="whitespace-normal break-words pl-2">Relations are named "Note Targets" and "Task Targets" instead of "Notes" and "Tasks"</li> <li class="whitespace-normal break-words pl-2">Icons for these relations cannot be changed</li> <li class="whitespace-normal break-words pl-2">Visual inconsistency between standard and custom Data Model objects</li> </ul> <h2 class="text-text-100 mt-3 -mb-1 text-[1.125rem] font-bold">Environment</h2> <div class="overflow-x-auto w-full px-2 mb-6"> Detail | Value -- | -- Twenty Version | v1.19.0 Deployment | Self-hosted, Docker Compose Database | PostgreSQL 16 Browser | Chrome (latest) </div><!--EndFragment--> </body> </html> <img width="1486" height="600" alt="Image" src="https://github.com/user-attachments/assets/159e41a7-eab7-4c03-be78-271ccf014e43" />
Assessmentadvisory
bug●● medium75% confidence

Auto-generated Note/Task target relations on custom objects incorrectly lock icons and use inconsistent naming compared to standard objects.

Likely files
  • packages/twenty-server/src/engine/metadata-modules/flat-field-metadata/utils
  • packages/twenty-front/src/modules/object-metadata/hooks
  • packages/twenty-front/src/modules/object-metadata/utils
  • packages/twenty-ui/src/display/icon/components
Create the request

This opens a fresh agent run and a draft PR for issue #19173.

Cancel