Add composites subfield selection in the graph editor (#14931)
Closes https://github.com/twentyhq/core-team-issues/issues/1638 Closes https://github.com/twentyhq/core-team-issues/issues/1623 https://github.com/user-attachments/assets/2dddadaa-781b-497d-b454-0066d599bda3 --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
co-authored by
Lucas Bordeau
parent
e382730a39
commit
94546d7c09
+10
@@ -42,6 +42,11 @@ export class BarChartConfigurationDTO {
|
||||
@IsNotEmpty()
|
||||
groupByFieldMetadataIdX: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
groupBySubFieldNameX?: string;
|
||||
|
||||
@Field(() => GraphOrderBy)
|
||||
@IsEnum(GraphOrderBy)
|
||||
@IsNotEmpty()
|
||||
@@ -52,6 +57,11 @@ export class BarChartConfigurationDTO {
|
||||
@IsOptional()
|
||||
groupByFieldMetadataIdY?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
groupBySubFieldNameY?: string;
|
||||
|
||||
@Field(() => GraphOrderBy, { nullable: true })
|
||||
@IsEnum(GraphOrderBy)
|
||||
@IsOptional()
|
||||
|
||||
+10
@@ -42,6 +42,11 @@ export class LineChartConfigurationDTO {
|
||||
@IsNotEmpty()
|
||||
groupByFieldMetadataIdX: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
groupBySubFieldNameX?: string;
|
||||
|
||||
@Field(() => GraphOrderBy)
|
||||
@IsEnum(GraphOrderBy)
|
||||
@IsNotEmpty()
|
||||
@@ -52,6 +57,11 @@ export class LineChartConfigurationDTO {
|
||||
@IsOptional()
|
||||
groupByFieldMetadataIdY?: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
groupBySubFieldNameY?: string;
|
||||
|
||||
@Field(() => GraphOrderBy, { nullable: true })
|
||||
@IsEnum(GraphOrderBy)
|
||||
@IsOptional()
|
||||
|
||||
+5
@@ -40,6 +40,11 @@ export class PieChartConfigurationDTO {
|
||||
@IsNotEmpty()
|
||||
groupByFieldMetadataId: string;
|
||||
|
||||
@Field(() => String, { nullable: true })
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
groupBySubFieldName?: string;
|
||||
|
||||
@Field(() => GraphOrderBy)
|
||||
@IsEnum(GraphOrderBy)
|
||||
@IsNotEmpty()
|
||||
|
||||
Reference in New Issue
Block a user