Skip to content

fix: add loading indicator overlay to velocity heatmap page - #1523

Open
eran132 wants to merge 2 commits into
mainfrom
fix/velocity-heatmap-loading-indicator
Open

fix: add loading indicator overlay to velocity heatmap page#1523
eran132 wants to merge 2 commits into
mainfrom
fix/velocity-heatmap-loading-indicator

Conversation

@eran132

@eran132 eran132 commented Apr 24, 2026

Copy link
Copy Markdown
Collaborator

Re-submitted from upstream branch (previously #1504). Approved by @AvivAbachi.

Summary

  • Replaced pink "loading!" text with MUI CircularProgress overlay
  • Added MUI Alert for error states
  • Loading/error state propagated via callbacks from VelocityHeatmapRectangles

Closes #1483

Test plan

  • TypeScript compiles clean
  • ESLint + Prettier pass
  • Unit tests pass (9/9)
  • CI Playwright tests pass

🤖 Generated with Claude Code

The velocity heatmap page loads data slowly but previously showed only
a pink div with "loading!" text, making users think the page was broken.

Replaced with a proper semi-transparent overlay with MUI CircularProgress
spinner and descriptive text, consistent with loading patterns used in
the gaps and timeline pages. Also added an Alert component for error
states.

Closes #1483

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 24, 2026 23:20
@eran132
eran132 requested a review from AvivAbachi as a code owner April 24, 2026 23:20
@github-actions

github-actions Bot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown

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 UX of the velocity heatmap page by replacing the previous “loading!” text with a proper loading overlay and adding a user-visible error alert, with loading/error state lifted from VelocityHeatmapRectangles to the page component.

Changes:

  • Add an MUI CircularProgress overlay while heatmap data is loading.
  • Show an MUI Alert on error states.
  • Propagate loading/error from VelocityHeatmapRectangles to the parent via new callbacks.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/pages/velocityHeatmap/index.tsx Adds loading overlay + error alert UI and wires callbacks from the rectangles layer.
src/pages/velocityHeatmap/components/VelocityHeatmapRectangles.tsx Introduces onLoadingChange / onErrorChange callbacks and removes the old inline loading/error div.

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

Comment thread src/pages/velocityHeatmap/components/VelocityHeatmapRectangles.tsx
@eran132
eran132 requested a review from NoamGaash April 25, 2026 07:10

@NoamGaash NoamGaash left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Cool, thank you!

@NoamGaash

Copy link
Copy Markdown
Member

@all-contributors please add @eran132 as a code contributor to this repository

@allcontributors

Copy link
Copy Markdown
Contributor

@NoamGaash

@eran132 already contributed before to code

…loading-indicator

# Conflicts:
#	src/pages/velocityHeatmap/components/VelocityHeatmapRectangles.tsx
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.

Fix loading indication in the velocity map page

4 participants