Skip to content
PreviewReview what needs you across teams from one inbox.
import { AppBell, AppShell, AppSidebar } from "@arcadia/ui";

function Screen({ container }: { container: HTMLElement }) {
  const groups = useRail(10);
  const nav = usePreviewSidebar(container);
  const sidebar = <AppSidebar aria-label="Crew" groups={groups} />;
  return (
    <>
      <AppShell inert={nav.shown} barEnd={nav.toggle}
        product={{ name: "Crew", href: HERE }} apps={APPS}
        bell={<AppBell count={BELL} />}
        session={<Person />}
        sidebar={!nav.compact && sidebar}
        panel={{ centred: "page" }}
        rootStyle={page.frame}
      >
        <View />
      </AppShell>
      {nav.sheet(sidebar)}
    </>
  );
}

The rail

Teams with pending asks come first. Inbox matches the bell count.

Ten teams

Search appears after seven teams. New team stays last.

Preview
import { AppSidebar } from "@arcadia/ui";

function Rail10() {
  const groups = useRail(10);
  return <div {...sx("general-rail", page.rail, page.railTall)}><AppSidebar aria-label="Crew" groups={groups} /></div>;
}

One team

Expand a team to reach its boards and chats.

Preview
import { AppSidebar } from "@arcadia/ui";

<div {...sx("general-rail", page.rail)}>
  <AppSidebar aria-label="Crew" groups={[
    inboxGroup(BELL), messagesGroup(false, open),
    { key: "teams", label: "Teams", items: oneTeam },
    settingsGroup,
  ]} />
</div>

Before setup

Inbox, Messages and settings stay available before setup.

Preview
import { AppSidebar } from "@arcadia/ui";

<div {...sx("general-rail", page.rail)}><AppSidebar aria-label="Crew" groups={noneGroups} /></div>

Reach

Choose who can send you an ask.

Preview

Reach

Take requests People you share a team with, and your contacts, can put asks to you

This applies to you on every device.

import { useState } from "react";
import { SettingsGroup, SettingsPage, SettingsRow, Switch } from "@arcadia/ui";

function Reach() {
  const [on, setOn] = useState(true);
  return (
    <div {...sx("general-settings", page.settings)}>
      <SettingsPage>
        <SettingsGroup label="Reach" footnote="This applies to you on every device.">
          <SettingsRow
            label="Take requests" meta="People you share a team with, and your contacts, can put asks to you" metaWraps
            control={<Switch hideLabel label="Take requests" checked={on} onCheckedChange={setOn} />}
          />
        </SettingsGroup>
      </SettingsPage>
    </div>
  );
}

The column

Pending asks run oldest first and fold by team after seven.

Needs you

An ask keeps the question, fallback and answers together.

PreviewAnswer here or follow a link to the source.

  • Otherwise The nightly build runs on the slow runner

  • Otherwise Scout marks it unpaid and tells the finance team

  • Otherwise Atlas waits for review and ships at 18:00

  • Otherwise Hana keeps the monthly toggle

  • Otherwise The notes stay in docs/releases

  • On hold

    Otherwise The release waits for the next window

import { useId } from "react";
import {
  ActorName, ArcadiaMark, ListRows, Collapsible, CollapsibleHeader,
  CollapsiblePanel, RowSectionLabel,
} from "@arcadia/ui";

function NeedsYou() {
  const id = useId();
  return (
    <section {...sx("general-section", page.section)} aria-labelledby={id}>
      <RowSectionLabel id={id}>Needs you</RowSectionLabel>
      <Collapsible variant="section">
        <CollapsibleHeader action="Launch week" figure={3} />
        <CollapsiblePanel>
        <ListRows><ul role="list" {...sx("general-rows", page.rows)}>
          <li><AskRow actor={QUILL} when="Yesterday" question="Connect the staging runner."
            ask={{ kind: "task", offers: ["Show me where it is"], otherwise: "The nightly build runs on the slow runner" }} /></li>
          <li><AskRow actor={SCOUT} when="18m" question="The invoice for the design retainer is due. Did you pay it?"
            ask={{ kind: "task", offers: ["Open the payment page for me"], otherwise: "Scout marks it unpaid and tells the finance team" }} /></li>
          <li><AskRow actor={ATLAS} when="2m" question="Approve the release"
            ask={{ kind: "choice", choices: ["Ship", "Hold"], otherwise: "Atlas waits for review and ships at 18:00" }} /></li>
        </ul></ListRows>
        </CollapsiblePanel>
      </Collapsible>
      <Collapsible variant="section" later>
        <CollapsibleHeader action="Platform" figure={3} />
        <CollapsiblePanel>
        <ListRows><ul role="list" {...sx("general-rows", page.rows)}>
          <li><AskRow actor={HANA} when="6h" question="Do the pricing page plans keep their monthly toggle?"
            ask={{ kind: "choice", choices: ["Keep monthly", "Yearly only"], otherwise: "Hana keeps the monthly toggle" }} /></li>
          <li><AskRow actor={LEO} when="14m" question="Let Scout publish the release notes to the public site?"
            ask={{ kind: "approval", otherwise: "The notes stay in docs/releases" }} /></li>
          <li><AskRow actor={ATLAS} when="Yesterday" question="Sign the release form before Thursday."
            ask={{ kind: "task", state: "held", otherwise: "The release waits for the next window" }} /></li>
        </ul></ListRows>
        </CollapsiblePanel>
      </Collapsible>
      <Collapsible variant="section" later>
        <CollapsibleHeader action="Direct" figure={2} />
        <CollapsiblePanel>
        <ListRows><ul role="list" {...sx("general-rows", page.rows)}>
          <li><SystemAskRow source="Arcadia" when="2h" mark={<ArcadiaMark />} question="Let Arcadia share your usage with the team?"
            ask={{ kind: "approval", answeredIn: "source", otherwise: "Nothing is shared" }} /></li>
          <li><SystemAskRow source={<><ActorName actor={PRIYA} /> in Direct</>} when="5m" mark={picture(PRIYA)} question="Sign in to the team vault with Keep."
            ask={{ kind: "approval", answeredIn: "device", device: "Ada's MacBook Pro", otherwise: "The grant stays closed" }} /></li>
        </ul></ListRows>
        </CollapsiblePanel>
      </Collapsible>
    </section>
  );
}

Nothing needs you

Preview
import { AppBell, AppShell, EmptyState } from "@arcadia/ui";

function Alone() {
  const groups = useRail(1, null);
  return (
    <AppShell
      product={{ name: "Crew", href: HERE }} apps={APPS}
      bell={<AppBell count={{ unread: 0, waiting: 0 }} />}
      session={<Person />}
      sidebar={{ "aria-label": "Crew", groups }}
      panel={{ fill: true }}
      rootStyle={page.frame}
    >
      <EmptyState align="center" title="Nothing needs you" />
    </AppShell>
  );
}

No agent yet

Connect an agent to start receiving asks.

Preview
import { AppBell, AppShell, Button, EmptyState } from "@arcadia/ui";

<AppShell
  product={{ name: "Crew", href: HERE }} apps={APPS}
  bell={<AppBell count={{ unread: 0, waiting: 0 }} />}
  session={<Person />}
  sidebar={{ "aria-label": "Crew", groups: noneGroups }}
  panel={{ fill: true }}
  rootStyle={page.frame}
>
  <EmptyState
    align="center" title="An agent acts for you"
    description="Connect one from Act, and its asks stand under Needs you."
    actions={<Button variant="primary" render={<a href={HERE} />}>Connect an agent</Button>}
  />
</AppShell>

Narrow inbox

Open the rail from the bar. Answers sit below each question.

Preview
import { AppBell, AppShell, AppSidebar } from "@arcadia/ui";

function Screen({ container }: { container: HTMLElement }) {
  const groups = useRail(10);
  const nav = usePreviewSidebar(container);
  const sidebar = <AppSidebar aria-label="Crew" groups={groups} />;
  return (
    <>
      <AppShell inert={nav.shown} barEnd={nav.toggle}
        product={{ name: "Crew", href: HERE }} apps={APPS}
        bell={<AppBell count={BELL} />}
        session={<Person />}
        sidebar={!nav.compact && sidebar}
        panel={{ centred: "page" }}
        rootStyle={page.frame}
      >
        <View />
      </AppShell>
      {nav.sheet(sidebar)}
    </>
  );
}

The rail is a navigation landmark. The Inbox row announces unread and waiting counts. Each content list is named by its heading.