Skip to content

chore: update dependencies to latest versions (vite v6.2.0, vitest v3…#8

Merged
IonesioJunior merged 1 commit intomainfrom
auto-update-balance
Jan 16, 2026
Merged

chore: update dependencies to latest versions (vite v6.2.0, vitest v3…#8
IonesioJunior merged 1 commit intomainfrom
auto-update-balance

Conversation

@IonesioJunior
Copy link
Copy Markdown
Member

This pull request introduces robust, visibility-aware polling and force-refresh mechanisms for accounting data in the frontend. The main improvements are the addition of a global refresh event system, smarter polling that pauses when the browser tab is hidden, and more resilient, user-friendly data fetching for both balance and transaction information.

Accounting Data Polling and Refresh Enhancements:

  • Added a global event system to allow any part of the app to trigger an immediate refresh of accounting data (balance and transactions) via the new triggerBalanceRefresh function and useBalanceRefresh hook. [1] [2] [3]
  • Implemented visibility-aware polling for both useAccountingUser and useTransactions hooks, so polling only occurs when the tab is visible, saving bandwidth and improving efficiency. Polling resumes with an immediate fetch when the tab becomes visible again. [1] [2] [3] [4] [5] [6]

User Experience and Resilience Improvements:

  • Ensured that errors during background polling do not disrupt the UI or show transient error messages to the user, while still surfacing errors for manual fetches. [1] [2]
  • Added concurrency control to prevent overlapping fetches, improving reliability and preventing race conditions in both user and transaction data fetching. [1] [2] [3]

Development Tooling:

  • Updated development dependencies: upgraded vitest to v3 and added vite v6 to the frontend devDependencies.

….0.0) and add balance refresh after chat completion
@IonesioJunior IonesioJunior merged commit 383fb2b into main Jan 16, 2026
10 checks passed
@IonesioJunior IonesioJunior deleted the auto-update-balance branch January 16, 2026 18:11
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.

1 participant