Various fixes on core views (#14093)

- Fix fragments
- Add id to create inputs
- Refresh core views
- Fix kanban loading
- Fix core views creation from current view

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Raphaël Bosi
2025-08-29 11:20:56 +02:00
committed by GitHub
parent 0e6ce123c9
commit 0bdd1c4803
56 changed files with 504 additions and 341 deletions
@@ -5,6 +5,9 @@ import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/
@InputType()
export class CreateViewFieldInput {
@Field(() => UUIDScalarType, { nullable: true })
id?: string;
@Field(() => UUIDScalarType, { nullable: false })
fieldMetadataId: string;
@@ -5,6 +5,9 @@ import { ViewFilterGroupLogicalOperator } from 'src/engine/core-modules/view/enu
@InputType()
export class CreateViewFilterGroupInput {
@Field(() => UUIDScalarType, { nullable: true })
id?: string;
@Field(() => UUIDScalarType, { nullable: true })
parentViewFilterGroupId?: string;
@@ -8,6 +8,9 @@ import { ViewFilterValue } from 'src/engine/core-modules/view/types/view-filter-
@InputType()
export class CreateViewFilterInput {
@Field(() => UUIDScalarType, { nullable: true })
id?: string;
@Field(() => UUIDScalarType, { nullable: false })
fieldMetadataId: string;
@@ -1,9 +1,12 @@
import { InputType, Field } from '@nestjs/graphql';
import { Field, InputType } from '@nestjs/graphql';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
@InputType()
export class CreateViewGroupInput {
@Field(() => UUIDScalarType, { nullable: true })
id?: string;
@Field(() => UUIDScalarType, { nullable: false })
fieldMetadataId: string;
@@ -5,6 +5,9 @@ import { ViewSortDirection } from 'src/engine/core-modules/view/enums/view-sort-
@InputType()
export class CreateViewSortInput {
@Field(() => UUIDScalarType, { nullable: true })
id?: string;
@Field(() => UUIDScalarType, { nullable: false })
fieldMetadataId: string;
@@ -8,6 +8,9 @@ import { ViewType } from 'src/engine/core-modules/view/enums/view-type.enum';
@InputType()
export class CreateViewInput {
@Field(() => UUIDScalarType, { nullable: true })
id?: string;
@Field({ nullable: false })
name: string;