mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
feat(core): reply actions (#13071)
fix AF-2717, AF-2716 #### PR Dependency Tree * **PR #13071** 👈 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 ## Summary by CodeRabbit * **New Features** * Introduced full editing, replying, and deletion capabilities for individual replies within comments, with consistent UI and state management. * Added support for editing drafts for both comments and replies, allowing users to start, commit, or dismiss edits. * Improved editor focus behavior for a more seamless editing experience. * Added permission checks for comment and reply creation, editing, deletion, and resolution, controlling UI elements accordingly. * Refactored reply rendering into dedicated components with enhanced permission-aware interactions. * **Bug Fixes** * Enhanced comment normalization to handle cases where content may be missing, preventing potential errors. * **Style** * Updated comment and reply UI styles for clearer editing and action states, including new hover and visibility behaviors for reply actions. * **Chores** * Removed unnecessary debugging statements from reply configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> #### PR Dependency Tree * **PR #13071** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal)
This commit is contained in:
@@ -15,6 +15,10 @@ query getDocRolePermissions($workspaceId: String!, $docId: String!) {
|
||||
Doc_Update
|
||||
Doc_Users_Manage
|
||||
Doc_Users_Read
|
||||
Doc_Comments_Create
|
||||
Doc_Comments_Delete
|
||||
Doc_Comments_Read
|
||||
Doc_Comments_Resolve
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1323,6 +1323,10 @@ export const getDocRolePermissionsQuery = {
|
||||
Doc_Update
|
||||
Doc_Users_Manage
|
||||
Doc_Users_Read
|
||||
Doc_Comments_Create
|
||||
Doc_Comments_Delete
|
||||
Doc_Comments_Read
|
||||
Doc_Comments_Resolve
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4427,6 +4427,10 @@ export type GetDocRolePermissionsQuery = {
|
||||
Doc_Update: boolean;
|
||||
Doc_Users_Manage: boolean;
|
||||
Doc_Users_Read: boolean;
|
||||
Doc_Comments_Create: boolean;
|
||||
Doc_Comments_Delete: boolean;
|
||||
Doc_Comments_Read: boolean;
|
||||
Doc_Comments_Resolve: boolean;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user