Implementation of "Send a Link" Feature for MAX #2790
Replies: 5 comments 3 replies
-
@drashti1712 - we've done similar work for custom "login" actions, the code is available in https://github.com/adobecom/milo/blob/stage/libs/utils/utils.js#L650. I think we can reuse the |
Beta Was this translation helpful? Give feedback.
-
Had a quick look and I have a few notes:
@narcis-radu also has a point that you might be able to leverage an already existing pattern, but my comments still stand as well. |
Beta Was this translation helpful? Give feedback.
-
Hi All,
POC link: https://share-link-updated--milo--drashti1712.hlx.live/drafts/drashti/share-links cc: @narcis-radu |
Beta Was this translation helpful? Give feedback.
-
Update:
cc: @overmyheadandbody @ryanmparrish @rgclayton @Ruchika4 @mokimo @salonijain3 @aishwaryamathuria @suhjainadobe @robert-bogos |
Beta Was this translation helpful? Give feedback.
-
Closing this discussion as the implementation was completed. Thank you everyone for your inputs on this. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
We have a new functionality request for the Features pages (Ps, Pr, Lr, Ai, Id) for MAX, where the users should be able to copy and send themselves a link on the page.
The requirement is to be able to add the functionality (copy link and share) to any link/CTA authored in any block. The design and other details for this are provided in this jira ticket: https://jira.corp.adobe.com/browse/MWPW-157017
Long-term Solution:
To append a
_copy-link
parameter to the link, enabling the "Send a Link" feature to appear and function as intended.Implementation Details:
The logic would be to check if the link has the
_copy-link
parameter and then use the Web Share API to invoke the share pop up on click.This implementation would be done in milo's
decorateLinks()
.Here is a code snippet from my poc:
POC: https://share-link-milo--milo--drashti1712.hlx.page/drafts/drashti/share-links
Screenshots:
Timeline:
Since this is a critical requirement for MAX, we are targeting Thursday, 9/5 as the feature delivery date.
I am looking for some community insights on this. Please do let me know if you have any suggestions or feedback on the implementation.
Thanks in advance.
cc: @dstrong23 @salonijain3 @narcis-radu @mokimo @rgclayton @overmyheadandbody @aishwaryamathuria @Ruchika4 @suhjainadobe
Beta Was this translation helpful? Give feedback.
All reactions