fix(core): comment mention filters (#13062)

#### PR Dependency Tree


* **PR #13062** 👈

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**
* Replies in comment threads are now collapsed when there are more than
four, with an option to expand and view all replies.
* Mentions within comments and replies are automatically detected and
tracked.
  * "Show more replies" indicator is now localized for English users.

* **Improvements**
* Filtering for "only my replies" now includes replies where you are
mentioned.
* Enhanced focus behavior in the comment editor for improved usability.
* Updated styling for active and collapsed reply states in comment
threads.

* **Bug Fixes**
* Ensured consistent handling of mentions and reply associations in
comment data.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Peng Xiao
2025-07-07 14:27:21 +08:00
committed by GitHub
parent 90b2b33dde
commit 6175bde86e
10 changed files with 196 additions and 83 deletions
+6
View File
@@ -8254,6 +8254,12 @@ export function useAFFiNEI18N(): {
* `Delete this reply? This action cannot be undone.`
*/
["com.affine.comment.reply.delete.confirm.description"](): string;
/**
* `Show {{count}} more replies`
*/
["com.affine.comment.reply.show-more"](options: {
readonly count: string;
}): string;
/**
* `Show resolved comments`
*/
@@ -2071,6 +2071,7 @@
"com.affine.comment.delete.confirm.description": "All comments will also be deleted, and this action cannot be undone.",
"com.affine.comment.reply.delete.confirm.title": "Delete this reply?",
"com.affine.comment.reply.delete.confirm.description": "Delete this reply? This action cannot be undone.",
"com.affine.comment.reply.show-more": "Show {{count}} more replies",
"com.affine.comment.filter.show-resolved": "Show resolved comments",
"com.affine.comment.filter.only-my-replies": "Only my replies and mentions",
"com.affine.comment.filter.only-current-mode": "Only current mode",