Commits
Comment counts on the post page all came from the document-wide
commentsCount aggregate, so every subpage block and the bottom comments
button showed the whole document's comment total. The subpage block's
comment icon also opened a standalone discussion modal.
- Compute a per-page comment count map (commentsCountByPage) in
getPostPageData from each comment's onPage; expose it via DocumentContext
- Subpage block comment button now opens the subpage and its interaction
panel scoped to comments, instead of the discussion modal
- Bottom comments button, post header, canvas page, and the drawer toggle
now show the count for their own page
Refactor/profile data cache
Comment counts on the post page all came from the document-wide
commentsCount aggregate, so every subpage block and the bottom comments
button showed the whole document's comment total. The subpage block's
comment icon also opened a standalone discussion modal.
- Compute a per-page comment count map (commentsCountByPage) in
getPostPageData from each comment's onPage; expose it via DocumentContext
- Subpage block comment button now opens the subpage and its interaction
panel scoped to comments, instead of the discussion modal
- Bottom comments button, post header, canvas page, and the drawer toggle
now show the count for their own page