Skip to content

An open-source, self-hosted system for apps built with web technologies.

Start menu: no starting mark, a plain Server badge

zohayrslileh3bf3f347c2cc
diff --git a/source/client/view/structure/desktop/layers/shell/start-menu/processes/process-item.tsx b/source/client/view/structure/desktop/layers/shell/start-menu/processes/process-item.tsx
index 07ebc0b..1bdd22c 100644
--- a/source/client/view/structure/desktop/layers/shell/start-menu/processes/process-item.tsx
+++ b/source/client/view/structure/desktop/layers/shell/start-menu/processes/process-item.tsx
@@ -7,13 +7,12 @@ import programIcon from "@client/view/structure/desktop/programs/program-icon"
/**
* One live Process as a table row: its name, its Program, a mark for each
- * running Endpoint, colored only while it is still starting, and End, as in
- * Settings. The live list owns removal.
+ * running Endpoint, and End, as in Settings. The live list owns removal.
*/
export default function ProcessRow({ process, program, server, client }: Readonly<{
process: Process
program: Program | undefined
- server: "starting" | "ready" | null
+ server: boolean
client: boolean
}>) {
@@ -44,8 +43,7 @@ export default function ProcessRow({ process, program, server, client }: Readonl
<Table.Cell>
<span className="flex" style={{ gap: space.xsmall }}>
- {/* Color marks only what needs attention: a running Endpoint is neutral, one still starting is not. */}
- {server && <Badge size="xsmall" color={server === "starting" ? "warning" : undefined} dot={server === "starting"}>Server</Badge>}
+ {server && <Badge size="xsmall">Server</Badge>}
{client && <Badge size="xsmall">Client</Badge>}
</span>
</Table.Cell>
diff --git a/source/client/view/structure/desktop/layers/shell/start-menu/processes/processes.tsx b/source/client/view/structure/desktop/layers/shell/start-menu/processes/processes.tsx
index 5eeb269..90f1243 100644
--- a/source/client/view/structure/desktop/layers/shell/start-menu/processes/processes.tsx
+++ b/source/client/view/structure/desktop/layers/shell/start-menu/processes/processes.tsx
@@ -29,7 +29,7 @@ export default function Processes({ processes, programs, empty }: Readonly<{
<Table.Body>
{/* Endpoint state is passed as values: the Process handle is updated in place, so the row must see what changed. */}
{processes.map(process => <ProcessRow key={process.identity} process={process} program={programs.get(process.program)}
- server={process.server ? process.server.ready ? "ready" : "starting" : null} client={process.client !== null} />)}
+ server={process.server !== null} client={process.client !== null} />)}
</Table.Body>
</Table></ScrollArea>
diff --git a/source/client/view/structure/desktop/layers/shell/start-menu/start-menu-panel.tsx b/source/client/view/structure/desktop/layers/shell/start-menu/start-menu-panel.tsx
index cdf6907..8480282 100644
--- a/source/client/view/structure/desktop/layers/shell/start-menu/start-menu-panel.tsx
+++ b/source/client/view/structure/desktop/layers/shell/start-menu/start-menu-panel.tsx
@@ -60,12 +60,10 @@ export default function StartMenuPanel({ labelId, onChoose }: Readonly<{
for (const process of live.processes) running.set(process.program, (running.get(process.program) ?? 0) + 1)
- const starting = processes.filter(process => process.server && !process.server.ready).length
-
const status = problem ?? (show === "programs"
? [programs.length === installed.length ? count(installed.length, "Program") : `${programs.length} of ${count(installed.length, "Program")}`,
programs.some(program => running.has(program.identity)) ? `${programs.filter(program => running.has(program.identity)).length} running` : null]
- : [count(processes.length, "Process"), starting ? `${starting} starting` : null]).filter(Boolean).join(" · ")
+ : [count(processes.length, "Process")]).filter(Boolean).join(" · ")
function choose(next: Show, nextCategory = category) {