ui-fieldwork 0.1.6 → 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 +83 -131
- package/package.json +1 -1
- package/skills/ui-fieldwork/SKILL.md +14 -2
package/README.md
CHANGED
|
@@ -6,59 +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
|
-
[
|
|
10
|
-
|
|
11
|
-
## Release candidate 0.1.6
|
|
12
|
-
|
|
13
|
-
This branch prepares version `0.1.6` with the changes below. Running `npx ui-fieldwork@latest` retrieves the published package, not unpublished changes on this branch. Use the local installer or a tarball built from this checkout to try the release candidate.
|
|
14
|
-
|
|
15
|
-
- Condensed instructions with brief save-feedback and booking-recovery examples. Adapt examples to the product's behavior, language and voice.
|
|
16
|
-
- Explicit handling of unknown write outcomes, backend retry contracts, newer edits and account-scoped drafts or pending results.
|
|
17
|
-
- Clearer reflow, forced-color and accessibility-evidence guidance, plus before/after checks for visual repairs.
|
|
18
|
-
- Verification notes stay in the assistant's handoff, outside the product interface.
|
|
19
|
-
|
|
20
|
-
The local repair pilot is described under [Evaluation](#current-development-pilot). These changes do not establish a general quality improvement over earlier versions.
|
|
21
|
-
|
|
22
|
-
## What’s new in 0.1.5
|
|
23
|
-
|
|
24
|
-
- Flow audits start with the main task and its recovery path. Findings explain the impact and how to retest.
|
|
25
|
-
- The Codex Stop hook ignores pending markers inside code blocks, including unfinished blocks.
|
|
26
|
-
- 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)
|
|
27
10
|
|
|
28
11
|
## Quick start
|
|
29
12
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
1. Get a local copy of this repository and have Node.js 22 or later available.
|
|
33
|
-
2. Open a terminal at the root of **the project where you want to use UI Fieldwork**.
|
|
34
|
-
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:
|
|
35
14
|
|
|
36
15
|
```sh
|
|
37
|
-
|
|
16
|
+
npx ui-fieldwork@latest
|
|
38
17
|
```
|
|
39
18
|
|
|
40
|
-
|
|
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.
|
|
41
20
|
|
|
42
|
-
**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.
|
|
43
22
|
|
|
44
|
-
|
|
23
|
+

|
|
45
24
|
|
|
46
|
-
|
|
25
|
+
Open a fresh agent session in your project and ask it to use the skill:
|
|
47
26
|
|
|
48
|
-
|
|
49
|
-
- **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.
|
|
50
|
-
- **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.
|
|
51
28
|
|
|
52
|
-
|
|
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).
|
|
53
30
|
|
|
54
|
-
|
|
31
|
+
To skip the menu, specify your agent and scope:
|
|
55
32
|
|
|
56
33
|
```sh
|
|
57
|
-
|
|
58
|
-
|
|
34
|
+
npx ui-fieldwork@latest install codex --project
|
|
35
|
+
npx ui-fieldwork@latest install claude --global
|
|
59
36
|
```
|
|
60
37
|
|
|
61
|
-
|
|
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.
|
|
62
39
|
|
|
63
40
|
## Agent compatibility
|
|
64
41
|
|
|
@@ -81,33 +58,9 @@ For OpenCode and Amp, an absolute `XDG_CONFIG_HOME` replaces `~/.config`. Use `i
|
|
|
81
58
|
|
|
82
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.
|
|
83
60
|
|
|
84
|
-
## Other ways to install
|
|
85
|
-
|
|
86
|
-
### Install with the Skills CLI
|
|
87
|
-
|
|
88
|
-
From the target project, use the local checkout as the source. This installs the Agent Skill through the shared Skills CLI.
|
|
89
|
-
|
|
90
|
-
```sh
|
|
91
|
-
npx skills add "/absolute/path/to/ui-fieldwork" --skill ui-fieldwork -a codex --copy
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
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.
|
|
95
|
-
|
|
96
|
-
### Copy the skill folder
|
|
97
|
-
|
|
98
|
-
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.
|
|
99
|
-
|
|
100
|
-
### Install from an npm tarball
|
|
101
|
-
|
|
102
|
-
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.
|
|
103
|
-
|
|
104
|
-
```sh
|
|
105
|
-
npm exec --package="/absolute/path/ui-fieldwork-0.1.6.tgz" -- ui-fieldwork
|
|
106
|
-
```
|
|
107
|
-
|
|
108
61
|
## Check versions and update
|
|
109
62
|
|
|
110
|
-
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.
|
|
111
64
|
|
|
112
65
|
```sh
|
|
113
66
|
npx ui-fieldwork@latest --version
|
|
@@ -133,48 +86,69 @@ For a modified copy, `update` stops before writing unless `--replace-local` is p
|
|
|
133
86
|
|
|
134
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.
|
|
135
88
|
|
|
136
|
-
##
|
|
89
|
+
## Other ways to install
|
|
137
90
|
|
|
138
|
-
|
|
91
|
+
### Install from a local checkout
|
|
139
92
|
|
|
140
|
-
|
|
141
|
-
- **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.
|
|
142
|
-
- **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:
|
|
143
94
|
|
|
144
|
-
|
|
95
|
+
```sh
|
|
96
|
+
node "/absolute/path/to/ui-fieldwork/bin/install.mjs"
|
|
97
|
+
```
|
|
145
98
|
|
|
146
|
-
|
|
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.
|
|
147
100
|
|
|
148
|
-
|
|
149
|
-
2. Copy [the example](examples/codex-hooks.json) to `.codex/hooks.json` or merge its Stop entry into your existing file.
|
|
150
|
-
3. Review and trust the hook before use. [Codex Hooks](https://developers.openai.com/codex/hooks)
|
|
101
|
+
### Install with the Skills CLI
|
|
151
102
|
|
|
152
|
-
|
|
103
|
+
From the target project, use the local checkout as the source. This installs the Agent Skill through the shared Skills CLI.
|
|
153
104
|
|
|
154
|
-
```
|
|
155
|
-
|
|
105
|
+
```sh
|
|
106
|
+
npx skills add "/absolute/path/to/ui-fieldwork" --skill ui-fieldwork -a codex --copy
|
|
156
107
|
```
|
|
157
108
|
|
|
158
|
-
|
|
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.
|
|
159
110
|
|
|
160
|
-
|
|
111
|
+
### Copy the skill folder
|
|
161
112
|
|
|
162
|
-
|
|
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
|
+
```
|
|
163
122
|
|
|
164
123
|
## How the skill works
|
|
165
124
|
|
|
166
|
-
1. Identify the user task, current interface
|
|
167
|
-
2. Choose a design direction
|
|
168
|
-
3.
|
|
169
|
-
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.
|
|
170
131
|
|
|
171
|
-
|
|
132
|
+
Example requests:
|
|
172
133
|
|
|
173
|
-
|
|
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.”
|
|
174
137
|
|
|
175
|
-
|
|
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.
|
|
176
139
|
|
|
177
|
-
|
|
140
|
+
## What’s new in 0.1.7
|
|
141
|
+
|
|
142
|
+
Version `0.1.7` adds task-specific interaction contracts to the standalone skill:
|
|
143
|
+
|
|
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.
|
|
178
152
|
|
|
179
153
|
## Worked example: booking recovery
|
|
180
154
|
|
|
@@ -186,66 +160,44 @@ See the [skill instructions](skills/ui-fieldwork/SKILL.md) for the complete work
|
|
|
186
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. |
|
|
187
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. |
|
|
188
162
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
## Evaluation
|
|
192
|
-
|
|
193
|
-
The current pilot and historical results below measure different workflows. They do not evaluate every instruction in the skill or establish general usability, visual quality, real assistive-technology behavior, IME input or native-device behavior. Installer and hook tests check tooling behavior, not usability or writing quality.
|
|
194
|
-
|
|
195
|
-
### Current development pilot
|
|
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.
|
|
196
164
|
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
In each completed trial, the agent read project files, reproduced a failure through the supplied Chrome harness, edited the interface and reran checks successfully. Independent replay passed for all seven final artifacts. Checks ran at 390 px and 1360 px, with a separate 320 px reflow probe. The task brief explicitly required reproduction and rechecking, so this does not show that the skill alone caused the agent to persist.
|
|
200
|
-
|
|
201
|
-
The selected snapshot contains 1,312 words versus 1,631 at the start, including the two examples. This describes instruction length, not measured token-cost or speed savings. The plain concise version also completed both repairs; the pilot does not establish an incremental benefit from examples. Actual browser execution, generated screenshots and independently confirmed visual inspection are separate evidence: the CLI event stream did not establish every agent image-view action.
|
|
165
|
+
## Optional Codex verification hook
|
|
202
166
|
|
|
203
|
-
|
|
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)
|
|
204
170
|
|
|
205
|
-
|
|
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:
|
|
206
172
|
|
|
207
|
-
|
|
173
|
+
```json
|
|
174
|
+
"command": "node \"/absolute/path/to/project/.agents/skills/ui-fieldwork/scripts/codex-stop.mjs\""
|
|
175
|
+
```
|
|
208
176
|
|
|
209
|
-
|
|
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.
|
|
210
178
|
|
|
211
|
-
|
|
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.
|
|
212
180
|
|
|
213
|
-
|
|
214
|
-
| --- | --- | --- |
|
|
215
|
-
| Filter, approve, retry, and return | Completed and retained search/filter | Completed and retained search/filter |
|
|
216
|
-
| Read an employee’s training and approval status at 390 px | Required horizontal table scrolling | Status and progress visible together |
|
|
217
|
-
| Focus when opening, retrying, and returning | Fell back to the document body | Moved to Back, stayed on Retry, and returned to Search |
|
|
218
|
-
| 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.
|
|
219
182
|
|
|
220
|
-
|
|
183
|
+
## Troubleshooting
|
|
221
184
|
|
|
222
|
-
|
|
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.
|
|
223
190
|
|
|
224
|
-
|
|
191
|
+
## Verification and limits
|
|
225
192
|
|
|
226
|
-
|
|
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.
|
|
227
194
|
|
|
228
|
-
|
|
229
|
-
| --- | --- |
|
|
230
|
-
| Hook disabled | Codex stopped after the pending line. The probe was never read. |
|
|
231
|
-
| 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.
|
|
232
196
|
|
|
233
|
-
|
|
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.
|
|
234
198
|
|
|
235
199
|
## Development
|
|
236
200
|
|
|
237
|
-
Run `npm test` to validate installer targets, updates and hooks, and `npm pack` to build the distributable. See the [MIT license](LICENSE).
|
|
238
|
-
|
|
239
|
-
### Release to npm
|
|
240
|
-
|
|
241
|
-
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.
|
|
242
|
-
|
|
243
|
-
Stable releases publish with the `latest` npm tag; prereleases use `next` and need a version such as `0.1.6-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.
|
|
244
|
-
|
|
245
|
-
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).
|
|
246
202
|
|
|
247
|
-
|
|
248
|
-
[npm Trusted Publishing](https://docs.npmjs.com/trusted-publishers/) for
|
|
249
|
-
owner `sungphan`, repository `ui-fieldwork`, and workflow filename
|
|
250
|
-
`publish.yml`. Allow the direct `npm publish` action. Publish the GitHub Release
|
|
251
|
-
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
|
@@ -27,6 +27,18 @@ Choose checks for supported devices, sizes, inputs and settings.
|
|
|
27
27
|
|
|
28
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
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. |
|
|
41
|
+
|
|
30
42
|
## Design and build
|
|
31
43
|
|
|
32
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.
|
|
@@ -35,9 +47,9 @@ Give controls accessible names, visible focus, readable contrast and usable targ
|
|
|
35
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.
|
|
36
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.
|
|
37
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.
|
|
38
|
-
- Use catalogs for gaps, retaining the project’s stack.
|
|
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.
|
|
39
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.
|
|
40
|
-
- Keep labels/requirements visible and accept unambiguous formats without changing meaningful input. Avoid premature validation and unexplained disabled submission. On failure preserve valid input, focus the summary or invalid field as appropriate, associate errors and clear corrected errors.
|
|
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.
|
|
41
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.
|
|
42
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.
|
|
43
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.
|