-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: social share experiment #4148
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, more of a question for product.
useEffect(() => { | ||
if (linkData) { | ||
setHasCopied(true); | ||
} | ||
}, [linkData]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think you need a useEffect here right?
Could just evaluate !!linkData
?
const { logEvent } = useLogContext(); | ||
return ( | ||
<Button | ||
variant={ButtonVariant.Float} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Changes
Introduces a new experiment to share on social when copying link
Examples:
![Screenshot 2025-02-05 at 16 08 32](https://private-user-images.githubusercontent.com/36768584/410050647-820428d0-af8c-450d-9995-5328fd01cefd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTEyMDcsIm5iZiI6MTczOTM1MDkwNywicGF0aCI6Ii8zNjc2ODU4NC80MTAwNTA2NDctODIwNDI4ZDAtYWY4Yy00NTBkLTk5OTUtNTMyOGZkMDFjZWZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5MDE0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJlYmNkYmI0ODM3Njg0ZDIwNjgwN2JjYzEyN2EyMzI0ZTc2MmRmNmExYjU0ZTRkMWMwNTc2N2YzYzY4NzA0ZDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hS2_2j2Lp9BKsuNElPKfkz7oe30C2OWIPr6nCKiDDF0)
![Screenshot 2025-02-05 at 16 08 19](https://private-user-images.githubusercontent.com/36768584/410050669-d7a99530-a197-4871-8700-3ddc331dd10b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTEyMDcsIm5iZiI6MTczOTM1MDkwNywicGF0aCI6Ii8zNjc2ODU4NC80MTAwNTA2NjktZDdhOTk1MzAtYTE5Ny00ODcxLTg3MDAtM2RkYzMzMWRkMTBiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5MDE0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFlZDk0OWVmYzdhMTgzZTgyMWE4YjVmNDdkODE2YmIxNWZlNTQ4OTdmZDc3NTQ4OWIxYmZlYzVjMTU0NjI2ZjkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.VAKqoFlPLfbAO_EQ1UOi43ERtI-Dx8B9y0iPDWIgKto)
![Screenshot 2025-02-05 at 16 07 53](https://private-user-images.githubusercontent.com/36768584/410050672-65dbcb65-dc0a-424c-8178-cf6235dfac29.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNTEyMDcsIm5iZiI6MTczOTM1MDkwNywicGF0aCI6Ii8zNjc2ODU4NC80MTAwNTA2NzItNjVkYmNiNjUtZGMwYS00MjRjLTgxNzgtY2Y2MjM1ZGZhYzI5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEyVDA5MDE0N1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgyZDFjNjc2MjU2ZmY3NzdiMmJkZTYxNGRkMTA4NWNlZDczYjg3NmJiYzhlYjRmOTI1NjZmOTkwNDU1NTNhMTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.mgFkbPfWB4gkii7PQvhVLd3GAAv_OGz0bUI-aly13Ss)
Events
Did you introduce any new tracking events?
Experiment
Did you introduce any new experiments?
yes,
social_share
Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
Preview domain
https://mi-777.preview.app.daily.dev