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: profile follow button #3575

Merged
merged 5 commits into from
Sep 25, 2024

Conversation

rebelchris
Copy link
Contributor

@rebelchris rebelchris commented Sep 23, 2024

Changes

Since we currently only fetch client side on same user or no initial data we had to remove this.
As server isn't aware of the logged user.

There is a stale time so should be fine :)
Also added the mutation invalidation handler.

Events

Did you introduce any new tracking events?

Experiment

Did you introduce any new experiments?

Manual Testing

Caution

Please make sure existing components are not breaking/affected by this PR

AS-597 #done

Preview domain

https://as-597-profile-follow-button.preview.app.daily.dev

Copy link

vercel bot commented Sep 23, 2024

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

Name Status Preview Comments Updated (UTC)
daily-webapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 7:41am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
storybook ⬜️ Ignored (Inspect) Sep 25, 2024 7:41am

@rebelchris rebelchris changed the base branch from main to AS-534-user-follow September 23, 2024 08:52
@@ -67,7 +67,7 @@ export const FollowButton = ({

const isLoading = isLoadingFollow || isLoadingNotify;

if (user.id === userId) {
if (!user || user.id === userId) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Edge-case :)

@rebelchris rebelchris changed the title As 597 profile follow button feat: profile follow button Sep 23, 2024
packages/shared/src/components/profile/Header.tsx Outdated Show resolved Hide resolved
packages/shared/src/hooks/profile/useProfile.ts Outdated Show resolved Hide resolved
@rebelchris rebelchris merged commit f566ca1 into AS-534-user-follow Sep 25, 2024
10 checks passed
@rebelchris rebelchris deleted the AS-597-profile-follow-button branch September 25, 2024 07:42
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.

3 participants