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 πŸ“ˆ (llm): add analytics for new accounts list #8818

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

LucasWerey
Copy link
Contributor

@LucasWerey LucasWerey commented Jan 6, 2025

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • Analytics of new accounts list
    • Navigator header go back component

πŸ“ Description

Add analytics for the new accounts list scope.
Please refer to Jira task to review all the needed analytics

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2025-01-07.at.10.51.26.mp4

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

Copy link

vercel bot commented Jan 6, 2025

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2025 4:23pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2025 4:23pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2025 4:23pm
web-tools ⬜️ Ignored (Inspect) Visit Preview Jan 7, 2025 4:23pm

@live-github-bot live-github-bot bot added the mobile Has changes in LLM label Jan 6, 2025
@LucasWerey LucasWerey changed the title πŸ“ˆ (llm): add analytics for new accounts list feat πŸ“ˆ (llm): add analytics for new accounts list Jan 6, 2025
@LucasWerey LucasWerey marked this pull request as ready for review January 7, 2025 10:15
@LucasWerey LucasWerey requested a review from a team as a code owner January 7, 2025 10:15
@@ -103,10 +103,11 @@ export default function AccountsList({ route }: Props) {
}, [currency, llmNetworkBasedAddAccountFlow?.enabled, navigation, provider, specificAccounts]);

const onClick = specificAccounts ? onAddAccount : undefined;

const pageTrackingEvent = specificAccounts ? "Account List Summary" : "Accounts";
const currencyToTrack = specificAccounts && currency?.name;
Copy link
Contributor

Choose a reason for hiding this comment

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

replace this expression with a ternary to avoid sending boolean to analytics

Copy link
Contributor Author

Choose a reason for hiding this comment

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

βœ…

@@ -103,10 +103,11 @@ export default function AccountsList({ route }: Props) {
}, [currency, llmNetworkBasedAddAccountFlow?.enabled, navigation, provider, specificAccounts]);

const onClick = specificAccounts ? onAddAccount : undefined;

const pageTrackingEvent = specificAccounts ? "Account List Summary" : "Accounts";
Copy link
Contributor

@themooneer themooneer Jan 7, 2025

Choose a reason for hiding this comment

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

i suggestion to extract those strings to enums related to features/Accounts analytics. File naming can be enums.ts , location IMO features/Accounts/enums.ts as it can be used anywhere in the feature

Copy link
Contributor Author

Choose a reason for hiding this comment

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

βœ…

@LucasWerey LucasWerey force-pushed the feat/LIVE-15618 branch 3 times, most recently from 438ba0d to fd60fe2 Compare January 7, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Has changes in LLM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants