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(web3Hub): add recently used #8050

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

feat(web3Hub): add recently used #8050

wants to merge 2 commits into from

Conversation

Canestin
Copy link

@Canestin Canestin commented Oct 9, 2024

βœ… Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

πŸ“ Description

demo-recently-used.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)

@Canestin Canestin requested review from a team as code owners October 9, 2024 07:50
Copy link

vercel bot commented Oct 9, 2024

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

5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) Visit Preview Oct 9, 2024 0:43am
ledger-live-github-bot ⬜️ Ignored (Inspect) Visit Preview Oct 9, 2024 0:43am
native-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 9, 2024 0:43am
react-ui-storybook ⬜️ Ignored (Inspect) Visit Preview Oct 9, 2024 0:43am
web-tools ⬜️ Ignored (Inspect) Visit Preview Oct 9, 2024 0:43am

@live-github-bot live-github-bot bot added the mobile Has changes in LLM label Oct 9, 2024
};
export type RecentlyUsed = AppManifest;

// export type RecentlyUsed = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to keep this comment?

Copy link
Contributor

Choose a reason for hiding this comment

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

You want to revert this change, the simplest way is usually to do a git checkout develop apps/ledger-live-mobile/ios/ledgerlivemobile.xcodeproj/project.pbxproj

Copy link
Contributor

Choose a reason for hiding this comment

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

Also it happens if we have xcode 16 installed I think and you can use https://github.com/XcodesOrg/xcodes to download any version like the 15.4 we currently use for develop and on CI (actually it's 15.3 I think)

Comment on lines -31 to -35
useEffect(() => {
setWeb3HubDB(INITIAL_WEB3HUB_STATE);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that I was using this to avoid having the input selected if I close and open the disclaimer again, but we clearly don't want to reset the states when using the hook

expect(screen.getByRole("searchbox")).toBeEnabled();

expect(await screen.findByText("Recently used")).toBeOnTheScreen();
expect(await screen.findByTestId("recently-used-dummy-0")).toBeOnTheScreen();
Copy link
Contributor

Choose a reason for hiding this comment

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

We also want to limit the usage of testIds to the bare minimum and try to use other user friendly way to find elements
https://testing-library.com/docs/queries/about#priority

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.

3 participants