Scaffold all company cards as widgets (#15149)

This PR doesn't support mobile and side-panel modes. The fields tab will
be displayed in these cases.

## Demo


https://github.com/user-attachments/assets/0b2e699c-2b8e-4212-8c75-00d7d2e25237

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
This commit is contained in:
Baptiste Devessier
2025-10-18 22:26:27 +02:00
committed by GitHub
parent 357a12f902
commit f6d133f285
20 changed files with 363 additions and 40 deletions
@@ -1132,7 +1132,18 @@ export const computeMetadataSchemaComponents = (
title: { type: 'string' },
type: {
type: 'string',
enum: ['VIEW', 'IFRAME', 'FIELDS', 'GRAPH'],
enum: [
'VIEW',
'IFRAME',
'FIELDS',
'GRAPH',
'TIMELINE',
'TASKS',
'NOTES',
'FILES',
'EMAILS',
'CALENDAR',
],
default: 'VIEW',
},
objectMetadataId: { type: 'string', format: 'uuid' },
@@ -3,4 +3,10 @@ export enum WidgetType {
IFRAME = 'IFRAME',
FIELDS = 'FIELDS',
GRAPH = 'GRAPH',
TIMELINE = 'TIMELINE',
TASKS = 'TASKS',
NOTES = 'NOTES',
FILES = 'FILES',
EMAILS = 'EMAILS',
CALENDAR = 'CALENDAR',
}