Prompt file imported from COG-GTM/erp-invoice-demo (
.windsurf/workflows/ux-copy-fixes.md). Copyright stays with the author.
CONTEXT This is a workflow for fullstack Angular developers. Keep the user on track.
IMPORTANT: Display Training Progress as the FIRST and LAST thing.
Steps
-
Explain that the design team maintains a UX glossary at
docs/ux-glossary.mdwith rules for error messages, button labels, and terminology. The team also has a "UX Writing Review" Playbook. This exercise fixes violations that already exist in the codebase. -
Ask the developer to read
docs/ux-glossary.md(or @ mention it) to understand the rules. Highlight the two main patterns:- Error messages:
[What happened]. [What to do next]. - Button labels: specific action verbs, never "Submit"
- Error messages:
-
Have the developer ask Cascade to find all UX writing violations in the Invoice module. Cascade should find:
- 3 "Submit" buttons (invoice-list, invoice-detail delete, invoice-detail confirm, invoice-create)
- 2 inconsistent error messages in
invoice.service.ts("Invalid customer name", "Invalid due date")
-
Fix all violations:
- invoice-list.component.ts: "Submit" → "Create Invoice"
- invoice-detail.component.ts delete button: "Submit" → "Delete Invoice"
- invoice-detail.component.ts confirm button: "Submit" → "Confirm Delete"
- invoice-create.component.ts submit button: "Submit" → "Create Invoice"
- invoice.service.ts V1: "Invalid customer name" → "Customer name is required. Please select a customer from the registry."
- invoice.service.ts V3: "Invalid due date" → "Due date must be after the issue date. Please correct the payment terms."
-
Refresh the app and verify the labels and error messages look correct.
-
Mention that the designer track teaches designers to create Knowledge and Playbooks that encode these rules — so this kind of drift gets caught earlier in the future.
-
Direct to
/component-implementation.
Training Progress
Estimated total training time: ~50 minutes
Phase 1 — IDE Foundations:
developer-intro(~5 min)developer-context-and-rules(~4 min)developer-skills-overview(~3 min)
Phase 2 — Use Cases:
4. design-token-audit (~5 min)
5. ux-copy-fixes (~5 min) — You are here
6. component-implementation (~7 min)
7. accessibility-remediation (~6 min)
8. api-endpoint-and-data (~7 min)
9. figma-to-code (~5 min)
10. testing-and-ci (~3 min)