Add coreView state in FE (#14034)

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
Co-authored-by: Raphaël Bosi <71827178+bosiraphael@users.noreply.github.com>
This commit is contained in:
Weiko
2025-08-25 15:49:21 +02:00
committed by GitHub
parent 293cf0be39
commit dff00e813c
21 changed files with 441 additions and 204 deletions
@@ -5,12 +5,7 @@ import {
import { OBJECT_PERMISSION_FRAGMENT } from '@/settings/roles/graphql/fragments/objectPermissionFragment';
import { ROLE_FRAGMENT } from '@/settings/roles/graphql/fragments/roleFragment';
import { WORKSPACE_URLS_FRAGMENT } from '@/users/graphql/fragments/workspaceUrlsFragment';
import { VIEW_FIELD_FRAGMENT } from '@/views/graphql/fragments/viewFieldFragment';
import { VIEW_FILTER_FRAGMENT } from '@/views/graphql/fragments/viewFilterFragment';
import { VIEW_FILTER_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewFilterGroupFragment';
import { VIEW_FRAGMENT } from '@/views/graphql/fragments/viewFragment';
import { VIEW_GROUP_FRAGMENT } from '@/views/graphql/fragments/viewGroupFragment';
import { VIEW_SORT_FRAGMENT } from '@/views/graphql/fragments/viewSortFragment';
import { DELETED_WORKSPACE_MEMBER_QUERY_FRAGMENT } from '@/workspace-member/graphql/fragments/deletedWorkspaceMemberQueryFragment';
import { WORKSPACE_MEMBER_QUERY_FRAGMENT } from '@/workspace-member/graphql/fragments/workspaceMemberQueryFragment';
import { gql } from '@apollo/client';
@@ -104,21 +99,6 @@ export const USER_QUERY_FRAGMENT = gql`
isTwoFactorAuthenticationEnforced
views {
...ViewFragment
viewFields {
...ViewFieldFragment
}
viewFilters {
...ViewFilterFragment
}
viewFilterGroups {
...ViewFilterGroupFragment
}
viewSorts {
...ViewSortFragment
}
viewGroups {
...ViewGroupFragment
}
}
}
availableWorkspaces {
@@ -133,11 +113,6 @@ export const USER_QUERY_FRAGMENT = gql`
${WORKSPACE_URLS_FRAGMENT}
${ROLE_FRAGMENT}
${VIEW_FRAGMENT}
${VIEW_FIELD_FRAGMENT}
${VIEW_FILTER_FRAGMENT}
${VIEW_FILTER_GROUP_FRAGMENT}
${VIEW_SORT_FRAGMENT}
${VIEW_GROUP_FRAGMENT}
${AVAILABLE_WORKSPACES_FOR_AUTH_FRAGMENT}
${AVAILABLE_WORKSPACE_FOR_AUTH_FRAGMENT}
`;