close #1870 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds a “Copy” button to error banners and chat error output so users can quickly copy error messages with clear feedback. Addresses Linear #1870. - **New Features** - Introduced CopyErrorMessage component that writes to clipboard and shows “Copied” for 2s. - Added the copy button to the Preview error banner and DyadOutput; actions grouped at the bottom beside “Fix with AI”. - Added Playwright e2e test and helpers to verify copy behavior and clipboard content. <sup>Written for commit 12e9bf1437ded36dc022e1d795025580d2ffd111. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
75 lines
1.4 KiB
YAML
75 lines
1.4 KiB
YAML
- paragraph: tc=create-multiple-errors
|
|
- paragraph: I will intentionally add multiple errors to test the Fix All Errors button
|
|
- img
|
|
- text: Index.tsx
|
|
- button "Edit":
|
|
- img
|
|
- img
|
|
- text: "src/pages/Index.tsx Summary: intentionally add first error"
|
|
- img
|
|
- text: Error First error in Index...
|
|
- img
|
|
- button "Copy":
|
|
- img
|
|
- button "Fix with AI":
|
|
- img
|
|
- img
|
|
- text: ErrorComponent.tsx
|
|
- button "Edit":
|
|
- img
|
|
- img
|
|
- text: "src/components/ErrorComponent.tsx Summary: intentionally add second error"
|
|
- img
|
|
- text: Error Second error in ErrorComponent...
|
|
- img
|
|
- button "Copy":
|
|
- img
|
|
- button "Fix with AI":
|
|
- img
|
|
- img
|
|
- text: helper.ts
|
|
- button "Edit":
|
|
- img
|
|
- img
|
|
- text: "src/utils/helper.ts Summary: intentionally add third error"
|
|
- img
|
|
- text: Error Third error in helper...
|
|
- img
|
|
- button "Copy":
|
|
- img
|
|
- button "Fix with AI":
|
|
- img
|
|
- button "Fix All Errors (3)":
|
|
- img
|
|
- button:
|
|
- img
|
|
- img
|
|
- text: Approved
|
|
- img
|
|
- text: less than a minute ago
|
|
- img
|
|
- text: wrote 3 file(s)
|
|
- paragraph: "Fix all of the following errors:"
|
|
- list:
|
|
- listitem: First error in Index
|
|
- listitem: Second error in ErrorComponent
|
|
- listitem: Third error in helper
|
|
- img
|
|
- text: file1.txt
|
|
- button "Edit":
|
|
- img
|
|
- img
|
|
- text: file1.txt
|
|
- paragraph: More EOM
|
|
- button:
|
|
- img
|
|
- img
|
|
- text: Approved
|
|
- img
|
|
- text: less than a minute ago
|
|
- img
|
|
- text: wrote 1 file(s)
|
|
- button "Undo":
|
|
- img
|
|
- button "Retry":
|
|
- img |