Commit Graph

8 Commits

Author SHA1 Message Date
Sam Fredrickson f67323c5f4 Support hardcoded starting prices.
Build & Test / Main (push) Successful in 1m0s Details
The Coindesk API doesn't have data going all the way back. But since history
isn't changing, we can simply put in known prices.

Also, extend the CDPR cells to have four digits instead of just two.
2024-03-29 19:24:10 -07:00
Sam Fredrickson 4d5dcc46d2 Misc small improvements.
Build & Test / Main (push) Successful in 1m0s Details
2024-03-29 18:40:33 -07:00
Sam Fredrickson 9e6abb1112 Naming things is hard.
Build & Test / Main (push) Successful in 2m26s Details
2024-03-29 01:15:59 -07:00
Sam Fredrickson 2d991880ce Schedule refreshes more consistently.
Build & Test / Main (push) Successful in 1m1s Details
Instead of returning the `scheduleRefresh` command only after receiving
an `update` message, do it while handling the `refresh` message. For
this not to cause weird behavior, the refresh deadline should be shorter
than the refresh interval.
2024-03-24 23:01:51 -07:00
Sam Fredrickson 7b445a02a2 Refresh indicator goes red on error.
Build & Test / Main (push) Successful in 1m0s Details
Release / Release (push) Successful in 1m3s Details
It will stay flashing red until the next refresh, at which point it goes
back to its normal color. On a successful refresh, it still stops.

Also, add a deadline of 15 seconds to the refresh command.
2024-03-24 02:29:45 -07:00
Sam Fredrickson 97f4793ec3 Write errors to log file.
Build & Test / Main (push) Successful in 1m1s Details
2024-03-22 22:55:41 -07:00
Sam Fredrickson 270534c0d5 Pause spinner ticks when not refreshing.
Build & Test / Main (push) Successful in 59s Details
Also, add a quick-and-dirty model for displaying basic performance
stats, currently just the number of calls to the root Update() and
View() methods.
2024-03-22 21:14:34 -07:00
Sam Fredrickson c4dde38d23 Support multiple assets simultaneously.
Build & Test / Main (push) Successful in 1m0s Details
Release / Release (push) Successful in 1m1s Details
2024-03-22 17:43:15 -07:00