Commit 2347f2b
authored
fix(ui): stop workflowHeadline contradicting the Accepted pill when accepted-but-not-ready (#7549)
workflowHeadline derives its copy from the bucket-derived overallState plus
readiness.ready (an independent API-side signal). When every workflow bucket
is clear (state "accepted") but readiness.ready is false, it skipped the
accepted branch and fell through to the generic "Needs cleanup — some areas
... require maintainer follow-up" default — contradicting the "Accepted" pill
rendered from the same overallState, and implying an actionable bucket item
exists when none does.
Add an explicit state === "accepted" && !ready branch with truthful copy
(buckets clear, an out-of-bucket readiness check still blocking). The
not_ready and needs_cleanup branches are unchanged. Export the function and
add registration-workspace.test.ts (previously untested) covering all four cases.
Closes #7535
Co-authored-by: jaytbarimbao-collab <300663773+jaytbarimbao-collab@users.noreply.github.com>1 parent 032ffb5 commit 2347f2b
2 files changed
Lines changed: 45 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
661 | 661 | | |
662 | 662 | | |
663 | 663 | | |
664 | | - | |
| 664 | + | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
668 | 675 | | |
669 | 676 | | |
670 | 677 | | |
| |||
0 commit comments