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

Add plausible events for favorite features #2579

Merged
merged 1 commit into from Dec 1, 2022

Conversation

sjaanus
Copy link
Contributor

@sjaanus sjaanus commented Dec 1, 2022

No description provided.

@vercel
Copy link

vercel bot commented Dec 1, 2022

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

Name Status Preview Comments Updated
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Dec 1, 2022 at 10:05AM (UTC)
1 Ignored Deployment
Name Status Preview Comments Updated
unleash-docs ⬜️ Ignored (Inspect) Dec 1, 2022 at 10:05AM (UTC)

@@ -172,7 +173,7 @@ export const FeatureToggleListTable: VFC = () => {
accessor: 'description',
},
],
[isFavoritesPinned]
[isFavoritesPinned, uiConfig?.flags?.favorites]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed a small bug, that favorites were not updating, due to missing dependency.

Copy link
Contributor

@kwasniew kwasniew left a comment

Choose a reason for hiding this comment

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

One weird track event in the error catch block

@@ -51,6 +58,11 @@ export const useFavoriteFeaturesApi = () => {
title: 'Toggle removed from favorites',
type: 'success',
});
trackEvent('favorite', {
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we have this event in the catch block?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is in try block. Hmm?

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry weird github formatting

@sjaanus sjaanus merged commit 0a3823e into main Dec 1, 2022
@sjaanus sjaanus deleted the favorite-features-plausible branch December 1, 2022 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants