feat: add service start capability with health monitoring
This commit is contained in:
@@ -50,7 +50,8 @@ const runningService: WorkspaceServicePayload = {
|
||||
hostname: "main.web.localhost",
|
||||
port: 3000,
|
||||
url: "http://main.web.localhost:6767",
|
||||
status: "running",
|
||||
lifecycle: "running",
|
||||
health: "healthy",
|
||||
};
|
||||
|
||||
const stoppedService: WorkspaceServicePayload = {
|
||||
@@ -58,7 +59,8 @@ const stoppedService: WorkspaceServicePayload = {
|
||||
hostname: "main.api.localhost",
|
||||
port: 3001,
|
||||
url: "http://main.api.localhost:6767",
|
||||
status: "stopped",
|
||||
lifecycle: "stopped",
|
||||
health: null,
|
||||
};
|
||||
|
||||
describe("applyStoredOrdering", () => {
|
||||
|
||||
@@ -145,7 +145,7 @@ export function buildSidebarProjectsFromWorkspaces(input: {
|
||||
statusBucket: workspace.status,
|
||||
diffStat: workspace.diffStat,
|
||||
services: workspace.services,
|
||||
hasRunningServices: workspace.services.some((service) => service.status === "running"),
|
||||
hasRunningServices: workspace.services.some((service) => service.lifecycle === "running"),
|
||||
};
|
||||
|
||||
project.workspaces.push(row);
|
||||
|
||||
Reference in New Issue
Block a user