Skip to content

Wallet search performance#5454

Merged
swansontec merged 6 commits intodevelopfrom
william/wallet-search-performance
Feb 13, 2025
Merged

Wallet search performance#5454
swansontec merged 6 commits intodevelopfrom
william/wallet-search-performance

Conversation

@swansontec
Copy link
Contributor

@swansontec swansontec commented Feb 13, 2025

The first commit fixes the hang - something is wrong with the swipe chart, but we can work around that by providing an explicit width.

The next two commits are necessary cleanups.

The final commit fixes some of the UX issues I was experiencing when using this scene.

We really only need the first commit, but the next 3 are "nice to have".

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No (bugfix to unreleased feature)

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)


// A delayed fadein for the max/min labels, to ensure the labels don't get
// rendered before the price line. Also hidden when gesture is active
const minPriceLabelY = Platform.OS === 'ios' ? chartHeight - theme.rem(2.5) : chartHeight - theme.rem(2.75)
Copy link
Contributor

Choose a reason for hiding this comment

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

This logic needs comment.

Copy link
Contributor

Choose a reason for hiding this comment

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

@swansontec swansontec force-pushed the william/wallet-search-performance branch 2 times, most recently from 0b6528d to 61ad9bc Compare February 13, 2025 22:03
The react-native-slide-charts library defaults to the phone width. Since we place the chart into our layout hierarchy, we need to override this default.
Since we only show the first 5 transactions, we don't need to ask the core for more when we reach the end of the scroll. The core's initial batch of 10 transactions will be perfectly fine.
We never actually render any content in this list, so we could just use a normal scroll view.

Also, fix the bottom area to have a minimum height, so viewing & searching transactions is less glitchy.
@swansontec swansontec force-pushed the william/wallet-search-performance branch from 61ad9bc to 89e8021 Compare February 13, 2025 22:07
@swansontec swansontec enabled auto-merge February 13, 2025 22:07
@swansontec swansontec merged commit bb2cb1d into develop Feb 13, 2025
2 checks passed
@swansontec swansontec deleted the william/wallet-search-performance branch February 13, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants