Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(site): reflect submitting state during batch update - #27630

#27630
Merged
jakehwll merged 2 commits into
maincoder/coder:mainfrom
jakehwll/fix-batch-update-submitting-statecoder/coder:jakehwll/fix-batch-update-submitting-stateCopy head branch name to clipboard
Jul 29, 2026
Merged

fix(site): reflect submitting state during batch update#27630
jakehwll merged 2 commits into
maincoder/coder:mainfrom
jakehwll/fix-batch-update-submitting-statecoder/coder:jakehwll/fix-batch-update-submitting-stateCopy head branch name to clipboard

Conversation

@jakehwll

Copy link
Copy Markdown
Contributor

🤖 This PR was written by Coder Agents on behalf of Jake Howell.

Problem

When bulk updating workspaces, the confirmation modal's Update button never entered a submitting/loading state, so there was no feedback that the update was actually in progress.

Root cause

The BatchUpdateModalForm shows a spinner when its isProcessing prop is true. That prop is fed by batchActions.isProcessing from useBatchActions. However, the isProcessing value was OR-ing together every mutation's isPending flag except updateAllMutation — the one that actually performs the batch update:

isProcessing:
  favoriteAllMutation.isPending ||
  unfavoriteAllMutation.isPending ||
  startAllMutation.isPending ||
  stopAllMutation.isPending ||
  deleteAllMutation.isPending,
  // updateAllMutation.isPending was missing

As a result, the button stayed idle for the entire duration of a bulk update.

Fix

Include updateAllMutation.isPending in the isProcessing derivation so the button spinner and disabled state correctly reflect an in-flight batch update.

Testing

  • Manually verify the Update button shows the spinner and is disabled while a bulk update runs.

Include updateAllMutation.isPending in the batchActions isProcessing
flag so the bulk update button and modal spinner show progress while
workspaces are being updated.
@jakehwll jakehwll changed the title 🤖 fix(WorkspacesPage): reflect submitting state during batch update fix(site): reflect submitting state during batch update Jul 29, 2026
@jakehwll
jakehwll marked this pull request as ready for review July 29, 2026 02:45

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5e8fb7483a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread site/src/pages/WorkspacesPage/batchActions.ts
Add a page-level Storybook play story that holds the update mutation
pending and asserts the Update button is disabled and announces its
processing state, then clears once the mutation resolves. Guards the
isProcessing wiring against regression (FE1).
@jakehwll
jakehwll merged commit 0b93731 into main Jul 29, 2026
26 checks passed
@jakehwll
jakehwll deleted the jakehwll/fix-batch-update-submitting-state branch July 29, 2026 14:46
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.