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

πŸ’„ (llm) empty accounts/assets screen #9215

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

Conversation

LucasWerey
Copy link
Contributor

@LucasWerey LucasWerey commented Feb 13, 2025

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • assets and accounts list empty screen

πŸ“ Description

When we use a deeplink to open assets and accounts list we can be in an empty screen if we don't have any account. To avoid that I've added an emptyList component that we could use for all our emptyList.
The idea is to have different empty list components depending on the context => addAccount for assets and accounts screen, maybe receive empty list for other screens. This way we can ensure homogeneity using the same base component

deeplinks used :
ledgerlive://accounts?canAddAccount=true&showHeader=true&isSyncEnabled=true
ledgerlive://assets?showHeader=true

Simulator.Screen.Recording.-.iPhone.SE.3rd.generation.-.2025-02-13.at.15.19.05.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)

@LucasWerey LucasWerey requested a review from a team as a code owner February 13, 2025 12:25
@LucasWerey LucasWerey marked this pull request as draft February 13, 2025 12:25
Copy link

vercel bot commented Feb 13, 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 Feb 13, 2025 4:45pm
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2025 4:45pm
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2025 4:45pm
web-tools ⬜️ Ignored (Inspect) Visit Preview Feb 13, 2025 4:45pm

@live-github-bot live-github-bot bot added the mobile Has changes in LLM label Feb 13, 2025
@LucasWerey LucasWerey force-pushed the feat/LIVE-16967 branch 5 times, most recently from 213d603 to 64bacd4 Compare February 13, 2025 14:24
@live-github-bot live-github-bot bot added the translations Translation files have been touched label Feb 13, 2025
@LucasWerey LucasWerey force-pushed the feat/LIVE-16967 branch 5 times, most recently from 4145d3a to 439597a Compare February 13, 2025 15:40
@LucasWerey LucasWerey marked this pull request as ready for review February 13, 2025 16:22
isSyncEnabled={isSyncEnabled}
specificAccounts={specificAccounts}
/>
{!hasNoAccount ? (
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we avoid doing negative conditions when possible ? I find it more readable to put it the other way : hasNoAccount ? <EmptyList /> : <List />
Wdyt ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done βœ…

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
79.7% Coverage on New Code (required β‰₯ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mobile Has changes in LLM translations Translation files have been touched
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants