Sub topic 15
Annotating behavior and rules
A wireframe shows where things sit. It does not show what happens when someone taps a button, what a field accepts, or why a number is rounded. Annotations carry that information. This chapter covers what to annotate, how to write notes that cannot be misread, and how to keep them from turning into clutter.
This chapter assumes you can already lay out a screen with standard components and that you have drawn the empty, loading, error, and success states for it.
Why annotations exist
Developers, visual designers, and testers read your wireframes without you in the room. Anything you leave out, they must guess. Two people will guess differently, and the difference shows up later as a bug or a rework.
Annotations answer questions the layout cannot:
- What does this control do?
- What are the rules for this content (length, format, order, limits)?
- When does this element appear, and when does it not?
- Where does the user go next?
A good annotation turns a guess into a decision that anyone can check.
What to annotate
Not every element needs a note. Annotate where behavior or content is not obvious from the picture.
| Category | Example note |
|---|---|
| Interaction | "Tap a row to open Order detail. Long-press is not supported." |
| Navigation target | "Goes to Screen 4.2 Order detail. Replaces the current screen, back returns here." |
| Validation | "Required. 3 to 30 characters. Letters, digits, and hyphen only. Check on blur." |
| Conditional display | "Show only when the order has a tracking number." |
| Content rules | "Title: max 2 lines, then truncate with an ellipsis." |
| Data source | "Status comes from the order service. Never edited by the user." |
| Sorting and limits | "Newest first. Load 20 at a time." |
| Permissions | "Visible to admins only." |
Skip notes that restate the obvious. A button labeled "Save" does not need "This is a save button."
Writing a clear note
Vague notes are the most common error. Compare these two:
- Weak: "Validate the email properly."
- Strong: "Email: required. Must contain one @ and a dot in the domain. Show the error 'Enter an email like [email protected]' under the field after the user leaves it."
A strong note has these traits:
- It is testable. Someone can check the built screen against it and say yes or no.
- It uses exact values. Write "max 2 lines", not "short".
- It names the trigger. Say when it happens: on tap, on blur, on submit, on load.
- It names the result. Say what the user sees or where they go.
- It has one idea. Split long notes into separate numbered items.
Use the same word for the same thing everywhere. If the screen is called "Order detail" in the inventory, do not call it "Order page" in a note.
Numbering and linking notes
Place a small numbered marker on the wireframe next to each annotated element. Put the matching text in a list beside or below the screen. This keeps the picture clean and the text readable.
<section class="wf-box" aria-label="Order history screen">
<h1>Order history</h1>
<ul>
<li data-note="1">Order #1001 - Shipped</li>
<li data-note="1">Order #1002 - Delivered</li>
</ul>
<button data-note="2">Filter</button>
</section>
<ol class="wf-notes">
<li>Each row opens Order detail (screen 4.2). Sorted newest first, 20 per page.</li>
<li>Filter opens a bottom sheet with Status and Date range. Applying it reloads the list.</li>
</ol>The data-note attribute ties each element to its note. In a design tool you do the same thing with numbered circles. Keep numbering consistent across screens, or restart at 1 on each screen, and state which convention you use.
Documenting flows and state changes
Some behavior spans several screens or depends on the current state. A sequence diagram or state diagram explains this better than a paragraph.
Refer to the diagram from the wireframe note, for example "Submit behavior: see state diagram A." This keeps one source of truth.
Linking annotations to states
Each state you designed earlier needs rules too. For a single list screen, a short table is clearer than prose:
| State | Trigger | Content rule |
|---|---|---|
| Loading | First open | Show 5 skeleton rows. No spinner over the header. |
| Empty | Zero orders | "No orders yet" with a Browse products button to Home. |
| Error | Request fails | "We couldn't load your orders" with Try again. Keep any cached rows. |
| Success | Rows loaded | List as described in note 1. |
Common errors
- Annotating only the happy path. Notes that skip errors, empty data, and edge cases leave developers to invent them.
- Notes that contradict the picture. If the wireframe shows three tabs and a note says "four tabs", someone will pick the wrong one. Update both together.
- Design decisions hidden in notes. If a note says "button is blue and rounded", that is visual styling. Wireframes decide structure and behavior. Leave color and typography to visual design unless it affects meaning.
- Too many notes. If a screen has 30 markers, group related ones, move shared rules to a separate page, and keep only screen-specific notes on the screen.
- Stale notes. An outdated note is worse than none. Put a version and date on every annotated page.
Shared rules versus screen notes
Some rules apply everywhere, such as how dates are formatted, how long text truncates, or how all forms validate. Write them once on a "Global rules" page and refer to them by name. For example, "Dates: see Global rule G3." This prevents the same rule from drifting into two versions.
A quick review checklist
Before sharing a wireframe, check that:
- Every interactive element has a destination or an action.
- Every input has a format rule, a required or optional flag, and an error message.
- Every conditional element states its condition.
- Every list states its sort order and its limit.
- Every screen has its states covered or points to the page that covers them.
- Notes use the same names as the screen inventory.
Exercise
A wireframe of a "Create account" screen has a Password field with the note "Make sure the password is strong." Rewrite the note so a developer and a tester could both act on it. Include the rule, when it is checked, and what the user sees on failure.
Show answer
One possible answer: "Password: required. Minimum 12 characters, at least one letter and one digit. Check on every keystroke after the first blur and again on submit. While the rule is not met, show 'Use at least 12 characters with a letter and a digit' under the field in the error style, and keep the Create account button disabled." The note is testable because it gives exact values, a trigger (keystroke after blur, and submit), and a visible result (message and disabled button).
Exercise
Name two reasons a team might move a rule off the wireframe and onto a separate Global rules page.
Show answer
First, the rule applies to many screens, so one written copy prevents versions from drifting apart. Second, it reduces clutter, since screens with fewer notes are easier to read and keep current.