feat: add real-time progress feedback for AI analysis#189
Open
feat: add real-time progress feedback for AI analysis#189
Conversation
Shows step-based progress indicator (Queued → Generating → Results Ready) with elapsed time counter during analysis. Displays success toast notification when analysis completes via polling, with smooth animations. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Detects when analysis is stuck (pending >30s or processing >3min) and shows a warning banner with amber styling. Stops polling after 5 minutes and offers a "Retry Analysis" button. Prevents infinite spinner UX. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Elapsed time now updates every second via a client-side setInterval instead of only refreshing on HTMX poll cycles. The timer self-cleans when the panel is swapped out by HTMX. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…swap The toast, style, and script elements were rendered as siblings before the #analysis-panel div. HTMX outerHTML swap expects a single root element - the extra siblings caused the swap to break, leaving the processing panel stuck even after analysis completed. Moving everything inside the panel div ensures HTMX correctly replaces the entire panel. Co-Authored-By: Claude Opus 4.6 (1M context) <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.
Summary
Before: Static "Analysis in progress..." message with no stage indication; users had to manually refresh to see results and could wait forever with no feedback.
After: Clear visual progress through stages with elapsed timer. Warning when analysis is stalled. Auto-stop polling with retry option. Toast notification when analysis is ready.
Changes
services/dashboard/src/routes/partials/analysis.ts— EnhancedrenderProcessingPanelwith progress steps, timer, stalled detection, and retry button; added completion toast and animation torenderCompletedPaneldocs/06-Reference/changelog.md— Added changelog entryTest plan
🤖 Generated with Claude Code