You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fdcede3
Browse filesBrowse the repository at this point in the historyBrowse files
* chore(ui/history): improve Retry toast wording
Closes#707
* fix(ui/history): gate retry success toast on email_sent / status response
The "Purchase request sent for approval" toast was shown unconditionally
after a successful retry POST. The backend's RetryPurchaseResult already
carries email_sent (bool) and status (string); when the approval email
fails, the execution is created with status "failed" and email_sent false,
but the toast previously still claimed approval was requested.
Gate the toast: show success when email_sent===true or
status==='pending'/'notified'; show a warning toast when email_sent===false
or status indicates failure. Adds three new test cases covering the
email-sent, status-only, and email-failed branches.
Resolves CR finding on PR #708 (discussion_r3299766964).
* fix(ui/history): explicit email_sent=false wins over status fallback in retry toast gating
Guard the status-based emailOk fallback with !emailExplicitlyFailed so that
a backend payload carrying email_sent===false always shows the warning toast,
even when status is 'pending' or 'notified'. Add test case #14 covering the
conflicting-payload scenario CR round 2 identified.
0 commit comments