feat: enhance log system with true deletion, noise filtering, and error boundaries

- Implemented `clear_logs` Tauri command to physically wipe local log files.
- Added a global `ErrorBoundary` to cleanly intercept React render loops (e.g. Error #185) and provide readable stack traces.
- Hardened `tauri_plugin_log` to filter out `webview`, `hyper`, `reqwest`, `rustls` log noise.
- Replaced the default browser right-click menu in LogsView with a custom native React menu for copying text securely.
This commit is contained in:
NimBold
2026-06-22 21:43:49 +03:30
parent 25a58c8356
commit 58fb0155b7
5 changed files with 139 additions and 5 deletions
+1
View File
@@ -69,6 +69,7 @@ type CommandMap = {
};
export_logs: { args: { destPath: string }; result: string };
read_logs: { args: { limit: number }; result: string[] };
clear_logs: { args: undefined; result: void };
toggle_log_pause: { args: { pause: boolean }; result: void };
is_log_paused: { args: undefined; result: boolean };
get_pending_order: { args: { queueId: string | null }; result: string[] };