Skip to content

Add log parser UI Application#112

Draft
s1rius wants to merge 26 commits into
masterfrom
dev_tauri
Draft

Add log parser UI Application#112
s1rius wants to merge 26 commits into
masterfrom
dev_tauri

Conversation

@s1rius
Copy link
Copy Markdown
Owner

@s1rius s1rius commented Feb 5, 2024

@s1rius s1rius force-pushed the dev_tauri branch 5 times, most recently from cdf8031 to 9b9057d Compare March 31, 2024 16:07
@s1rius s1rius force-pushed the dev_tauri branch 5 times, most recently from fa32383 to 4346302 Compare May 15, 2024 18:44
@s1rius
Copy link
Copy Markdown
Owner Author

s1rius commented May 16, 2024

@s1rius s1rius force-pushed the dev_tauri branch 2 times, most recently from 82b1fa7 to 8f58f94 Compare May 25, 2024 08:08
@s1rius s1rius force-pushed the dev_tauri branch 2 times, most recently from c525b08 to 70c9bdb Compare May 27, 2024 17:28
@s1rius s1rius force-pushed the dev_tauri branch 13 times, most recently from b284cef to c70100c Compare June 16, 2025 18:12
@s1rius s1rius force-pushed the dev_tauri branch 2 times, most recently from 4c6f27f to 0221da9 Compare June 17, 2025 16:35
@s1rius s1rius force-pushed the dev_tauri branch 5 times, most recently from 9c0601e to 04e20be Compare June 18, 2025 13:17
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a new Tauri-based desktop UI application for log parsing (ui-tauri), integrates its build and publish workflows, refactors core decoding and serialization logic, and updates documentation and workspace configuration.

  • Introduces ui-tauri folder with frontend scaffolding, editor settings, Prettier config, and GitHub workflows for Android and desktop releases
  • Refactors ezlog-core: removes short JSON field renames, rewrites record decoding, adds inline helpers, and updates default features
  • Updates docs (examples and sidebar), CHANGELOG.md, and workspace/Cargo.toml to include UI app

Reviewed Changes

Copilot reviewed 20 out of 140 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
ui-tauri/index.html Basic HTML template for Tauri UI
ui-tauri/README.md Dev setup and IDE recommendations for the UI
ui-tauri/.vscode/extensions.json VS Code extension recommendations
ui-tauri/.prettierrc Prettier rules for the UI code
ui-tauri/.gitignore Ignore patterns for UI build artifacts and logs
ezlog-core/src/recorder.rs Removed serde(rename) attributes from EZRecord fields
ezlog-core/src/logger.rs Added #[inline] annotations and new helper methods
ezlog-core/src/decode.rs Rewrote decode_record, changed header decoding, updated tests
ezlog-core/Cargo.toml Disabled default JSON feature
docs/src/query.md Added instructions for UI log viewer
docs/src/platform/*.md Expanded code examples for Rust, iOS, Android, Flutter
docs/src/SUMMARY.md Updated sidebar to include "Log query"
Cargo.toml Added ui-tauri/src-tauri to workspace, commented release flags
CHANGELOG.md Documented new UI application and workflow support
.github/workflows/setup-android/action.yml Composite action for Android SDK/NDK setup
.github/workflows/publish_tauri.yml Workflow for building and publishing the Tauri app
.github/workflows/build_test.yml Adjusted Clippy commands in CI
Comments suppressed due to low confidence (5)

ezlog-core/src/recorder.rs:29

  • Removing the serde(rename) attribute here changes the JSON key from the short form to log_name, breaking existing JSON consumers. Consider restoring the #[cfg_attr(feature = "json", serde(rename = "n"))] to maintain backward compatibility.
    log_name: String,

docs/src/query.md:5

  • [nitpick] Grammatical correction: change it support decompress and decrypt to it supports decompressing and decrypting.
If you want view a log file, you can use cmdline tools to parse the log, and open the output file in any text viewer application. Or you can download ezlog-ui application which is a desktop app built by tauri, it support decompress and decrypt. 

.github/workflows/setup-android/action.yml:40

  • Appending the raw path to GITHUB_PATH won't update the PATH environment variable correctly. You need to prepend PATH= and include existing $PATH (e.g., echo "PATH=$ANDROID_HOME/...:$PATH" >> $GITHUB_PATH).
        echo "$ANDROID_HOME/build-tools/${{ inputs.build-tools-version }}" >> $GITHUB_PATH

ezlog-core/src/decode.rs:280

  • Header has no is_none() method—this call will not compile. Use is_empty() or check against a sentinel version instead of is_none().
    if header.is_none() || header.is_unknown() {

ezlog-core/src/decode.rs:387

  • Replacing expect with unwrap_or_else swallows send errors silently, so failures in signaling won't be caught as test errors. Consider restoring expect or returning a test failure.
                tx.send(()).unwrap_or_else(|_| {

Comment thread CHANGELOG.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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