Skip to content

Components

NotificationCenter: the bell and its list

NotificationCenter is the bell in the top bar of an app built on Meadowstack, beside the assistant, with the count of what is unread. Its list groups notifications by day, lets a notification carry actions that run where they are, and archives with an Undo.

By Bohuslav PoláčekChecked

What a page built ahead of time can show: the top of Stonebridge's app with Robert Brooks's bell, three of six unread. The list opens in a popover that only a running page draws; the table below holds what it lists.

What it is for

Every app built on Meadowstack has one bell, in the top bar beside the assistant's button. The count on it is what is unread; the list behind it is what changed for this person since they last looked: a valuation returned, a snag reported from a phone, a certificate about to expire.

The preview is the part that a page built ahead of time can render: the top of the Stonebridge example with Robert Brooks's bell and his three unread notifications. In the running app a click opens the list in a popover. It has a header with Mark all read, a switch between All and Unread with its count, and groups for Today, Yesterday and Earlier. Each notification shows the person's avatar or the system's mark, a dot while unread, the title, two lines of the body and the time. A notification may carry its own actions: Request the new one runs in place and the button turns into Requested by e-mail. Archiving folds the row away and offers Undo.

The manifest keeps it to one place: once in AppShell's top bar. A warning on a page is a Notice, a passing confirmation a toast.

The rules and where they live

  • The bell sits in the top bar beside the assistant; the account at the foot of the sidebar. The root AGENTS.md, under navigation in Apps do work, and people never get lost.
  • A bell with actions in the notification itself, grouped Today, Yesterday, Earlier, archive with Undo. docs/patterns.md, Shell and navigation; you can open it in any company of the demo.
  • Roles change the data, the bell included. AGENTS.md, Permissions and audit: an external role (client, customer, guest) never sees internal costs, margins or other clients' records, "in widgets, feeds, the bell, palette results and assistant answers as on the pages". The demo checks every item's permits before it reaches the bell, as the code below shows.
  • One action goes the whole way and ends with a notification. AGENTS.md: a proposal with its impact, a confirm, the change through the module's api as the person, then the notification; the recipe is docs/recipes/notifications-and-assistant.md.
  • Colour carries information only. AGENTS.md: unread is a dot, a person keeps their avatar's hue, and no notification is painted red to be noticed.

What AI coding tools write instead

The manifest names a hand-built bell dropdown. The usual one shows a red badge on every page, lists every event of the system to everyone, and sends people away to act on anything: a click on "Insurance expires" opens the subcontractor's page, where the person has to find the button again. Read state is per item only, delete has no way back, and the list grows until it is a second inbox.

The bigger risk is the permission gap. A feed built from the database without asking can shows a client the note about another client's invoice, because the bell was never part of the permission design. In Meadowstack each item says what it requires, the bell filters by the person's permissions as the pages do, and NotificationCenter gives the list its fixed shape: groups by day, at most a couple of actions in place, archive with Undo.

How to use it

Pass it once to AppShell as notifications.

Its entry in the manifest

The component's rules as the kit's manifest states them, the same entry an AI coding tool reads.Read from the kit's component manifest when the site was built (126 components, packages/kit/src/components.json); the same entry answers an AI coding tool through the kit's MCP server.

What the bell lists in the demo

Robert Brooks's bell at Stonebridge on the morning of 2 December 2026, from apps/demo/src/shared/extras/stonebridge.ts. Each item names the permissions it needs, and a person without them never gets it.

How the demo feeds it

apps/demo/src/workspace/extras-parts.tsx
/** The bell: only what the person may see (each item's permits), read and archived kept for the visit, an action runs as a request. */
export function WorkspaceNotifications({ extras, base }: { extras: CompanyExtras | undefined; base: string }) {
  const navigate = useNavigate();
  const [read, setRead] = useState<Record<string, boolean>>({});
  const [archived, setArchived] = useState<Record<string, boolean>>({});
  const [now] = useState(() => new Date());
  const can = useCan();

  // What the assistant's changes sent this visit comes first, then the morning's.
  const { company, person } = useWorkspace();
  const sent = useSentNotifications(company.slug);
  const items: NotificationItem[] = [...sent, ...(extras?.notifications ?? [])]
    .filter(
      (item) => !archived[item.id] && permitted(item.requires, can) && (!item.for || item.for.includes(person.id)),
    )
    .map((item) => ({
      id: item.id,
      title: item.title,
      body: item.body,
      time: ago(item.minutesAgo),
      unread: Boolean(item.unread) && !read[item.id],
      person: item.person,
      href: item.href ? `${base}/${item.href}` : undefined,
      actions: item.actions?.map((action) => ({
        label: action.label,
        doneLabel: action.doneLabel,
        primary: action.primary,
        onAction: () => request(() => undefined),
      })),
    }));

  return (
    <NotificationCenter
Only what the person may see reaches the bell: each item's permits are checked with can, read and archived are kept for the visit, and an action runs as a request.

Questions

Where does the notification bell go?

In the top bar, beside the assistant's button, once per app through the shell's notifications slot. On a phone it stays in the header beside the menu button.

Can a notification do something without leaving the page?

Yes. A notification can carry its own actions, such as Request the new one in the demo; it runs in place, and its button turns into the done label, Requested by e-mail.

Does everyone see the same notifications?

No. Each notification names the permissions it needs and is checked against the person before it reaches the bell, so a client or a guest never sees another client's records or internal costs there, just as on the pages.

What happens when someone archives one by mistake?

The row folds away and a toast offers Undo, which puts it back where it was.

Two ways

Build it yourself, or have it built

  • Build it yourself

    Build your app on the framework

    Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.

    One payment, lifetime updates

    Get the framework
  • Have it built

    Have us build your app

    Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.

    After launch, Care keeps it improving, from €99 a month.

    from €1,990

    Describe your app