Skip to content
PreviewOpen the bell to filter by project or read a notification.
Crew
import { AppBell } from "@arcadia/ui";

function Panel({ kind = "lines", count = LIT }: { kind?: PanelSampleKind; count?: BellCount | null }) {
  return <Bar bell={<AppBell count={count} products={standIn(kind)} />} />;
}
PreviewEach project puts decisions before updates.

  • Approve the release 2m, Act Scout needs approval for the 18:00 deploy.
  • Review launch copy 14m, Crew Hana tagged you in the release draft.
  • Review pricing copy 1h, Crew Leo left two notes on the plans.
    • Merged the upload retries 6h Deployed to production, with 14 new tests
    • Wrote the release notes for 2.4 8h In docs/releases, ready to publish
    • Fixed the flaky export test 9h It timed out on slow machines
  • Choose an export format 8m, Act Scout needs a format for usage exports.
  • Usage export is ready Mon, Crew The first export is ready in Billing.
    • Billing v2 3h Begun by Leo Marsh
    • Usage export 7h Reached by Hana Okafor
<Inbox sample="full" />

TSX
import { AppBar, AppBell, AppSwitcher } from "@arcadia/ui";

<AppBar product="Crew" home="/" switcher={<AppSwitcher current="Crew" />} bell={<AppBell />} session={session} />

Use AppBell for Crew notifications in every product.

TSX
import { AppBell } from "@arcadia/ui";

<AppBell count={{ unread, waiting }} />

Crew's /panel page sends size and count updates to the bell.

Without a Crew session, the bell links to Crew's Inbox.

Examples

Bell counts

A waiting mark takes precedence when an answer is due.

Preview
Crew
Crew
Crew
import { AppBell } from "@arcadia/ui";

<div {...sx("notifications-bars", page.bars)}>
  <Bar bell={<AppBell count={{ unread: 0, waiting: 0 }} products={standIn("lines")} />} />
  <Bar bell={<AppBell count={{ unread: 3, waiting: 1 }} products={standIn("lines")} />} />
  <Bar bell={<AppBell count={{ unread: 0, waiting: 2 }} products={standIn("lines")} />} />
  <Bar bell={<AppBell count={{ unread: 120, waiting: 4 }} products={standIn("lines")} />} />
</div>

The bell and Inbox count the same waiting and unread rows.

Inbox counts

Use BellCountMark to match the bell in the sidebar.

Preview
  • Inbox
  • Inbox
  • Inbox
  • Inbox
import { BellCountMark, ListRow, ListRows } from "@arcadia/ui";

function Counts() {
  const counts: BellCount[] = [{ unread: 0, waiting: 0 }, { unread: 3, waiting: 0 }, { unread: 0, waiting: 2 }, { unread: 120, waiting: 4 }];
  return (
    <div {...sx("notifications-count", page.count)}>
      <ListRows>
        <ul role="list" {...sx("notifications-rows", page.rows)}>
          {counts.map((count) => (
            <li key={count.unread + ":" + count.waiting}><ListRow label="Inbox" interactive={false} meta={<BellCountMark count={count} />} /></li>
          ))}
        </ul>
      </ListRows>
    </div>
  );
}
PreviewCounts above nine read 9+ in the row.
  • Inbox
  • Inbox
  • Inbox
  • Inbox
import { BellCountMark, ListRow, ListRows } from "@arcadia/ui";

function CappedCounts() {
  const counts: BellCount[] = [{ unread: 4, waiting: 0 }, { unread: 9, waiting: 0 }, { unread: 10, waiting: 0 }, { unread: 27, waiting: 0 }];
  return (
    <div {...sx("notifications-count", page.count)}>
      <ListRows>
        <ul role="list" {...sx("notifications-rows", page.rows)}>
          {counts.map((count) => (
            <li key={count.unread}><ListRow label="Inbox" interactive={false} meta={<BellCountMark count={count} max={9} />} /></li>
          ))}
        </ul>
      </ListRows>
    </div>
  );
}

Set max for display only. Accessible text keeps the full count.

Loading

Show loading after 200ms. After ten seconds, offer the Inbox link.

Preview
Crew

Nothing new

The Inbox link stays available when there are no updates.

Preview

Signed out

Open Crew's Inbox directly when there is no session.

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

<Bar bell={<AppBell count={null} products={APPS} />} />

Notification row

Keep the actor, update, time and place in reading order.

Preview

  • Review launch copy 14m, Crew Hana tagged you in the release draft.
<Inbox sample="one" />

Quiet inbox

Hide sections with no updates.

Preview

  • Review launch copy 14m, Crew Hana tagged you in the release draft.
    • Merged the upload retries 6h Deployed to production, with 14 new tests
    • Wrote the release notes for 2.4 8h In docs/releases, ready to publish
    • Fixed the flaky export test 9h It timed out on slow machines
<Inbox sample="quiet" />

Nothing needs you

Preview

Nothing needs you

import { EmptyState } from "@arcadia/ui";

<EmptyState align="center" title="Nothing needs you" />

Narrow inbox

Choices wrap below the request without squeezing its title.

Preview

  • Approve the release 2m, Act Scout needs approval for the 18:00 deploy.
  • Review launch copy 14m, Crew Hana tagged you in the release draft.
  • Review pricing copy 1h, Crew Leo left two notes on the plans.
    • Merged the upload retries 6h Deployed to production, with 14 new tests
    • Wrote the release notes for 2.4 8h In docs/releases, ready to publish
    • Fixed the flaky export test 9h It timed out on slow machines
  • Choose an export format 8m, Act Scout needs a format for usage exports.
  • Usage export is ready Mon, Crew The first export is ready in Billing.
    • Billing v2 3h Begun by Leo Marsh
    • Usage export 7h Reached by Hana Okafor
<div {...sx("notifications-phone", page.phone)}><View /></div>

Settings

Set notification levels, manage muted items and choose which agents can reach you.

Preview
Needs you A question or a yes that something waits for; an invitation
From people A person wrote to you, mentioned you or gave you a card
From agents An agent wrote to you or mentioned you; your own agents finished or stopped
Milestones A step of a team's roadmap was begun or reached
Arcadia Announcements and trouble on what you use
Security A new sign-in, or a change to how you sign in
Always on

Mute settings

Launch week Muted chat in Crew
Nova, for Leo Marsh Muted

Agents that can read

import { useState } from "react";
import {
  Avatar, ActorName, Button, SettingsGroup, SettingsPage, SettingsRow,
  StatusDot,
} from "@arcadia/ui";

function Settings() {
  const [chatMuted, setChatMuted] = useState(true);
  const [agentMuted, setAgentMuted] = useState(true);
  const unmute = (what: string, muted: boolean, setMuted: (value: boolean) => void) => (
    <Button size="sm" variant="ghost" aria-label={(muted ? "Unmute " : "Mute ") + what} onClick={() => setMuted(!muted)}>
      {muted ? "Unmute" : "Mute"}
    </Button>
  );
  return (
    <SettingsPage>
      <SettingsGroup>
        {CATEGORIES.map((c) => <Category key={c.name} {...c} />)}
        <SettingsRow label="Security" meta="A new sign-in, or a change to how you sign in" metaWraps control={<StatusDot tone="success">Always on</StatusDot>} />
      </SettingsGroup>
      <SettingsGroup label="Mute settings">
        <SettingsRow label="Launch week" meta={chatMuted ? "Muted chat in Crew" : "Chat in Crew"} control={unmute("Launch week", chatMuted, setChatMuted)} />
        <SettingsRow label={<ActorName actor={NOVA} />} meta={agentMuted ? "Muted" : undefined} control={unmute("Nova", agentMuted, setAgentMuted)} />
      </SettingsGroup>
      <SettingsGroup label="Agents that can read">
        <SettingsRow leading={<Avatar {...JARVIS} alone aria-hidden size={20} />} label={<ActorName actor={JARVIS} />} value="Read and settle" href={HERE} />
      </SettingsGroup>
    </SettingsPage>
  );
}

Security alerts stay on.

Nothing muted

Preview

Muted

Nothing is muted

import { EmptyState, SettingsGroup, SettingsPage } from "@arcadia/ui";

<SettingsPage>
  <SettingsGroup label="Muted" flush>
    <EmptyState title="Nothing is muted" rootStyle={page.none} />
  </SettingsGroup>
</SettingsPage>

The bell is one button. It announces the unread and waiting counts and whether its panel is open.

The Notifications dialog reports busy while loading. Escape closes it and returns focus to the bell.

Each list is named by its heading. The bell opens details in place. Inbox folds announce whether they are open.

EnterSpace
Opens the bell's panel; opens a line, or a fold
Left arrowRight arrow
Moves between projects or delivery options
Escape
Returns from a detail or closes the open menu or panel

AppBell

count
BellCount | null
Crew's own two numbers, or an app's off Arcadia's site: given, the bell asks nothing; null until it knows.
max
number
Default: 99
The figure's cap: past it the bell's figure reads max+, so 10 past 9 is 9+, while its name and its panel keep every count.
products
readonly AppProduct[]
Only where the addresses differ (a developer's machine), as AppSwitcher takes them.
open
boolean
Whether its panel is open (controlled).
defaultOpen
boolean
Default: false
Opens with its panel open, uncontrolled.
onOpenChange
(open: boolean) => void
Called when its panel opens or closes.
side
"top" | "bottom"
Default: "bottom"
Which side of the bell its panel opens on: under it, as in the bar (the default), or over it, where the bell stands at the sidebar's foot and the window below it has no room. The panel never crosses to the other side on its own: the side given is the side it keeps, held inside the window and scrolling there.
compact
boolean
Default: false
The bell at a rail: its count beside the glyph, at the caption size, in a control as wide as the rail, where the bar figure and its light have no room. The light gives way to the figure there and the name keeps it; the glyph is never covered and every count to the cap and past it is whole.

countrequired
BellCount | null
Crew's two numbers; null before it knows, or none: nothing is drawn.
max
number
Default: 99
The figure's cap: past it the figure reads max+, so 10 past 9 is 9+ and 9 itself is 9. The words a reader hears keep every count.
label
string | null
What a reader hears. Default from the two numbers ("3 unread, 1 waits for your answer"); null where the control around it says the count.
size
"caption" | "body"
Default: "caption"
enter
boolean
Pops in once on mount. Pass it only for a count that arrives after the page has loaded.
light
boolean
Default: true
The light before the figure. Without it, the figure alone stands, where a corner has room for one and not both.
rootStyle
RootStyle
Typed StyleX override: where it sits.

Rest props go to <span> props.