feat(console): add auto-refresh polling and event lifecycle improvements#265
Merged
r2dedios merged 7 commits intoJun 3, 2026
Merged
Conversation
Add refetchInterval to all data-fetching hooks: 5s for fast-changing data (events, actions) and 10s for inventory (accounts, clusters, instances).
Replace manual useState/useEffect in useDashboardData and useEventsData with useQuery, adding AbortSignal support and 5s refetchInterval while preserving the same return interface.
Set userEmail to 'clusteriq@dev' when gap-auth header is absent, so actions created locally have a visible requester in the UI.
Add ResultRunning constant and Running() method to EventTracker so events transition through Pending -> Running -> Success/Failed instead of skipping directly from Pending to the final state.
Closed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
refetchIntervalto all React Query hooks — 5s for fast-changing data (events, scheduled actions, overview) and 10s for inventory data (accounts, clusters, instances)useState/useEffectinuseDashboardDataanduseEventsDatawithuseQuery, addingAbortSignalsupport and polling while preserving the same return interfaceuserEmailtoclusteriq@devwhen thegap-authheader is absent (local development), so actions always have a visible requesterRunning()method toEventTrackerso audit events transition throughPending → Running → Success/Failedinstead of skipping directly to the final stateTest plan
make console-lint— passes with 0 errorsmake local-build— compiles without errorsmake console-start-dev) and verify data refreshes automatically without page reloadclusteriq@devin local development🤖 Generated with Claude Code