Skip to content

feat(desktop,web-ui): editor sync hash API and SSH private key picker#244

Merged
bobleer merged 1 commit intoGCWing:mainfrom
bobleer:feat/editor-sync-hash-ssh-key-picker
Mar 24, 2026
Merged

feat(desktop,web-ui): editor sync hash API and SSH private key picker#244
bobleer merged 1 commit intoGCWing:mainfrom
bobleer:feat/editor-sync-hash-ssh-key-picker

Conversation

@bobleer
Copy link
Copy Markdown
Collaborator

@bobleer bobleer commented Mar 24, 2026

Summary

  • Desktop / core: New get_file_editor_sync_hash Tauri command plus filesystem service helpers to compute a normalized SHA-256 hex for local and remote files, aligned with the web editor external-sync logic (no full file transfer for comparison).
  • Web UI editor: CodeEditor / MarkdownEditor use disk version utilities for sync checks; diskFileVersion tests added (Vitest).
  • SSH remote: Native private key file picker (default ~/.ssh) in connection/auth dialogs; small Modal and dialog style updates; i18n (en-US / zh-CN).

Verification

  • cargo check (desktop)
  • pnpm run type-check (web-ui)
  • vitest run src/tools/editor/utils/diskFileVersion.test.ts (8 tests)

- Add get_file_editor_sync_hash Tauri command and core filesystem helpers for
  normalized SHA-256 over local and remote file bytes.
- Wire CodeEditor/MarkdownEditor disk version utilities for external sync checks.
- SSH connection/auth dialogs: native key file picker with default ~/.ssh.
- Modal tweaks for SSH flows; en-US/zh-CN strings; diskFileVersion unit tests.
@bobleer bobleer merged commit 9348887 into GCWing:main Mar 24, 2026
1 check passed
@bobleer bobleer deleted the feat/editor-sync-hash-ssh-key-picker branch March 24, 2026 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant