Skip to content

fix: reload page after bulk chatflow update and show in-progress state#1072

Merged
ct3685 merged 1 commit into
stagingfrom
ct/fix-bulk-update-refresh
May 15, 2026
Merged

fix: reload page after bulk chatflow update and show in-progress state#1072
ct3685 merged 1 commit into
stagingfrom
ct/fix-bulk-update-refresh

Conversation

@ct3685
Copy link
Copy Markdown

@ct3685 ct3685 commented May 15, 2026

Summary

Patch for the Admin Chatflows bulk update UX:

  1. Page didn't reload after update — The previous code gated window.location.reload() on response.updated > 0, but the axios client wraps the body in .data, so response.updated was always undefined and the condition never fired. Fixed by removing the condition and always reloading on success.

  2. No in-progress feedback — The button showed no indication the update was running. Added bulkUpdateInProgress state that disables both the trigger button and the dialog confirm button, and changes their labels to Updating N… while the request is in-flight. On error, the state resets so the admin can retry.

Changes

packages-answers/ui/src/Admin/Chatflows/index.tsx only — no server changes.

Test Plan

  • Click "Update Selected", confirm dialog, verify button switches to "Updating N…" and is disabled
  • After update completes, verify page reloads and outdated badges are gone
  • Simulate a network error and verify the button re-enables for retry

@ct3685 ct3685 added bug Something isn't working ui labels May 15, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
answerai-docs Building Building Preview May 15, 2026 6:31pm
the-answerai Building Building Preview May 15, 2026 6:31pm

Request Review

@ct3685 ct3685 merged commit 5ca478d into staging May 15, 2026
6 of 8 checks passed
@ct3685 ct3685 deleted the ct/fix-bulk-update-refresh branch May 15, 2026 18:56
ct3685 added a commit that referenced this pull request May 15, 2026
## 🚀 Release: Staging to Production

**Release Date:** 2026-05-15

### Changes in this release

- fix: add missing KeyboardArrowDownIcon import (7d7216e)
- feat: collapsible template banner with count pill, green/amber
theming, always-green badge (#1074) (99e0c8b)
- feat: turn template banner green when all chatflows are up to date
(#1073) (7314af5)
- fix: reload page after bulk chatflow update and show in-progress state
(#1072) (5ca478d)
- fix: preserve workspaceId in bulkUpdateChatflows + optional template
name sync (#1071) (3e166d6)
- chore: update dependencies for improved compatibility and
functionality (#1070) (6451d83)
- fix: restore Atlassian MCP OAuth by removing stale Passport dependency
(#1068) (00bae11)

---
*This PR is automatically created/updated when commits are pushed to
staging.*
*Merging this PR will trigger the release workflow to create a new
GitHub release.*

---------

Co-authored-by: Cameron Taylor <50385537+ct3685@users.noreply.github.com>
Co-authored-by: Cameron Taylor <cameron@lastrev.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant