mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
feat(server): export title and summary on doc resolver (#13139)
close AF-2732 #### PR Dependency Tree * **PR #13139** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added support for a document summary field, allowing documents to include and display an optional summary alongside the title. * **Bug Fixes** * Improved access control when retrieving documents, ensuring proper permission checks are enforced. * **Tests** * Expanded test coverage to verify correct handling of document title and summary fields, including cases where the summary is absent. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -5,6 +5,8 @@ query getWorkspacePageById($workspaceId: String!, $pageId: String!) {
|
||||
mode
|
||||
defaultRole
|
||||
public
|
||||
title
|
||||
summary
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1584,6 +1584,8 @@ export const getWorkspacePageByIdQuery = {
|
||||
mode
|
||||
defaultRole
|
||||
public
|
||||
title
|
||||
summary
|
||||
}
|
||||
}
|
||||
}`,
|
||||
|
||||
@@ -703,6 +703,7 @@ export interface DocType {
|
||||
mode: PublicDocMode;
|
||||
permissions: DocPermissions;
|
||||
public: Scalars['Boolean']['output'];
|
||||
summary: Maybe<Scalars['String']['output']>;
|
||||
title: Maybe<Scalars['String']['output']>;
|
||||
updatedAt: Maybe<Scalars['DateTime']['output']>;
|
||||
workspaceId: Scalars['String']['output'];
|
||||
@@ -5147,6 +5148,8 @@ export type GetWorkspacePageByIdQuery = {
|
||||
mode: PublicDocMode;
|
||||
defaultRole: DocRole;
|
||||
public: boolean;
|
||||
title: string | null;
|
||||
summary: string | null;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user