Ghost/apps
Kevin Ansfield 52e727a28c
Added in-reply-to references to comments-ui (#21656)
ref https://linear.app/ghost/issue/PLG-230

When clicking "Reply" on a reply we now show an "In reply to" reference on the form and when saved show that reference in the rendered view, making it easier to follow discussions within comment replies.

- updated calls to `openCommentForm` action when opening a reply to add the in-reply-to data to the `openForm` instance
- updated Form comment to use the `openForm` instance data when rendering the in-reply-to reference
- updated Comment component to render the in-reply-to reference from the API-provided data
  - includes click handler to scroll to the referenced comment
- added `getCommentInReplyToSnippet` helper function so strip a comment back to plaintext for display in the reply-to reference on the comment form (snippets on other comments are generated server-side)

---------

Co-authored-by: Sanne de Vries <sannedv@protonmail.com>
2024-11-19 17:30:18 +00:00
..
admin-x-activitypub Split inbox and feed into separate tabs (#21642) 2024-11-19 17:04:39 +00:00
admin-x-demo 🌐 Updated packages for improved i18n support (#21218) 2024-10-03 22:27:16 +00:00
admin-x-design-system Updated menu items to not trigger parent element on click (#21618) 2024-11-14 11:13:37 +00:00
admin-x-framework Improved ActivityPub drawer view UI (#21521) 2024-11-07 15:59:29 +00:00
admin-x-settings Reverted custom fonts flag (#21645) 2024-11-18 17:45:03 +00:00
announcement-bar Added Dev Container setup (#21279) 2024-10-24 11:15:08 -07:00
comments-ui Added in-reply-to references to comments-ui (#21656) 2024-11-19 17:30:18 +00:00
portal Bumped portal and search packages (#21630) 2024-11-15 19:10:29 +00:00
signup-form Bumped signup form package (#21631) 2024-11-15 19:11:29 +00:00
sodo-search Bumped portal and search packages (#21630) 2024-11-15 19:10:29 +00:00