ui-fieldwork 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +85 -108
- package/package.json +1 -1
- package/skills/ui-fieldwork/SKILL.md +45 -30
package/README.md
CHANGED
|
@@ -6,48 +6,36 @@ Use it for a single control, a complete flow, or a redesign. The same workflow a
|
|
|
6
6
|
|
|
7
7
|
**Status:** Early preview. Install from npm, a local checkout, or a tarball. The Codex hook is optional.
|
|
8
8
|
|
|
9
|
-
[Quick start](#quick-start) · [Supported agents](#agent-compatibility) · [
|
|
10
|
-
|
|
11
|
-
## What’s new in 0.1.5
|
|
12
|
-
|
|
13
|
-
- Flow audits start with the main task and its recovery path. Findings explain the impact and how to retest.
|
|
14
|
-
- The Codex Stop hook ignores pending markers inside code blocks, including unfinished blocks.
|
|
15
|
-
- The updater reports missing symlink destinations and gives clearer backup and lock recovery messages.
|
|
9
|
+
[Quick start](#quick-start) · [Supported agents](#agent-compatibility) · [Updates](#check-versions-and-update) · [Other install methods](#other-ways-to-install) · [Workflow](#how-the-skill-works) · [What’s new](#whats-new-in-017) · [Codex hook](#optional-codex-verification-hook)
|
|
16
10
|
|
|
17
11
|
## Quick start
|
|
18
12
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
1. Get a local copy of this repository and have Node.js 22 or later available.
|
|
22
|
-
2. Open a terminal at the root of **the project where you want to use UI Fieldwork**.
|
|
23
|
-
3. Run the command below, replacing the checkout path. Use ↑ and ↓ to choose an agent, choose **Project** or **Global**, then review the destination and confirm. Enter selects and Esc cancels.
|
|
13
|
+
Requires **Node.js 22 or later**. Open a terminal at the root of the project where you want to use the skill, then run:
|
|
24
14
|
|
|
25
15
|
```sh
|
|
26
|
-
|
|
16
|
+
npx ui-fieldwork@latest
|
|
27
17
|
```
|
|
28
18
|
|
|
29
|
-
|
|
19
|
+
Choose an agent, choose **Project** or **Global**, then review the destination and confirm. Use ↑ and ↓ to move, Enter to select and Esc to cancel.
|
|
30
20
|
|
|
31
|
-
**Project** installs in the current
|
|
21
|
+
**Project** installs in the current project. **Global** installs in your user account’s agent directory. Neither option enables hooks or changes agent configuration. The installer needs write access to the destination; administrator privileges are not normally needed.
|
|
32
22
|
|
|
33
|
-
|
|
23
|
+

|
|
34
24
|
|
|
35
|
-
|
|
25
|
+
Open a fresh agent session in your project and ask it to use the skill:
|
|
36
26
|
|
|
37
|
-
|
|
38
|
-
- **Build a flow.** Use ui-fieldwork to implement the review queue with our existing components. Verify filtering, keyboard navigation, and the return from record details.
|
|
39
|
-
- **Review an interface.** Use ui-fieldwork to audit this screen with dense content and a narrow viewport. Tie each finding to the evidence you have.
|
|
27
|
+
> Use ui-fieldwork to review the booking flow. Keep the current design system. Check what happens when a selected slot becomes unavailable and verify recovery on mobile.
|
|
40
28
|
|
|
41
|
-
|
|
29
|
+
For Codex, a project install creates `.agents/skills/ui-fieldwork/SKILL.md`. If a copy already exists, use [the update command](#check-versions-and-update).
|
|
42
30
|
|
|
43
|
-
|
|
31
|
+
To skip the menu, specify your agent and scope:
|
|
44
32
|
|
|
45
33
|
```sh
|
|
46
|
-
|
|
47
|
-
|
|
34
|
+
npx ui-fieldwork@latest install codex --project
|
|
35
|
+
npx ui-fieldwork@latest install claude --global
|
|
48
36
|
```
|
|
49
37
|
|
|
50
|
-
|
|
38
|
+
`@latest` retrieves the latest published npm package. To try changes from a checkout, use [a local installer or tarball](#other-ways-to-install). Set `NO_COLOR=1` to disable CLI colors.
|
|
51
39
|
|
|
52
40
|
## Agent compatibility
|
|
53
41
|
|
|
@@ -70,33 +58,9 @@ For OpenCode and Amp, an absolute `XDG_CONFIG_HOME` replaces `~/.config`. Use `i
|
|
|
70
58
|
|
|
71
59
|
Automated tests verify the installed files and preservation of existing installs for every installer target. The table describes documented discovery locations. Live activation in each client remains to be checked.
|
|
72
60
|
|
|
73
|
-
## Other ways to install
|
|
74
|
-
|
|
75
|
-
### Install with the Skills CLI
|
|
76
|
-
|
|
77
|
-
From the target project, use the local checkout as the source. This installs the Agent Skill through the shared Skills CLI.
|
|
78
|
-
|
|
79
|
-
```sh
|
|
80
|
-
npx skills add "/absolute/path/to/ui-fieldwork" --skill ui-fieldwork -a codex --copy
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
Replace `codex` with the [Skills CLI agent identifier](https://github.com/vercel-labs/skills/blob/main/docs/agents.md) for your client. Add `--global` for a user-level install. To use UI Fieldwork’s own agent and scope picker, use [Quick start](#quick-start) or the npm tarball below.
|
|
84
|
-
|
|
85
|
-
### Copy the skill folder
|
|
86
|
-
|
|
87
|
-
Copy the entire [`skills/ui-fieldwork/`](skills/ui-fieldwork/) folder into the skills directory documented for your agent. The entry point should be at `<skills-directory>/ui-fieldwork/SKILL.md`. Manual copy requires neither Node.js nor an npm account.
|
|
88
|
-
|
|
89
|
-
### Install from an npm tarball
|
|
90
|
-
|
|
91
|
-
Run `npm pack` in the UI Fieldwork checkout. Then run this from the target project, substituting the absolute path to the tarball. Append `install <target> --global` or `install <target> --project` to bypass the menu.
|
|
92
|
-
|
|
93
|
-
```sh
|
|
94
|
-
npm exec --package="/absolute/path/ui-fieldwork-0.1.5.tgz" -- ui-fieldwork
|
|
95
|
-
```
|
|
96
|
-
|
|
97
61
|
## Check versions and update
|
|
98
62
|
|
|
99
|
-
Use `@latest` to run the newest published CLI.
|
|
63
|
+
Use `@latest` to run the newest published CLI. Checking a version does not update an installed skill; run `update` to apply the bundled files.
|
|
100
64
|
|
|
101
65
|
```sh
|
|
102
66
|
npx ui-fieldwork@latest --version
|
|
@@ -122,44 +86,69 @@ For a modified copy, `update` stops before writing unless `--replace-local` is p
|
|
|
122
86
|
|
|
123
87
|
Updates need write permission on the skills directory and, to retain a backup, its parent. A network failure during `check-update` changes nothing. Skills copied or linked through another tool may not have a known package version; `unknown` is explicit rather than a guess. Content matching is checked separately from version numbers. UI Fieldwork does not automatically update running sessions or all projects on your computer.
|
|
124
88
|
|
|
125
|
-
##
|
|
89
|
+
## Other ways to install
|
|
126
90
|
|
|
127
|
-
|
|
91
|
+
### Install from a local checkout
|
|
128
92
|
|
|
129
|
-
|
|
130
|
-
- **Linked source is missing:** Run `npx ui-fieldwork@latest status codex --project` with your agent and install scope. Restore the checkout at the reported source path or repoint the link.
|
|
131
|
-
- **Update succeeded with a lock warning:** The new skill is installed and the previous copy is at the printed backup path. Remove the lock at the reported path once you confirm no updater is running.
|
|
93
|
+
Clone or download this repository. From the target project, run the installer using the checkout’s absolute path:
|
|
132
94
|
|
|
133
|
-
|
|
95
|
+
```sh
|
|
96
|
+
node "/absolute/path/to/ui-fieldwork/bin/install.mjs"
|
|
97
|
+
```
|
|
134
98
|
|
|
135
|
-
|
|
99
|
+
For a scripted install, append `install codex --project` or another agent and scope. This installs the checkout’s contents, which may differ from npm.
|
|
136
100
|
|
|
137
|
-
|
|
138
|
-
2. Copy [the example](examples/codex-hooks.json) to `.codex/hooks.json` or merge its Stop entry into your existing file.
|
|
139
|
-
3. Review and trust the hook before use. [Codex Hooks](https://developers.openai.com/codex/hooks)
|
|
101
|
+
### Install with the Skills CLI
|
|
140
102
|
|
|
141
|
-
|
|
103
|
+
From the target project, use the local checkout as the source. This installs the Agent Skill through the shared Skills CLI.
|
|
142
104
|
|
|
143
|
-
```
|
|
144
|
-
|
|
105
|
+
```sh
|
|
106
|
+
npx skills add "/absolute/path/to/ui-fieldwork" --skill ui-fieldwork -a codex --copy
|
|
145
107
|
```
|
|
146
108
|
|
|
147
|
-
|
|
109
|
+
Replace `codex` with the [Skills CLI agent identifier](https://github.com/vercel-labs/skills/blob/main/docs/agents.md) for your client. Add `--global` for a user-level install. To use UI Fieldwork’s own agent and scope picker, use [Quick start](#quick-start) or the npm tarball below.
|
|
148
110
|
|
|
149
|
-
|
|
111
|
+
### Copy the skill folder
|
|
112
|
+
|
|
113
|
+
Copy the entire [`skills/ui-fieldwork/`](https://github.com/sungphan/ui-fieldwork/tree/main/skills/ui-fieldwork) folder into the skills directory documented for your agent. The entry point should be at `<skills-directory>/ui-fieldwork/SKILL.md`. Manual copy requires neither Node.js nor an npm account.
|
|
114
|
+
|
|
115
|
+
### Install from an npm tarball
|
|
116
|
+
|
|
117
|
+
Run `npm pack` in the UI Fieldwork checkout. Then run this from the target project, substituting the absolute path to the tarball. Append `install <target> --global` or `install <target> --project` to bypass the menu.
|
|
118
|
+
|
|
119
|
+
```sh
|
|
120
|
+
npm exec --package="/absolute/path/ui-fieldwork-0.1.7.tgz" -- ui-fieldwork
|
|
121
|
+
```
|
|
150
122
|
|
|
151
123
|
## How the skill works
|
|
152
124
|
|
|
153
|
-
1. Identify the user task, current interface
|
|
154
|
-
2. Choose a design direction
|
|
155
|
-
3.
|
|
156
|
-
4.
|
|
125
|
+
1. Identify the user’s task, the current interface and the required outcome.
|
|
126
|
+
2. Choose a design direction grounded in the brief, content and existing components.
|
|
127
|
+
3. Build the flow with its relevant loading, empty, error and recovery states.
|
|
128
|
+
4. Exercise the changed experience at runtime and report what was checked.
|
|
129
|
+
|
|
130
|
+
Apply the guidance that fits the task: keyboard and focus behavior, responsive layouts, clear copy, navigation state, tables, localized values or performance. Interrupted saves need truthful status and a safe retry path; drafts and pending results stay with their owner. Visual repairs need a before-and-after check. Verification notes belong in the assistant’s handoff.
|
|
131
|
+
|
|
132
|
+
Example requests:
|
|
133
|
+
|
|
134
|
+
- **Explore:** “Propose two directions for this landing page based on the product and its audience. Keep this session at the design stage.”
|
|
135
|
+
- **Build:** “Implement the review queue with our existing components. Verify filtering, keyboard navigation and the return from record details.”
|
|
136
|
+
- **Audit:** “Review this screen with dense content and a narrow viewport. Rank findings by their effect on the user’s task and explain how to retest.”
|
|
137
|
+
|
|
138
|
+
Read the [complete skill instructions](https://github.com/sungphan/ui-fieldwork/blob/main/skills/ui-fieldwork/SKILL.md) for the workflow and interaction contracts.
|
|
157
139
|
|
|
158
|
-
|
|
140
|
+
## What’s new in 0.1.7
|
|
159
141
|
|
|
160
|
-
|
|
142
|
+
Version `0.1.7` adds task-specific interaction contracts to the standalone skill:
|
|
161
143
|
|
|
162
|
-
|
|
144
|
+
- Navigation checks for copied URLs, reload and Back/Forward, with restored filters, focus and scroll context.
|
|
145
|
+
- Keyboard and selection checks for composite widgets, nested overlays and changing option lists.
|
|
146
|
+
- Data-table guidance for sorting, bulk-selection scope and focus after rows change, without requiring an interactive grid.
|
|
147
|
+
- Locale-aware values that keep displayed dates, amounts and time zones separate from canonical data.
|
|
148
|
+
- Performance checks tied to a real action and dataset, plus recovery when resources fail to load.
|
|
149
|
+
- Server-validation errors mapped back to fields, with working error-summary links.
|
|
150
|
+
|
|
151
|
+
Apply only the contracts relevant to the changed surface. The skill remains self-contained; no additional skill or framework is required.
|
|
163
152
|
|
|
164
153
|
## Worked example: booking recovery
|
|
165
154
|
|
|
@@ -171,56 +160,44 @@ See the [skill instructions](skills/ui-fieldwork/SKILL.md) for the complete work
|
|
|
171
160
|
| Build the recovery path | When 09:00 is rejected, show why, keep the visitor’s name, and return focus to the time selector. The visitor reviews 10:30 and confirms it. |
|
|
172
161
|
| Verify the outcome | In Chrome, at 390 px and 1024 px, keyboard submission preserved the name, focused the selector, and reached a confirmation for 10:30. Both viewports fit without horizontal overflow. |
|
|
173
162
|
|
|
174
|
-
|
|
163
|
+
Download the [standalone booking demo](https://github.com/sungphan/ui-fieldwork/blob/main/docs/examples/booking.html) and open it in a browser. It simulates slot availability in the browser. The checks above verify the demo flow.
|
|
175
164
|
|
|
176
|
-
##
|
|
165
|
+
## Optional Codex verification hook
|
|
177
166
|
|
|
178
|
-
|
|
167
|
+
1. Install UI Fieldwork for Codex at the project root.
|
|
168
|
+
2. Copy [the example](https://github.com/sungphan/ui-fieldwork/blob/main/examples/codex-hooks.json) to `.codex/hooks.json` or merge its Stop entry into your existing file.
|
|
169
|
+
3. Review and trust the hook before use. [Codex Hooks](https://developers.openai.com/codex/hooks)
|
|
179
170
|
|
|
180
|
-
|
|
171
|
+
The example works when Codex starts at the project root. If you start it in a subdirectory, use the absolute script path in the hook entry:
|
|
181
172
|
|
|
182
|
-
|
|
173
|
+
```json
|
|
174
|
+
"command": "node \"/absolute/path/to/project/.agents/skills/ui-fieldwork/scripts/codex-stop.mjs\""
|
|
175
|
+
```
|
|
183
176
|
|
|
184
|
-
|
|
177
|
+
When the assistant ends its handoff with a plain-text `UI verification: pending — …` line, the hook requests one continuation so it can try the outstanding check. Verification is performed by the agent using the project's tools. The hook is optional and specific to Codex.
|
|
185
178
|
|
|
186
|
-
|
|
179
|
+
Use `pending` only for a runnable, in-scope check. Put it on the last line in plain text, outside quoted examples and code blocks. Use `partial` when some checks ran and a gap remains, or `unavailable` when a concrete blocker prevents the check. The continuation guard uses Codex's `stop_hook_active` field.
|
|
187
180
|
|
|
188
|
-
|
|
189
|
-
| --- | --- | --- |
|
|
190
|
-
| Filter, approve, retry, and return | Completed and retained search/filter | Completed and retained search/filter |
|
|
191
|
-
| Read an employee’s training and approval status at 390 px | Required horizontal table scrolling | Status and progress visible together |
|
|
192
|
-
| Focus when opening, retrying, and returning | Fell back to the document body | Moved to Back, stayed on Retry, and returned to Search |
|
|
193
|
-
| Focus after successful approval | Fell back to the document body | Fell back to the document body |
|
|
181
|
+
Installing or updating the skill does not enable or trust the hook automatically. The hook reads the assistant's pending marker; it does not run UI tests, inspect screenshots or certify that a reported check passed.
|
|
194
182
|
|
|
195
|
-
|
|
183
|
+
## Troubleshooting
|
|
196
184
|
|
|
197
|
-
|
|
185
|
+
- **Updating from UI Craft:** Previous previews used the `ui-craft` skill folder. Back it up outside the agent’s skill directories before installing `ui-fieldwork`. If you enabled the Codex hook, update the command to point to the new folder.
|
|
186
|
+
- **Skill missing:** Check for `ui-fieldwork/SKILL.md` under the target directory in the [agent table](#agent-compatibility). Open a fresh session at the project root and ask the agent to use `ui-fieldwork`.
|
|
187
|
+
- **Linked source is missing:** Run `npx ui-fieldwork@latest status codex --project` with your agent and install scope. Restore the checkout at the reported source path or repoint the link.
|
|
188
|
+
- **Update succeeded with a lock warning:** The new skill is installed and the previous copy is at the printed backup path. Remove the lock at the reported path once you confirm no updater is running.
|
|
189
|
+
- **Install reports an existing folder:** Use the update command above. For legacy or modified copies, review the files before using `--replace-local`. To uninstall, remove the installed `ui-fieldwork` folder. If you enabled the Codex hook, remove its Stop entry as well.
|
|
198
190
|
|
|
199
|
-
|
|
191
|
+
## Verification and limits
|
|
200
192
|
|
|
201
|
-
|
|
193
|
+
Automated tests cover installer targets, preservation of local edits, updates and the optional hook. Release checks install and update the packed tarball and compare the resulting files with its contents.
|
|
202
194
|
|
|
203
|
-
|
|
204
|
-
| --- | --- |
|
|
205
|
-
| Hook disabled | Codex stopped after the pending line. The probe was never read. |
|
|
206
|
-
| Hook enabled | Codex continued once, read the probe, and reported its contents. |
|
|
195
|
+
Local Chrome checks exercise representative flows and deliberately seeded navigation, widget and date-handling failures. Historical comparisons cover a small number of generated interfaces. These checks do not establish a general quality improvement, accessibility conformance or field performance. Real screen-reader, IME and native-device behavior need separate testing.
|
|
207
196
|
|
|
208
|
-
|
|
197
|
+
The installer supports the directories listed above; live skill activation has not been verified in every client. Runtime UI verification depends on the agent having suitable tools and access to the application.
|
|
209
198
|
|
|
210
199
|
## Development
|
|
211
200
|
|
|
212
|
-
Run `npm test` to validate installer targets, updates and hooks, and `npm pack` to build the distributable. See the [MIT license](LICENSE).
|
|
213
|
-
|
|
214
|
-
### Release to npm
|
|
215
|
-
|
|
216
|
-
CI runs tests and verifies installation and actual replacement from the packed tarball on pull requests and pushes to `develop` or `main`. The npm workflow runs the same checks, then publishes that exact tarball when a GitHub Release is published. Its tag must match `package.json`, and its commit must be in `main` history.
|
|
217
|
-
|
|
218
|
-
Stable releases publish with the `latest` npm tag; prereleases use `next` and need a version such as `0.1.5-beta.1`. Publishing is serialized without canceling an active publish. A stable release must be newer than npm `latest` and cannot be older than the stable version on `main`, so an old queued release cannot move `latest` backward. A prerelease must be newer than npm `next` when that tag exists. Failed reads of the registry or the package version on `main` stop publication. GitHub may replace an older pending run when another queues; canceled runs need review and a manual rerun when appropriate.
|
|
219
|
-
|
|
220
|
-
Passing ordinary CI does not publish a package. Publish the GitHub Release after merging the version bump and feature into `main`. Consumers then run `npx ui-fieldwork@latest update <target>` to apply the published code to their installed copy.
|
|
201
|
+
Run `npm test` to validate installer targets, updates and hooks, and `npm pack` to build the distributable. See the [MIT license](https://github.com/sungphan/ui-fieldwork/blob/main/LICENSE).
|
|
221
202
|
|
|
222
|
-
|
|
223
|
-
[npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers/) for
|
|
224
|
-
owner `sungphan`, repository `ui-fieldwork`, and workflow filename
|
|
225
|
-
`publish.yml`. Allow the direct `npm publish` action. Publish the GitHub Release
|
|
226
|
-
after the workflow is on `main` and the trusted publisher is configured.
|
|
203
|
+
For maintainer release instructions, see [Releasing](https://github.com/sungphan/ui-fieldwork/blob/main/docs/RELEASING.md).
|
package/package.json
CHANGED
|
@@ -6,50 +6,65 @@ license: MIT
|
|
|
6
6
|
|
|
7
7
|
# UI Fieldwork
|
|
8
8
|
|
|
9
|
-
Honor the user’s scope, platform and stack. Reuse
|
|
9
|
+
Honor the user’s scope, platform and stack. Reuse project components, tokens, tools and assets. Apply only relevant guidance; backend-only work needs no UI workflow.
|
|
10
10
|
|
|
11
11
|
## Understand the job
|
|
12
12
|
|
|
13
|
-
- Inspect affected
|
|
14
|
-
- Brainstorm
|
|
15
|
-
- Research uncertain
|
|
16
|
-
- For data-heavy workflows, keep frequent actions visible, preserve familiar shortcuts and keep comparison data together when adapting layouts. Make panel and table content reachable with the supported input methods.
|
|
13
|
+
- Inspect the affected interface, content and data. Define acceptance checks from the audience, entry state, main action, outcome and likely recovery path.
|
|
14
|
+
- Brainstorm without implementing. For flow audits, walk one or two in-scope goals before pattern scans; compare first-use and repeat-use needs when relevant. For focused reviews, stay on the requested surface. If runtime is unavailable, trace available evidence and mark the flow unverified. Report each finding’s task, friction, consequence and retest; rank blockers, loss and recurring friction ahead of cosmetics. Confirm scan hits in context. Preserve established choices for targeted fixes; compare structurally different approaches for open redesigns.
|
|
15
|
+
- Research uncertain decisions using references solving the same task. Record the pattern, fit and limitations. Galleries support visual exploration, shipped flows provide precedents, and research or platform guidance supports usability claims. Treat community complaints and UX laws as hypotheses; distinguish standards from house style.
|
|
17
16
|
|
|
18
17
|
## Adapt to the environment
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
Choose checks for supported devices, sizes, inputs and settings.
|
|
21
20
|
|
|
22
|
-
| Environment |
|
|
21
|
+
| Environment | Relevant checks |
|
|
23
22
|
| --- | --- |
|
|
24
|
-
| Web and embedded views |
|
|
25
|
-
| Native
|
|
26
|
-
| Desktop
|
|
27
|
-
| Remote, controller, kiosk
|
|
23
|
+
| Web and embedded views | Preserve URL, history and scrolling behavior. Try zoom/text resizing and narrow reflow. WCAG reflow uses 320 CSS px for vertically scrolling content, except necessary two-dimensional layouts. Check nested scrolling and fixed UI obscuring focus or jump targets. |
|
|
24
|
+
| Native/hybrid mobile and tablets | Follow system navigation and safe areas. Try larger text, supported windows and the on-screen keyboard. Exercise Back, dismissal and pause/resume where task state changes. Keep essential actions reachable without hover. |
|
|
25
|
+
| Desktop, workspaces and terminals | Try the smallest supported window and primary input path; preserve familiar navigation and focus across panes and lists. |
|
|
26
|
+
| Remote, controller, kiosk and specialized input | Follow platform focus conventions. Exercise selection, Back/cancel and recovery with the real input method; check legibility at the intended distance. |
|
|
28
27
|
|
|
29
|
-
|
|
28
|
+
Give controls accessible names, visible focus, readable contrast and usable targets. Provide alternatives to hover, precise dragging and gestures when needed. Try supported long translations, larger text, reading direction, forced colors and reduced motion; keep controls and selection identifiable.
|
|
29
|
+
|
|
30
|
+
## Define interaction contracts
|
|
31
|
+
|
|
32
|
+
For changed behavior below, agree what the user can do and what must survive interruption. Select relevant rows; a cosmetic fix needs no new router, widget or fallback architecture.
|
|
33
|
+
|
|
34
|
+
| Changed surface | Contract and exposing check |
|
|
35
|
+
| --- | --- |
|
|
36
|
+
| Web navigation and shareable views | Use the existing router and URL APIs for appropriate route, filter, sort and pagination state. Keep private drafts and credentials out of URLs. Deliberate navigation may add history; transient typing should not add an entry per character. Open a copied URL, reload, then use real Back/Forward: rendered controls and results must agree with the restored view. On list/detail return, check focus and scroll context; full route changes need an appropriate title and focus destination. |
|
|
37
|
+
| Composite widgets and overlays | Prefer existing accessible components or native controls. For custom widgets, consult the matching [WAI-ARIA APG pattern](https://www.w3.org/WAI/ARIA/apg/patterns/) when uncertain; roles alone do not implement keys. Distinguish focus, active option and committed selection. Exercise supported arrows, Enter/Space, Escape, Tab and reopening. An active descendant must exist and stay visible after filtering. Trap focus only in modal dialogs; restore it to the trigger or a logical successor when the trigger disappears. |
|
|
38
|
+
| Data tables and large collections | Use semantic tables for tabular reading; choose an interactive grid only when its task warrants managed cell navigation. Keep sort state, headers and selection scope understandable. State whether bulk selection covers this page, loaded rows or all matches. After filtering, sorting, deletion or virtualization, keep focus on a meaningful surviving target and prevent a stale selection from acting on unintended records. |
|
|
39
|
+
| Localized values | Use project or platform locale formatting, language/direction metadata and translation messages. Keep canonical IDs and submitted values separate from display strings; do not parse a formatted label back into a date or amount. Distinguish date-only values from instants; show the relevant time zone for appointments. Test a supported alternate locale and a day boundary without changing the underlying value. |
|
|
40
|
+
| Performance and partial loading | Start with the changed user action and the project's budget. Measure relevant loading, interaction latency or layout movement with the dataset, device/network profile and tool recorded. A load score does not prove typing responsiveness; a lab run does not establish field performance. Exercise slow or failed data, images or optional scripts on the affected path. Keep the supported core task or an honest recovery path usable; add a no-JavaScript path only when the product requires it. |
|
|
30
41
|
|
|
31
42
|
## Design and build
|
|
32
43
|
|
|
33
|
-
-
|
|
34
|
-
- Match hierarchy to the
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
- Keep
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- Check avoidable request waterfalls and costly UI dependencies on the changed path. Keep typing responsive while work or motion runs. Test rapid reversal, cancellation and navigation for stale results, stranded focus and cleanup.
|
|
44
|
+
- Complete one representative screen and primary flow before scaling. Use realistic dense data, long labels and supported translations. For frequent data work, keep actions and comparison data together and panels/tables reachable with supported inputs.
|
|
45
|
+
- Match hierarchy to the job: operate, read, decide or explore. Use type, spacing, alignment and tokens to expose the next action and necessary information. Ground marketing/editorial imagery, motion and copy in actual content.
|
|
46
|
+
- Preserve drafts, filters, selection and reading position across details, Back, language and view changes. Keep mid-task controls reachable without losing context. On narrow layouts, expose destinations through wrapping, stacking or discoverable scrolling; keyboard focus must reveal them.
|
|
47
|
+
- For ecommerce, follow the decision through product, cart and checkout. Show price, availability, delivery and policy before commitment. Keep supported guest paths visible; exercise changed steps and their handoffs without losing valid input.
|
|
48
|
+
- Write familiar action/result labels with enough context for decisions, costs and consequences. Remove filler, hype, repetition and forced metaphors. Match claims to actual behavior; invent no metrics, endorsements, urgency, guarantees or capabilities. Distinguish demos, pending work and live results. Keep terminology and translations natural and consistent; match warmth to the situation without celebrating errors or loss.
|
|
49
|
+
- Critique interchangeable copy/sections, redundant cards and competing decoration. Check labels and messages against behavior. Fix confusing interaction rather than explaining it with more copy. Ask whether swapping the product name would leave the screen unchanged; use specific content, decisions and states while preserving established brand choices and familiar controls.
|
|
50
|
+
- Use catalogs for gaps, retaining the project’s stack. Primitive accessibility depends on composition. In web modals, check naming, initial focus, Tab containment, Escape and focus restoration, including nested popups.
|
|
51
|
+
- Keep form reading, visual and focus order predictable, including help, recovery and auxiliary controls. Align web DOM order; avoid positive tabindex and removing useful keyboard access. Support paste, autofill, password managers and reuse of prior answers unless security or validity requires re-entry. Custom Enter shortcuts must respect IME composition and retain explicit submission.
|
|
52
|
+
- Keep labels/requirements visible and accept unambiguous formats without changing meaningful input. Avoid premature validation and unexplained disabled submission. Server validation remains authoritative; map its errors to fields or the form. On failure preserve valid input, focus the summary or invalid field as appropriate, associate errors and clear corrected errors. Error-summary links must reach the affected controls.
|
|
53
|
+
- Acknowledge input promptly, keep feedback near the action and expose status changes to assistive technology without stealing focus. Avoid per-keystroke announcements or replacing whole live regions with results. Distinguish loading, success, first use, no matches, unavailable data and permission failure when recovery differs; provide a concrete next step.
|
|
54
|
+
- Distinguish drafts, saving, confirmed success, unknown outcomes and failure. A lost response does not prove failure: follow backend reconciliation/deduplication before a potentially duplicate retry; otherwise retain uncertainty and explain a safe next step. Preserve newer edits after earlier saves. Retain recoverable work within storage/privacy policy, scope drafts and results to their owner, and recheck authorization before replay after account/permission changes. Show honest progress, measured only when available, and supported cancellation/background continuation. Choose confirmation or undo by consequence and reversibility; important recovery must outlast a brief toast.
|
|
55
|
+
- Check request waterfalls and costly dependencies on the changed path. Keep typing responsive. Exercise rapid reversal, cancellation and navigation for stale results, lost focus and cleanup.
|
|
46
56
|
|
|
47
57
|
## Verify and hand off
|
|
48
58
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
-
|
|
59
|
+
Examples of outcomes when relevant to the task:
|
|
60
|
+
|
|
61
|
+
- When a save finishes after a newer edit, announce the confirmed version and remaining work together, for example: “Earlier version saved; newer edits are unsaved.” Adapt the wording to the product’s language and voice.
|
|
62
|
+
- A rejected booking can retain valid details and offer a known alternative. A failed availability request is not evidence of “No appointments.”
|
|
63
|
+
|
|
64
|
+
- Inspect the running interface at representative supported widths with realistic content. Exercise the main action and likely failure; check discoverability, wrapping and scrolling. Check changed status semantics and, when available, actual assistive announcements. Reuse project checks.
|
|
65
|
+
- For forms, enter from the first field, Tab forward, Shift+Tab back, submit, correct and retry. Include auxiliary controls and effort as well as reachability. Check context when mid-task controls receive focus and after activation. Restore logical focus when a control disappears.
|
|
66
|
+
- Separate source findings, render observations and exercised behavior. Screenshots do not prove focus order; accessibility trees do not establish speech, and automated checks alone do not establish conformance. Synthetic events do not prove real IME or password-manager behavior. Call your walkthrough an inspection; use measurements for performance claims and user evidence for behavior claims. State gaps.
|
|
67
|
+
- Fix in-scope defects and repeat the exposing check. For visual repairs compare the affected region before/after and repeat the interaction; diagnosis alone does not verify a patch. Keep verification notes in the assistant handoff, never in product UI. For UI code changes, end with one plain-text evidence line naming the route, behavior or concrete blocker:
|
|
53
68
|
|
|
54
69
|
```text
|
|
55
70
|
UI verification: checked — <render and interaction evidence>
|
|
@@ -58,4 +73,4 @@ UI verification: unavailable — <concrete runtime blocker>
|
|
|
58
73
|
UI verification: pending — <runnable browser check remaining>
|
|
59
74
|
```
|
|
60
75
|
|
|
61
|
-
|
|
76
|
+
Perform remaining runnable checks within scope whenever possible. Use pending only for a concrete in-scope check. Keep the evidence line outside quotes and code blocks. The optional Codex hook can resume the final pending line once; audits and planning can report evidence in ordinary prose.
|