Skip to content

Update - #232

Merged
jerryjuche merged 2 commits into
stagingfrom
update
Aug 16, 2026
Merged

Update#232
jerryjuche merged 2 commits into
stagingfrom
update

Conversation

@jerryjuche

Copy link
Copy Markdown
Owner

No description provided.

…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.
@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
koder Ready Ready Preview Aug 16, 2026 8:01pm

@jerryjuche
jerryjuche merged commit f8b162b into staging Aug 16, 2026
5 checks passed
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