Skip to content

Conversation

@muhammedsirajudeen
Copy link
Contributor

Implemented feature to provide posthog analytics based on purely on user input and persisted it as well based on user preferences #43

  • Had to move some components into App.tsx as we had to toggle state inorder to enable this feature
  • Implemented the cookie-conset-banner component and handled logic
  • Ensured that it is working and the post hog is only provided after consent

Picture

image

@0010aor
Copy link
Owner

0010aor commented Apr 25, 2025

Hey @muhammedsirajudeen,
Thanks again for your contribution! I've made a few adjustments in #65 to improve localization, privacy compliance, and style consistency.

if (consent==="all") {
onConsent(true);
} else {
const timer = setTimeout(() => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Get out this logic to a new function. By this way, it wil be more descriptive with his title.

<VStack align="start" flex="1">
<Text fontWeight="bold" fontSize="md">We use cookies 🍪</Text>
<Text fontSize="sm">
To enhance your experience on FlashNotes. By continuing, you agree to our use of cookies as outlined in our
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move this text to locales folder and take it with useTranslation react hook.

py={4}
zIndex="toast"
boxShadow="0 -2px 10px rgba(0, 0, 0, 0.2)"
transform={isVisible ? "translateY(0)" : "translateY(100%)"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move this logic out of the return size to avoid mix logic with cosmetic part

@0010aor 0010aor closed this Apr 25, 2025
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