☑️ Refacto "Select All/Unselect all" on indexes (#5320)
### Description - Refacto "Select All/Unselect all" on indexes - Add sequential mass deletion from front end (limited to 10k records) - Fixed coverage with new unit tests on new useFetchAllRecordIds hook and other utils ### Refs Closes #4397 Closes #5169 ### Demo https://github.com/twentyhq/twenty/assets/26528466/2658ad2c-827e-4670-b42b-3092e268ff32 --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Toledodev <rafael.toledo@engenharia.ufjf.br> Co-authored-by: Félix Malfait <felix.malfait@gmail.com> Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
This commit is contained in:
@ -7,6 +7,7 @@ import {
|
||||
} from '~/generated-metadata/graphql';
|
||||
import { mockedStandardObjectMetadataQueryResult } from '~/testing/mock-data/generated/standard-metadata-query-result';
|
||||
|
||||
// TODO: replace with new mock
|
||||
const customObjectMetadataItemEdge: ObjectEdge = {
|
||||
__typename: 'objectEdge',
|
||||
node: {
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
import { RecordGqlConnection } from '@/object-record/graphql/types/RecordGqlConnection';
|
||||
|
||||
export const getPeopleMock = () => {
|
||||
const peopleMock = peopleQueryResult.people.edges.map((edge) => edge.node);
|
||||
|
||||
@ -22,7 +24,7 @@ export const mockedEmptyPersonData = {
|
||||
__typename: 'Person',
|
||||
};
|
||||
|
||||
export const peopleQueryResult = {
|
||||
export const peopleQueryResult: { people: RecordGqlConnection } = {
|
||||
people: {
|
||||
__typename: 'PersonConnection',
|
||||
totalCount: 15,
|
||||
|
||||
Reference in New Issue
Block a user