Blueprints: Fix creating documents from blueprints (closes #21996)#22688
Conversation
|
Claude finished @nielslyngsoe's task in 1m 27s —— View job PR ReviewTarget: Adds a
Suggestions
ApprovedThe fix is correct and well-scoped. Applied labels: |
There was a problem hiding this comment.
Pull request overview
Fixes an intermittent blank/grey workspace when creating documents from blueprints by resetting workspace state and showing a loading state before fetching the blueprint scaffold, reducing the race window described in #21996.
Changes:
- Reset document workspace state earlier when creating from a blueprint.
- Add/remove a dedicated loading state around the blueprint scaffold fetch.
- Ensure loading state is removed before throwing when blueprint data is missing.
cherry-picked fix from #22422
Description
Fixes #21996
Testing
May be tricky to reproduce unless you want a copy of the database that shows the error, but it should be enough to verify that new documents can be created when selected from a list of blueprints, and you can successfully create one, scaffold it, then change your mind and create again from a different blueprint.