Sort Children: Show loading state on Sort button (closes #22651) - #22813
Conversation
|
Claude finished @AndyButland's task in 2m 7s —— View job PR ReviewTarget: Adds
Suggestions
Approved with SuggestionsGood to go. The pattern is consistent with Labels applied: |
There was a problem hiding this comment.
Pull request overview
Improves the Sort Children modal UX by reflecting long-running sort operations directly on the Sort button, aligning with existing backoffice button-state patterns.
Changes:
- Introduces a
_submitButtonStateLit state to drive the<uui-button>visual state. - Sets Sort button state to
waitingduring the async sort call, and tosuccess/failedbased on the repository result. - Binds the Sort button’s
.stateproperty to_submitButtonState.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
) * Add submit button state to sort dialog. * Guard against re-entrant submit in sort-children-of modal. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Set failed button state when sort-children-of submit throws. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> (cherry picked from commit dfe93c5)
) * Add submit button state to sort dialog. * Guard against re-entrant submit in sort-children-of modal. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * Set failed button state when sort-children-of submit throws. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> (cherry picked from commit dfe93c5)
Description
The "Sort Children" modal currently gives editors no visual feedback while the sort request is in flight. For parents with many children the await can take many seconds, which led editors to assume the action was hung and cancel it.
With this update, the "Sort"
uui-buttonnow reflects the in-flight state viastate="waiting"(and transitions tosuccess/failedbased on the repository result), matching the pattern already used indocument-schedule-modal.element.ts.Fixes #22651
Testing