Update - #232
Merged
Merged
Conversation
…rred state updater sendChat's post-stream cleanup read pendingAnswerRef.current inside the setMessages updater function, but React 18 batches the adjacent state updates and defers the updater until after the synchronous block. By then pendingAnswerRef.current had already been reset to "", so the final AI message was committed empty and the streaming bubble appeared to vanish after a partial answer. Fix: snapshot the accumulated text into a local const before clearing the ref, then pass that value (not a ref deref) to the updater. No ref reads remain inside state updater functions. Verified: tsc --noEmit 0 errors, ESLint 0 errors.
… compact inline layout The analysis panel dominated the solution accordion at ~650-850px tall; the scorecard section alone (QualityGauge radial, ScoreRadar recharts radar, and 4 full-width MetricTiles) consumed ~480px and pushed code/content out of view. New layout (~260px): - Header row: title + NIM/cached badges + Ask AI + Copy buttons (chat moved out of the full-width footer button into a compact header action) - Summary / Approach / Key techniques / Strengths / Improvements rendered with a shared tiny uppercase AnalysisLabel instead of per-section card wrappers - Scorecard: single shadcn Progress bar (grade-colored) + inline dimension chips with colored dots, replacing gauge + radar + tiles - Complexity: two inline badges; ComplexityScale reference chart removed Deleted: ScoreRadar, QualityGauge, MetricTile, ComplexityScale, AnalysisSection, AnalysisFooter (6 files) Added: AnalysisLabel (shared label primitive) Cleaned: ~110 lines of now-unused CSS (.stats/.stat/.radial-progress/.divider) in globals.css Verified: tsc --noEmit 0 errors, ESLint 0 errors on all changed files, next build success.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.