* feat(mobile): graph fetches only transaction in timeframe + perf optimizations
* feat(mobile): optimize fetching of tx fiat rates
* feat(mobile): DevXpub support multiple acc per network
* feat(mobile): pagination for TransactionList is back
* chore: cleanup
* feat(mobile): use token definitions instead of fiat rates
* chore: pr fixes
* chore(suite): improve fiat fetching readibility
* chore(suite): improve fiat fetching flow and fallbacks based on networks
* chore(suite-native): replace native fiat rates with wallet core
* chore(suite): use last successful fetch timestamp from result
* chore(docs): update fiat rates
In the UI we display only two decimal points in the graph. Sometimes, if there was a value lower than 0.01, the graph was raising and droping even though that value was displayed as 0.00. This change fixes that by displaying rounding every value lower than 0.01 to zero.
Closes#10632
- Transactions in graph are ordered by timestamp and not by blockheight and in rare cases it can be in oposite order. If we would like to prevent negative value in graph, we should do that on different level.
* fix(suite-native): graph event extremes offset
The extreme graph events date (x axis of the graph) is normalized to make the events always fully visible.
Closes#9050
* feat(suite-native): persistent graph timeframe storage
After changing the timeframe of any graph, the change is persistent and will be restored after closing and reopening the app.
These two problems were fixed:
- The graph was not refetching values after currency change
- after changing the currency, the selected currency was not
displayed in the currency selector
Resolves#8809
* chore(suite-native): upgrade react-native-graph to v. 1.0.2
* feat(react-native-graph): graph events added
`react-native-graph` can display graph events/interactions now.
The AnimatedLineGraph component accepts two new props `events` and `EventComponent`.
- `events` is an array of objects representing every individual interaction and it's metadata.
Each of these objects contains a `date` property that is used to compute the event coordinates in the graph.
- `EventComponent` accepts the coordinates and metadata of each event and represent it in the graph
* refactor(suite-native): graph works with real date
We used to covert graph points `Date` objects to unix epoch time.
This commit makes the graph work with original dates as library intends.
* feat(suite-native): graph implements transaction events
Graph of Account detail displays transaction events.