Skip to content

Ensure notes feature scales to many notes #71668

Open

Description

@adamsilverstein

What problem does this address?

The current notes implementation may not scale well when there are many (hundreds or thousands) notes (or comment replies) on a post.

The comment REST API endpoint only returns 100 records at a time so fetching many will require multiple requests - my expectation is the current UI will only display comments when all comments have loaded.

Note that for the initial display we only show the top level comments (plus a message about the number of replies). Clicking a comment threat shows the replies.

What is your proposed solution?

  • Only load top level comments in the initial request
  • In the background load all of the (remaining) data
  • Ensure data fetching properly paginates thru >100 records
  • Possibly/future: display comment placeholders until first request request completes to avoid layout shift (we already know which blocks have comments). this applies more once we have comments positioned next to their related block in popovers.

related (see especially recent discussion): #10169

Activity

  1. jeffpaul commented on Sep 19, 2025

    @jeffpaul
    Member

    That proposed solution sounds good to me, agreeing that the "possibly/future" item isn't needed in the base handling here (and if necessary could be a future release thing and not needed for the core block commenting functionality but definitely a better UX).

  2. jeffpaul commented on Sep 19, 2025

    @jeffpaul
    Member

    @adamsilverstein I see you added this to the "Design priorities" board, is there a status there we should set and someone to ping to get things moving along for what's needed?

  3. adamsilverstein commented on Sep 19, 2025

    @adamsilverstein
    MemberAuthor

    @adamsilverstein I see you added this to the "Design priorities" board, is there a status there we should set and someone to ping to get things moving along for what's needed?

    Good question @jeffpaul - I think that was set automatically during the issue creation flow. I just moved it to "Needs Dev". I'm a bit new to how this projects are being used so I'm trying to follow what I see others doing. Please correct me if I do something strange!

  4. jeffpaul commented on Sep 19, 2025

    @jeffpaul
    Member

    I've not noticed many other Block Commenting-related issues or PRs getting assigned to the "Design priorities" board so unless there's a need for some sort of Design team/Designer input I think we can remove this issue from that board and leave this as-is on the "WordPress 6.9 Editor Tasks" board where the totality of the WP 6.9 editor-related issues are being tracked.

  5. 32 remaining items

  6. moved this to 📋 Iteration/Tracking Issues in WordPress 7.1 Editor Taskson May 6, 2026
  7. moved this from 📋 Iteration/Tracking Issues to 🔎 Needs Review in WordPress 7.1 Editor Taskson Jul 17, 2026
  8. adamsilverstein commented on Jul 17, 2026

    @adamsilverstein
    MemberAuthor
  9. moved this from 🔎 Needs Review to 🏗️ In Progress in WordPress 7.1 Editor Taskson Jul 17, 2026
  10. moved this from 🏗️ In Progress to 🔎 Needs Review in WordPress 7.1 Editor Taskson Jul 20, 2026
  11. adamsilverstein commented on Aug 5, 2026

    @adamsilverstein
    MemberAuthor

    Removing this from the 7.1 board since we didn't land on the right solution yet; we can revisit for 7.2.

  12. moved this from 🔎 Needs Review to 🦵 Punted to 7.2 in WordPress 7.1 Editor Taskson Aug 5, 2026
  13. moved this to 🏗️ In Progress in WordPress 7.2 Editor Taskson Aug 13, 2026
  14. Mamaduka commented on Sep 21, 2026

    @Mamaduka
    Member

    I've closed associated PRs; let's focus on #81599 as a performance improvement effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[Feature] NotesPhase 3 of the Gutenberg roadmap around block commenting[Type] PerformanceRelated to performance efforts

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions