Blob: references/product-and-interaction.md
Product and interaction
Begin with the person, their task, and the decision they need to make. Capability, information density, feedback, and visual treatment should help them complete that task. A quiet interface can still support substantial work; a small interface can still leave its most important operation confusing.
SlugSurvival grew out of difficulty enrolling in classes at UC Santa Cruz. It helped students plan courses, inspect how often courses had been offered, and learn when places opened. Retaining loaded course data for offline use served another part of the same task: planning should remain useful when connectivity disappears. Its minimal presentation accompanied a substantial set of capabilities.
RMC rented Minecraft servers for intermittent play. Its promise of paying only while using a server made Start/Stop controls and visible usage central to the product. Deletion also needed an explanation of both data removal and the final bill still to come. These controls mattered because they let a player manage the consequences of the service's billing model.
Make intent, explanation, and effect agree
In bland, a collaborative document workspace, the sidebar arranges pages in a hierarchy. A page can move within its current sibling list or become a child of another page. Work on the tree began with excessive indentation and chevron spacing, then exposed a harder problem: a drop between a parent and its first child could refer to two different lists. A preview that said “Move beside Subpage” could conceal a change of parent. Colored guidance, animation, and revised target geometry did not make that structural choice predictable.
The accepted Move action let the person select a destination page and then choose Before, Inside, or After: a sibling on either side of the target, or a child inside it. Quick Move Up/Down and Indent/Outdent actions covered common changes without reopening the full chooser. The implementation computed a move once and used that result for execution, whether the action was enabled, and the explanation when it was unavailable:
onClick={(e) => runQuickMove(e, moveUp)}
disabled={!isActionEnabled(rowAffordance.movePage) || !moveUp.ok}
title={moveDisabledReason(moveUp)}A larger menu made the operation easier to understand because it exposed the structural choice. This did not make dragging unsuitable everywhere: moving blocks inside a document remained useful in the same product. The difficulty here was predicting which ancestry a position in the page tree represented.
When feedback is getting increasingly elaborate, revisit the operation's model. A preview, label, and command that disagree usually need a shared semantic decision before more polish.
Show the state that changes the user's next action
Ccccocc provides browser terminals whose shells run in remote containers. A visible tab can outlive the connection or container behind it, so waiting for a container needs feedback, and reconnecting needs a more precise outcome than “Connected.” Resuming the existing pseudo-terminal preserves the shell's state; receiving a fresh shell after a container restart can mean losing that state and unpersisted files. The interface distinguished those outcomes because they change what the person can safely continue doing.
Composer combines live audio and video inputs into scenes for broadcast. Its media engine can be running while no output is being published. An operator preparing a scene therefore needs to distinguish a working engine, a prepared scene, and the scene actually on air. “Running · not publishing” conveys an operational fact; “revision 4” exposes internal bookkeeping without necessarily helping the operator decide what to do.
G14Manager, a Windows utility for ASUS Zephyrus G14 laptops, made a smaller improvement to keyboard-backlight controls. After a successful change, its on-screen notification included the selected brightness level instead of merely saying “Up” or “Down.” The resulting level helps the person decide whether to press the shortcut again.
Expose consequences at the user's level. Use implementation details when they help diagnose or choose something, and keep ordinary flows focused on the operation.
Preserve the capability behind an example
Composer's demonstration arranged four incoming video feeds in one output and included text labels. The agent interpreted the labels as properties of individual video tiles. Rachel corrected it:
per-tile label, no, freeform label, as in you can put anything anywhere
The demonstration exercised arbitrary text placement in the composition. A label belonged to the scene and could be positioned independently of a video input. Making it a field on each tile would have prevented text that belonged elsewhere or existed without a tile. The example showed one arrangement the product should support; it did not define the limits of the composition model.
Ask what role an example plays. It may specify an acceptance case, illustrate a relationship, or impose an actual constraint. A required output format remains a requirement; a convenient sample layout need not become the entire schema.
Deliver useful partial capability
Composer's operator had to select live inputs from external media providers. Saved connection settings identified a provider account or application, but the publishing session IDs and publisher-chosen track names could change. Requiring the operator to find and enter all of those values repeatedly made input setup cumbersome.
Discovery could help without becoming uniform across providers. Cloudflare Realtime still required a known session ID, after which Composer could inspect its tracks; LiveKit allowed discovery of rooms and participants. Rachel accepted the limited version as “already 10x more useful.” The value was a completed, narrower selection workflow using saved connection settings, even though some starting information still had to come from the operator.
A capability can earn its place before it covers every case. Make its supported operation clear and finish that workflow. Future generality should be driven by another useful consumer or an encountered limitation.
The editor in bland required a larger investment. Replacing BlockNote with an editor built from Tiptap components gave the application control of block dragging, image behavior, collaboration wiring, and styling while reusing maintained editor mechanisms. Rachel required permissive licensing, maintained building blocks and Yjs integration, and block-editing capability, then explicitly accepted more code and substantial churn. The project was still in development and its existing data could be discarded. That condition explains the migration's freedom; a live installation with durable user documents would require preserving or migrating them.
Keep visual treatment consistent with meaning
The page-tree work in bland included concrete requests for visual coherence: the shared-link and workspace sidebars should have matching widths, and the page menu should match the editor menu's typography and style. Archive's red text and destructive hover treatment were restored so the action remained recognizable. The animation could stay. These were judgments about neighboring surfaces and action meaning, rather than a demand to remove all motion or information.
G14Manager's on-screen controls had another surrounding system to fit: Windows. Matching the operating system's UWP control style made more sense there than importing the appearance of a web editor.
Consistency is local to the product's meaning. Composer's broadcast-console design uses red for on-air state, while bland uses it for destructive actions. Share a visual rule where the meaning is shared; preserve differences that help users understand the domain.
Let the experience determine the architecture
In bland, a page could be a text document or a full-page drawing canvas. Both appeared in the signed-in workspace and through shared links, both used the document synchronization service, and both displayed collaborators. Their presentation still differed: documents had a text body and optional outline rail, while canvases needed a drawing surface and its own layout.
Initially, the workspace and shared-link views assembled those pieces themselves. They nested shells and editor or canvas surfaces, inserted titles and page controls, and passed callbacks for resolving collaborators' names and avatars down through the tree. The refactor made DocumentPage and CanvasPage own their respective title, body, loading/error state, and layout composition. The caller supplied page identity, editing permissions, and the controls appropriate to the workspace or shared-link view. The document component also owned the placement of its outline.
Collaboration identity moved into a common derivation used by the text editor, drawing surface, and avatar stack. It obtained the active page's workspace context and resolved participant IDs through the member roster, falling back to generated display names when no member record was available. Callers no longer constructed and threaded separate identity resolvers through each presentation. The useful shared responsibility was resolving who a collaborator was; document and drawing renderers remained distinct. A common synchronization service did not require treating a canvas as a text-editor block.
Composer's boundary followed a different product promise: the React studio was to be one client of an API for controlling productions. A production is a live composition with its own desired scene and operating state, while saved provider connections can be reused by several productions. Keeping that state and the media engine behind the API allowed the studio to be a control interface without making its component structure the only way to operate the system.
Vaskel, a messaging and voice/video application, allowed a participant to transfer an active call to another device. The desired experience was to complete the transfer without listeners seeing or hearing that person twice. The new device did not need to wait for every connection on the old device to close. A new ownership generation identified the current participation, and each listener selected one generation for playback while old resources retired. Brief physical overlap was acceptable because it did not become duplicate playback. This relaxation applied to a superseded device during transfer; moderation, loss of permission, and deliberate leave retained their own termination requirements.
Follow the visible promise into the implementation. Use authority and state to identify what owns it and failure and recovery to decide what remains true after interruption.