-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description --- - refactored win/lose animation triggers to check transactions (remove balance change checks since we have transaction history now) - also includes moving some of the mining hooks & store updaters around and into `useMiningStatesSync` - moved wallet, transaction, and mining metrics 'fetch' functions out of the stores and into their own hooks so they can be used independently of the stores - store missed wins if `canAnimate` was false for a won block - show the recap once window is focused again - adjusted `Earnings` styling to cater for the new recap section - updated the debug settings block time counter to use block_time from base_node instead of the display block height (also updates when not mining) Motivation and Context --- - no ticket but resolves Recap History [(figma)](https://www.figma.com/design/Tyh0UcWVo44z66gYHd0TBs/Tari-Universe-Planning-%26-Wires?node-id=2922-148285&node-type=canvas&m=dev) How Has This Been Tested? --- - locally ### **recap after minimised:** https://github.com/user-attachments/assets/7b071ea8-8a1b-48ad-93cd-7218146bf8cc ---- ### **recap after just being on a different screen:** (and a win right after focusing, cos i am DOMINATING esmeralda apparently) https://github.com/user-attachments/assets/bacc978e-d6f4-4eb0-8bed-ad9bf6069aa1 ---- ### **win while focused still works as normal + debug block time:** https://github.com/user-attachments/assets/45f3f7e4-6a0d-49db-868e-3982aa374f99 ---- **~~still trying to get a fail animation, but i think i'm the only person on esme right now or something, but it does work :3~~** ### **lose while focused still working as before:** https://github.com/user-attachments/assets/9aa6b04e-f3fa-44aa-8305-dd14196d74f6 ---- What process can a PR reviewer use to test or verify this change? --- - run app - check if winning and losing a block still works as before - leave the app minimized or on a non-focused screen for a while - come back and check that the blocks you won previously are accounted for --------- Co-authored-by: Brian Pearce <[email protected]>
- Loading branch information
1 parent
3b2d1d0
commit 2c5bd07
Showing
26 changed files
with
404 additions
and
266 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.