Group the rail's open bot with its sessions

The active row and its session previews now share one highlighted card,
with a hairline thread from the bot's icon down to the last session.
This commit is contained in:
2026-10-19 18:33:46 +01:00
parent 4d5195447b
commit 0aad723a50
6 changed files with 65 additions and 17 deletions
@@ -4,6 +4,7 @@ import { AppContext } from "@/src/pages/__root";
import canManageCrew from "@/src/utils/rbac/can-manage-crew";
import type { BotWithLastMessage, WorkspaceWithActivity } from "@/src/types";
import CoordinatorRow from "./coordinator-row";
import RailBotCard from "./rail-bot-card";
import RailBotSessions from "./rail-bot-sessions";
import RailBotsSection from "./rail-bots-section";
import RailSectionAddButton from "./rail-section-add-button";
@@ -28,7 +29,7 @@ export default function RailCrewList({ bots, workspaces, selected_id }: Props) {
return (
<>
{coordinator ? (
<>
<RailBotCard selected={coordinator.id === selected_id}>
<CoordinatorRow
bot={coordinator}
bots={bots}
@@ -37,7 +38,7 @@ export default function RailCrewList({ bots, workspaces, selected_id }: Props) {
{coordinator.id === selected_id ? (
<RailBotSessions key={coordinator.id} bot={coordinator} />
) : null}
</>
</RailBotCard>
) : null}
<RailBotsSection
action={<RailSectionAddButton title="Add a bot" onClick={() => openForm({ kind: "bot" })} />}