ux-evidence
Checks a change to what a person sees carries before and after pictures, on its pull request and its ticket
Files1
View on GitHubSKILL.mdskills/review-agents/bases/ux-evidence/SKILL.md
GitHubFirst decide whether this is a UX change: it touches what a person sees, such as a component, a page, a story, a stylesheet, a token, a label or the layout. If it is not, the only thing to check is that nothing visible changed by accident, and a change with no findings is clean.
A UX change carries evidence, produced like this (the builder does it before the ticket goes to review; you check it). The repository's own rules say how it draws and pictures a component or page, and how it uploads a picture: its design workflow doc (design.workflow of .tick-it/config.json) and the rules this skill's repository copy adds. This base assumes no design tool, canvas or variant list of its own; a repository that has a design canvas, prototypes or required variants says so in its copy:
- Something to picture for every changed or new piece. Each component and state the change touches can be drawn on its own (a story, or a page the repository pictures). A new state that cannot is a gap.
- Before. A picture of each affected piece at the commit the branch starts from (
git merge-base HEAD origin/<base branch>, after a fetch). - After. The same on the branch, of the same pieces, at the same width.
- Side by side. One image per piece, before on the left and after on the right, labelled, with the regions that changed outlined so a subtle change (a shade, a few pixels of spacing) cannot be missed. They are uploaded to the ticket in Tick-it and not committed.
- Attach. The pull request description names the images. Tick-it writes the ticket comment linking the pull request and each picture itself (starting
<!-- tick-it:ticket-pictures -->), so the builder does not add one. From a cloud session each is listed by its path as plain text: image markup (or<img>) written from there can be stored with its address in backticks and then does not render. Next to them, every visible difference is named, intended or not.
- BLOCKING: a UX change whose pull request description has no before and after images for what changed, or whose images do not show what the diff changes (a piece the change touches is missing).
- BLOCKING: the images are not on the ticket as well: Tick-it's own comment (starting
<!-- tick-it:ticket-pictures -->), a comment or the ticket's description links them. Never block on the builder not adding that comment. - BLOCKING: a visible difference in the images that the description does not name, or one the ticket did not ask for and nobody has accepted. Say what it is, with the image and where in the diff it comes from.
- BLOCKING: a UX change that adds or changes a component or a state with nothing that draws it on its own.
- BLOCKING: images that do not mark where the change is, so a reviewer has to hunt for it, or marks that miss a difference you can see.
- OPTIONAL: images that are hard to compare: different widths, a different theme, sample data that differs between before and after.
- OPTIONAL: a change that touches a UI path (a page or component, a story, a stylesheet or a token) yet has no visible effect, whose pull request description does not say so. A change that touches no UI path (backend, docs, scripts, config) gets no finding about its description's visible-effect line: do not ask for the sentence.
Look at the images themselves, not only that they exist.
Rules for every round:
- Fetch the base branch (
git fetch origin <base branch>) before you judge what the diff contains, so the diff is against the branch as it is now and not a stale copy. - On lines unchanged since round 1, a later round raises BLOCKING only for a correctness or security defect, and says why it was missed before. Anything else found late is OPTIONAL.
- Wording is BLOCKING only when it states something false about behaviour, a count or a name. Text the change did not touch is never BLOCKING.
- Do not report a line that says nothing is wrong: "none", "not needed", or something listed only to say the check was done.
- Do not raise as BLOCKING a check you could not run in your own sandbox: name it as not run, with why.
- You own what a person sees: the pictures and how the change is worded and drawn. As the ux-evidence reviewer you decide how it is worded and drawn: acceptance decides what must exist, and ux-evidence decides how it is worded and drawn. A finding of yours that contradicts an acceptance finding about what must exist is OPTIONAL. A defect in code, a test, access or a criterion is another reviewer's: leave it to it.
- Severity is decided once, when you first raise a finding: BLOCKING if it would block at any later round, OPTIONAL otherwise. A finding you raised as OPTIONAL, or said was not required, is not raised as BLOCKING later unless the code or text it names changed since, or a criterion was added that requires it; the finding then says which.