Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
feat(web): add native interactive landing workspace
Guseecd98db1b6d
diff --git a/src/web/src/app/demo/page.tsx b/src/web/src/app/demo/page.tsxnew file mode 100644index 000000000..6e3fa721e--- /dev/null+++ b/src/web/src/app/demo/page.tsx@@ -0,0 +1,8 @@+import type { Metadata } from "next"+import LandingInteractiveShell from "@/components/home/landing-interactive-shell"++export const metadata: Metadata = { title: "Alook", robots: { index: false, follow: false } }++export default function DemoPage() {+ return <LandingInteractiveShell />+}diff --git a/src/web/src/components/community/bots/bot-list-view.tsx b/src/web/src/components/community/bots/bot-list-view.tsxindex 6a96fe66b..5832d19bc 100644--- a/src/web/src/components/community/bots/bot-list-view.tsx+++ b/src/web/src/components/community/bots/bot-list-view.tsx@@ -95,6 +95,7 @@ export function BotListSkeleton({export function renderBotListView({ onBack }: BotListProps,controller: BotListController,+ overlaySlots?: ReturnType<typeof renderBotListOverlaySlots>,) {const backBar = botBackBar(onBack)@@ -148,7 +149,7 @@ export function renderBotListView()}- const overlays = renderBotListOverlaySlots(controller)+ const overlays = overlaySlots ?? renderBotListOverlaySlots(controller)return (<div className="flex min-h-0 flex-1 flex-col">{backBar}diff --git a/src/web/src/components/community/shell/community-navigation-link.dom.test.tsx b/src/web/src/components/community/shell/community-navigation-link.dom.test.tsxindex 8adaafdc4..451fc8d2e 100644--- a/src/web/src/components/community/shell/community-navigation-link.dom.test.tsx+++ b/src/web/src/components/community/shell/community-navigation-link.dom.test.tsx@@ -92,3 +92,19 @@ describe("community public Link bridge", () => {expect(anchor).toHaveAttribute("data-prefetch", "false")})})++import { CommunityPreviewNavigation } from "./community-preview-navigation"++it("keeps preview links local without prefetching real account routes", async () => {+ const onActivate = vi.fn()+ const view = render(<CommunityPreviewNavigation value={true}>+ <CommunityNavigationLink href="/c/me/friends" prefetchMode="visible" onActivate={onActivate}>Friends</CommunityNavigationLink>+ </CommunityPreviewNavigation>)+ const anchor = view.getByRole("link")+ expect(anchor).toHaveAttribute("href", "#product")+ fireEvent.pointerEnter(anchor)+ fireEvent.focus(anchor)+ expect(anchor).not.toHaveAttribute("data-prefetch")+ await setupUser().click(anchor)+ expect(onActivate).toHaveBeenCalledOnce()+})diff --git a/src/web/src/components/community/shell/community-navigation-link.tsx b/src/web/src/components/community/shell/community-navigation-link.tsxindex 1e7623523..e52e89bfc 100644--- a/src/web/src/components/community/shell/community-navigation-link.tsx+++ b/src/web/src/components/community/shell/community-navigation-link.tsx@@ -1,6 +1,7 @@"use client"import Link from "next/link"+import { useCommunityPreviewNavigation } from "./community-preview-navigation"import { useLayoutEffect, type ComponentProps } from "react"import { createStore, useAtom, useCreateAtom, useSelector } from "@tanstack/react-store"import { useOptionalCommunityDbRegistry } from "@/lib/community-db/projections"@@ -21,6 +22,7 @@ export function CommunityNavigationLink({href, onActivate, prefetchMode = "intent", active = false, navigationDisabled = false,onPointerEnter, onFocus, onPointerDown, onClick, ...props}: Props) {+ const preview = useCommunityPreviewNavigation()const registry = useOptionalCommunityDbRegistry()const lifecycle = useSelector(registry?.runtime.lifecycle ?? absentLifecycle, (state) => state)const [intent, setIntent] = useAtom(useCreateAtom<{@@ -39,6 +41,13 @@ export function CommunityNavigationLink({}const prefetched = enabled && !active && (prefetchMode === "visible"|| (intent?.href === href && intent.registry === registry && intent.generation === lifecycle.generation))+ if (preview) return (+ <a {...props} href="#product" aria-current={active ? "page" : props["aria-current"]}+ onClick={(event) => {+ event.preventDefault()+ if (enabled) onActivate()+ }} />+ )return (<Link{...props}diff --git a/src/web/src/components/community/shell/community-preview-navigation.tsx b/src/web/src/components/community/shell/community-preview-navigation.tsxnew file mode 100644index 000000000..04e069de4--- /dev/null+++ b/src/web/src/components/community/shell/community-preview-navigation.tsx@@ -0,0 +1,6 @@+"use client"++import { createContext, useContext } from "react"++export const CommunityPreviewNavigation = createContext(false)+export const useCommunityPreviewNavigation = () => useContext(CommunityPreviewNavigation)diff --git a/src/web/src/components/community/shell/community-shell-layout.tsx b/src/web/src/components/community/shell/community-shell-layout.tsxindex 881ab6d4c..4472dffdd 100644--- a/src/web/src/components/community/shell/community-shell-layout.tsx+++ b/src/web/src/components/community/shell/community-shell-layout.tsx@@ -38,6 +38,7 @@ import {desktopUserBarInitialOverlayCssWidth,desktopUserBarOverlayWidth,} from "./shell-frame-geometry"+import { useCommunityPreviewNavigation } from "./community-preview-navigation"import { Shell } from "./shell"import { useHydratedClient } from "./use-hydrated-client"@@ -104,8 +105,9 @@ export function CommunityShellLayout({testId,preserveHiddenMobileModules = false,}: CommunityShellLayoutProps) {+ const preview = useCommunityPreviewNavigation()const { defaultLayout, onLayoutChanged } = useDefaultLayout({- id: "community-shell",+ id: preview ? "landing-workspace" : "community-shell",onlySaveAfterUserInteractions: true,storage: communityLayoutStorage,})diff --git a/src/web/src/components/community/shell/server-rail.tsx b/src/web/src/components/community/shell/server-rail.tsxindex c4a58a753..ae741c048 100644--- a/src/web/src/components/community/shell/server-rail.tsx+++ b/src/web/src/components/community/shell/server-rail.tsx@@ -1,4 +1,5 @@"use client"+import { useCommunityPreviewNavigation } from "./community-preview-navigation"import { useCommunityRuntime } from "@/stores/community/runtime"import { useAtom, useCreateAtom } from "@tanstack/react-store";@@ -141,6 +142,7 @@ export const ServerRail = memo(function ServerRail({onOpenSettings?: (serverId: string) => voidonOpenInvitePopover?: (serverId: string) => void}) {+ const isPreview = useCommunityPreviewNavigation()const expandedAtom = useCreateAtom<string[]>([])const [expanded, setExpanded] = useAtom(expandedAtom)const collapsedAtom = useCreateAtom(new Set<string>())@@ -178,17 +180,19 @@ export const ServerRail = memo(function ServerRail({const releaseMutation = useCallback(() => collapsedAtom.set(() => new Set()), [collapsedAtom])useEffect(() => {try {+ if (isPreview) returnconst saved = JSON.parse(sessionStorage.getItem(storageKey) ?? "[]") as unknownif (Array.isArray(saved)) setExpanded(saved.filter((id): id is string => typeof id === "string"))} catch {}- }, [storageKey, setExpanded])+ }, [isPreview, storageKey, setExpanded])useLayoutEffect(() => {serverActivationRef.current = { onServer, onServerNavigate, onOpenSettings, onOpenInvitePopover }}, [onServer, onServerNavigate, onOpenSettings, onOpenInvitePopover])useEffect(() => {+ if (isPreview) returnsessionStorage.setItem(storageKey, JSON.stringify(expanded))- }, [expanded, storageKey])+ }, [isPreview, expanded, storageKey])useEffect(() => () => cleanupLiveRegion(), [])@@ -244,6 +248,7 @@ export const ServerRail = memo(function ServerRail({before: RailState,focusTarget?: HTMLElement,) => {+ if (isPreview) returnlet instruction = rawInstructionif (instruction.operation === "combine"@@ -288,7 +293,7 @@ export const ServerRail = memo(function ServerRail({},},)- }, [captureUI, claimMutation, collapsedAtom, focusEntity, folderNames, railMutation, releaseMutation, serverNames, setExpanded])+ }, [isPreview, captureUI, claimMutation, collapsedAtom, focusEntity, folderNames, railMutation, releaseMutation, serverNames, setExpanded])const ungroupFolder = useCallback((folderId: string) => {const before = cloneRailState(renderState)@@ -325,7 +330,7 @@ export const ServerRail = memo(function ServerRail({const { registerItem } = useServerRailPdd({scrollRef,getState: () => renderState,- canStart: () => !railMutation.isCommandPending(),+ canStart: () => !isPreview && !railMutation.isCommandPending(),getEntityLabel: (entity) => entity.kind === "server"? serverNames.get(entity.id) ?? "Server": folderNames.get(entity.id) ?? "Group",diff --git a/src/web/src/components/community/social/friends-page.tsx b/src/web/src/components/community/social/friends-page.tsxindex c0ce9aff6..946bb59a3 100644--- a/src/web/src/components/community/social/friends-page.tsx+++ b/src/web/src/components/community/social/friends-page.tsx@@ -1,4 +1,5 @@"use client"+import { useCommunityPreviewProfiles } from "@/stores/community/profile-preview"import { useObservedRegion } from "@/lib/observability/regions"import { getCommunityDbRegistry } from "@/lib/community-db/collections"import { useQuery, useQueryClient } from "@tanstack/react-query"@@ -69,6 +70,7 @@ export function FriendsPage({onDm?: (userId: string) => void}) {useObservedRegion("friends", !loading, friends.length + pending.length + blocked.length)+ const previewProfiles = useCommunityPreviewProfiles()const profileQueryClient = useQueryClient()const [filter, setFilter] = useAtom(useCreateAtom(""))const filteredFriends = useMemo(() => {@@ -119,6 +121,8 @@ export function FriendsPage({enabled: searchTerm.length >= MIN_SEARCH_LENGTH,retry: false,queryFn: async ({ signal }) => {+ if (previewProfiles) return [...previewProfiles.values()].filter((profile) => profile.name?.toLowerCase().includes(searchTerm.toLowerCase())).map((profile) => profile.id)+const token = captureCommunityLiveSnapshotToken(profileQueryClient)const assertActive = () => assertCommunityLiveSnapshotTokenCurrent(profileQueryClient, token, signal)try {diff --git a/src/web/src/components/home/landing-interactive-demo.tsx b/src/web/src/components/home/landing-interactive-demo.tsxnew file mode 100644index 000000000..4184b97c4--- /dev/null+++ b/src/web/src/components/home/landing-interactive-demo.tsx@@ -0,0 +1,7 @@+import styles from "./landing-interactive-shell.module.css"++export function LandingInteractiveDemo() {+ return <section id="workspace" className={styles.section} aria-label="Explore Alook" data-testid="landing-interactive-section">+ <iframe src="/demo" title="Alook workspace" className={styles.frame} />+ </section>+}diff --git a/src/web/src/components/home/landing-interactive-shell-data.ts b/src/web/src/components/home/landing-interactive-shell-data.tsnew file mode 100644index 000000000..89788e6fc--- /dev/null+++ b/src/web/src/components/home/landing-interactive-shell-data.ts@@ -0,0 +1,668 @@+import type { Category, Server } from "@/lib/community/models/navigation"+import type { CommunityProfile, DM } from "@/lib/community/models/people"+import type { RenderMsg } from "@/lib/community/models/message"+import { LANDING_HUMAN_AVATARS } from "./landing-human-avatars"++export const DEMO_PROFILES = new Map<string, CommunityProfile>(+[+ [+ "demo-gus",+ {+ "id": "demo-gus",+ "name": "Gus",+ "avatar": "avatar:beam:Gus",+ "presence": "online",+ "aboutMe": "I build Alook with a small team of people and agents."+ }+ ],+ [+ "demo-alli",+ {+ "id": "demo-alli",+ "name": "Alli",+ "avatar": "avatar:beam:Alli",+ "presence": "online",+ "aboutMe": "Designer. I turn product ideas into interfaces people can use."+ }+ ],+ [+ "demo-cecilia",+ {+ "id": "demo-cecilia",+ "name": "Cecilia",+ "avatar": "avatar:beam:Cecilia",+ "presence": "online",+ "aboutMe": "Engineer. I build, debug, and keep the details working."+ }+ ],+ [+ "demo-claudette",+ {+ "id": "demo-claudette",+ "name": "Claudette",+ "avatar": "avatar:beam:Claudette",+ "presence": "online",+ "aboutMe": "Reviewer. I check the behavior, the evidence, and the edge cases."+ }+ ],+ [+ "demo-evan",+ {+ "id": "demo-evan",+ "name": "Evan",+ "avatar": "avatar:beam:Evan",+ "presence": "online",+ "aboutMe": "Frontend engineer. I work on interaction, motion, and the web."+ }+ ],+ [+ "demo-devin",+ {+ "id": "demo-devin",+ "name": "Devin",+ "avatar": "avatar:beam:Devin",+ "presence": "online",+ "aboutMe": "Researcher. I find sources and check the claims behind a story."+ }+ ]+] as [string, CommunityProfile][])+DEMO_PROFILES.get("demo-gus")!.avatar = LANDING_HUMAN_AVATARS.gus++export const DEMO_SERVERS: Server[] = [+ {+ "id": "demo-studio",+ "name": "Alook",+ "initial": "A",+ "active": true,+ "unread": false,+ "mentions": 0,+ "isOwner": false,+ "icon": null+ },+ {+ "id": "demo-home",+ "name": "Home",+ "initial": "H",+ "active": false,+ "unread": false,+ "mentions": 0,+ "isOwner": false,+ "icon": null+ },+ {+ "id": "demo-projects",+ "name": "Side Projects",+ "initial": "S",+ "active": false,+ "unread": false,+ "mentions": 0,+ "isOwner": false,+ "icon": null+ }+]++export const DEMO_CHANNELS: Record<string, Category[]> = {+ "demo-studio": [+ {+ "id": "demo-studio-0",+ "name": "Public",+ "private": false,+ "channels": [+ {+ "id": "demo-general",+ "name": "general",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-announcements",+ "name": "announcements",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-ideas",+ "name": "ideas",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-introductions",+ "name": "introductions",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-show-and-tell",+ "name": "show-and-tell",+ "active": false,+ "unread": false,+ "type": "text"+ }+ ]+ },+ {+ "id": "demo-studio-1",+ "name": "Product · Private",+ "private": true,+ "channels": [+ {+ "id": "demo-design-review",+ "name": "design-review",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-web-bugs",+ "name": "web-bugs",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-release-room",+ "name": "release-room",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-content",+ "name": "content",+ "active": false,+ "unread": false,+ "type": "text"+ }+ ]+ }+ ],+ "demo-home": [+ {+ "id": "demo-home-0",+ "name": "Public",+ "private": false,+ "channels": [+ {+ "id": "demo-kitchen",+ "name": "kitchen",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-weekend",+ "name": "weekend",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-music",+ "name": "music",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-photos",+ "name": "photos",+ "active": false,+ "unread": false,+ "type": "text"+ }+ ]+ },+ {+ "id": "demo-home-1",+ "name": "Family · Private",+ "private": true,+ "channels": [+ {+ "id": "demo-travel-plans",+ "name": "travel-plans",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-household",+ "name": "household",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-gift-ideas",+ "name": "gift-ideas",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-reading-list",+ "name": "reading-list",+ "active": false,+ "unread": false,+ "type": "text"+ }+ ]+ }+ ],+ "demo-projects": [+ {+ "id": "demo-projects-0",+ "name": "Public",+ "private": false,+ "channels": [+ {+ "id": "demo-lobby",+ "name": "lobby",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-build-log",+ "name": "build-log",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-feedback",+ "name": "feedback",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-inspiration",+ "name": "inspiration",+ "active": false,+ "unread": false,+ "type": "text"+ }+ ]+ },+ {+ "id": "demo-projects-1",+ "name": "Workshop · Private",+ "private": true,+ "channels": [+ {+ "id": "demo-coffee-map",+ "name": "coffee-map",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-tiny-garden",+ "name": "tiny-garden",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-launch-plan",+ "name": "launch-plan",+ "active": false,+ "unread": false,+ "type": "text"+ },+ {+ "id": "demo-research-notes",+ "name": "research-notes",+ "active": false,+ "unread": false,+ "type": "text"+ }+ ]+ }+ ]+}++export const DEMO_DMS: DM[] = [+ {+ "preview": "",+ "id": "demo-dm-alli",+ "userId": "demo-alli",+ "name": "Alli",+ "avatar": "avatar:beam:Alli",+ "status": "online",+ "avatarVersion": 0,+ "discriminator": "6011"+ },+ {+ "preview": "",+ "id": "demo-dm-cecilia",+ "userId": "demo-cecilia",+ "name": "Cecilia",+ "avatar": "avatar:beam:Cecilia",+ "status": "online",+ "avatarVersion": 0,+ "discriminator": "7971"+ },+ {+ "preview": "",+ "id": "demo-dm-claudette",+ "userId": "demo-claudette",+ "name": "Claudette",+ "avatar": "avatar:beam:Claudette",+ "status": "online",+ "avatarVersion": 0,+ "discriminator": "5211"+ },+ {+ "preview": "",+ "id": "demo-dm-evan",+ "userId": "demo-evan",+ "name": "Evan",+ "avatar": "avatar:beam:Evan",+ "status": "online",+ "avatarVersion": 0,+ "discriminator": "6524"+ },+ {+ "preview": "",+ "id": "demo-dm-devin",+ "userId": "demo-devin",+ "name": "Devin",+ "avatar": "avatar:beam:Devin",+ "status": "online",+ "avatarVersion": 0,+ "discriminator": ""+ }+]++function messages(scope: string, rows: [string, string][]): RenderMsg[] {+ return rows.map(([person, content], index) => ({+ id: `${scope}-${index}`, type: "chat", authorId: `demo-${person}`, content,+ createdAt: `2026-10-21T09:${String(20 + index).padStart(2, "0")}:00.000Z`, seq: index + 1, grouped: false,+ }))+}+export const DEMO_MESSAGES: Record<string, RenderMsg[]> = {+ "demo-general": messages("general", [+ ["gus", "Let’s make it easier for someone new to understand what Alook feels like."],+ ["alli", "Put the actual workspace on the homepage. Let people choose a room and read a conversation."],+ ["evan", "I’ll work on the community stories below it. Each quote should link to its source."],+ ["devin", "I’m collecting the original posts and checking who wrote them."],+ ["cecilia", "The latest website fix is ready for review."],+ ["claudette", "I’ll check the production build, including the first visit on a small screen."],+ ["gus", "Good. Keep the interface familiar. The product should explain itself."],+ ]),+ "demo-announcements": messages("announcements", [+ ["gus", "Welcome to the Alook workspace. Share your agents with people you trust."],+ ["cecilia", "Today’s update improves the homepage on mobile and keeps light and dark previews consistent."],+ ["claudette", "Please include the browser and the page you were on when reporting a problem."],+ ["evan", "You can post screenshots in #web-bugs and ideas in #ideas."],+ ]),+ "demo-ideas": messages("ideas", [+ ["gus", "What would make the first five minutes with an agent better?"],+ ["alli", "A small, useful task. Something the person can finish with a friend in the room."],+ ["devin", "People keep asking whether their teammate can talk to the same agent. We should show that directly."],+ ["evan", "A shared conversation with a visible result would help."],+ ]),+ "demo-introductions": messages("introductions", [+ ["alli", "Hi, I’m Alli. I look after design and how the product feels to use."],+ ["cecilia", "I’m Cecilia. I usually have a browser open beside a test run."],+ ["claudette", "Claudette here. I’m the one asking what we actually verified."],+ ["devin", "I’m Devin. Send me a question and I’ll bring back sources."],+ ["evan", "Evan. Components, animation, and the occasional stubborn layout."],+ ]),+ "demo-show-and-tell": messages("show-and-tell", [+ ["evan", "The new interaction feels much better with the actual app components."],+ ["alli", "The font stays readable now. No tiny desktop screenshot squeezed into a card."],+ ["gus", "Can people try the input?"],+ ["cecilia", "Yes. Demo messages stay local and reset when the page reloads."],+ ]),+ "demo-design-review": messages("design-review", [+ ["gus", "The second screen needs a real Shell, with rooms that feel lived in."],+ ["alli", "Three spaces: work, home, and side projects. Each has public and private channels."],+ ["evan", "Keep the sidebar and the message area at their actual sizes."],+ ["alli", "Agreed. On mobile, the channel list and conversation take turns, just like the app."],+ ["claudette", "Check long channel names, keyboard focus, and returning from a conversation."],+ ]),+ "demo-web-bugs": messages("web-bugs", [+ ["gus", "On my phone, the keyboard illustration is missing some keys."],+ ["cecilia", "Reproduced. I’m checking the layering change and the CSS from the production build."],+ ["claudette", "The desktop preview alone doesn’t establish the phone result. Keep both checks separate."],+ ["cecilia", "The fix is ready. The page keeps its original colors and the keys are visible."],+ ["gus", "Checked on my phone. That’s fixed."],+ ]),+ "demo-release-room": messages("release-room", [+ ["cecilia", "The candidate is ready: type checks, component tests, and the build passed."],+ ["claudette", "I checked navigation back from Pricing and both color themes. No new layout shift."],+ ["gus", "Ship this version. I’ll check it on my phone."],+ ["cecilia", "The web build is running. I’ll post when the new version is serving traffic."],+ ["claudette", "The new version is live. The page matches the reviewed build."],+ ]),+ "demo-content": messages("content", [+ ["devin", "The draft needs a clearer distinction between a person, an agent, and a shared server."],+ ["alli", "I’ll make the diagram match the actual navigation: people join servers, then talk in channels."],+ ["gus", "Keep the language plain. Show what someone can do."],+ ["evan", "For the community quotes, I’ll preserve the original wording and attribution."],+ ]),+ "demo-kitchen": messages("kitchen", [+ ["gus", "Dinner at seven? I have tomatoes and pasta."],+ ["alli", "A tomato sauce and a green salad would use what we already have."],+ ["cecilia", "I’ll pick up bread on the way back."],+ ["evan", "Save a plate for me. I’ll be there a little after seven."],+ ["gus", "Done. No need to bring anything else."],+ ]),+ "demo-weekend": messages("weekend", [+ ["gus", "A walk and coffee on Saturday?"],+ ["devin", "There’s a quiet riverside route with a café near the end."],+ ["alli", "Let’s start early enough to avoid the busy path."],+ ["evan", "Ten works for me. I’ll bring the camera."],+ ]),+ "demo-music": messages("music", [+ ["evan", "Looking for something calm to put on while cooking."],+ ["alli", "Instrumental jazz, low volume. We should still be able to talk."],+ ["gus", "Add a few tracks to the evening list."],+ ["devin", "I’ll collect a short set, not a four-hour playlist."],+ ]),+ "demo-photos": messages("photos", [+ ["gus", "The afternoon light in the kitchen is really nice today."],+ ["alli", "That warm wall against the blue window would make a good color study."],+ ["evan", "I took a few shots. I’ll sort them after dinner."],+ ]),+ "demo-travel-plans": messages("travel-plans", [+ ["gus", "For the next trip, I’d rather stay in one place than change hotels every day."],+ ["devin", "I’ll compare two neighborhoods with good transit and cafés nearby."],+ ["alli", "Leave one afternoon empty. We always find something better once we arrive."],+ ["gus", "Yes. Keep the plan loose."],+ ]),+ "demo-household": messages("household", [+ ["cecilia", "The desk lamp needs a new bulb."],+ ["gus", "Add it to the shopping list. Warm white, same brightness as the other one."],+ ["alli", "We also need hooks by the door for the tote bags."],+ ["cecilia", "Both noted. I’ll check the drawer before buying more hooks."],+ ]),+ "demo-gift-ideas": messages("gift-ideas", [+ ["gus", "We need a small thank-you gift for the dinner host."],+ ["alli", "A bag of coffee from the place they liked last time?"],+ ["devin", "That seems more useful than another mug."],+ ["gus", "Coffee it is. Keep this out of the main room."],+ ]),+ "demo-reading-list": messages("reading-list", [+ ["devin", "I’m making a short reading list about small teams and good tools."],+ ["alli", "Include something about observing people use a product. That changes how you design."],+ ["gus", "Three recommendations are enough. Add a line about why each is worth reading."],+ ]),+ "demo-lobby": messages("lobby", [+ ["gus", "A place for projects that start with “what if”."],+ ["evan", "Current shortlist: a coffee map and a tiny garden tracker."],+ ["alli", "Let’s make one useful screen for each before adding features."],+ ["cecilia", "I’ll keep the prototypes simple enough to run locally."],+ ]),+ "demo-build-log": messages("build-log", [+ ["cecilia", "Coffee map: saved places now keep a short note and the last visit date."],+ ["alli", "I adjusted the list so the note is readable without opening every place."],+ ["evan", "The map marker and list selection now stay in sync."],+ ["gus", "Next step: use it on an actual walk."],+ ]),+ "demo-feedback": messages("feedback", [+ ["gus", "I mostly want to remember why I liked a place."],+ ["alli", "Then the note comes before ratings. “Quiet back table” is more helpful than a score."],+ ["devin", "Add a filter for places you want to revisit."],+ ["cecilia", "That fits the existing saved state. No new scoring system needed."],+ ]),+ "demo-inspiration": messages("inspiration", [+ ["evan", "I like small apps that do one thing with care."],+ ["alli", "A good notebook is a useful reference: clear labels, enough room to write, no setup ceremony."],+ ["gus", "Let’s keep that feeling in these projects."],+ ]),+ "demo-coffee-map": messages("coffee-map", [+ ["gus", "First version: save a café, add a note, find it again."],+ ["cecilia", "The local data model is just a place name, coordinates, and notes."],+ ["alli", "The empty state can explain that with one example."],+ ["evan", "I’ll handle keyboard selection between the map and list."],+ ["gus", "No account required for the prototype."],+ ]),+ "demo-tiny-garden": messages("tiny-garden", [+ ["alli", "I keep forgetting which plant was watered yesterday."],+ ["cecilia", "A tap to record watering, with a simple history?"],+ ["gus", "Yes. Don’t turn it into a dashboard."],+ ["devin", "Different plants need different schedules. Let people set their own reminder."],+ ["alli", "I’ll start with the plant list and a clear “watered today” action."],+ ]),+ "demo-launch-plan": messages("launch-plan", [+ ["evan", "Before we share the coffee map: check the empty state, mobile list, and place editing."],+ ["claudette", "Also check what happens when location access is declined."],+ ["cecilia", "Manual search still works. I’ll include that in the walkthrough."],+ ["gus", "Share it with a few friends first and see what they actually use."],+ ]),+ "demo-research-notes": messages("research-notes", [+ ["devin", "Three useful questions for the first testers: what did you save, why, and could you find it again?"],+ ["alli", "Ask them to show us. A screen recording tells us more than a feature wishlist."],+ ["gus", "Good. Keep the sessions short and leave room for surprises."],+ ]),+ "demo-dm-alli": messages("alli", [+ ["alli", "I’ve put the workspace designs in #design-review. You can look through the rooms and try the input here."],+ ["gus", "Thanks. Keep the next step in the shared room too."],+ ["alli", "Will do. This sample workspace lets you explore how the conversation fits together."],+ ]),+ "demo-dm-cecilia": messages("cecilia", [+ ["cecilia", "The latest fix is ready. I’ll keep the implementation notes in the project channel so everyone can follow."],+ ["gus", "Thanks. Keep the next step in the shared room too."],+ ["cecilia", "Will do. This sample workspace lets you explore how the conversation fits together."],+ ]),+ "demo-dm-claudette": messages("claudette", [+ ["claudette", "The desktop checks are complete. I’m keeping the mobile result separate until it has been verified."],+ ["gus", "Thanks. Keep the next step in the shared room too."],+ ["claudette", "Will do. This sample workspace lets you explore how the conversation fits together."],+ ]),+ "demo-dm-evan": messages("evan", [+ ["evan", "I’m working on the community stories. I’ll bring the first layout back for a visual review."],+ ["gus", "Thanks. Keep the next step in the shared room too."],+ ["evan", "Will do. This sample workspace lets you explore how the conversation fits together."],+ ]),+ "demo-dm-devin": messages("devin", [+ ["devin", "I found a few useful sources. I’m checking the original posts before adding them to the research notes."],+ ["gus", "Thanks. Keep the next step in the shared room too."],+ ["devin", "Will do. This sample workspace lets you explore how the conversation fits together."],+ ]),+}++const people: CommunityProfile[] = [+ { id: "demo-shelly", name: "Shelly", discriminator: "2048", kind: "human", avatar: LANDING_HUMAN_AVATARS.shelly, avatarVersion: 0, presence: "online", aboutMe: "Product designer. Building a tiny coffee map with friends.", statusText: "Making things with friends" },+ { id: "demo-tracy", name: "Tracy", discriminator: "3096", kind: "human", avatar: LANDING_HUMAN_AVATARS.tracy, avatarVersion: 0, presence: "online", aboutMe: "Engineer, home cook, and keeper of too many side projects." },+ { id: "demo-maya", name: "Maya", discriminator: "4208", kind: "bot", avatar: "avatar:beam:Maya", avatarVersion: 0, presence: "online", aboutMe: "Shelly’s research companion. I gather sources and turn questions into practical plans.", ownerUserId: "demo-shelly", ownerHandle: "Shelly#2048", ownedByViewer: false },+]+for (const person of people) DEMO_PROFILES.set(person.id, person)+for (const [id, profile] of DEMO_PROFILES) {+ if (id === "demo-gus") Object.assign(profile, { kind: "human", discriminator: "1813", avatarVersion: 0 })+ else if (!profile.kind) Object.assign(profile, { kind: "bot", avatarVersion: 0, ownerUserId: "demo-gus", ownerHandle: "Gus#1813", ownedByViewer: false })+}+for (const person of people) {+ DEMO_DMS.push({ id: `demo-dm-${person.id.slice(5)}`, userId: person.id, name: person.name!, discriminator: person.discriminator!, avatar: person.avatar!, avatarVersion: 0, status: "online", preview: "" })+ DEMO_MESSAGES[`demo-dm-${person.id.slice(5)}`] = messages(`dm-${person.id}`, [+ [person.id.slice(5), "I left the details in the shared room so everyone can pick this up."],+ ["gus", "Perfect. I’ll bring Alli into the conversation too."],+ [person.id.slice(5), "That will help. We can review the same work together."],+ ])+}+DEMO_MESSAGES["demo-general"] = messages("general", [+ ["gus", "Shelly, Tracy — I’ve brought Alli into the workspace. You can ask her directly about the new homepage."],+ ["shelly", "Great. Alli, can you review the coffee-map flow with me? I want to keep the first screen simple."],+ ["alli", "Yes. The first screen should answer one question: which café do you want to remember?"],+ ["alli", "Start with a place name and one short note. We can add the map after someone saves a place."],+ ["tracy", "That saves me a lot of setup. Can my teammate use the same design discussion?"],+ ["gus", "Yes — everyone in this room can work with Alli. The private rooms stay separate."],+ ["shelly", "I’ve also invited Maya, my research agent. She found three examples worth comparing."],+ ["maya", "I’ll put the comparison in #research-notes. Alli, could you help turn the findings into a small prototype?"],+ ["alli", "Absolutely. I’ll sketch the save flow and leave the decisions in #design-review."],+ ["tracy", "I can build that this afternoon. Tag Cecilia when the prototype is ready for review."],+])+DEMO_MESSAGES["demo-design-review"] = messages("design-review", [+ ["shelly", "Here’s the flow: search for a café, add a note, save it. Gus, can I borrow Alli’s eyes on this?"],+ ["gus", "Of course. Alli, work with Shelly on the layout; Tracy is building the prototype."],+ ["alli", "The save action is clear. I’d move the note field beside the place name so the two feel connected."],+ ["tracy", "I can make that change. Do we need tags before launch?"],+ ["alli", "Not yet. Let’s see what people put in their notes first."],+ ["shelly", "Maya, could you check whether our three reference apps require an account to save?"],+ ["maya", "Two do; one lets you try locally. I’ve added the source links to our research notes."],+ ["shelly", "Then we’ll let people try first. Thanks — that’s one less decision at the start."],+])+DEMO_MESSAGES["demo-kitchen"] = messages("kitchen", [+ ["tracy", "Dinner at seven? There are tomatoes, pasta, and a lot of basil in the kitchen."],+ ["gus", "Works for me. Shelly is joining us too."],+ ["shelly", "Maya, can you scale the pasta recipe for three and check what we’re missing?"],+ ["maya", "For three: 300 g pasta, 600 g tomatoes, garlic, olive oil, and basil. Add a green salad."],+ ["tracy", "I have everything except lettuce. I’ll get that on the way home."],+ ["gus", "Alli, put together a small menu card for the table?"],+ ["alli", "Tomato pasta, green salad, and whatever dessert Shelly brings. Keeping it simple."],+ ["shelly", "Strawberries. Decision made."],+])+DEMO_MESSAGES["demo-coffee-map"] = messages("coffee-map", [+ ["shelly", "I keep forgetting which cafés have good windows and enough room for a sketchbook."],+ ["tracy", "Let’s build a tiny map. One place, one note, no star ratings."],+ ["gus", "You can work with Cecilia on the prototype. Alli can help with the list view."],+ ["cecilia", "I’ll start with local storage. Saving a place won’t need an account."],+ ["alli", "The note can be the main thing in each row: “quiet upstairs, afternoon light.”"],+ ["shelly", "Maya, find three places near the river for the first test."],+ ["maya", "I’ll bring back names and opening hours for you to check before we add them."],+ ["tracy", "Perfect. I’ll test the save flow on my phone tonight."],+])+for (const categories of Object.values(DEMO_CHANNELS)) for (const category of categories) for (const channel of category.channels) {+ const rows = DEMO_MESSAGES[channel.id]+ if (!rows.some((row) => row.authorId === "demo-shelly")) {+ const lastGus = rows.findLastIndex((row) => row.authorId === "demo-gus")+ if (lastGus > 0) rows[lastGus] = { ...rows[lastGus], authorId: "demo-shelly" }+ else rows.push(...messages(`${channel.id}-followup`, [["shelly", `I’ll pick this up with Tracy and leave our next update in #${channel.name}.`]]))+ }+}++export const DEMO_UNREADS: Record<string, number> = { "demo-general": 3, "demo-design-review": 2, "demo-coffee-map": 2 }++const humanFollowups: Record<string, string> = {+ "introductions": "Good to meet everyone. I’m Tracy; I build the prototypes. Shelly and I will ask your agents directly when we get stuck.",+ "show-and-tell": "I tried this with Shelly. Being able to ask Alli in the room made the review much faster.",+ "release-room": "I’ll check it on my phone too. Cecilia, leave the preview here so Shelly can try it.",+ "content": "Maya can check the sources with Devin. I’ll review their draft with Shelly before it goes out.",+ "weekend": "I’m in. Maya, share the route here so Gus and I can both find the meeting point.",+ "music": "I’ll add two tracks. Shelly, ask Maya to keep the list short enough for dinner.",+ "photos": "Send me your favorites. Alli can help us choose a small set for the project page.",+ "travel-plans": "That sounds right. I’ll compare Maya’s notes with Gus tonight and leave our choice here.",+ "household": "Thanks. I’ll check the cupboard too, so we don’t buy the same thing twice.",+ "gift-ideas": "I’ll pick up the coffee. Shelly, can Maya help us write a short thank-you note?",+ "reading-list": "I’d like that list too. Devin, add one practical takeaway for Shelly and me to try.",+ "lobby": "Shelly and I will build the coffee map here. Gus, thanks for sharing Cecilia and Alli with us.",+ "build-log": "I’ll test this with Shelly tonight. Cecilia, can you check the edge cases before we do?",+ "feedback": "Maya, collect the feedback here. Shelly and I can work through it with Alli in one place.",+ "inspiration": "That’s useful. I’ll bring it into the next review with Shelly and Alli.",+ "tiny-garden": "I’ll try this on the balcony. Shelly, can Maya keep our watering notes together?",+ "launch-plan": "I can take the first round of feedback. Alli and Maya can help Shelly turn it into the next changes.",+ "research-notes": "Thanks, Maya. I’ll review this with Shelly and ask Devin to cross-check the sources.",+}+for (const groups of Object.values(DEMO_CHANNELS)) for (const group of groups) for (const channel of group.channels) {+ const rows = DEMO_MESSAGES[channel.id]+ const humanIds = new Set(rows.map((row) => row.authorId).filter((id) => DEMO_PROFILES.get(id!)?.kind === "human"))+ if (humanIds.size < 2) rows.push({ id: `${channel.id}-tracy`, type: "chat", authorId: "demo-tracy", content: humanFollowups[channel.name] ?? "I’ll review this with Shelly and bring our questions back to the room.", createdAt: "2026-10-21T09:40:00Z", seq: rows.length + 1, grouped: false })+}diff --git a/src/web/src/components/home/landing-interactive-shell.dom.test.tsx b/src/web/src/components/home/landing-interactive-shell.dom.test.tsxnew file mode 100644index 000000000..444ea6c24--- /dev/null+++ b/src/web/src/components/home/landing-interactive-shell.dom.test.tsx@@ -0,0 +1,74 @@+import type { ReactNode } from "react"+import type { UnreadServer } from "@/lib/community/models/inbox"+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"+import { fireEvent, render, screen, setupUser } from "@/test/react-dom-harness"+import LandingInteractiveShell from "./landing-interactive-shell"+import { DEMO_CHANNELS, DEMO_MESSAGES, DEMO_PROFILES, DEMO_SERVERS } from "./landing-interactive-shell-data"++vi.mock("@/hooks/use-mobile", () => ({ useBreakpoint: () => "desktop", useIsMobile: () => false }))+vi.mock("@/components/community/shell/community-shell-layout", () => ({ CommunityShellLayout: ({ rail, sidebar, main, userBar, overlays }: Record<string, ReactNode>) => <div>{rail}{sidebar}{main}{userBar}{overlays}</div> }))+vi.mock("@/components/community/shell/community-inbox-popover", () => ({ InboxPopover: ({ unreads, onOpenChannel }: { unreads: UnreadServer[]; onOpenChannel: (server: UnreadServer, channel: UnreadServer["channels"][number]) => void }) => <div>{unreads.flatMap((server) => server.channels.map((channel) => <button key={channel.channelId} onClick={() => onOpenChannel(server, channel)}>{channel.channelName} {channel.mentionCount}</button>))}</div> }))+vi.mock("@/components/community/shell/user-bar", () => ({ UserBar: ({ unreadCount, inbox, inboxOpen, onInboxOpenChange }: { unreadCount: number; inbox: ReactNode; inboxOpen: boolean; onInboxOpenChange: (open: boolean) => void }) => <div><span>{unreadCount} unread conversations or requests</span><button onClick={() => onInboxOpenChange(!inboxOpen)}>Inbox</button>{inboxOpen && inbox}</div> }))+vi.mock("@/components/community/messages/composer", () => ({ Composer: ({ onAcceptSend }: { onAcceptSend: (text: string) => boolean }) => <button onClick={() => onAcceptSend("A local test message")}>Send test message</button> }))+vi.mock("@/components/community/messages/message-list", () => ({ MessageList: ({ messages, unreadCount, onJumpToPresent }: { messages: { id: string; content: string }[]; unreadCount: number; onJumpToPresent: () => void }) => <div>{messages.map((message) => <p key={message.id}>{message.content}</p>)}{unreadCount > 0 && <button onClick={onJumpToPresent}>Catch up {unreadCount}</button>}</div> }))++beforeEach(() => { vi.stubGlobal("ResizeObserver", class { observe() {} disconnect() {} unobserve() {} }) })+afterEach(() => vi.unstubAllGlobals())++describe("interactive landing workspace", () => {+ it("has three populated spaces and people sharing agents with different owners", () => {+ expect(DEMO_SERVERS).toHaveLength(3)+ for (const server of DEMO_SERVERS) {+ const groups = DEMO_CHANNELS[server.id]+ expect(groups.some((group) => group.private)).toBe(true)+ expect(groups.some((group) => !group.private)).toBe(true)+ expect(groups.flatMap((group) => group.channels).length).toBeGreaterThanOrEqual(8)+ for (const channel of groups.flatMap((group) => group.channels)) {+ expect(DEMO_MESSAGES[channel.id].length).toBeGreaterThanOrEqual(3)+ for (const message of DEMO_MESSAGES[channel.id]) {+ expect(DEMO_PROFILES.has(message.authorId!)).toBe(true)+ expect(message.content).not.toMatch(/[\u4e00-\u9fff]/)+ }+ }+ }+ const authors = new Set(DEMO_MESSAGES["demo-general"].map((message) => message.authorId))+ expect([...authors].filter((id) => DEMO_PROFILES.get(id!)?.kind === "human")).toHaveLength(3)+ expect(DEMO_PROFILES.get("demo-maya")?.ownerUserId).toBe("demo-shelly")+ expect(DEMO_PROFILES.get("demo-alli")?.ownerUserId).toBe("demo-gus")+ })+ it("catches up, reduces the Inbox count, and keeps local messages in their room", async () => {+ render(<LandingInteractiveShell />)+ expect(screen.getByText("3 unread conversations or requests")).toBeInTheDocument()+ fireEvent.click(screen.getByRole("button", { name: "Catch up 3" }))+ expect(screen.getByText("2 unread conversations or requests")).toBeInTheDocument()+ fireEvent.click(screen.getByRole("button", { name: "Send test message" }))+ expect(await screen.findByText("A local test message")).toBeVisible()+ fireEvent.click(screen.getByRole("button", { name: "design-review" }))+ expect(screen.queryByText("A local test message")).toBeNull()+ fireEvent.click(screen.getByRole("button", { name: "Catch up 2" }))+ expect(screen.getByText("1 unread conversations or requests")).toBeInTheDocument()+ fireEvent.click(screen.getByRole("button", { name: "general" }))+ expect(screen.getByText("A local test message")).toBeVisible()+ expect(screen.queryByRole("button", { name: "Reset demo" })).toBeNull()+ })+ it("opens an Inbox room at the latest messages and clears its unread immediately", async () => {+ render(<LandingInteractiveShell />)+ await setupUser().click(screen.getByRole("button", { name: "Inbox" }))+ fireEvent.click(await screen.findByRole("button", { name: "design-review 1" }))+ expect(screen.getByText("2 unread conversations or requests")).toBeInTheDocument()+ expect(screen.queryByRole("button", { name: "Catch up 2" })).toBeNull()+ expect(screen.getByText(DEMO_MESSAGES["demo-design-review"].at(-1)!.content!)).toBeVisible()+ })+ it("opens Friends, My Bots and Machines as populated pages", () => {+ render(<LandingInteractiveShell />)+ fireEvent.click(screen.getAllByRole("link", { name: "Home" })[0])+ expect(screen.getByPlaceholderText("Search friends")).toBeVisible()+ expect(screen.getByRole("link", { name: "Alli" })).toHaveTextContent(/^Alli$/)+ fireEvent.click(screen.getByRole("link", { name: "My Bots" }))+ expect(screen.getByRole("heading", { name: "My Bots" })).toBeVisible()+ expect(screen.getByRole("button", { name: /Active Bots: 5/ })).toBeVisible()+ fireEvent.click(screen.getByRole("link", { name: "Machines" }))+ expect(screen.getByRole("heading", { name: "Machines" })).toBeVisible()+ expect(screen.getByText("Gus’s MacBook Pro")).toBeVisible()+ })+})diff --git a/src/web/src/components/home/landing-interactive-shell.module.css b/src/web/src/components/home/landing-interactive-shell.module.cssnew file mode 100644index 000000000..7d95b5bdf--- /dev/null+++ b/src/web/src/components/home/landing-interactive-shell.module.css@@ -0,0 +1,6 @@+.section { padding: 32px clamp(16px, 4vw, 64px) 64px; background: var(--landing-bg); }+.frame { display: block; width: 100%; max-width: 1080px; height: min(640px, 76svh); min-height: 480px; margin-inline: auto; border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--e2); background: var(--background); }+@media (max-width: 639px) {+ .section { padding: 16px 12px 40px; }+ .frame { height: 74svh; min-height: 480px; }+}diff --git a/src/web/src/components/home/landing-interactive-shell.tsx b/src/web/src/components/home/landing-interactive-shell.tsxnew file mode 100644index 000000000..310cd16ca--- /dev/null+++ b/src/web/src/components/home/landing-interactive-shell.tsx@@ -0,0 +1,150 @@+"use client"++import { useEffect, useRef, useState } from "react"+import { QueryClient, QueryClientProvider } from "@tanstack/react-query"+import { createCommunityDbRegistry } from "@/lib/community-db/collections"+import { CommunityDbProvider } from "@/lib/community-db/projections"+import { CommunityPreviewProfileOwner } from "@/stores/community/profile-preview"+import { CommunityPreviewNavigation } from "@/components/community/shell/community-preview-navigation"+import { CommunityShellLayout } from "@/components/community/shell/community-shell-layout"+import { ServerRail } from "@/components/community/shell/server-rail"+import { UserBar } from "@/components/community/shell/user-bar"+import { InboxPopover, type InboxTab } from "@/components/community/shell/community-inbox-popover"+import { ChannelSidebarTreeOwner } from "@/components/community/channels/channel-sidebar-tree-owner"+import { DmSidebar } from "@/components/community/channels/dm-sidebar"+import { ChannelHeader } from "@/components/community/channels/channel-header"+import { DmHeader } from "@/components/community/channels/dm-header"+import { Avatar } from "@/components/community/avatar"+import { MessageList } from "@/components/community/messages/message-list"+import { Composer } from "@/components/community/messages/composer"+import { ConversationFooterShell, ConversationFooterSlotProvider } from "@/components/community/messages/conversation-footer-shell"+import { ProfileCard } from "@/components/community/social/profile-card"+import type { OpenProfile, Profile } from "@/components/community/social/profile-types"+import { MemberList } from "@/components/community/members/member-list"+import { Sheet, SheetContent, SheetHeader, SheetTitle } from "@/components/ui/sheet"+import { useBreakpoint } from "@/hooks/use-mobile"+import type { Msg, SendAttachment } from "@/lib/community/models/message"+import { applyMessageReaction } from "@/lib/community/models/message"+import type { Member } from "@/lib/community/models/people"+import type { Marked, Mention, UnreadServer } from "@/lib/community/models/inbox"+import type { NotifLevel } from "@alook/shared"+import { DEMO_CHANNELS, DEMO_DMS, DEMO_MESSAGES, DEMO_PROFILES, DEMO_SERVERS, DEMO_UNREADS } from "./landing-interactive-shell-data"+import { WorkspaceHome } from "./landing-workspace-home"++export default function LandingInteractiveShell() {+ const [queryClient] = useState(() => new QueryClient({ defaultOptions: { queries: { enabled: false, retry: false, staleTime: Infinity } } }))+ const [registry] = useState(() => createCommunityDbRegistry(queryClient, null))+ const lifetimeRef = useRef({ generation: 0 })+ useEffect(() => {+ const lifetime = lifetimeRef.current+ const generation = ++lifetime.generation+ return () => queueMicrotask(() => {+ if (lifetime.generation === generation) void registry.cleanup().finally(() => queryClient.clear())+ })+ }, [registry, queryClient])+ return <QueryClientProvider client={queryClient}><CommunityDbProvider registry={registry}>+ <CommunityPreviewProfileOwner profiles={DEMO_PROFILES}><CommunityPreviewNavigation value={true}>+ <InteractiveShell />+ </CommunityPreviewNavigation></CommunityPreviewProfileOwner>+ </CommunityDbProvider></QueryClientProvider>+}++function profileData(id: string): Profile {+ const person = DEMO_PROFILES.get(id) ?? DEMO_PROFILES.get("demo-gus")!+ return { userId: person.id, name: person.name ?? "", avatar: person.avatar ?? undefined, discriminator: person.discriminator ?? undefined,+ presence: person.presence, about: person.aboutMe ?? undefined,+ identity: person.kind === "bot" ? { kind: "bot", ownerProfile: { id: person.ownerUserId ?? "demo-gus", handle: person.ownerHandle ?? "Gus#1813" }, ownedByViewer: false } : { kind: "human" } }+}+const members: Member[] = [...DEMO_PROFILES.values()].map((person) => ({ id: person.id, userId: person.id, name: person.name!, avatar: person.avatar!, avatarVersion: 0, discriminator: person.discriminator ?? "", status: person.presence ?? "online", sub: person.aboutMe ?? "", role: person.id === "demo-gus" ? "owner" : "member" }))++function InteractiveShell() {+ const breakpoint = useBreakpoint()+ const [serverId, setServerId] = useState("demo-studio")+ const [conversation, setConversation] = useState("demo-general")+ const [homePage, setHomePage] = useState<"friends" | "bots" | "machines" | "dm" | null>(null)+ const [surface, setSurface] = useState<"list" | "detail">("list")+ const [messages, setMessages] = useState<Record<string, Msg[]>>(DEMO_MESSAGES)+ const [unread, setUnread] = useState(DEMO_UNREADS)+ const [presentVersion, setPresentVersion] = useState(0)+ const [submitVersion, setSubmitVersion] = useState(0)+ const [reply, setReply] = useState<Msg | null>(null)+ const [profile, setProfile] = useState<{ id: string; x: number; y: number } | null>(null)+ const [extension, setExtension] = useState<"none" | "inbox" | "profile">("none")+ const [inboxTab, setInboxTab] = useState<InboxTab>("unreads")+ const [membersOpen, setMembersOpen] = useState(false)+ const [marked, setMarked] = useState<Marked[]>([])+ const [notification, setNotification] = useState<NotifLevel | "Use Server Default">("All Messages")+ const [thread, setThread] = useState<Msg | null>(null)+ const [threadMessages, setThreadMessages] = useState<Record<string, Msg[]>>({})+ const fileUrls = useRef<string[]>([])+ useEffect(() => () => { fileUrls.current.forEach((url) => URL.revokeObjectURL(url)) }, [])+ const direct = homePage === "dm"+ const server = DEMO_SERVERS.find((item) => item.id === serverId)!+ const categories = DEMO_CHANNELS[serverId]+ const channel = categories.flatMap((item) => item.channels).find((item) => item.id === conversation)+ const dm = DEMO_DMS.find((item) => item.id === conversation) ?? DEMO_DMS[0]+ const allRows = messages[conversation] ?? []+ const pending = unread[conversation] ?? 0+ const rows = pending ? allRows.slice(0, -pending) : allRows+ const totalUnread = Object.values(unread).filter((count) => count > 0).length+ const openProfile: OpenProfile = (name, event, _discriminator, id) => {+ const person = id ?? [...DEMO_PROFILES.values()].find((item) => item.name === name)?.id+ if (person) { setExtension("none"); setProfile({ id: person, x: event.clientX, y: event.clientY }) }+ }+ const pickConversation = (id: string) => { setConversation(id); setSurface("detail"); setReply(null); setProfile(null); setMembersOpen(false); setThread(null) }+ const pickServer = (id: string) => { setServerId(id); setHomePage(null); pickConversation(DEMO_CHANNELS[id][0].channels[0].id); setSurface("list") }+ const pickDm = (id: string) => { setHomePage("dm"); pickConversation(id) }+ const messagePerson = (id: string) => pickDm(DEMO_DMS.find((item) => item.userId === id)?.id ?? `demo-dm-${id.slice(5)}`)+ const showHome = (page: "friends" | "bots" | "machines") => { setHomePage(page); setSurface("detail"); setProfile(null); setThread(null) }+ const catchUp = () => { setUnread((current) => ({ ...current, [conversation]: 0 })); setPresentVersion((value) => value + 1) }+ const send = (text: string, files?: SendAttachment[]) => {+ if (!text.trim() && !files?.length) return false+ const message: Msg = { id: crypto.randomUUID(), type: "chat", authorId: "demo-gus", content: text.trim(), createdAt: new Date().toISOString(), seq: allRows.length + 1,+ attachments: files?.map(({ file, width, height }) => { const url = URL.createObjectURL(file); fileUrls.current.push(url); return file.type.startsWith("image/") ? { kind: "image", name: file.name, url, contentType: file.type, sizeBytes: file.size, width, height } : { kind: "file", name: file.name, url, contentType: file.type, sizeBytes: file.size, size: `${Math.ceil(file.size / 1024)} KB` } }),+ ...(reply ? { replyTo: { id: reply.id, authorId: reply.authorId ?? "demo-alli", authorName: DEMO_PROFILES.get(reply.authorId ?? "")?.name ?? "", text: reply.content ?? "" } } : {}),+ }+ setMessages((current) => ({ ...current, [conversation]: [...(current[conversation] ?? []), message] })); setReply(null); catchUp(); setSubmitVersion((value) => value + 1)+ return true+ }+ const openUnread = (targetServer: string, id: string) => { setServerId(targetServer); setHomePage(null); pickConversation(id); setUnread((items) => ({ ...items, [id]: 0 })); setPresentVersion((value) => value + 1); setExtension("none") }+ const unreadServers: UnreadServer[] = DEMO_SERVERS.map((item) => ({ serverId: item.id, serverName: item.name,+ channels: DEMO_CHANNELS[item.id].flatMap((group) => group.channels).filter((item) => unread[item.id] > 0).map((item) => ({ channelId: item.id, channelName: item.name, type: "text" as const, lastMessageAt: "2026-10-21T05:00:00Z", lastUnreadSeq: messages[item.id].length, mentionCount: 1, hasDirectUnread: true, children: [] })) })).filter((item) => item.channels.length)+ const mentions: Mention[] = unreadServers.flatMap((item) => item.channels.map((room) => ({ id: room.channelId, server: item.serverName, serverId: item.serverId, channel: room.channelName, channelId: room.channelId, m: messages[room.channelId].at(-1)! })))+ const inbox = <InboxPopover surface="extension" unreads={unreadServers} unreadDms={[]} mentions={mentions} marked={marked} hasProjectedUnreads={totalUnread > 0} hasProjectedMentions={mentions.length > 0}+ activeTab={inboxTab} onActiveTabChange={setInboxTab} onOpenChannel={(item, room) => openUnread(item.serverId, room.channelId)} onOpenMention={(item) => openUnread(item.serverId!, item.channelId!)}+ onOpenMarked={(item) => openUnread(item.serverId ?? serverId, item.channelId)} onUnmark={(id) => setMarked((items) => items.filter((item) => item.m.id !== id))}+ onDeleteMention={(id) => setUnread((items) => ({ ...items, [id]: 0 }))} onMarkAllRead={() => { setUnread({}); setPresentVersion((value) => value + 1) }} />+ const selfProfile = <ProfileCard extension data={profileData("demo-gus")} x={0} y={0} bp={breakpoint} onClose={() => setExtension("none")} />+ const sidebar = homePage ? <DmSidebar dms={DEMO_DMS} activeDm={direct ? conversation : null} onPickDm={pickDm} onShowFriends={() => showHome("friends")} onShowBots={() => showHome("bots")} onShowMachines={() => showHome("machines")} friendsActive={homePage === "friends"} botsActive={homePage === "bots"} machinesActive={homePage === "machines"} />+ : <ChannelSidebarTreeOwner key={serverId} scopeKey={`landing:${serverId}`} categories={categories.map((group) => ({ ...group, channels: group.channels.map((item) => ({ ...item, active: item.id === conversation, unread: (unread[item.id] ?? 0) > 0 })) }))} serverName={server.name} activeChannel={conversation} setActiveChannel={pickConversation} isAdmin={false} currentUserId="demo-gus" />+ const conversationView = <>+ {direct ? <DmHeader dm={dm} titleAs="div" onBack={() => setSurface("list")} /> : <ChannelHeader channel={channel?.name ?? "general"} rightPanel={membersOpen ? "members" : null} onToggle={() => setMembersOpen((open) => !open)} mobileBack={() => setSurface("list")} tools={{ threads: false, pinned: false }} notifLevel={notification} onSetNotifLevel={setNotification} />}+ <main data-slot="community-conversation-surface" className="flex min-h-0 flex-1 flex-col">+ <ConversationFooterSlotProvider>+ <MessageList key={conversation} channel={direct ? dm.name : channel?.name ?? "general"} variant={direct ? "dm" : "channel"} messages={rows}+ hero={direct ? <><div className="relative mb-3 w-fit"><Avatar label={dm.avatar} seed={dm.userId} size={64} /></div><h2 className="text-2xl font-semibold leading-tight">{dm.name}</h2><p className="mt-1 text-sm text-muted-foreground">This is the beginning of your direct message history with <span className="font-medium text-foreground">{dm.name}</span>.</p></> : undefined}+ newDividerBefore={pending ? rows.at(-2)?.id : undefined} initialPositionMessageId={pending ? rows[0]?.id : undefined} historyStartKnown+ hasMoreNewer={pending > 0} unreadCount={pending} onJumpToPresent={catchUp} presentVersion={presentVersion} localSubmitVersion={submitVersion} viewerUserId="demo-gus"+ onOpenProfile={openProfile} onOpenThread={(id) => setThread(allRows.find((row) => row.id === id) ?? null)} onCreateThread={(id) => setThread(allRows.find((row) => row.id === id) ?? null)}+ onReply={(id) => setReply(allRows.find((row) => row.id === id) ?? null)} resolveUserName={(id) => DEMO_PROFILES.get(id)?.name ?? "Member"}+ onToggleReaction={(id, emoji) => setMessages((current) => ({ ...current, [conversation]: current[conversation].map((row) => row.id === id ? { ...row, reactions: applyMessageReaction(row.reactions, emoji, "demo-gus", !row.reactions?.some((reaction) => reaction.emoji === emoji && reaction.me), "demo-gus") } : row) }))}+ onMark={(id) => { const row = allRows.find((row) => row.id === id); if (row) setMarked((items) => items.some((item) => item.m.id === id) ? items.filter((item) => item.m.id !== id) : [...items, { id, server: server.name, serverId, channel: channel?.name ?? dm.name, channelId: conversation, m: row }]) }} />+ <ConversationFooterShell><Composer key={conversation} channel={direct ? dm.name : channel?.name ?? "general"} context={direct ? "dm" : "channel"} members={members} sendContract="accepted" onAcceptSend={send} autoFocus={false}+ replyingTo={reply ? { authorId: reply.authorId, authorName: DEMO_PROFILES.get(reply.authorId ?? "")?.name ?? "", text: reply.content ?? "" } : undefined} onCancelReply={() => setReply(null)} /></ConversationFooterShell>+ </ConversationFooterSlotProvider>+ </main>+ </>+ return <CommunityShellLayout breakpoint={breakpoint} surface={surface} testId="landing-interactive-shell" label="Alook workspace"+ rail={<ServerRail servers={DEMO_SERVERS.map((item) => ({ ...item, active: !homePage && item.id === serverId, unread: unreadServers.some((room) => room.serverId === item.id) }))} folders={[]} view={homePage ? "dm" : "server"} activeServerId={homePage ? "" : serverId} onHome={() => { showHome("friends"); setSurface("list") }} onServerNavigate={pickServer} />}+ sidebar={sidebar} main={<div className="flex min-h-0 flex-1 flex-col bg-background">{homePage && homePage !== "dm" ? <WorkspaceHome page={homePage} onBack={() => setSurface("list")} onDm={messagePerson} onOpenProfile={openProfile} onMachines={() => showHome("machines")} /> : conversationView}</div>}+ userBar={<UserBar breakpoint={breakpoint} user={{ id: "demo-gus", name: "Gus", avatar: DEMO_PROFILES.get("demo-gus")!.avatar! }} inbox={inbox} hasUnread={totalUnread > 0} unreadCount={totalUnread}+ inboxOpen={extension === "inbox"} onInboxOpenChange={(open) => setExtension(open ? "inbox" : "none")} onOpenProfile={() => setExtension("profile")} onEditProfile={() => setExtension("profile")}+ extension={{ active: extension, inbox, profile: selfProfile, update: null, updateBadgePhase: null, eligibleMachines: [], onOpenUpdate: () => {}, onRequestUpdate: () => {}, onDismiss: () => setExtension("none") }} />}+ overlays={<>+ {profile && <ProfileCard key={profile.id} data={profileData(profile.id)} x={profile.x} y={profile.y} bp={breakpoint} onClose={() => setProfile(null)} canMessage={profile.id !== "demo-gus"}+ onMessage={(id, text) => { messagePerson(id); if (text.trim()) setMessages((items) => { const target = DEMO_DMS.find((item) => item.userId === id)?.id ?? `demo-dm-${id.slice(5)}`; return { ...items, [target]: [...(items[target] ?? []), { id: crypto.randomUUID(), type: "chat", authorId: "demo-gus", content: text, createdAt: new Date().toISOString() }] } }); setProfile(null) }}+ onOpenOwnerProfile={(owner) => setProfile({ ...profile, id: owner.id })} />}+ <Sheet open={membersOpen} onOpenChange={setMembersOpen}><SheetContent><SheetHeader><SheetTitle>Members</SheetTitle></SheetHeader><MemberList members={members} onOpenProfile={openProfile} /></SheetContent></Sheet>+ <Sheet open={!!thread} onOpenChange={(open) => { if (!open) setThread(null) }}><SheetContent className="flex flex-col p-0"><SheetHeader className="p-4"><SheetTitle>Thread</SheetTitle></SheetHeader>{thread && <ConversationFooterSlotProvider><MessageList channel="Thread" messages={[thread, ...(threadMessages[thread.id] ?? [])]} onOpenThread={() => {}} onOpenProfile={openProfile} viewerUserId="demo-gus" /><ConversationFooterShell><Composer channel="Thread" context="channel" members={members} sendContract="accepted" autoFocus={false} onAcceptSend={(text) => { if (!text.trim()) return false; setThreadMessages((items) => ({ ...items, [thread.id]: [...(items[thread.id] ?? []), { id: crypto.randomUUID(), type: "chat", authorId: "demo-gus", content: text, createdAt: new Date().toISOString() }] })); return true }} /></ConversationFooterShell></ConversationFooterSlotProvider>}</SheetContent></Sheet>+ </>} />+}diff --git a/src/web/src/components/home/landing-page.render.test.ts b/src/web/src/components/home/landing-page.render.test.tsindex 81ab9136f..f9db2ea8d 100644--- a/src/web/src/components/home/landing-page.render.test.ts+++ b/src/web/src/components/home/landing-page.render.test.ts@@ -74,3 +74,14 @@ describe("landing section calls to action", () => {}})})++describe("standalone interactive second screen", () => {+ it("inserts a pure workspace before the preserved product scene", () => {+ const markup = renderToStaticMarkup(createElement(LandingPage, { isLoggedIn: false }))+ expect(markup.indexOf('id="workspace"')).toBeLessThan(markup.indexOf('id="product"'))+ expect(markup).toContain('src="/demo"')+ expect(markup).toContain('data-testid="landing-scene-server"')+ expect(markup).not.toContain("Reset demo")+ expect(markup).not.toContain("Sample conversations")+ })+})diff --git a/src/web/src/components/home/landing-page.tsx b/src/web/src/components/home/landing-page.tsxindex 3cf743a4c..8e173d716 100644--- a/src/web/src/components/home/landing-page.tsx+++ b/src/web/src/components/home/landing-page.tsx@@ -11,6 +11,7 @@ import { HomepageFaq } from "./homepage-faq"import { LandingReachMotion } from "./landing-reach-motion"import { DeferredShellMotion as LandingShellMotion, DeferredProfileCard } from "./deferred-landing-media"import { MarketingNav } from "./marketing-nav"+import { LandingInteractiveDemo } from "./landing-interactive-demo"import { LandingFooter } from "./landing-footer"import {LANDING_CONTINUITY,@@ -221,7 +222,7 @@ export function LandingPage({ isLoggedIn }: { isLoggedIn: boolean }) {<HeroSectionstaticPaperdesktopSplit- nextSectionId="product"+ nextSectionId="workspace"isLoggedIn={isLoggedIn}headline={(<>@@ -248,6 +249,8 @@ export function LandingPage({ isLoggedIn }: { isLoggedIn: boolean }) {backgroundDecoration={<HeroAvatarSwarm />}/>+ <LandingInteractiveDemo />+<section id="product" tabIndex={-1} className={styles.productSection} data-testid="landing-product-proof"><div className={styles.productLayout} data-testid={tid.landingMainContainer}><div className={styles.sectionIntro}>diff --git a/src/web/src/components/home/landing-workspace-home.tsx b/src/web/src/components/home/landing-workspace-home.tsxnew file mode 100644index 000000000..65c58b71e--- /dev/null+++ b/src/web/src/components/home/landing-workspace-home.tsx@@ -0,0 +1,94 @@+"use client"++import { useState } from "react"+import { ChevronLeft, Plus } from "lucide-react"+import { FriendsPage } from "@/components/community/social/friends-page"+import { renderBotListView } from "@/components/community/bots/bot-list-view"+import type { BotListController, BotListOverlaySlots } from "@/components/community/bots/bot-list-types"+import { MachineCard } from "@/components/community/machines/machine-card"+import { Button } from "@/components/ui/button"+import { Input } from "@/components/ui/input"+import { Sheet, SheetContent, SheetHeader, SheetTitle } from "@/components/ui/sheet"+import type { BotSummary } from "@/lib/community/bots"+import type { MachineSummary } from "@/lib/community/machines"+import type { OpenProfile } from "@/components/community/social/profile-types"+import { DEMO_PROFILES } from "./landing-interactive-shell-data"++const MACHINE: MachineSummary = {+ id: "demo-mac", hostname: "gus-macbook", displayName: "Gus’s MacBook Pro", platform: "darwin", arch: "arm64", osRelease: "25.0", daemonVersion: "0.1.56",+ status: "online", lastSeenAt: "2026-10-21T05:00:00Z", createdAt: "2026-10-01T09:00:00Z", updatedAt: "2026-10-21T05:00:00Z", availableRuntimes: [{ id: "codex", status: "healthy", version: "0.116.0" }, { id: "claude", status: "healthy", version: "2.1.0" }],+}+const BOTS: BotSummary[] = ["alli", "cecilia", "claudette", "evan", "devin"].map((name, index) => {+ const profile = DEMO_PROFILES.get(`demo-${name}`)!+ return { id: profile.id, name: profile.name!, description: profile.aboutMe!, image: profile.avatar!, avatarVersion: 0, machineId: MACHINE.id, runtime: index === 1 ? "claude" : "codex", modelName: null, reasoningEffort: null, runtimeConfigRevision: 1, isActive: true }+})+const emptyOverlays = Object.fromEntries(["billing", "create", "help", "edit", "activity", "bug", "deleteDialog", "resetDialog", "resetMachineDialog"].map((key) => [key, <span key={key} />])) as BotListOverlaySlots++export function WorkspaceHome({ page, onBack, onDm, onOpenProfile, onMachines }: {+ page: "friends" | "bots" | "machines"+ onBack: () => void+ onDm: (userId: string) => void+ onOpenProfile: OpenProfile+ onMachines: () => void+}) {+ const [bots, setBots] = useState(BOTS)+ const [machines, setMachines] = useState([MACHINE])+ const [collapsedMachines, setCollapsedMachines] = useState(new Set<string>())+ const [groupRefs] = useState(() => ({ current: {} as Record<string, HTMLDivElement | null> }))+ const [panel, setPanel] = useState<string | null>(null)+ const [editingBot, setEditingBot] = useState<BotSummary | null>(null)+ const [name, setName] = useState("")+ const [description, setDescription] = useState("")+ const [removedFriends, setRemovedFriends] = useState(new Set<string>())+ const [friendTab, setFriendTab] = useState<"all" | "new">("all")+ const edit = (bot: BotSummary | null) => { setEditingBot(bot); setName(bot?.name ?? ""); setDescription(bot?.description ?? "") }+ const friends = [...DEMO_PROFILES.values()].filter((profile) => profile.id !== "demo-gus" && !removedFriends.has(profile.id)).map((profile) => ({ id: profile.id, userId: profile.id, name: profile.name!, discriminator: profile.discriminator ?? "", avatar: profile.avatar!, avatarVersion: 0, status: profile.presence ?? "online" as const, sub: profile.kind === "bot" ? `Agent · ${profile.ownerHandle}` : profile.aboutMe ?? "" }))+ const openPanel = (title: string) => () => setPanel(title)+ const controller: BotListController = {+ bots, machines, profilesByUserId: DEMO_PROFILES, groups: machines.map((machine) => ({ machineId: machine.id, machine, bots: bots.filter((bot) => bot.machineId === machine.id) })),+ planSummary: { isFounder: true, plan: { id: "founder", displayName: "Founder" }, limit: 10, ownedCount: bots.length, activeCount: bots.filter((bot) => bot.isActive).length },+ collapsedMachines, setCollapsedMachines, groupRefs, highlightId: null,+ viewPlan: openPanel("Founder plan"), billingOpen: false, setBillingOpen: () => {}, canShowLimit: false, isCreateDisabled: false, pendingActiveBotIds: new Set(),+ setBotActive: async (bot, active) => { setBots((rows) => rows.map((row) => row.id === bot.id ? { ...row, isActive: active } : row)) },+ initialError: false, retryInitialLoad: () => {}, retryingInitialLoad: false, isLoading: false, machinesLoading: false, machinesUnknown: false,+ createOpen: false, setCreateOpen: () => {}, editingBot, setEditingBot: edit, editOpen: false, setEditOpen: () => setPanel("Edit bot"),+ activityBot: null, activityOpen: false, activityGeneration: 0, openActivity: (bot) => { edit(bot); setPanel("Activity") }, onActivityOpenChange: () => {}, onActivityOpenChangeComplete: () => {},+ bugReportBot: null, setBugReportBot: () => {}, bugReportOpen: false, setBugReportOpen: () => setPanel("Report a problem"),+ confirmDelete: null, setConfirmDelete: (bot) => { edit(bot); setPanel("Delete bot") }, confirmReset: null, setConfirmReset: (bot) => { edit(bot); setPanel("Reset session") },+ confirmResetMachine: null, setConfirmResetMachine: () => setPanel("Reset sessions"), helpOpen: false, setHelpOpen: () => setPanel("How your agent works"), guidedActive: false, guidedCreateLabel: "Create bot", guidedAvatarSeed: undefined,+ chatWithBot: async (bot) => onDm(bot.id), onBotCreated: async () => {}, openGuidedCreate: () => { edit(null); setPanel("Create bot") }, openMachines: onMachines,+ bringMachineOnline: () => setMachines((rows) => rows.map((row) => ({ ...row, status: "online" }))), machineName: () => MACHINE.displayName,+ deleteConfirmedBot: async () => {}, resetConfirmedBot: async () => {}, resetConfirmedMachine: async () => {},+ }+ const saveBot = () => {+ if (!name.trim()) return+ const id = editingBot?.id ?? `demo-bot-${crypto.randomUUID()}`+ const bot = { ...BOTS[0], ...editingBot, id, name: name.trim(), description }+ setBots((rows) => editingBot ? rows.map((row) => row.id === id ? bot : row) : [...rows, bot]); setPanel(null)+ }+ return <>+ {page === "friends" ? <FriendsPage friends={friends} pending={[]} blocked={[]} onBack={onBack} onOpenProfile={onOpenProfile} onDm={onDm}+ activeTab={friendTab} onActiveTabChange={setFriendTab} onRemoveFriend={(id) => setRemovedFriends((rows) => new Set([...rows, id]))}+ onBlock={(id) => setRemovedFriends((rows) => new Set([...rows, id]))} onSendRequest={({ userId }) => { setRemovedFriends((rows) => { const next = new Set(rows); next.delete(userId); return next }); setFriendTab("all") }} />+ : page === "bots" ? renderBotListView({ onBack }, controller, emptyOverlays)+ : <div className="flex min-h-0 flex-1 flex-col">+ <header className="flex h-12 shrink-0 items-center gap-2 border-b border-border/40 px-6 sm:hidden"><Button variant="ghost" size="icon-sm" onClick={onBack} aria-label="Back"><ChevronLeft className="size-5" /></Button><span className="text-base font-semibold">Machines</span></header>+ <div className="flex flex-1 flex-col gap-6 overflow-y-auto p-6 thin-scrollbar">+ <header className="flex flex-col items-stretch gap-4 sm:flex-row sm:items-center sm:justify-between"><div className="flex min-w-0 flex-col gap-1"><h1 className="text-xl font-medium">Machines</h1><p className="text-sm text-muted-foreground">Your computers running the alook daemon.</p></div><Button onClick={openPanel("Connect a machine")}><Plus className="size-4" />Connect machine</Button></header>+ <div className="flex flex-col gap-3">{machines.map((machine) => <MachineCard key={machine.id} machine={machine} onDelete={() => setMachines((rows) => rows.filter((row) => row.id !== machine.id))} onReconnect={() => setMachines((rows) => rows.map((row) => ({ ...row, status: "online" })))} />)}</div>+ </div>+ </div>}+ <Sheet open={panel !== null} onOpenChange={(open) => { if (!open) setPanel(null) }}>+ <SheetContent><SheetHeader><SheetTitle>{panel}</SheetTitle></SheetHeader>+ <div className="flex flex-col gap-4 p-6">+ {panel === "Create bot" || panel === "Edit bot" ? <><label className="flex flex-col gap-2 text-sm">Name<Input value={name} onChange={(event) => setName(event.target.value)} /></label><label className="flex flex-col gap-2 text-sm">Description<Input value={description} onChange={(event) => setDescription(event.target.value)} /></label><p className="text-sm text-muted-foreground">Codex · {MACHINE.displayName}</p><Button onClick={saveBot}>Save</Button></>+ : panel === "Delete bot" ? <><p>Delete {editingBot?.name} from My Bots?</p><Button variant="destructive" onClick={() => { setBots((rows) => rows.filter((row) => row.id !== editingBot?.id)); setPanel(null) }}>Delete</Button></>+ : panel === "Activity" ? <><p className="text-sm text-muted-foreground">{editingBot?.name} · Today</p><p>Reviewed the shared design in Alook / design-review.</p><p>Answered Shelly’s question in Side Projects / coffee-map.</p><Button onClick={() => { if (editingBot) onDm(editingBot.id); setPanel(null) }}>Open conversation</Button></>+ : panel === "Connect a machine" ? <><p>Connect your computer to run agents with your local tools and projects.</p><Button onClick={() => { setMachines([MACHINE]); setPanel(null) }}>Connect MacBook Pro</Button></>+ : panel?.startsWith("Reset") ? <><p>The next message starts a fresh session. Your conversations stay in the room.</p><Button onClick={() => setPanel(null)}>Reset session</Button></>+ : <><p className="text-sm leading-relaxed">Your agents run on your computer. Invite them into a server so your friends can ask questions and work with them in the same conversation.</p><Button onClick={() => setPanel(null)}>Done</Button></>}+ </div>+ </SheetContent>+ </Sheet>+ </>+}diff --git a/src/web/src/lib/observability/coverage.ts b/src/web/src/lib/observability/coverage.tsindex 11542efa2..0ca561ccd 100644--- a/src/web/src/lib/observability/coverage.ts+++ b/src/web/src/lib/observability/coverage.ts@@ -15,6 +15,7 @@ export const pageRoutes = ["/c/messages/[messageId]","/c/onboarding-preview","/contact",+ "/demo","/device","/guides","/landing-legacy",