diff --git a/packages/frontend-2/lib/presentations/composables/setup.ts b/packages/frontend-2/lib/presentations/composables/setup.ts index 1df14997d..3ca3a001f 100644 --- a/packages/frontend-2/lib/presentations/composables/setup.ts +++ b/packages/frontend-2/lib/presentations/composables/setup.ts @@ -10,6 +10,7 @@ import { import { projectPresentationPageQuery } from '~/lib/presentations/graphql/queries' import { useEventBus } from '~/lib/core/composables/eventBus' import { ViewerEventBusKeys } from '~/lib/viewer/helpers/eventBus' +import { useProjectSavedViewsUpdateTracking } from '~/lib/viewer/composables/savedViews/subscriptions' type ResponseProject = Optional> type ResponseWorkspace = Get @@ -156,6 +157,8 @@ export const useSetupPresentationState = (params: UseSetupPresentationParams) => ...viewerState } + useProjectSavedViewsUpdateTracking({ projectId: initState.projectId }) + // We don't want the state to ever be proxified (e.g. when passed through props), // cause that will break composables (refs will be automatically unwrapped as if // they're accessed in a template) diff --git a/packages/server/modules/core/graph/generated/graphql.ts b/packages/server/modules/core/graph/generated/graphql.ts index 5748d7752..044e242c5 100644 --- a/packages/server/modules/core/graph/generated/graphql.ts +++ b/packages/server/modules/core/graph/generated/graphql.ts @@ -3402,6 +3402,7 @@ export type Query = { authenticatedAsApp?: Maybe; /** Get a single automate function by id. Error will be thrown if function is not found or inaccessible. */ automateFunction: AutomateFunction; + automateFunctions: AutomateFunctionCollection; /** Part of the automation/function creation handshake mechanism */ automateValidateAuthCode: Scalars['Boolean']['output']; /** @deprecated Part of the old API surface and will be removed in the future. Use Project.comment instead. */ @@ -3527,6 +3528,13 @@ export type QueryAutomateFunctionArgs = { }; +export type QueryAutomateFunctionsArgs = { + cursor?: InputMaybe; + filter?: InputMaybe; + limit?: InputMaybe; +}; + + export type QueryAutomateValidateAuthCodeArgs = { payload: AutomateAuthCodePayloadTest; resources?: InputMaybe; @@ -8298,6 +8306,7 @@ export type QueryResolvers>>, ParentType, ContextType>; authenticatedAsApp?: Resolver, ParentType, ContextType>; automateFunction?: Resolver>; + automateFunctions?: Resolver>; automateValidateAuthCode?: Resolver>; comment?: Resolver, ParentType, ContextType, RequireFields>; comments?: Resolver, ParentType, ContextType, RequireFields>;