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
@@ -104,7 +104,7 @@ export class DevSeederMetadataService {
});
}
await this.seedCoreViews(workspaceId);
await this.seedCoreViews({ workspaceId, dataSourceMetadata });
}
private async seedCustomObject({
@@ -152,14 +152,21 @@ export class DevSeederMetadataService {
);
}
private async seedCoreViews(workspaceId: string): Promise<void> {
private async seedCoreViews({
workspaceId,
dataSourceMetadata,
}: {
workspaceId: string;
dataSourceMetadata: DataSourceEntity;
}): Promise<void> {
const createdObjectMetadata =
await this.objectMetadataService.findManyWithinWorkspace(workspaceId);
await prefillCoreViews(
this.coreDataSource,
await prefillCoreViews({
coreDataSource: this.coreDataSource,
workspaceId,
createdObjectMetadata,
);
objectMetadataItems: createdObjectMetadata,
schemaName: dataSourceMetadata.schema,
});
}
}