Patterns

Notifications

Four ways to tell someone something, from a toast that confirms and leaves to a dialog that stops everything. Nacre picks the quietest one that still gets read.

View as Markdown

Pick the quietest signal that works

Start at the top of this list and move down only when the message needs more attention than the one above can give.

  • SignalBadge
    Use it for
    A count or a state on something already on screen: 3 unread, At risk.
    How long it stays
    As long as it is true
    Interrupts
    No
  • SignalToast
    Use it for
    Confirming what the person just did, with Undo: File archived.
    How long it stays
    5 s, errors until dismissed
    Interrupts
    No
  • SignalAlert
    Use it for
    A problem or news about this page that needs action: Calendar sync paused.
    How long it stays
    Until fixed or dismissed
    Interrupts
    No
  • SignalModal
    Use it for
    A decision that must happen before anything else: Delete this project?
    How long it stays
    Until answered
    Interrupts
    Yes

Toasts confirm and undo

A toast answers the action that caused it, so it shows near where attention already is and leaves on its own. Put Undo in it instead of asking Are you sure before a reversible action.

Errors stay until dismissed, because a failure read too late is a failure missed. Only one Toaster is mounted per app; toasts asked for while a dialog is open wait until it closes.

  • DoUse the past tense of what happened: Q4 roadmap.pdf archived.
  • AvoidSay Success! or anything that needs the context to make sense.
Archive with undoArchive a file, then press Undo in the toast.
  • Q4 roadmap.pdfAna Ribeiro, 2.4 MB
  • Onboarding brief.docxBen Okafor, 180 KB
  • Billing v2 notes.mdChen Wei, 12 KB

    Alerts stay until fixed

    An Alert lives in the page, above the thing it is about. It names the problem and its consequence, and carries the fix as its action. When the fix works, it becomes a short success message that can be dismissed.

    Calendar syncPress Reconnect. Dismiss the info alert and bring it back.

    Calendar sync paused

    Nacre has not reached Google Calendar since 09:40. New events will not show until it reconnects.

    Ben Okafor shared Onboarding brief with you

    You can comment. Ben gets a note when you do.

    The inbox keeps the rest

    Mentions, assignments and comments do not need to interrupt. They collect in the inbox, a badge on its icon says how many are new, and opening one marks it read.

    InboxOpen a notification, or mark all as read.

    Inbox

    3 unread

    Built with