Skip to content

fix(project-tree): spinner when moving #30923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 8, 2025

Conversation

mariusandra
Copy link
Collaborator

@mariusandra mariusandra commented Apr 8, 2025

Problem

When moving items there's no visual feedback until after an item is moved

Changes

Bring back the spinners that were there before (note: my connection here is throttled)

2025-04-08 12 38 10

How did you test this code?

See screencast

@mariusandra mariusandra requested a review from adamleithp April 8, 2025 10:40
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR improves the project tree by displaying spinner feedback during item moves while streamlining the queueing logic.

  • Added spinner indicators in move operations for immediate visual feedback in /frontend/src/layout/panel-layout/ProjectTree/projectTreeLogic.tsx.
  • Ensured consistent removal of queued actions across move, link, create, and delete flows.
  • Adjusted API handling in both success and error paths to prevent stale spinners.
  • Highlighted risk of race conditions when multiple actions are queued for further testing.

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@mariusandra mariusandra enabled auto-merge (squash) April 8, 2025 10:44
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 7)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 7)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

github-actions bot commented Apr 8, 2025

Size Change: +231 B (0%)

Total Size: 13.1 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 13.1 MB +231 B (0%)

compressed-size-action

@mariusandra mariusandra merged commit 2da42fb into master Apr 8, 2025
109 checks passed
@mariusandra mariusandra deleted the fix-file-system-move-queueing branch April 8, 2025 11:17
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