From 623aac5a56f4abbc82db5f1528545d85fff9d7e2 Mon Sep 17 00:00:00 2001 From: Thomas Trompette Date: Wed, 22 Jul 2026 12:04:23 +0200 Subject: [PATCH] Show agent names on real estate dashboard charts (#23146) Follow-up to the real estate demo app: the Agency Overview dashboard's "Listings by agent" and "Showings by agent" bar charts grouped by the agent relation, which rendered the agent's UUID on the axis. Adding `primaryAxisGroupBySubFieldName: 'name.firstName'` groups by the agent's first name instead, so the charts show agent names (Emma, Lucas, Chloe, Louis). Review in cubic --- .../src/page-layouts/agency-dashboard.page-layout.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/twenty-apps/internal/real-estate/src/page-layouts/agency-dashboard.page-layout.ts b/packages/twenty-apps/internal/real-estate/src/page-layouts/agency-dashboard.page-layout.ts index aff313068f..8680a55d48 100644 --- a/packages/twenty-apps/internal/real-estate/src/page-layouts/agency-dashboard.page-layout.ts +++ b/packages/twenty-apps/internal/real-estate/src/page-layouts/agency-dashboard.page-layout.ts @@ -169,6 +169,7 @@ export default definePageLayout({ aggregateOperation: AggregateOperations.COUNT, primaryAxisGroupByFieldMetadataUniversalIdentifier: LISTING_AGENT_ON_PROPERTY_ID, + primaryAxisGroupBySubFieldName: 'name.firstName', ...BAR, primaryAxisOrderBy: 'VALUE_DESC', }, @@ -186,6 +187,7 @@ export default definePageLayout({ aggregateOperation: AggregateOperations.COUNT, primaryAxisGroupByFieldMetadataUniversalIdentifier: AGENT_ON_SHOWING_ID, + primaryAxisGroupBySubFieldName: 'name.firstName', ...BAR, primaryAxisOrderBy: 'VALUE_DESC', },