fix(#629): put Scan contact QR on the contacts menu, not only in the key field
Owner feedback from testing: a scan button living only inside the public key field is awkward placement, because scanning is how most people will actually add someone and it should not be reachable only from inside a field they have to open first. Now in both places, routed to the right thing: - Contacts overflow menu, Scan contact QR, opens the scanner and hands the result to the add dialog already populated. Nothing to paste. - The key field keeps its scan button, which fills in place, for when the dialog is already open. Same scanner and same parser either way; only the entry point differs. The dialog gains an optional initialKeyText, and seeds it through the same handler as a paste, so a scanned link populates name and type rather than sitting there as raw text. Platform availability moves to a shared contactQrScanAvailable getter on the scanner screen, since it now has two consumers. Both the menu entry and the field button hide on Windows and Linux, where mobile_scanner has no support and the render half is the desktop path. Epic #619. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>fix/652-release-prerelease-flag
parent
c27bef0f73
commit
a88c24f44f
Loading…
Reference in new issue