Skip to content

Commit 969f414

Browse files
authored
feat(dexdex): forward tauri dev console logs to terminal (#282)
## Summary - forward DexDex WebView `console.*` logs to terminal output in Tauri development runtime - keep production behavior unchanged by enabling the bridge only in development mode with Tauri runtime checks - add Tauri log plugin wiring on both Rust host and web client side - sync DexDex docs contracts to reflect the new development logging behavior ## Changes - add `@tauri-apps/plugin-log` dependency and lockfile updates - register `tauri_plugin_log::Builder::new().build()` in Tauri host runtime - add `log:default` capability permission for DexDex desktop window - add `initDevConsoleTerminalBridge()` in app bootstrap - add `dev-console-terminal-bridge.ts` and tests for level mapping, no-op without Tauri runtime, and idempotent install - update DexDex app and project docs: - `docs/apps-dexdex-desktop-app-foundation.md` - `docs/project-dexdex.md` ## Validation - `cd apps/dexdex && pnpm test` - `cargo test` (repository root) - `cd apps/dexdex/src-tauri && cargo test`
1 parent 50dcd4e commit 969f414

11 files changed

Lines changed: 689 additions & 1 deletion

apps/dexdex/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@connectrpc/connect-web": "^2.1.1",
2121
"@tanstack/react-query": "^5.90.21",
2222
"@tauri-apps/api": "^2.0.0",
23+
"@tauri-apps/plugin-log": "^2.8.0",
2324
"clsx": "^2.1.1",
2425
"lucide-react": "^0.577.0",
2526
"react": "^19.0.0",

0 commit comments

Comments
 (0)