diff --git a/apps/switchyard/src/components/Inspector.tsx b/apps/switchyard/src/components/Inspector.tsx index 58abc89..9c99348 100644 --- a/apps/switchyard/src/components/Inspector.tsx +++ b/apps/switchyard/src/components/Inspector.tsx @@ -1,5 +1,5 @@ /** - * The right-hand panel: the machine's side of the track, in three tabs. + * The right-hand panel: the machine's side of the track, in tabs. * * Files, changes and checks are the three questions you ask about work you did * not do yourself — what is there, what moved, and whether it is good. They @@ -18,8 +18,9 @@ import type { Capabilities, Project, Track } from "../../shared/api"; import { Changes, useDiff } from "./Changes"; import { Checks } from "./Checks"; import { Files } from "./Files"; +import { TrackPreview } from "./TrackPreview"; -type Tab = "files" | "changes" | "checks"; +type Tab = "files" | "changes" | "checks" | "previews"; export function Inspector({ track, project, capabilities }: { track: Track; project: Project; capabilities: Capabilities }) { const [tab, setTab] = useState("files"); @@ -31,7 +32,7 @@ export function Inspector({ track, project, capabilities }: { track: Track; proj // put the class on. return ( <> -
+
@@ -43,12 +44,25 @@ export function Inspector({ track, project, capabilities }: { track: Track; proj +
{tab === "files" ? : null} {tab === "changes" ? : null} {tab === "checks" ? : null} + {tab === "previews" ?
+
+

Web

+ {track.status === "closed" ?

Previews are unavailable for closed tracks.

: } +
+ {(["iOS", "Android"] as const).map(platform =>
+

{platform}

Coming soon
+

{platform} previews will be available here.

+
)} +
: null}
); diff --git a/apps/switchyard/src/components/TrackView.tsx b/apps/switchyard/src/components/TrackView.tsx index e97b2ca..ad57002 100644 --- a/apps/switchyard/src/components/TrackView.tsx +++ b/apps/switchyard/src/components/TrackView.tsx @@ -22,8 +22,6 @@ import { Branch, Clock, External, Folder, Info, Issue, Pull, Wrench } from "../l import type { OutgoingImage } from "../lib/images"; import { others, subject, useHeartbeat } from "../lib/presence"; import { Composer } from "./Composer"; -import { TrackPreview } from "./TrackPreview"; -import { NativePreviewLauncher } from "./NativePreview"; import { SharedBrowser } from "./SharedBrowser"; import { Transcript } from "./Transcript"; @@ -286,8 +284,6 @@ export function TrackView(props: TrackViewProps) { ) : null} {queueError ?
Could not refresh saved prompts. Reconnecting…
: null} - - {experimentalPreviews ? : null}