docs(ui): use active voice in the UI rules
Vale suggestion level is now clean for the file. The same pass replaced the e.g. abbreviations, removed the first-person asides, and replaced the anthropomorphic 'sees'.
This commit is contained in:
1 file changed
+15
-15
+15
-15
@@ -27,8 +27,8 @@ state; the UI presents them and submits operator choices.
|
||||
changes. A setting must save through the API and show its applied state.
|
||||
- Build in safety. Edits go to a draft and reach the running workflow only when
|
||||
you publish.
|
||||
- Never lose work silently. If two things can write the same state (e.g., Archie
|
||||
and the operator), lock one out or merge them; never let one silently
|
||||
- Never lose work silently. If two things can write the same state (for example,
|
||||
Archie and the operator), lock one out or merge them; never let one silently
|
||||
overwrite the other.
|
||||
- Phone width is a real target. No global CSS rule may deform controls. Desktop
|
||||
layouts must collapse cleanly: dropdowns instead of side lists, stacked panes,
|
||||
@@ -73,9 +73,9 @@ state; the UI presents them and submits operator choices.
|
||||
hover/focus icon actions rather than permanent chrome. Do not repeat labels in
|
||||
explanatory text or add controls without working behaviour.
|
||||
- Text states a problem or an action, nothing else. Delete lines that only
|
||||
describe what the screen already shows (e.g., "Compared with the current
|
||||
definition", "Same as the current definition", "Refreshed every 5 seconds",
|
||||
"Showing recent matches…", "Live only").
|
||||
describe what the screen already shows (for example, "Compared with the
|
||||
current definition", "Same as the current definition", "Refreshed every 5
|
||||
seconds", "Showing recent matches…", "Live only").
|
||||
- Do not label a control that explains itself. A switch needs no "Enabled"
|
||||
beside it, and `+` needs no "New workflow" next to it. Put the name in the
|
||||
accessible name or tooltip.
|
||||
@@ -84,18 +84,18 @@ state; the UI presents them and submits operator choices.
|
||||
- Name things after what you are working with. The page sets context, so use
|
||||
"Restore default" not "Restore shipped workflows".
|
||||
- No filler or guidance text. Delete empty-state essays, hints that repeat the
|
||||
label, and sentences explaining how the UI works. Don't say that secret values
|
||||
are hidden when the control only displays credential names.
|
||||
- Product names are our own. The editor helper is "Build with Archie" or
|
||||
label, and sentences explaining how the UI works. Don't say the UI hides
|
||||
secret values when the control only displays credential names.
|
||||
- Use Archie's product names. The editor helper is "Build with Archie" or
|
||||
"Iterate with Archie", never generic terms like "Ask bar".
|
||||
- Actions live where their scope lives. Bulk or instance-wide actions (e.g.,
|
||||
restoring defaults) belong on the settings page for that area, not in a
|
||||
working view's header menu.
|
||||
- Actions live where their scope lives. Bulk or instance-wide actions (for
|
||||
example, restoring defaults) belong on the settings page for that area, not in
|
||||
a working view's header menu.
|
||||
- No side panels for editing workflows. Settings, trigger and steps expand in
|
||||
place on the canvas, one at a time, with the main field first and the rest
|
||||
tucked away.
|
||||
- Editor and live view are one surface. Runs show on the same cards you edit.
|
||||
- Use Select components wherever the options are known. Avoid native selects and
|
||||
- Use Select components for a known set of options. Avoid native selects and
|
||||
free text. Use the same button and badge styles as the settings pages.
|
||||
- Preserve keyboard operation, visible focus, accessible names, dialog titles
|
||||
and table semantics. A hover action must also be reachable by keyboard.
|
||||
@@ -121,8 +121,8 @@ must fail on the relevant assertion before the fix.
|
||||
internal/infrastructure/controlplanestore/testdata/dashboard-validators.json
|
||||
rather than duplicating accept/reject cases in UI-only tests.
|
||||
- Use browser checks for rendered behaviour. Matching a Vue file with a regex
|
||||
does not verify what the user sees. Mocked API checks verify UI behaviour, not
|
||||
live service integration; report that distinction.
|
||||
does not verify the rendered result. Mocked API checks verify UI behaviour,
|
||||
not live service integration; report that distinction.
|
||||
|
||||
## Verification and delivery
|
||||
|
||||
@@ -145,7 +145,7 @@ pnpm audit # after dependency changes
|
||||
## Working with you
|
||||
|
||||
- A clear direction is the go-ahead. Act in the same turn; do not restate the
|
||||
plan, offer options, or ask "shall I proceed?".
|
||||
plan, offer options, or ask whether to proceed.
|
||||
- Say each correction once. When you correct something, fix every instance and
|
||||
record the rule here so you do not repeat it.
|
||||
- Delegate to pi workers when asked, and verify their output. Check for overlap
|
||||
|
||||
Reference in new issue
Block a user