Description
Summary
To better show the status of the latest Run, the App sidebar will use icons to show the status of the latest run in the list shown on the Runs page.
Data
Pull the status for the first run in the latest
array returned by the useRelevantRuns
composable in SidebarNavigationContainer
If there are no runs returned (for any reason), then just show the existing icon.
Icons
Status | Icon | Note |
---|---|---|
Running | ![]() |
Animated |
Failing | ![]() |
Animated |
Passed | ![]() |
|
Failed | ![]() |
|
Cancelled | ![]() |
|
Errored, Timed Out, Over Limit, No Tests | ![]() |
Failing
Note FAILING
is not an actual CloudRunStatus
. It will need to be derived by passing through the totalFailed
count on the RelevantRunInfo
GQL type via the useRelevantRuns
composable. The logic should be to show the "Failing" icon if the actual status is RUNNING
and the totalFailed
count is greater than 0.
References
Clickup: https://app.clickup.com/18033298/docs/h6amj-45987/h6amj-53707?block=block-98aef273-8b18-476a-92c0-5b1de90b06fb
Figma: https://www.figma.com/file/90FM8BU3k1HgsjOiDovpnn/In-App-Run-Notifications?type=design&node-id=443-32494&mode=design&t=NYPLOxWN8VrhxChv-0