Skip to content

Comments v2: add the comment detail screen - #25949

Open
crazytonyli wants to merge 9 commits into
trunkfrom
task/comments-v2-m2-detail
Open

Comments v2: add the comment detail screen#25949
crazytonyli wants to merge 9 commits into
trunkfrom
task/comments-v2-m2-detail

Conversation

@crazytonyli

@crazytonyli crazytonyli commented Aug 27, 2026

Copy link
Copy Markdown
Contributor
details.mp4

The renderer was built for Reader cells that size themselves to the content. Add an `isScrollEnabled` option for hosts that pin the web view to a fixed region and let it scroll internally, with the native bounce (on overflow) and scroll indicator. It defaults to the previous behavior.
The detail screen shows unknown statuses verbatim, so `other` now carries
the server's raw string.
Move the avatar double-optional flattening and the plain-text snippet rule out of the wire-type initializer so the detail model can reuse them, and treat a whitespace-only author name as anonymous.
`CommentDetail` maps either the view- or edit-context wire type. The service
fetches with edit context when the user can moderate comments and falls back
to view context on a 401/403, so a stale capability degrades to a read-only
detail instead of an error.
Resolves the moderation capability once, fetches the detail, keeps the list
row's seed painted while the request is in flight, loads the parent comment
for the "In reply to" strip, and tracks the first successful view.
A fixed-region layout: pinned status pill and author header, an optional parent strip, and an injected content renderer that scrolls internally. The router owns the shared dependencies and pushes detail screens onto the list controller's navigation stack, so a parent comment can push recursively.
List rows become buttons that push the detail screen. The app supplies the web content renderer and the analytics adapter to the hosting controller.
@dangermattic

Copy link
Copy Markdown
Collaborator
2 Warnings
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.
1 Message
📖 This PR is still a Draft: some checks will be skipped.

Generated by 🚫 Danger

@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number34034
VersionPR #25949
Bundle IDcom.jetpack.alpha
Commit83b0fc1
Installation URL6hl54eb6vfrog
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number34034
VersionPR #25949
Bundle IDorg.wordpress.alpha
Commit83b0fc1
Installation URL6jvkfh2cjks6g
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@crazytonyli
crazytonyli requested a review from jkmassel August 27, 2026 06:34
@crazytonyli crazytonyli added this to the 27.3 milestone Aug 27, 2026
@crazytonyli
crazytonyli marked this pull request as ready for review August 27, 2026 06:34

@jkmassel jkmassel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good – just one note – if there's not very much content, I'm surprised it scrolls at all. It probably shouldn't?

Image Image
Scrolled to top Scrolled to bottom

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants