Feat/generic editable cell all types (#987)

* Added generic relation cell

* Deactivated debug

* Added default warning

* Put back display component

* Removed unused types

* wip

* Renamed to view field

* Use new view field structure to have chip working

* Finished

* Added a temp feature flag

* Added double text chip cell

* Ok

* Finished tables

* Fixed icon size

* Fixed bug on date field

* Use icon index

* Fix

* Fixed naming

* Fix

* removed file from merge

* Fixed tests

* Coverage
This commit is contained in:
Lucas Bordeau
2023-07-29 23:48:43 +02:00
committed by GitHub
parent dc18bc40b0
commit d9f6ae8663
77 changed files with 1730 additions and 326 deletions

View File

@ -1,6 +1,6 @@
import { createContext } from 'react';
import { ViewFieldDefinition } from '../types/ViewField';
import { ViewFieldDefinition, ViewFieldMetadata } from '../types/ViewField';
export const ViewFieldContext =
createContext<ViewFieldDefinition<unknown> | null>(null);
createContext<ViewFieldDefinition<ViewFieldMetadata> | null>(null);

View File

@ -1,8 +1,10 @@
import { atom } from 'recoil';
import { ViewFieldDefinition } from '../types/ViewField';
import { ViewFieldDefinition, ViewFieldMetadata } from '../types/ViewField';
export const viewFieldsState = atom<ViewFieldDefinition<unknown>[]>({
key: 'viewFieldsState',
export const viewFieldsFamilyState = atom<
ViewFieldDefinition<ViewFieldMetadata>[]
>({
key: 'viewFieldsFamilyState',
default: [],
});