From 158ebb5fe74c97710b5a96a5bbee4506c2941d8e Mon Sep 17 00:00:00 2001 From: Jackson Miller Date: Mon, 9 Nov 2026 00:33:15 -0500 Subject: [PATCH] feat(mobile): review a Captain's Crew proposal on a phone: approve, decline, remove seats A Crew proposal could only be answered on web, so a Captain waited until the person reached a computer. Mobile now shows a row above the Captain's composer for each open proposal, and a review screen with every seat's model, reasoning and access as the server resolved them, the binding the approval carries. The person can remove seats (and restore them), decline, or approve; other edits stay on web and desktop. J5's composer rows mount once (J5ComposerControls). Agent Setup on mobile says where Crew settings live. The proposal gate, seat lines, playbook notes and preview binding move to client-runtime and web imports them. Refs #836 Co-Authored-By: Claude Opus 5.5 --- FORK.md | 10 +- apps/mobile/src/Stack.tsx | 4 +- .../features/threads/ThreadDetailScreen.tsx | 18 +- .../j5/agents/AgentLibrarySettingsScreen.tsx | 3 + apps/mobile/src/j5/artifacts/routes.ts | 20 -- .../src/j5/composer/J5ComposerControls.tsx | 11 + .../src/j5/crew/CrewProposalReviewScreen.tsx | 290 ++++++++++++++++++ apps/mobile/src/j5/crew/CrewRosterStrip.tsx | 65 ++++ .../mobile/src/j5/crew/crewProposalsClient.ts | 32 ++ .../src/j5/crew/useCrewProposalPreview.ts | 63 ++++ apps/mobile/src/j5/threadRoutes.ts | 26 ++ apps/mobile/src/j5/upstreamSeams.test.ts | 12 +- apps/web/src/j5/crew/CrewProposalCard.tsx | 7 +- .../web/src/j5/crew/CrewProposalMemberRow.tsx | 5 +- apps/web/src/j5/crew/CrewRosterGate.tsx | 2 +- apps/web/src/j5/crew/crewPlaybookPlan.test.ts | 49 --- apps/web/src/j5/crew/crewPlaybookPlan.ts | 43 --- .../web/src/j5/crew/crewProposalDraft.test.ts | 2 +- apps/web/src/j5/crew/crewProposalDraft.ts | 5 +- .../src/j5/crew/crewProposals.logic.test.ts | 45 --- apps/web/src/j5/crew/crewProposals.logic.ts | 20 -- apps/web/src/j5/crew/crewSeatRuntime.test.ts | 47 --- apps/web/src/j5/crew/crewSeatRuntime.ts | 20 -- .../web/src/j5/crew/useCrewProposalPreview.ts | 29 +- packages/client-runtime/package.json | 4 + .../src/j5/crewProposals.test.ts | 187 +++++++++++ .../client-runtime/src/j5/crewProposals.ts | 128 ++++++++ 27 files changed, 859 insertions(+), 288 deletions(-) delete mode 100644 apps/mobile/src/j5/artifacts/routes.ts create mode 100644 apps/mobile/src/j5/composer/J5ComposerControls.tsx create mode 100644 apps/mobile/src/j5/crew/CrewProposalReviewScreen.tsx create mode 100644 apps/mobile/src/j5/crew/CrewRosterStrip.tsx create mode 100644 apps/mobile/src/j5/crew/crewProposalsClient.ts create mode 100644 apps/mobile/src/j5/crew/useCrewProposalPreview.ts create mode 100644 apps/mobile/src/j5/threadRoutes.ts delete mode 100644 apps/web/src/j5/crew/crewPlaybookPlan.test.ts delete mode 100644 apps/web/src/j5/crew/crewPlaybookPlan.ts delete mode 100644 apps/web/src/j5/crew/crewProposals.logic.test.ts delete mode 100644 apps/web/src/j5/crew/crewProposals.logic.ts create mode 100644 packages/client-runtime/src/j5/crewProposals.test.ts create mode 100644 packages/client-runtime/src/j5/crewProposals.ts diff --git a/FORK.md b/FORK.md index cf1782f59d67..997be9893eb0 100644 --- a/FORK.md +++ b/FORK.md @@ -517,7 +517,7 @@ migrations after upstream migrations. 97. Mobile's timeline delegate and queue-row formatter, the mobile half of case 7 and case 24 ([#699](https://github.com/Jacksondr5/j5code/issues/699), register D38). `apps/mobile/src/features/threads/ThreadFeed.tsx` imports J5-owned `apps/mobile/src/j5/a2a/timeline.tsx`. `ThreadFeed` calls `useJ5Timeline` (J5-owned `apps/mobile/src/j5/a2a/timelineState.ts`, kept apart because it reaches the connection) over its feed's messages: the reader's person id from `j5Sharing.connectionAccess`, and one identity read (`useParticipantIdentities`) for the senders the shared classifier names. It passes the result to `renderFeedEntry` as `j5Timeline`, adds it to `listAppearanceData`, and `getItemType` reads `resolveJ5FeedMessage` so rows J5 folds share upstream's agent recycling pool. In `renderFeedEntry`, `resolveJ5FeedMessage(message, props.j5Timeline)` replaces upstream's `resolveUserMessagePresentation`: upstream's shape with the letter without its envelope as `text`, `"agent"` for every participant who is not a person, `j5`, `side` and `preview`. Before upstream's rows, `renderJ5TimelineNotice` returns J5's silence line, or the labelled raw card for a Crew notice or a delivery notice no parser reads yet, until [#698](https://github.com/Jacksondr5/j5code/issues/698). The user row is `items-start` when `side` is `"left"`, mounts `J5MessageAuthorLine` above the bubble ("You · via Inbox", another person's name, or the sender's identity line with its tag or badge), passes `AgentMessageFoldHeader` its `label` and `summary` through J5-owned `j5FoldHeader` when J5 read the message: folded, an empty `label` (a new optional prop) and J5's `preview`; open, the sender's name and no summary when the body opens with it (a Crew seat's brief keeps it). The header renders the summary only when it is not empty, and its label then takes the row's width with `flex-1`, so the chevron stays at the end (web's shape in pingdotgg/t3code#29373, whose mobile half hides the summary whenever the row is open and uses `shrink`), opens the sender with `J5OpenSenderThread` (the identity read's thread, on this server or a peer, or a brief's spawner thread) where upstream's `OpenSenderThreadButton` reads only `senderThreadId`, and leaves the composer-context copy to upstream's plain copy for a message J5 unwrapped, so Copy never carries the envelope. `apps/mobile/src/features/threads/ThreadQueueControl.tsx`, which upstream rewrote at v0.1.7 with a compact sender line per row (`QueuedRunSender`), imports `useJ5QueuedDeliveries` from J5-owned `apps/mobile/src/j5/a2a/queuedDelivery.tsx` (Jackson's decision 15 of 2026-11-05). For a queued J5 delivery the row's text is the letter's first line (`preview`) and its sender line is J5's (`sender`): the participant's name with the Automation, Outside agent, Expects reply or Replied tag, or "You · via Inbox" or " · via Inbox" for an Inbox reply, through the pure `presentJ5QueuedMessage` in `timelinePresentation.ts`. Anything J5 did not unwrap keeps upstream's `QueuedRunSender`, and J5's old `From :` prefix is gone. "Sent by T3 Code" reads "Sent by J5 Code". The mobile queue sheet has no sides. `apps/mobile/src/lib/filePreview.test.ts`, which renders `ThreadFeed` with upstream's state modules mocked, mocks `timelineState.ts` beside them. Proofs: `apps/mobile/src/j5/a2a/timelinePresentation.test.ts`, `packages/client-runtime/src/j5/participantIdentity.test.ts`, and the files' rows in `apps/mobile/src/j5/upstreamSeams.test.ts`. On every rebase, keep the calls that test lists; if upstream moves the agent fold out of `renderFeedEntry`, move the seam with it. -98. Mobile reads artifacts ([#833](https://github.com/Jacksondr5/j5code/issues/833)), landing two reserved mobile seams. Route registration: `apps/mobile/src/Stack.tsx` imports J5-owned `j5ThreadArtifactRoutes` (`apps/mobile/src/j5/artifacts/routes.ts`) and spreads it after `ThreadFile`, adding the thread-scoped `ThreadArtifacts` list and `ThreadArtifact` viewer (`apps/mobile/src/j5/artifacts/ThreadArtifactsScreen.tsx`), read-only, with no delete. Link resolver: `onMarkdownLinkPress` in `apps/mobile/src/features/threads/ThreadFeed.tsx` makes one call to J5-owned `openArtifactLink` before its thread, media and file branches, so an `artifacts/…` link opens the viewer instead of a missing workspace file; its `fileContextMenu` and `onFileContextMenuAction` each make one call first (`artifactLinkContextMenu`, `onArtifactLinkMenuAction`), so an artifact link's long press offers Open artifact and Copy path instead of workspace-file actions. Links inside a Markdown artifact go through the same helpers in the J5 viewer. Recognition, preview kind and the HTTP read are shared with web in `packages/client-runtime/src/j5/artifacts.ts`. No upstream entry point reaches the list yet; it is one tap from any opened artifact. +98. Mobile reads artifacts ([#833](https://github.com/Jacksondr5/j5code/issues/833)), landing two reserved mobile seams. Route registration: `apps/mobile/src/Stack.tsx` imports J5-owned `j5ThreadRoutes` (`apps/mobile/src/j5/threadRoutes.ts`) and spreads it after `ThreadFile`, adding the thread-scoped `ThreadArtifacts` list and `ThreadArtifact` viewer (`apps/mobile/src/j5/artifacts/ThreadArtifactsScreen.tsx`), read-only, with no delete; since case 114 it also registers the `ThreadCrewProposal` review screen. Link resolver: `onMarkdownLinkPress` in `apps/mobile/src/features/threads/ThreadFeed.tsx` makes one call to J5-owned `openArtifactLink` before its thread, media and file branches, so an `artifacts/…` link opens the viewer instead of a missing workspace file; its `fileContextMenu` and `onFileContextMenuAction` each make one call first (`artifactLinkContextMenu`, `onArtifactLinkMenuAction`), so an artifact link's long press offers Open artifact and Copy path instead of workspace-file actions. Links inside a Markdown artifact go through the same helpers in the J5 viewer. Recognition, preview kind and the HTTP read are shared with web in `packages/client-runtime/src/j5/artifacts.ts`. No upstream entry point reaches the list yet; it is one tap from any opened artifact. 99. Mobile's shared conversations show who wrote each message and who answered each prompt, the mobile half of case 80 ([#832](https://github.com/Jacksondr5/j5code/issues/832), register D33, Shared conversations AC9 to AC11, AC14 and AC16). The record and its change feed are `threadAuthors` and `threadAuthorsChanges` in `packages/client-runtime/src/j5/sharing.ts`, beside who reaches the thread (`scopePeople` and `scopePeopleChanges`), which says the thread is shared before any author is recorded (`mayBeSharedConversation`, [#871](https://github.com/Jacksondr5/j5code/issues/871)); and the reading of it (`sharedMessageView`, the typed text, the answers without their mark, the search label) is `packages/client-runtime/src/j5/sharedConversation.ts`, both shared with web. `apps/mobile/src/features/threads/ThreadRouteScreen.tsx` imports `useSharedConversationFeed` from J5-owned `apps/mobile/src/j5/sharing/sharedConversation.tsx` and passes its answer as `ThreadDetailScreen`'s `selectedThreadFeed` in place of `composer.selectedThreadFeed`: an authored message shows as typed, after its note to the agent as a muted line that opens (drawn by case 97's `renderJ5TimelineNotice`), a message whose author is not read yet is held back or shown as this client typed it, and a question's answers lose the platform's `[Answer from …]` mark. Case 97's `useJ5Timeline` also reads the record, so `resolveJ5FeedMessage` puts another person's message on the left and `J5MessageAuthorLine` names them, or says who edited the reader's own. `apps/mobile/src/features/threads/thread-work-log.tsx` mounts `PromptAnswerTail` after a work row's label: a question's answer and who gave it (" · answered by Priya", on an approval too), outside the label so the question truncates first. An answered question's opened row no longer draws the raw item JSON beneath its question and answer, as web draws neither ([#891](https://github.com/Jacksondr5/j5code/issues/891)). `apps/mobile/src/features/threads/ThreadQueueControl.tsx` reads its rows through `useSharedQueuedRuns` where it builds `queuedRuns`, ahead of case 97's hook, so a queued message's row and the text an edit loads are the words typed. `apps/mobile/src/features/threads/thread-search-match.tsx` labels a hit with `threadSearchMatchLabel` instead of "You:" for every user-role hit. `apps/mobile/src/lib/filePreview.test.ts` mocks `sharedConversation.tsx` as it mocks case 97's `timelineState.ts`. Proofs: `apps/mobile/src/j5/sharing/sharedConversationFeed.test.ts`, `apps/mobile/src/j5/a2a/timelinePresentation.test.ts`, `packages/client-runtime/src/j5/sharedConversation.test.ts`, `packages/client-runtime/src/j5/threadSearchMatchLabel.test.ts`, and the four files' rows in `apps/mobile/src/j5/upstreamSeams.test.ts`. On every rebase, keep the calls that test lists. @@ -549,6 +549,8 @@ migrations after upstream migrations. 113. Metro doesn't watch a worktree's `.j5code` folder ([#964](https://github.com/Jacksondr5/j5code/issues/964)). `apps/mobile/metro.config.js` watches the whole workspace and blocks only upstream's `.t3` state folder. J5's dev and test homes live in `.j5code`, so every server write there reached Metro's watcher and showed React Native's "Refreshing…" banner. One more `blockList` entry, beside upstream's, blocks it. Release bundles also go through Metro, but nothing the app imports lives in `.j5code`, so the entry only changes what the dev watcher reacts to. On a pin advance: if upstream moves or renames its `.t3` entry, keep `.j5code` beside it. +114. Mobile roster review for a Captain's Crew proposal ([#836](https://github.com/Jacksondr5/j5code/issues/836), Jackson's decisions 1 and 2 of 2026-11-07/08: a phone approves, declines and removes seats, showing each seat's access; other edits stay on web). `apps/mobile/src/features/threads/ThreadDetailScreen.tsx` mounts J5-owned `J5ComposerControls` (`apps/mobile/src/j5/composer/`) beside case 49's `PlaybookComposerControl`, under the same conditions; every J5 row above the composer joins there, not as another seam. Its first row, `CrewRosterStrip` (`apps/mobile/src/j5/crew/`), shows one row per open, human-approved proposal for the thread and opens the `ThreadCrewProposal` screen, which case 98's `j5ThreadRoutes` spread registers. The gate filter, seat lines, playbook notes and preview binding live in `packages/client-runtime/src/j5/crewProposals.ts` (a new `./j5/crew-proposals` export in `packages/client-runtime/package.json`), shared with web's card; approval sends only the token from a complete preview of the seats on screen. + ## Pin and upstream advance runbook Current pin: `322f6544dfad0a3c8a0c8cbecf2c7f7874b14268`, upstream's stable release tag `v0.1.7` on `main` (released 2026-11-04, frozen 2026-11-07). The previous pin was `d2c440312e5f39d59827ed466838a623516454d6`, upstream's stable release tag `v0.1.3`. @@ -763,12 +765,12 @@ explicitly marked. | `apps/mobile/metro.config.js` | A | 113 | | `apps/mobile/package.json` | A | B, 45 | | `apps/mobile/src/features/threads/NewTaskDraftScreen.tsx` | A | 45, 90, 100, Saved-agent mentions | -| `apps/mobile/src/features/threads/ThreadDetailScreen.tsx` | A | 45, 49 | +| `apps/mobile/src/features/threads/ThreadDetailScreen.tsx` | A | 45, 49, 114 | | `apps/mobile/src/features/threads/ThreadRouteScreen.tsx` | A | 69, 90, 99 | | `apps/mobile/src/features/settings/SettingsRouteScreen.tsx` | A | 72, Role library, 105 | | `apps/mobile/src/features/settings/components/SettingsScreen.tsx` | N | 72 | | `apps/mobile/src/features/settings/settings-environment-filter.tsx` | N | 72 | -| `apps/mobile/src/Stack.tsx` | A | 72, 98, 101, 103, Role library, 105 | +| `apps/mobile/src/Stack.tsx` | A | 72, 98, 101, 103, Role library, 105, 114 | | `apps/mobile/src/features/home/ThreadListToolbar.tsx` | N | 102 | | `apps/mobile/src/features/workspace/WorkspaceToolbar.ios.tsx` | N | 102 | | `apps/mobile/src/features/archive/ArchivedThreadsRouteScreen.tsx` | N | 72 | @@ -935,7 +937,7 @@ explicitly marked. | `apps/web/src/routeTree.gen.ts` | R | generated route registrations for 6/9 | | `apps/web/src/components/onboarding/WelcomeWizard.tsx` | R | 39, B | | `apps/web/tsconfig.json` | R | B | -| `packages/client-runtime/package.json` | R | 7, 23, 34, 45, 69, 70, 75, 101, Role library | +| `packages/client-runtime/package.json` | R | 7, 23, 34, 45, 69, 70, 75, 101, 114, Role library | | `packages/client-runtime/src/connection/compatibility.ts` | A | 56 | | `packages/client-runtime/src/operations/commands.ts` | R | Saved-agent mentions | | `packages/contracts/package.json` | N | 34 | diff --git a/apps/mobile/src/Stack.tsx b/apps/mobile/src/Stack.tsx index 8e41a66089d0..711b6b152b4e 100644 --- a/apps/mobile/src/Stack.tsx +++ b/apps/mobile/src/Stack.tsx @@ -50,7 +50,7 @@ import { ownerOnlySettingsRoute } from "./j5/sharing/ownerOnlySettingsRoute"; import { ConnectOnboardingRouteScreen } from "./features/cloud/ConnectOnboardingRouteScreen"; import { AttachmentFileScreen } from "./features/files/AttachmentFileScreen"; import { ThreadFilesTreeScreen, ThreadFileScreen } from "./features/files/ThreadFilesRouteScreen"; -import { j5ThreadArtifactRoutes } from "./j5/artifacts/routes"; +import { j5ThreadRoutes } from "./j5/threadRoutes"; import { j5SettingsFormRoutes } from "./j5/agents/routes"; import { j5InboxRoutes } from "./j5/inbox/routes"; import { AdaptiveWorkspaceLayout } from "./features/layout/AdaptiveWorkspaceLayout"; @@ -873,7 +873,7 @@ const RootStackConfig = createWorkspaceStackNavigator({ linking: `${THREAD_LINKING_PREFIX}/files/:path*`, options: GLASS_HEADER_OPTIONS, }), - ...j5ThreadArtifactRoutes(THREAD_LINKING_PREFIX, GLASS_HEADER_OPTIONS), + ...j5ThreadRoutes(THREAD_LINKING_PREFIX, GLASS_HEADER_OPTIONS), ThreadMcpApp: createNativeStackScreen({ screen: McpAppFullscreenScreen, linking: `${THREAD_LINKING_PREFIX}/apps/:itemId`, diff --git a/apps/mobile/src/features/threads/ThreadDetailScreen.tsx b/apps/mobile/src/features/threads/ThreadDetailScreen.tsx index a26a18d0b183..c2adf65a6ec1 100644 --- a/apps/mobile/src/features/threads/ThreadDetailScreen.tsx +++ b/apps/mobile/src/features/threads/ThreadDetailScreen.tsx @@ -24,6 +24,7 @@ import { } from "@t3tools/client-runtime/state/thread-settled"; import type { WorktreeSetupCardProps } from "./worktree-setup-card"; import type { ComposerTextPaste } from "../../native/T3ComposerEditor.types"; +import { J5ComposerControls } from "../../j5/composer/J5ComposerControls"; import { PlaybookComposerControl } from "../../j5/playbooks/PlaybookComposerControl"; import { type EnvironmentConnectionPhase } from "@t3tools/client-runtime/connection"; import type { EnvironmentThreadShell } from "@t3tools/client-runtime/state/shell"; @@ -1602,11 +1603,18 @@ function ThreadDetailBody( {!props.draftMode && !props.activePendingApproval && !props.activePendingUserInput && ( - + <> + + + )} {props.queuedRunEdit !== null ? ( + + + {notification ? ( diff --git a/apps/mobile/src/j5/artifacts/routes.ts b/apps/mobile/src/j5/artifacts/routes.ts deleted file mode 100644 index 5465cdac3c55..000000000000 --- a/apps/mobile/src/j5/artifacts/routes.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { createNativeStackScreen } from "@react-navigation/native-stack"; - -import { ThreadArtifactScreen, ThreadArtifactsScreen } from "./ThreadArtifactsScreen"; - -/** J5's artifact screens, beside upstream's thread file routes (FORK.md "Route registration"). */ -export const j5ThreadArtifactRoutes = ( - threadLinkingPrefix: string, - options: Options, -) => ({ - ThreadArtifacts: createNativeStackScreen({ - screen: ThreadArtifactsScreen, - linking: `${threadLinkingPrefix}/artifacts`, - options, - }), - ThreadArtifact: createNativeStackScreen({ - screen: ThreadArtifactScreen, - linking: `${threadLinkingPrefix}/artifacts/:path*`, - options, - }), -}); diff --git a/apps/mobile/src/j5/composer/J5ComposerControls.tsx b/apps/mobile/src/j5/composer/J5ComposerControls.tsx new file mode 100644 index 000000000000..1939ce66066f --- /dev/null +++ b/apps/mobile/src/j5/composer/J5ComposerControls.tsx @@ -0,0 +1,11 @@ +import type { EnvironmentId, ThreadId } from "@t3tools/contracts"; + +import { CrewRosterStrip } from "../crew/CrewRosterStrip"; + +/** + * J5's rows above a thread's composer, mounted once beside upstream's playbook bar, so each + * J5 control (a Crew's roster review, the adjudication dock) joins here without another seam. + */ +export function J5ComposerControls(props: { environmentId: EnvironmentId; threadId: ThreadId }) { + return ; +} diff --git a/apps/mobile/src/j5/crew/CrewProposalReviewScreen.tsx b/apps/mobile/src/j5/crew/CrewProposalReviewScreen.tsx new file mode 100644 index 000000000000..aaeb1025c453 --- /dev/null +++ b/apps/mobile/src/j5/crew/CrewProposalReviewScreen.tsx @@ -0,0 +1,290 @@ +import { useAtomValue } from "@effect/atom-react"; +import { + crewSeatStopsForApprovals, + describeCrewSeatWorkspace, + describePersonaSwap, + removedSeatSteps, + removeSeat, + stepTitle, + unownedSteps, +} from "@t3tools/client-runtime/j5/crew-proposals"; +import type { EnvironmentId, ThreadId } from "@t3tools/contracts"; +import type { + CrewProposal, + CrewProposalSeat, + CrewProposalSeatRuntime, +} from "@t3tools/contracts/j5"; +import { useNavigation, type StaticScreenProps } from "@react-navigation/native"; +import { useState } from "react"; +import { View } from "react-native"; +import { useSafeAreaInsets } from "react-native-safe-area-context"; + +import { AppText as Text } from "../../components/ui/AppText"; +import { Button } from "../../components/ui/Button"; +import { EmptyState } from "../../components/ui/EmptyState"; +import { ScreenScrollView } from "../../components/ui/ScreenScrollView"; +import { NativeStackScreenOptions } from "../../native/StackHeader"; +import { useEnvironmentQuery } from "../../state/query"; +import { useCanOperateThread } from "../sharing/guestAccess"; +import { j5Environment } from "../state"; +import { resolveCrewProposal } from "./crewProposalsClient"; +import { useCrewProposalPreview } from "./useCrewProposalPreview"; + +type Params = StaticScreenProps<{ + readonly environmentId: string; + readonly threadId: string; + readonly proposalId: string; +}>; + +const seatTitle = (seat: string) => seat[0]!.toUpperCase() + seat.slice(1); + +function SeatRow(props: { + readonly seat: CrewProposalSeat; + readonly runtime: CrewProposalSeatRuntime | undefined; + readonly runtimeLoading: boolean; + readonly playbook: CrewProposal["playbook"]; + readonly removable: boolean; + readonly onRemove: () => void; +}) { + const { seat, runtime } = props; + const swaps = runtime?.personaSwaps ?? seat.personaSwaps ?? []; + return ( + + + {seatTitle(seat.seat)} + {/* The settings the approval binds: the server's resolved runtime for this exact seat. */} + + {runtime + ? [runtime.model.replace(/^Claude\s+/u, ""), runtime.reasoning, runtime.access].join( + " · ", + ) + : props.runtimeLoading + ? "Resolving runtime…" + : "Runtime unavailable"} + + {seat.reason} + {runtime?.workspace && runtime.workspace.type !== "shared" ? ( + + {describeCrewSeatWorkspace(runtime.workspace)} + + ) : null} + {crewSeatStopsForApprovals(seat, runtime) ? ( + Asks for approvals + ) : null} + {seat.steps?.length ? ( + + Steps: {seat.steps.map((id) => stepTitle(props.playbook ?? null, id)).join(", ")} + + ) : null} + {swaps.map((swap) => ( + + {stepTitle(props.playbook ?? null, swap.stepId)} {describePersonaSwap(swap, seat.seat)} + + ))} + +