Highlights checkbox that creates a share with highlights included
A new message is introduced to B2B recipients in the x-gift-article prompting the users to save their highlights in order to re-share the article with the received highlights.
Changes:
Updated the entrepriseApi
Created a separate highlightsApi client to be used only for requests to the user-annotations-api
Created HighlightsSection component to be a wrapper of the highlights checkbox, the recipient message for saving highlights and the success message afterwards.
Created a HighlightCheckbox component, which will appear after the user has saved the shared highlights or when the user has created highlights on their own.
Created a new message HighlightRecipientMessage which will be shown to B2B users only if they open a shared article with highlights( highlights query parameter should be in the url)
Created a new success message HighlightSuccessMessage which will appear after the user clicks save the highlights.
add an action to check if user have highlights ,this action will be used by the next-article project to update the hasHighlights status when user creates highlights after the x-gift-article component initializes
Description
This PR introduces two features
Changes:
Jira Tickets
Highlights checkbox ticket https://financialtimes.atlassian.net/browse/ENTST-352
Recipient message ticket https://financialtimes.atlassian.net/browse/ENTST-397
Visuals
Sharing article with existing highlights
https://github.com/Financial-Times/x-dash/assets/22678655/b17b8ca1-494c-4ab1-b18a-b7fb4353cbcc
Sharing article with no highlights
Sharing article with received highlights
https://github.com/Financial-Times/x-dash/assets/22678655/539e4301-7fb2-4487-9a01-50d71b142882