Skip to content

Add spinners and skeleton loaders to dashboard loading states#42345

Merged
pelikhan merged 2 commits into
mainfrom
copilot/show-spinners-during-api-query
Jun 29, 2026
Merged

Add spinners and skeleton loaders to dashboard loading states#42345
pelikhan merged 2 commits into
mainfrom
copilot/show-spinners-during-api-query

Conversation

Copilot AI commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

API-driven tabs in the dashboard showed plain text during fetches with no visual progress indicator. The logs-backed Runs and Usage tabs are particularly slow and gave no hint to the user that anything was happening.

CSS (web/styles.css)

  • .awd-spinner — 16px rotating border spinner using Primer color tokens (--borderColor-default, --fgColor-accent)
  • .awd-skeleton-line — shimmer-animated block for skeleton placeholder content

HTML (web/index.html)

  • Definitions / Experiments — replaced plain text with spinner + label
  • Runs — 5 skeleton rows (proportional widths mirroring real row structure: ID, workflow name, duration, AIC) + spinner + slow-query hint: "Logs queries can be slow — this may take a moment."
  • Usage — 5 skeleton rows in the awd-usage-row grid layout + spinner + same slow-query hint
  • Audit — inline spinner alongside "Running audit…"
  • Maintenance — small inline spinner alongside "Running…" label

Copilot AI and others added 2 commits June 29, 2026 21:04
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan June 29, 2026 21:06
@pelikhan pelikhan marked this pull request as ready for review June 29, 2026 21:10
Copilot AI review requested due to automatic review settings June 29, 2026 21:10
@pelikhan pelikhan merged commit 5466127 into main Jun 29, 2026
1 check passed
@pelikhan pelikhan deleted the copilot/show-spinners-during-api-query branch June 29, 2026 21:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves the Agentic Workflows Dashboard canvas UX by replacing plain-text loading placeholders with visual progress indicators (spinner + skeleton loaders), especially for slower logs-backed tabs.

Changes:

  • Added shared CSS for a rotating spinner and a shimmer skeleton line placeholder.
  • Updated dashboard tab loading states (Definitions, Runs, Usage, Experiments) to show spinners and skeleton rows.
  • Enhanced long-running states (e.g., Runs/Usage) with an explicit “Logs queries can be slow…” hint.
Show a summary per file
File Description
.github/extensions/agentic-workflows-dashboard/web/styles.css Adds reusable spinner + skeleton shimmer styles used across dashboard loading states.
.github/extensions/agentic-workflows-dashboard/web/index.html Replaces text-only loading states with skeleton rows and spinner+label indicators across multiple tabs.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 5
  • Review effort level: Low

Comment on lines +166 to +183
/* Skeleton shimmer */
@keyframes awd-shimmer {
0% {
background-position: -400% 0;
}
100% {
background-position: 400% 0;
}
}

.awd-skeleton-line {
display: block;
height: 12px;
border-radius: 4px;
background: linear-gradient(90deg, var(--bgColor-muted, #f6f8fa) 25%, var(--bgColor-neutral, #eaeef2) 50%, var(--bgColor-muted, #f6f8fa) 75%);
background-size: 400% 100%;
animation: awd-shimmer 1.5s ease-in-out infinite;
}
@@ -77,7 +77,10 @@ <h2 class="Box-title">Workflow definitions <span class="Counter ml-1" x-text="de
</div>
<!-- loading -->
<div class="Box-body color-fg-muted text-center py-4" x-cloak x-show="loadingDefinitions">
</div>
</template>
</div>
<div class="Box-body color-fg-muted text-center py-3" x-cloak x-show="loadingRuns">
</div>
</template>
</div>
<div class="Box-body color-fg-muted text-center py-3" x-cloak x-show="loadingUsage">
@@ -408,7 +459,10 @@ <h2 class="Box-title">Experiments <span class="Counter ml-1" x-text="experiments
</div>
<!-- loading -->
<div class="Box-body color-fg-muted text-center py-4" x-cloak x-show="loadingExperiments">
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.1

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.

3 participants