Show the wallets market performance - don't merge yet #3410
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is not quite done yet, but i rather wanted to ask for feedback before i continue.
If I have a savings plan rather than some BTC one time investment, the current percentage gain just makes no sense at all. Thats why I started the connected issue some months ago and now this PR is my attempt to fix it.
It's missing some stuff still. But as it already solves my main pain point and I'd like to get some feedback and as im quite unfamiliar with the code base. Is the way it's implemented heading into the right direction?
Here is what it does - it adds a little switch in the upper right corner:
The current default is showing the coin sum data as before, but now its possible to switch to the percent view.
Before continuing there are some questions: The account-summery call serves on hourly (week) and one daily time series to power all other Month, Year and All filters. As the month/year/all percentage gain will be different there are two options. Calculating it on the fly in the frontend and the (in my opinion cleaner) way of letting account-summery just return the currently shown version of the data when pressing one of the filter options.
Yes, that means more calls when switching the filters, but thats why im asking for some guidance.
Here is a quick roundup of what i have done so far to get it working:
Would there be a better UI option or place for the switch? I don't fully like that it's grey for one option and blue for the other. Any idea?
I have one additional question to the tests. I get this while running the backend tests via
go test ./backend/...
:The readme is not specifically telling me how to run those tests, so it was just a guess. There is this
ci
makefile command which is also running into the same 10m timeout. Im not aware that i changed code that might be related to TestServeShutdownServe so im wondering what might be wrong?Also a fresh checkout of the repo is also running into this problem.
I'm leaving all the checkboxes as a reminder of things to do before merging.
Before asking for reviews, here is a check list of the most common things you might need to consider:
Closes #3147