- Never deflect blame or make excuses like "this isn't related to my changes". Just focus on diagnosing and fixing the problem.
- Do not use fallbacks (e.g.
value || otherValue). Use the correct field name directly. If the field name is wrong, fix it — don't paper over it.
- Do not add patronising or condescending warnings, tooltips, or helper text (e.g. "Use with caution", "Are you sure?", "This action cannot be undone"). Trust that users understand what they are doing.
Follow the guidelines in docs/playwright-friendly-html.md when writing or modifying Svelte components:
- Add
data-testidattributes to interactive and assertable elements - Use semantic HTML and ARIA labels
- Use
nameattributes on form inputs - Avoid selectors tied to CSS classes or DOM structure
- Give unique
data-testidvalues to repeated items (e.g. table rows) - Expose UI state via
data-stateor similar data attributes (e.g.data-state="expanded")