Feat: Add saved view subscription to presentations (#5614)
This commit is contained in:
@@ -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<Get<ProjectPresentationPageQuery, 'project'>>
|
||||
type ResponseWorkspace = Get<ProjectPresentationPageQuery, 'project.limitedWorkspace'>
|
||||
@@ -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)
|
||||
|
||||
@@ -3402,6 +3402,7 @@ export type Query = {
|
||||
authenticatedAsApp?: Maybe<ServerAppListItem>;
|
||||
/** 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<Scalars['String']['input']>;
|
||||
filter?: InputMaybe<AutomateFunctionsFilter>;
|
||||
limit?: InputMaybe<Scalars['Int']['input']>;
|
||||
};
|
||||
|
||||
|
||||
export type QueryAutomateValidateAuthCodeArgs = {
|
||||
payload: AutomateAuthCodePayloadTest;
|
||||
resources?: InputMaybe<AutomateAuthCodeResources>;
|
||||
@@ -8298,6 +8306,7 @@ export type QueryResolvers<ContextType = GraphQLContext, ParentType extends Reso
|
||||
apps?: Resolver<Maybe<Array<Maybe<ResolversTypes['ServerAppListItem']>>>, ParentType, ContextType>;
|
||||
authenticatedAsApp?: Resolver<Maybe<ResolversTypes['ServerAppListItem']>, ParentType, ContextType>;
|
||||
automateFunction?: Resolver<ResolversTypes['AutomateFunction'], ParentType, ContextType, RequireFields<QueryAutomateFunctionArgs, 'id'>>;
|
||||
automateFunctions?: Resolver<ResolversTypes['AutomateFunctionCollection'], ParentType, ContextType, Partial<QueryAutomateFunctionsArgs>>;
|
||||
automateValidateAuthCode?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType, RequireFields<QueryAutomateValidateAuthCodeArgs, 'payload'>>;
|
||||
comment?: Resolver<Maybe<ResolversTypes['Comment']>, ParentType, ContextType, RequireFields<QueryCommentArgs, 'id' | 'streamId'>>;
|
||||
comments?: Resolver<Maybe<ResolversTypes['CommentCollection']>, ParentType, ContextType, RequireFields<QueryCommentsArgs, 'archived' | 'limit' | 'streamId'>>;
|
||||
|
||||
Reference in New Issue
Block a user