Commit e82ba92
committed
Fill in empty states for run detail Arguments, Output, and History sections
The run-detail page always renders Arguments, Output (when closed), and
History even when those sections have no data to show. Previously they
rendered as an empty vue-json-pretty "null" node or an empty history
viewport with just tab buttons, leaving operators to guess whether the
run genuinely has nothing or whether the page failed to load something.
This replaces the silent blanks with explicit, operator-facing messages:
- Arguments: "This run was started without arguments." when the decoded
payload is null/empty/empty collection.
- Output: "This run completed without returning a value." when a closed
run has no output payload.
- History: "No history events have been recorded for this run yet."
when the run has no timeline events, displayed in place of the empty
virtual-scroll timeline or the empty event-list table.
A new hasPayload() helper decodes the raw argument/output value through
the existing unserialize() path, then treats null, undefined, empty
string, empty array, and empty object as "no payload". Sections that are
already gated on their own length (Activities, Tasks, Waits, Timers,
Commands, Signals, Updates, Linked Intakes, Exceptions) keep their
existing behaviour — those cards stay hidden when empty.1 parent f5acc73 commit e82ba92
3 files changed
Lines changed: 43 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
503 | 506 | | |
504 | 507 | | |
505 | 508 | | |
| |||
514 | 517 | | |
515 | 518 | | |
516 | 519 | | |
517 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
518 | 524 | | |
519 | 525 | | |
520 | 526 | | |
| |||
648 | 654 | | |
649 | 655 | | |
650 | 656 | | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
651 | 661 | | |
652 | | - | |
| 662 | + | |
653 | 663 | | |
654 | 664 | | |
655 | 665 | | |
| |||
2143 | 2153 | | |
2144 | 2154 | | |
2145 | 2155 | | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
2146 | 2182 | | |
2147 | 2183 | | |
2148 | 2184 | | |
| |||
0 commit comments