Empty and error states

A view is never blank and never silent: empty offers an action, an error offers a retry.

Rules

A view is never blank and never silent. Empty says what will be here and offers the action that fills it; an error stays where it happened and offers a retry; a success is confirmed briefly.

StateShowsNever
EmptyAn icon or illustration, a descriptive title, and the action that fills itA blank area
ErrorAn inline message and a retry; on web, where the cause is a request, a short code under the message naming the request and its status (marks-500, auth-503), so a screenshot carries the causeA full-screen block for a recoverable error
SuccessA brief confirmation (a toast or a checkmark)Silence
PlatformEmptyError
WebEmptyState from @yroun/ui (icon, title, message, action; size="compact" for a section inside a busy surface)InlineError from @yroun/ui (message, detail from loadFailureCode, onRetry, retryLabel)
iOSAppEmptyStateAppInlineError
AndroidEmptyStateInlineError

Every label comes from the caller in the reader's language; the components carry no built-in English text.

An error message names what failed, never a verdict the failure did not produce. The state rule above keeps a failed load out of the empty state; this is that rule inside the sentence. "Could not load the review result" is right; "No review result" asserts a conclusion we never obtained, and on the page an author opens to learn why they were declined it would tell them they were never reviewed. Wherever a check's failure and its negative answer look alike, the message says which one happened: the split canon draws for credential checks reads identically for copy. The waste clause governs the rest of the sentence (AGENTS.md section 1: no copy without a purpose and a gain for its reader), so a remedy line appears only where no control carries it: hub.series.notes.error ends "Try again later." having no button, while hub.series.declined.loadFailed omits it beside its Retry. Once the remedy rides only on the control, the control names what it acts on: InlineError's retry button is described by its message (aria-describedby), so it reads "Retry, Could not load the review result" rather than "Retry, button" to someone moving by buttons or facing two errors on one page. The message is already announced on appearance, since the container is role="alert", but that does not reach a reader who arrives at the button later.

Toast placement is decided by viewport, not by habit. Under md a toast rises from the bottom center, where the thumb already is and where it hides no top bar. From md up it lands top-right, where the eye is after an action and where every desktop OS and mainstream app puts it; a bottom toast on a desktop viewport sits outside the reader's field of view. One component holds both (ToastProvider); a surface never repositions it.

A confirmation says where the thing went, and offers one way there. When an action puts something where the person cannot see it, the success toast names the result ("저장되었습니다") and carries one separate, focusable text action at the trailing edge ("보기") that opens the destination. Undoing a removal is the same shape: unmarking offers Undo, which runs the action inverted. A toast with an action stays about 6 seconds, pauses while hovered or focused (WCAG 2.2.1 Timing Adjustable), and is said aloud (Toasts are spoken, below). The confirmation lives in the one shared action, never per view, so every surface that saves gets it at once. Gate: hand-rolled-toast (frozen count, may only shrink). The success pill is toast-surface in both themes: its white label is 14.7:1 (light) and 14.9:1 (dark). The action is text, no fill, in the Ghost inverse button role: toast-action at 5.8:1, weight not opacity for hierarchy, the 44px target and a visible focus ring kept. The brand blue itself is 2.8:1 on the pill and fails, which is why the action is the lighter blue. Against the dark page the pill is 1.35:1; it is not a control, and its shadow and 14.9:1 text carry it.

PlatformCall
WebshowToast(message, 'success', { action: { label, onAction } }) from useToast in @yroun/ui
iOSAppToastCenter.shared.show(message, action: .init(label:run:)); a post mark calls MarkConfirmation.show(wasSaved:undo:). The clock holds while VoiceOver is on the button
AndroidtoastCenter.show(ToastEvent(..., actionRes, onAction or actionRoute, timeoutMs)); a post mark calls toastCenter.confirmMark(wasSaved) { undo }. The host lengthens the time for TalkBack

Toasts are spoken through two live regions the provider mounts before any toast exists, never through a role on the card. One is polite, one assertive (error and security); both are sr-only and atomic and carry aria-live only, no role, because an always-present status or alert would sit beside a page's own and an empty alert is a landmark with nothing in it. A toast clears its region and writes about 100 ms later, so the same message twice is said twice; a notification is said with its source first. Gate: toast-provider.view.test.tsx (regions before the first toast, no role on a card).

Every toast is toast-surface; a type reads from its icon, never from a fill. Error shows its icon in toast-danger, info in toast-action.

Notification toast: what a live event looks like

A live notification is a card on toast-surface: the domain icon, a source line, a two-line message, and one "View". The icon is the domain's own sidebar icon (YrounNavigationLinks), so a chat card and the Chat tab look alike; security uses a shield, an unknown kind a bell. The source is who or what it is about: the sender, the post's author, the schedule title, or "Yroun", "Yroun security", "Yroun support" for our own. Colour appears only in the icon, and only where attention is owed: toast-warn for credits running out and an expired plan, toast-danger for security. The card never takes a click on its body, so dismissing can never navigate; "View" is a real link (a modified click opens a new tab) and the card leaves by time, by a swipe, or by its close button.

KindEventsSourceMessageStays
Chatchat.room.new_dm mate.chat chat.room.joinsenderown copy6 s
Postpost.newauthorthe post's first lines6 s; from one hub within 10 s they fold into one card, "새 글 N개", naming no author
Postpost.reply post.mentionauthorown copy6 s
Hubhub.*from the eventown copy6 s
Calendarschedule.reminderschedule titleown copy6 s
Marksmark.stock.movestockown copy6 s
Credits, planbilling.credits.* plan.*Yrounown copy; warn icon when low, used up or expired10 s when used up or expired
Supportsupport.replyYroun supportown copy6 s
Securitysecurity.*Yroun securityown copy; danger iconuntil closed, read as alert
Unknownanything elsethe server titlethe server body6 s

Every kind but security is said politely; security interrupts. At most three show at once; a newcomer pushes out the oldest card that is not waiting to be closed, so a burst never evicts a security card (pickToastToEvict). On a phone the stack sits above the tab bar, the Assistant FAB and the consent banner (--toast-bottom, the larger of 2.5rem, --fab-clearance and --consent-clearance). The policy is one pure function, resolveNotificationToast (@yroun/util, L1 matrix); the card is showNotification in ToastProvider, specimen on the design site. The source line is toast-source (zinc-300, 9.9:1 or more), the icon tile toast-icon. Native follows the same table: one card shape, icon tone only, the same durations.

Live specimens

Empty stateAn icon, a descriptive title and the action that fills it.

No hubs yet

A hub collects your pages, posts and widgets in one place.

Inline errorThe message and a retry, where it failed, never a full-screen block.
Success toastBottom center on phones, top right from md. Never silent.
Notification toastOne dark card for every kind; the icon says what it is about, and only warn and danger colour it. View is the one action.