Skip to content

feat(devops): Tauri debugging rules, async IPC, and hardened GUI tests#16

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/tauri-devops-bb79
Jun 6, 2026
Merged

feat(devops): Tauri debugging rules, async IPC, and hardened GUI tests#16
cursor[bot] merged 2 commits into
mainfrom
cursor/tauri-devops-bb79

Conversation

@yusufsaaas

Copy link
Copy Markdown
Member

Summary

Implements the Tauri development practices from the project guide: DevTools debugging, IPC safety, async heavy commands, and automated GUI testing in CI.

Changes

.cursorrules

Permanent AI rules for IPC registration, serde camelCase, async commands, error handling, and testing.

Async IPC (no UI freeze)

Heavy commands (compress, extract, inspect, forensic_scan, hash, etc.) now use spawn_blocking via run_blocking(). Sync implementations exposed as *_sync for Rust E2E tests.

Frontend IPC logging

src/lib/tauri.js wraps all invoke() calls with try/catch + console.error('[ZipLoom IPC] ...') — visible in DevTools Console.

GUI tests

  • Console error detection added to tests/gui-smoke.mjs (16/16 tests)
  • playwright.config.mjs added
  • CI runs npm run test:gui on every push

About tab

Loads version/features from about_info command instead of hardcoded values.

Docs

DEVELOPER.md — DevTools shortcut, common IPC errors, GUI test workflow.

Verify locally

npm run test:all
npm run tauri:dev   # Cmd+Option+I to open DevTools
Open in Web Open in Cursor 

cursoragent and others added 2 commits June 6, 2026 10:47
- Add .cursorrules with IPC registration, serde, async, and error-handling rules
- Move heavy commands to async + spawn_blocking; expose *_sync for Rust E2E tests
- Add serde rename_all camelCase on IPC structs
- Centralize invoke error logging in src/lib/tauri.js
- Wire AboutTab to about_info command; add console error detection to GUI smoke
- Add playwright.config.mjs; run test:gui in CI
- Document DevTools debugging and GUI testing in DEVELOPER.md

Co-authored-by: Yusuf Shalahuddin Al Ayyubi As Sobari <yusuf.shalahuddin@live.com>
- Add Rust E2E: forensic scan, hash, preview, partial extract, stat_paths
- Add ipc_registry_test.rs and tests/ipc-coverage.mjs
- GUI smoke: password ZIP, preview, flat view, about version/centering (20 tests)
- test:all runs IPC + E2E (12) + GUI; CI runs full pipeline
- Add root .cargo/config.toml for Linux link flags from repo root

Co-authored-by: Yusuf Shalahuddin Al Ayyubi As Sobari <yusuf.shalahuddin@live.com>
@cursor cursor Bot deleted the cursor/tauri-devops-bb79 branch June 6, 2026 10:51
@cursor cursor Bot merged commit 06cb129 into main Jun 6, 2026
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.

2 participants