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 no telemetry option and improve analytics code clarity #2740

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

iLynxcat
Copy link
Member

This PR is primarily aimed at adding a "none" option for analytics which has been highly requested, with some other related changes to help improve clarity of some of our analytics functionality for people who may be reviewing the code for their own peace of mind.

…` instead of `initPlausible` for improved clarity
if any people reviewing source for their own verification of its purpose, this should make it much clearer what this does
changing the option in the Select dropdown breaks things right now, gotta figure out why
Copy link

linear bot commented Sep 29, 2024

Copy link

vercel bot commented Sep 29, 2024

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
spacedrive-landing ⬜️ Ignored (Inspect) Visit Preview Sep 29, 2024 8:11am
spacedrive-web ⬜️ Ignored (Inspect) Visit Preview Sep 29, 2024 8:11am

@iLynxcat iLynxcat changed the title Small analytics revamp Add no telemetry option and improve analytics code clarity Sep 29, 2024
@iLynxcat iLynxcat marked this pull request as draft September 29, 2024 08:11
@iLynxcat
Copy link
Member Author

Just need to polish UI for this and should be good to go after!

@HeavenVolkoff
Copy link
Member

Need to change cypress onboarding test here to add the new telemetry option and rename the element ids:

// Check we have all privacy options
cy.get('label').contains('Share the bare minimum').click();
cy.get('#radiominimal-telemetry').should('have.attr', 'data-state', 'checked');
cy.get('#radioshare-telemetry').should('have.attr', 'data-state', 'unchecked');
cy.get('label').contains('Share anonymous usage').click();
cy.get('#radioshare-telemetry').should('have.attr', 'data-state', 'checked');
cy.get('#radiominimal-telemetry').should('have.attr', 'data-state', 'unchecked');

@iLynxcat
Copy link
Member Author

Also just remembered I need to figure out how to properly migrate the old telemetry preference to this new property format

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.

2 participants