feat(share): rework server share as QR sheet

- Replace toolbar QR popover with a window sheet per sketch: top hint,
  280pt white-backed QR, copy-image / save-image / copy-ss:// actions
  and a Done button; all buttons share a 260pt min label width
- Freeze share payload and suggested file name at presentation time;
  transient "copied" feedback on copy actions
- Add ImageClipboard seam (PNG normative type + TIFF in AppKit adapter)
  and QrImageSaver seam (NSSavePanel PNG, sanitized suggested name)
- Register new typed failures in the presentation whitelist; extend
  platform-effects architecture guard and seam tests
- Record spec in docs/design/server-share-sheet.md; GLOSSARY server
  share now covers saved QR image files
This commit is contained in:
Qiu Yuzhou
2026-10-05 13:54:59 +08:00
parent 7c44cb4542
commit fd6fa65a8d
11 changed files with 428 additions and 60 deletions
+1 -1
View File
@@ -19,7 +19,7 @@
用户请求生成的可分享文件快照,包含一个配置组及其全部后代的连接资料和所需凭据。它可以包含不具备激活条件的服务器配置。
**服务器分享(Server share)**:
通过二维码或剪贴板传递单个服务器配置的 `ss://` URI,供其他设备使用。
通过二维码(屏幕显示、复制图片或保存图片文件)或剪贴板传递单个服务器配置的 `ss://` URI,供其他设备使用。
_避免用词_:导出(导出指配置组或诊断报告等文件快照)。
**服务器导入(Server import)**: