Skip to content

fix(frontend): ensure shimmer loading animation renders during analysis (#700)#1024

Open
Pcmhacker-piro wants to merge 2 commits into
imDarshanGK:mainfrom
Pcmhacker-piro:fix/shimmer-loading-animation-700
Open

fix(frontend): ensure shimmer loading animation renders during analysis (#700)#1024
Pcmhacker-piro wants to merge 2 commits into
imDarshanGK:mainfrom
Pcmhacker-piro:fix/shimmer-loading-animation-700

Conversation

@Pcmhacker-piro

Copy link
Copy Markdown

Summary

The showShimmers() function and .shimmer-card CSS were already defined in the frontend, but the browser never got a paint cycle to display them before the API fetch completed and renderResults() replaced the shimmer DOM.

Fix

Add await new Promise(r => requestAnimationFrame(r)) after showShimmers() in doAnalyze(). This forces the browser to paint the shimmer loading state before the fetch begins, ensuring users see feedback even when the API responds quickly.

Changes

  • frontend/index.html:3394 — Added one-line await requestAnimationFrame(...) after showShimmers() call to guarantee the shimmer paints before the fetch starts. Applies to both ZIP and regular code analysis flows.

Testing

  1. Open the QyverixAI frontend
  2. Paste any code into the editor
  3. Click "Analyze Code"
  4. Verify shimmer placeholder cards appear immediately in all three result panes (Explain, Debug, Improve) while waiting for the API response
  5. Verify shimmers are replaced by actual results once the response arrives

Fixes #700

OpenCode Agent added 2 commits June 12, 2026 00:55
…is fetch

Before the fetch starts, showShimmers() is called but the browser may not
get a paint cycle before the API responds and renderResults() overwrites the
shimmer DOM. Add await requestAnimationFrame(...) after showShimmers() to
guarantee the browser paints the shimmer placeholder before the fetch begins.

This ensures the loading animation is visible even for fast API responses,
fixing the UX gap where the results panel stayed blank during analysis.

Fixes imDarshanGK#700
@github-actions

Copy link
Copy Markdown

👋 This PR has had no activity for 7 days.

Please push updates or comment if you still need more time.

Inactive PRs may be closed automatically after 7 more days.

@github-actions github-actions Bot added the stale label Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Add Shimmer Loading Animation During Analysis

1 participant