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

✨(lld): change sync error tooltip to be more readable #8140

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

Conversation

LucasWerey
Copy link
Contributor

@LucasWerey LucasWerey commented Oct 18, 2024

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ActivityIndicator, isUpToDateSelector, usemaybeaccountname, useaccountsyncstate

πŸ“ Description

in purpose to add a more readable UI inside sync tooltips we will display all the accounts that failed to sync (not update to date / not supported ). For this I've added batch hook to find all the account names

Screen.Recording.2024-10-18.at.13.25.08.mov

❓ 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 October 18, 2024 11:27
Copy link

vercel bot commented Oct 18, 2024

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

Name Status Preview Comments Updated (UTC)
web-tools βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Oct 18, 2024 0:41am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2024 0:41am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2024 0:41am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2024 0:41am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2024 0:41am

accounts?: (Account | null)[];
} = {}): AccountWithSyncState[] {
const syncState = useBridgeSyncState();
if (!accounts) return [];
Copy link
Contributor

Choose a reason for hiding this comment

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

you can add || !account?.length too

accounts: (AccountLike | null | undefined)[],
): (string | undefined)[] => {
return useSelector((state: State) =>
accounts.map(account =>
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 put the content of this map in a function to factorize with the useMaybeAccountName function above

) : (
<Box>
<Text mb={1} textAlign="left">
{"Accounts failing to sync:"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this text not in the translations file ?

@live-github-bot live-github-bot bot added the translations Translation files have been touched label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
common Has changes in live-common desktop Has changes in LLD translations Translation files have been touched
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants