feat: implement batch transaction decoding command with an interactiv… - #415
Merged
Conversation
…e error summary UI
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
codeZe-us
self-requested a review
August 24, 2026 12:09
codeZe-us
approved these changes
Aug 24, 2026
Contributor
|
PR reviewed and merged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #408
Description
This PR introduces batch decoding capabilities for analyzing large logs or processing multiple transactions simultaneously. It adds a new
ErrorSummaryListUI component that takes a batch of parsed diagnostic error reports and renders a compact, aggregated summary view in the terminal. The summary groups identical or closely related errors to reduce visual noise and clearly displays their counts, providing developers an immediate overview of error distribution and cascading failures without being overwhelmed by verbose outputs.How It Was Done
crates/cli/src/commands/batch.rs): Implemented a newBatchArgsCLI command that accepts a list of transaction hashes (or error hashes) natively. It resolves all entries in the batch by passing them through thedecode_transaction_with_op_filterdecoder and concatenates the resultingDiagnosticReports.ErrorSummaryListComponent (crates/cli/src/ui/error_summary.rs): Engineered the rendering component utilizingtabledfor creating neat terminal tables andcoloredfor applying distinct severity color codes.HashMapby theirerror_category,error_name, andSeverity. The accumulated rows are subsequently sorted bySeverityweight (Fatal > Error > Warn > Info) and descending count frequency to highlight the most critical and prominent issues at the top of the terminal table.crates/cli/src/main.rs): Registered thebatchcommand inside the primary command multiplexer enum.Issues Encountered (If Any)
coloredcrate correctly integrate and align inside thetabledoutput format bounds.NetworkConfig).How It Was Tested
cargo checkto assert proper module inclusion, imports matching, and correct crate dependencies implementation.DiagnosticReports into grouped hash map rows.Screenshots / Video (If Applicable)
(Insert a screenshot here showing the
=== Batch Decoding Summary ===terminal output with grouped error severities color-coded in Fatal/Error/Warn/Info rows).