Drop dead ProgramSummary.runner from dashboard types
The API's ProgramSummary no longer emits runner (a program has no launcher — that lives on its deployment). Remove the stale UI type field and the never-rendered Launcher row on the program detail page; a program's launcher already shows on its deployment in the Deployments section.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { useState } from "react"
|
import { useState } from "react"
|
||||||
import { useParams } from "react-router-dom"
|
import { useParams } from "react-router-dom"
|
||||||
import { useProgram } from "@/services/api/hooks"
|
import { useProgram } from "@/services/api/hooks"
|
||||||
import { launcherLabel, subdomainUrl } from "@/lib/labels"
|
import { subdomainUrl } from "@/lib/labels"
|
||||||
import { DetailHeader } from "@/components/detail/DetailHeader"
|
import { DetailHeader } from "@/components/detail/DetailHeader"
|
||||||
import { ConfigPanel } from "@/components/detail/ConfigPanel"
|
import { ConfigPanel } from "@/components/detail/ConfigPanel"
|
||||||
import { DeploymentsSection } from "@/components/detail/DeploymentsSection"
|
import { DeploymentsSection } from "@/components/detail/DeploymentsSection"
|
||||||
@@ -93,12 +93,6 @@ export function ProgramDetailPage() {
|
|||||||
<span>{deployment.version}</span>
|
<span>{deployment.version}</span>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{deployment.runner && (
|
|
||||||
<>
|
|
||||||
<span className="text-[var(--muted)]">Launcher</span>
|
|
||||||
<span>{launcherLabel(deployment.runner)}</span>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
{deployment.active !== null && (
|
{deployment.active !== null && (
|
||||||
<>
|
<>
|
||||||
<span className="text-[var(--muted)]">Active</span>
|
<span className="text-[var(--muted)]">Active</span>
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ export interface ProgramSummary {
|
|||||||
description: string | null
|
description: string | null
|
||||||
kind: string | null // derived: service | job | tool | static | reference
|
kind: string | null // derived: service | job | tool | static | reference
|
||||||
stack: string | null
|
stack: string | null
|
||||||
runner: string | null // inferred launch hint (python | command)
|
|
||||||
version: string | null
|
version: string | null
|
||||||
source: string | null
|
source: string | null
|
||||||
repo: string | null
|
repo: string | null
|
||||||
|
|||||||
Reference in New Issue
Block a user