fix(dash): confirm copied approval details
Your AI's guard dog to stop it from going rogue.
Brought to you by:
doberman
Originally created by: lKolabrodl
After a pending card's redacted JSON is written to the clipboard, the copy button now displays Copied! for 1.5 seconds and then restores Copy details. Repeated successful copies restart the timer, while clipboard failures leave the button text unchanged.
The existing dashboard polish regression test now verifies the success text and timeout without changing the copied JSON fields. The README describes the visible confirmation.
Closes [#503]
tests/unit/test_dash_polish.py::test_pending_card_can_copy_only_redacted_details to cover the transient success label and 1.5-second reset.pytest tests/unit/test_dash_polish.py -q — 18 passed.doberman (test_real_plugin_install_discovery.py). The same test was rerun alone and reproduced the environment-only ModuleNotFoundError.ruff check . and ruff format --check .lint-importspython scripts/check_markdown_links.pypython -m tools.parity.generate_parity --checkThis change was implemented with AI assistance and manually reviewed. All commands and verification results above were run locally.