Skip to content

refactor(ui): use isWaiting for the busy state of save and blockstate create - #360

Merged
theEvilReaper merged 2 commits into
developfrom
refactor/busyFlagsIsWaiting
Nov 28, 2026
Merged

theEvilReaper merged 2 commits into
developfrom
refactor/busyFlagsIsWaiting

Conversation

@theEvilReaper

@theEvilReaper theEvilReaper commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Proposed changes

The save button on the detail pages and the blockstate create dialog tracked their busy state with a local flag around the dispatch. Both now read isWaiting for the action they wait on, so the setState bookkeeping is gone. As a bonus, the save button also shows that it saves when the unsaved changes dialog starts the save. New widget tests hold the backend request open and check the busy state while the action runs.

Types of changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of
them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before
merging your code.

  • I have read the CONTRIBUTING.md
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@theEvilReaper
theEvilReaper merged commit 07fcc39 into develop Nov 28, 2026
20 checks passed
@theEvilReaper
theEvilReaper deleted the refactor/busyFlagsIsWaiting branch November 29, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant