diff --git a/packages/web-pkg/src/apps/types.ts b/packages/web-pkg/src/apps/types.ts index 73144e60c89..776be085316 100644 --- a/packages/web-pkg/src/apps/types.ts +++ b/packages/web-pkg/src/apps/types.ts @@ -54,7 +54,8 @@ export type AppConfigObject = Record export interface ApplicationMenuItem { enabled: () => boolean - priority: number + priority: number, + openAsEditor?: boolean } /** ApplicationInformation describes required information of an application */ diff --git a/packages/web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts b/packages/web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts index a9f79ed94fa..c25583d5ad0 100644 --- a/packages/web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts +++ b/packages/web-test-helpers/src/mocks/useGetMatchingSpaceMock.ts @@ -1,6 +1,7 @@ import { mock } from 'jest-mock-extended' import { Resource, SpaceResource } from '../../../web-client/src' import { useGetMatchingSpace } from '../../../web-pkg' +import { PersonalSpaceResource } from '../../../web-client/src/helpers' export const useGetMatchingSpaceMock = ( options: Partial> = {} @@ -12,6 +13,9 @@ export const useGetMatchingSpaceMock = ( getMatchingSpace(resource: Resource) { return mock() }, + getPersonalSpace() { + return mock() + }, isResourceAccessible({ space, path }) { return false },