Skip to content

Commit 0400b20

Browse files
committed
sync(bfmono): fix(simulator-ui): restore isograph drawer controls and docs-first nav (+19 more) (bfmono@13974eff1)
This PR is an automated gambitmono sync of bfmono Gambit packages. - Source: `packages/gambit/` - Core: `packages/gambit/packages/gambit-core/` - bfmono rev: 13974eff1 Changes: - 13974eff1 fix(simulator-ui): restore isograph drawer controls and docs-first nav - 88441ad8c fix(simulator-ui): restore workbench chat controls and enforce non-null output fields - 67b932323 fix(gambit-simulator-ui): switch workspace delete to Isograph mutation - 59fc0f177 fix(simulator-ui): restore isograph docs nav and drawer behavior - 87f077565 fix(simulator-ui): align isograph navbar title centering with legacy layout - 30527713d GBENG-89 fix - 8da9d1153 fix(gambit-ci): avoid publish dry-run type skew false positives - 3a3341592 fix(gambit): scope run-event idempotency and return committed sequences - 567f5934f fix(gambit): harden response trace persistence and replay test stability - fa68df891 fix(gambit): prevent response replay duplication and idempotency collisions - fcff57520 fix(gambit): project response.reasoning events into output reasoning items - 697d79956 fix(gambit): enforce canonical sqlite openresponses projections - e22cde8be fix(gambit/providers): normalize codex and claude stream events for core - 138bb9ad7 fix(gambit-graphql): remove stray braces after output-item materializer removal - 6c696341a test(gambit): cover build/scenario openresponses run-id isolation - b4fd65bb1 fix(gambit): isolate build runtime authority from scenario state - 075c88fe6 fix(gambit): persist response trace events from scenario state updates - 440ea5399 feat(gambit): persist openresponse output items in sqlite - d2fc251a9 test(gambit): cover assistant-start terminal-empty run gate - b057215c4 fix(gambit): remove transcript fallback paths from openresponse runtime Do not edit this repo directly; make changes in bfmono and re-run the sync.
1 parent c50a813 commit 0400b20

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

simulator-ui/src/AppShell.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ import { useRouter } from "./RouterContext.tsx";
88
import Button from "./gds/Button.tsx";
99
import Icon from "./gds/Icon.tsx";
1010
import WorkbenchDrawer from "./WorkbenchDrawer.tsx";
11-
import { classNames } from "./utils.ts";
11+
import { classNames, DOCS_PATH } from "./utils.ts";
1212
import { useGambitTypedMutation } from "./hooks/useGambitTypedMutation.tsx";
1313
import gambitWorkspaceCreateMutation from "../mutations/GambitWorkspaceCreateMutation.ts";
1414
import gambitWorkspaceDeleteMutation from "../mutations/GambitWorkspaceDeleteMutation.ts";
15+
import DocsPage from "./DocsPage.tsx";
1516

1617
function getDeckLabelForShell(): string {
1718
const globals = globalThis as typeof globalThis & {
@@ -123,6 +124,7 @@ export function AppShell(props: {
123124
workspaceRoutePath === "/workspaces/new",
124125
[workspaceRoutePath],
125126
);
127+
const isDocsPath = workspaceRoutePath === "/docs";
126128
const canOpenWorkbench = Boolean(activeWorkspaceId);
127129
const workbenchVisible = workbenchOpen && canOpenWorkbench;
128130

@@ -236,16 +238,16 @@ export function AppShell(props: {
236238
<div className="top-nav-buttons tab-anchor-group">
237239
<span className="tab-anchor-indicator" aria-hidden="true" />
238240
<Button
239-
data-testid="nav-workspaces"
241+
data-testid="nav-docs"
240242
tab
241-
variant={isWorkspacesPath ? "primary" : "secondary"}
243+
variant={isDocsPath ? "primary" : "secondary"}
242244
className={classNames(
243245
"tab-anchor",
244-
isWorkspacesPath && "tab-anchor--active",
246+
isDocsPath && "tab-anchor--active",
245247
)}
246-
onClick={() => navigate(toPrefixedPath("/workspaces"))}
248+
onClick={() => navigate(toPrefixedPath(DOCS_PATH))}
247249
>
248-
Workspaces
250+
Docs
249251
</Button>
250252
<Button
251253
data-testid="nav-build"
@@ -376,7 +378,7 @@ export function AppShell(props: {
376378
<Suspense
377379
fallback={<div style={{ padding: "12px 16px" }}>Loading...</div>}
378380
>
379-
{props.children}
381+
{isDocsPath ? <DocsPage /> : props.children}
380382
</Suspense>
381383
</main>
382384
<Workbench open={workbenchVisible} />

simulator-ui/src/routing.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,10 @@ export function matchRouteWithParams(
7272
export const isographAppRoutes = new Map<string, unknown>([
7373
["/", entrypointSimulatorRedirect],
7474
["/build", entrypointSimulatorRedirect],
75+
["/docs", entrypointSimulatorWorkspaces],
7576
["/isograph", entrypointSimulatorRedirect],
7677
["/isograph/build", entrypointSimulatorRedirect],
78+
["/isograph/docs", entrypointSimulatorWorkspaces],
7779
["/workspaces", entrypointSimulatorWorkspaces],
7880
["/workspaces/new", entrypointSimulatorWorkspaces],
7981
["/workspaces/:workspaceId", entrypointSimulatorRedirect],

0 commit comments

Comments
 (0)