Loading
Show feedback after copying query source
What does this MR do and why?
Show clear success or failure feedback after a user copies a query source, so they know whether it completed or needs to be tried again. No Sentry tracking is added, as explicitly requested.
Component tests cover both outcomes, and locale/gitlab.pot contains the
new messages. Documentation is not needed because this adds feedback to an
existing action.
References
Resolves #607700
Screenshots or screen recordings
These transient UI states are covered by component tests; no screenshot is included.
How to set up and validate locally
- Open an embedded GLQL view and open the query source modal.
- Use the copy action and confirm
Source copied to clipboardappears. - Deny clipboard permission or make the Clipboard API unavailable, use the
copy action, and confirm
Failed to copy source to clipboardappears.
Automated validation passed: 3 Jest suites (47 tests), targeted ESLint, Prettier, gettext extraction, and a git diff check.
MR acceptance checklist
- Component tests cover the transient success and failure states.
- Required translations are included.
- No documentation changes are needed for feedback on an existing action.