Skip to content

fix(review): show loading state in review scope selector dialog#5733

Open
krisztian-gajdar wants to merge 5 commits intoKilo-Org:mainfrom
krisztian-gajdar:fix-create-local-code-review-modal-loading
Open

fix(review): show loading state in review scope selector dialog#5733
krisztian-gajdar wants to merge 5 commits intoKilo-Org:mainfrom
krisztian-gajdar:fix-create-local-code-review-modal-loading

Conversation

@krisztian-gajdar
Copy link

Context

My original problem was that when there were many changes the modal was slow to appear and clicking on the ui cancelled the modal from appearing

Now we display loading spinner immediately when opening review scope dialog
while scope information is being computed. This improves perceived
performance by showing UI feedback instantly rather than waiting for
the git operations to complete.

Implementation

  • Send null scopeInfo initially to trigger loading state
  • Add loading spinner and text in ReviewScopeSelector
  • Disable start review button while loading
  • Update tests for new loading behavior

How to Test

Open a workspace that is a git repository with some uncommitted changes (for greater affect changed files should be in the hundreds)
Switch to Review mode (via the mode selector)
Previously the Review Scope Selection dialog did not appear for many seconds but now it should appear with a loading state while git data is being fetched
After a moment, the dialog should populate with scope options (uncommitted changes, branch comparison)

Get in Touch

krisztian-gajdar

My original problem was that when there were many changes the modal was slow to appear and clicking on the ui cancelled the modal from appearing

Now we display loading spinner immediately when opening review scope dialog
while scope information is being computed. This improves perceived
performance by showing UI feedback instantly rather than waiting for
the git operations to complete.

- Send null scopeInfo initially to trigger loading state
- Add loading spinner and text in ReviewScopeSelector
- Disable start review button while loading
- Update tests for new loading behavior
@changeset-bot
Copy link

changeset-bot bot commented Feb 6, 2026

🦋 Changeset detected

Latest commit: 2c7ed00

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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