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

fix(lld): auto scroll when mounted on accounts page #6860

Merged
merged 1 commit into from
May 16, 2024

Conversation

LucasWerey
Copy link
Contributor

@LucasWerey LucasWerey commented May 15, 2024

✅ Checklist

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

📝 Description

A regression has been introduced to automatically scroll account pages to the bottom of the page.

Before After
https://github.com/LedgerHQ/ledger-live/assets/73439207/234f952a-b9d8-4f49-8420-17d1ac8ced8d https://github.com/LedgerHQ/ledger-live/assets/73439207/202a23a3-c8ef-4d36-8d4d-5b1a3c479140

❓ 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 May 15, 2024 08:31
Copy link

vercel bot commented May 15, 2024

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

5 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ledger-live-docs ⬜️ Ignored (Inspect) May 15, 2024 8:31am
ledger-live-github-bot ⬜️ Ignored (Inspect) May 15, 2024 8:31am
native-ui-storybook ⬜️ Ignored (Inspect) May 15, 2024 8:31am
react-ui-storybook ⬜️ Ignored (Inspect) May 15, 2024 8:31am
web-tools ⬜️ Ignored (Inspect) May 15, 2024 8:31am

Copy link

sentry-io bot commented May 15, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: apps/ledger-live-desktop/src/renderer/screens/accounts/AccountRowItem/index.tsx

Function Unhandled Issue
AccountRowItem URIError: Pathname "/account/js:2:casper:2������0h�%�#^x� onAccountClick(src/renderer/screens/accoun...
Event Count: 1 Affected Users: 17

Did you find this useful? React with a 👍 or 👎

@live-github-bot live-github-bot bot added the desktop Has changes in LLD label May 15, 2024
@@ -145,7 +145,13 @@ const AccountRowItem = (props: Props) => {

const scrollTopFocusRef = useRef<HTMLSpanElement>(null);

const mountedRef = useRef(true);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will disable the auto scroll but in DEV every changes done on the page in the code will result in an auto scroll to the last account

@live-github-bot
Copy link
Contributor

Desktop Bundle Checks

Comparing 1364fe0 against 801265b.

🚀 @scure/base library is no longer duplicated in renderer
🚀 ripple-address-codec library is no longer duplicated in renderer

@LucasWerey LucasWerey requested a review from gre May 15, 2024 15:01
@LucasWerey LucasWerey merged commit 2e989ad into develop May 16, 2024
35 of 43 checks passed
@LucasWerey LucasWerey deleted the fix/LIVE-12568 branch May 16, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop Has changes in LLD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants