Skip to content
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

Merged
merged 23 commits into from
Feb 10, 2025
Merged

feat: social share experiment #4148

merged 23 commits into from
Feb 10, 2025

Conversation

AmarTrebinjac
Copy link
Contributor

@AmarTrebinjac AmarTrebinjac commented Feb 5, 2025

Changes

Introduces a new experiment to share on social when copying link

Examples:
Screenshot 2025-02-05 at 16 08 32
Screenshot 2025-02-05 at 16 08 19
Screenshot 2025-02-05 at 16 07 53

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

Copy link

vercel bot commented Feb 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
daily-webapp ✅ Ready (Inspect) Visit Preview Feb 10, 2025 2:51pm
1 Skipped Deployment
Name Status Preview Updated (UTC)
storybook ⬜️ Ignored (Inspect) Feb 10, 2025 2:51pm

@AmarTrebinjac AmarTrebinjac marked this pull request as ready for review February 5, 2025 15:26
@AmarTrebinjac AmarTrebinjac requested a review from a team as a code owner February 5, 2025 15:26
Copy link
Contributor

@rebelchris rebelchris left a 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.

packages/shared/src/hooks/useCopy.ts Outdated Show resolved Hide resolved
Comment on lines 69 to 73
useEffect(() => {
if (linkData) {
setHasCopied(true);
}
}, [linkData]);
Copy link
Contributor

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}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe check with Tsahi on this transparency, personally find it very hard to see.
Screenshot 2025-02-06 at 09 18 12

@AmarTrebinjac
Copy link
Contributor Author

After discussion with Tsahi we updated the icons on the cover to be white instead. Looks alright, except for the Reddit alien looks a bit creepy 😂
Screenshot 2025-02-10 at 15 10 07
Screenshot 2025-02-10 at 15 08 41

Copy link
Member

@sshanzel sshanzel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@AmarTrebinjac AmarTrebinjac enabled auto-merge (squash) February 10, 2025 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants