Claude/clarify description 011 cul3 v28 fb llju uv kjm5i5#10
Open
Claude/clarify description 011 cul3 v28 fb llju uv kjm5i5#10
Conversation
…e more dynamic ## Summary This refactor gives all caching control to the backend and simplifies the frontend to always fetch from the backend without complex client-side caching logic. ### Key Changes #### JobStateManager Simplification (1450 → 630 lines) - **Removed** client-side cache validation logic (TTLs, cache expiration) - **Removed** complex batch update processing with deduplication windows - **Removed** polling fallback mechanism (WebSocket primary, simple reconnect) - **Removed** force refresh mechanisms (backend handles cache invalidation) - **Removed** multiple data sources and priority tracking - **Removed** performance metrics tracking (cache hits/misses) - **Simplified** to a pure reactive store that holds current data from backend #### WebSocket Updates - Kept WebSocket for real-time updates - Simplified reconnection logic (5s delay, no complex backoff) - Removed duplicate WebSocket store (jobWebSocket.ts) - Updated WebSocketStatus component to use JobStateManager #### Component Updates - **JobsPage**: Removed forceRefresh parameter, simplified loadJobs() - **JobPage**: Removed forceRefresh from loadJob() and output refresh - **JobSidebar**: Removed forceRefresh from loadJobs() - Removed "Cached" badge from UI (no longer tracking data source) #### API Simplification - Removed `force=true` query parameters from API calls - Backend's existing caching handles all cache invalidation - Frontend always trusts backend to provide correct data ### Benefits - **Significantly faster** - No client-side cache validation overhead - **More dynamic** - Always showing latest data from backend - **Simpler codebase** - 50% reduction in JobStateManager complexity - **Better UX** - No confusing force refresh buttons or stale data indicators - **Backend-controlled** - Single source of truth for caching decisions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
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.
No description provided.