Merge pull request #1168 from gautamtayal1/session/ao-1

fix(web): remove orchestrator button from orchestrator webpage
This commit is contained in:
Dhruv Sharma 2026-04-16 23:24:17 +05:30 committed by GitHub
commit 06cdcd70eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 1 deletions

View File

@ -559,7 +559,7 @@ export function SessionDetail({
) : null}
<div className="dashboard-app-header__spacer" />
<div className="dashboard-app-header__actions">
{orchestratorHref ? (
{!isOrchestrator && orchestratorHref ? (
<a
href={orchestratorHref}
className="dashboard-app-btn dashboard-app-btn--amber"

View File

@ -186,4 +186,29 @@ describe("SessionDetail desktop layout", () => {
expect(screen.getByText(/Terminal session has ended/i)).toBeInTheDocument();
expect(screen.queryByTestId("direct-terminal")).not.toBeInTheDocument();
});
it("hides the desktop orchestrator button on orchestrator session pages", () => {
render(
<SessionDetail
session={makeSession({
id: "my-app-orchestrator",
summary: "Project orchestrator",
})}
isOrchestrator
orchestratorZones={{
merge: 1,
respond: 0,
review: 0,
pending: 0,
working: 2,
done: 3,
}}
projectOrchestratorId="my-app-orchestrator"
projects={[{ id: "my-app", name: "My App", path: "/tmp/my-app" }]}
/>,
);
expect(screen.queryByRole("link", { name: "Orchestrator" })).not.toBeInTheDocument();
expect(screen.getByText("orchestrator")).toBeInTheDocument();
});
});