From 0bc05392443f58b60dd5b0dea9bb764e66b205fb Mon Sep 17 00:00:00 2001 From: Davide Briani Date: Thu, 14 Nov 2024 19:22:25 +0100 Subject: [PATCH] UI: Display deployed app's initial status as stopped instead of error When an app is first deployed on a device, while the device has not yet signaled that the deployment is ready, the deployment has a `nil` status. It's probably more appealing for the user to see an assumed `STOPPED` status for the deployment instead of an `ERROR` status. Later work can iterate on this improvement and properly define the initial stages where the deployment is first "sent" to the device, and it later becomes "ready" to be started. Signed-off-by: Davide Briani --- frontend/src/components/DeployedApplicationsTable.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/DeployedApplicationsTable.tsx b/frontend/src/components/DeployedApplicationsTable.tsx index 55397f493..8e1519a8a 100644 --- a/frontend/src/components/DeployedApplicationsTable.tsx +++ b/frontend/src/components/DeployedApplicationsTable.tsx @@ -309,7 +309,7 @@ const DeployedApplicationsTable = ({ /> ), cell: ({ getValue }) => ( - + ), }), columnHelper.accessor((row) => row, { @@ -322,7 +322,7 @@ const DeployedApplicationsTable = ({ ), cell: ({ getValue }) => ( handleStartDeployedApplication(getValue().id)} onStop={() => handleStopDeployedApplication(getValue().id)} />