Commit 75c94b4
authored
SD-3357 - fix: dedupe tracked changes from merged activity feed (#3609)
* fix(custom-ui): dedupe tracked changes from merged activity feed (SD-3357)
SuperDoc surfaces tracked changes in both ui.comments.items (as
trackedChange:true comments) and ui.trackChanges.items with the same id.
The ActivitySidebar merged both slices without filtering, so each
suggestion rendered twice (one comment card + one change card). Skip
comment.trackedChange items when building the feed, and drop a leftover
debug log.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(custom-ui): dedupe activity feed by id, not trackedChange flag (SD-3357)
A real comment thread anchored over text that overlaps a suggestion also
gets trackedChange:true (comments.list links it via assignTrackedChangeLink),
so filtering on the flag wrongly hid those discussions. Dedupe by id
instead — synthetic tracked-change comment rows reuse the tracked-change
id, while real comments keep their own. Also exclude pairedWithChangeId so
replacement pairs collapsed by trackChanges.list (replacements: paired)
don't leak one half back as a comment.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix: clarify deduplication logic in activity feed comments1 parent 5dd00c8 commit 75c94b4
1 file changed
Lines changed: 24 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
73 | 91 | | |
| 92 | + | |
| 93 | + | |
74 | 94 | | |
75 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
76 | 99 | | |
77 | 100 | | |
78 | 101 | | |
| |||
0 commit comments