0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/apps/comments-ui/test/e2e
Kevin Ansfield 9da9757f1f
Changed in-reply-to snippet to show [hidden/removed] (#21731)
closes https://linear.app/ghost/issue/PLG-263/

When hiding a reply as an Admin, if there were other replies that referenced it then those snippets would still show the hidden content because there was no immediate update in the comments-ui client. This made it look like hidden content would still be visible even though at the API level snippets were entirely removed so no other user would see it.

- added client-side handling so in-reply-to snippets immediately show `[hidden/removed]` which means we don't have to fetch every reply from the API
- updated the API to use `[hidden/removed]` as the snippet when referencing a hidden reply instead of removing all `in_reply_to_` data
  - keeping `in_reply_to_id` and `in_reply_to_snippet` means comments-ui still displays the replied-to reference text (albeit not directly showing the API-supplied string so `[hidden/removed]` can be translated)
  - returns the full `in_reply_to_snippet` text for Admin API requests so that showing a comment that has been loaded from the API can immediately show the contents for any displayed references to the comment
2024-12-02 23:12:01 +00:00
..
actions.test.ts Ensured replies remain visible when parent comment is being edited (#21756) 2024-12-02 22:17:15 +00:00
admin-moderation.test.ts Changed in-reply-to snippet to show [hidden/removed] (#21731) 2024-12-02 23:12:01 +00:00
autoclose-forms.test.ts Wired up Admin Comment Endpoints to UI (#21661) 2024-11-21 10:52:36 +00:00
content.test.ts Wired up Admin Comment Endpoints to UI (#21661) 2024-11-21 10:52:36 +00:00
cta.test.ts Moved old comment tests to Playwright (#17750) 2023-08-17 12:47:08 +02:00
editor.test.ts Fixed comments placeholder (#21524) 2024-11-05 12:14:29 +09:00
labs.test.ts Added feature flagging system for Comments UI (#20984) 2024-09-12 18:36:37 +09:00
lazy-loading.test.ts Added lazy-loading of admin auth in Comments UI (#19799) 2024-03-05 15:57:20 +00:00
options.test.ts Ensured replies remain visible when parent comment is being edited (#21756) 2024-12-02 22:17:15 +00:00
pagination.test.ts Moved pagination button back to top in comments (#20379) 2024-06-13 09:10:30 +07:00