Raft Design System

Decisions

Open questions

The places where the system has drawn more than one version and the choice is still open, with the current default for each, and the questions the product has settled.

In these places the same thing is drawn in more than one version, and the choice is still open. Until it is made, use the default. Once a version is chosen, the others are removed from the components, and the choice and its reason are written into the page that owns the rule. It becomes a decision record only when it is a major, cross-cutting choice.

WhereVersionsDefaultThe product ships
A confirmation's × (Dialog, AlertDialog)A × in the header as well as Cancel; Cancel onlyKeep the ×, as every confirmation example draws it (dialog/typed-delete, dialog/reset-agent, alert-dialog/confirm-action)Not surveyed
How long a dismissed new-version banner stays away (Feedback)Until the next release; for a time; for the sessionWhat the product shipsThe 24-hour banner beside the top bar's Update button goes away on the device for that release, and the button stays (components/errors/NewWebVersionBanner.tsx)
The color of Discard changes in an unsaved-changes prompt (Dialog)Orange (it interrupts); red (it can't be undone)Red, as in the raft-ui examplesOrange in the channel details (components/channel/ChannelOverflowMenu.tsx); red in the other four prompts (AgentProfileEditDialog.tsx, ActionCardFormSheet.tsx, AssistantInstructionsDialog.tsx, WeChatConnectDialog.tsx)
The component of an unsaved-changes prompt (Raft Chat)Add each one to Raft Chat's AlertDialog list; make them a size="sm" DialogThe list as it stands: only discarding edits to an agent's profile is an AlertDialogAll five are AlertDialogs
How old data is before a failed check says "may be out of date" (Freshness)One threshold; one per kind (state 30 seconds, lists 60, cards 5 minutes)60 seconds since the last check that succeeded, for everythingNot surveyed
Whether hosted pages (Artifacts, App pages) check again when they become visible (Freshness)Asked to, in the App developer guide; not askedNot asked: Raft checks the card and the frame around themNot surveyed

Settled by the product

These were open, and the web app (Raft's product code) now ships one version. The other versions are no longer described in the patterns.

WhereThe product shipsWhere in the web app
The top bar of a phone's top-level pagesOne 56px navigation row, the name (or on Home the workspace button) in it, no large title, no icon tile (Page structure)components/layout/Sidebar.tsx, components/task/TasksPanel.tsx, components/thread/ThreadsInbox.tsx
The top bar of a phone's pushed pagesWhite (paper), with a seam under it; the location tile stays a yellow stickercomponents/ui/PanelHeader.tsx on raft-ui PanelHeader
The server list on a phoneA popover anchored under the top bar, 8px from each side, opened from the server switcher on Home (Navigation)components/layout/Sidebar.tsx, components/ui/ServerSwitcherMenu.tsx
The desktop railIcons only, 48px plus the seam with a mouse and 56px plus the seam on a touch screen; names are in tooltips (Spacing)components/layout/LeftRail.tsx
TabsThe yellow sticker. The underline stays a variant of Tabscomponents/message/ChatPanel.tsx, components/agent/AgentDetailPanel.tsx
Tasks and files in a Raft Chat channelSide sections in columns right of the conversation panel, opened from Tasks and Files toggles in the channel header (Channel, The channel's side columns)components/message/ChatPanel.tsx, components/task/ChannelSideArea.tsx