Feat/front forge graphql query (#2007)

* wip

* Wip

* Wip

* Finished v1

* Wip

* Fix from PR

* Removed unused fragment masking feature

* Fix from PR

* Removed POC from nav bar

* Fix lint

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Lucas Bordeau
2023-10-13 22:27:57 +02:00
committed by GitHub
parent 3ef9132525
commit a35ea5e8f9
16 changed files with 406 additions and 2 deletions

View File

@ -27,6 +27,9 @@ export const DataTableBody = () => {
const tableRowIds = useRecoilValue(tableRowIdsState);
// eslint-disable-next-line no-console
console.log({ tableRowIds });
const isNavbarSwitchingSize = useRecoilValue(isNavbarSwitchingSizeState);
const isFetchingDataTableData = useRecoilValue(isFetchingDataTableDataState);

View File

@ -37,6 +37,9 @@ export const DataTableCell = ({ cellIndex }: { cellIndex: number }) => {
const updateEntityMutation = useContext(EntityUpdateMutationContext);
// eslint-disable-next-line no-console
console.log({ columnDefinition, currentRowId });
if (!columnDefinition || !currentRowId) {
return null;
}

View File

@ -27,7 +27,8 @@ export const DataTableRow = forwardRef<HTMLTableRowElement, DataTableRowProps>(
TableRecoilScopeContext,
);
const { currentRowSelected } = useCurrentRowSelected();
// eslint-disable-next-line no-console
console.log({ visibleTableColumns });
return (
<StyledRow
ref={ref}

View File

@ -18,6 +18,9 @@ export const TableCell = ({
}) => {
const { fieldDefinition } = useContext(FieldContext);
// eslint-disable-next-line no-console
console.log({ fieldDefinition });
const { closeTableCell } = useTableCell();
const { moveLeft, moveRight, moveDown } = useMoveSoftFocus();