Repository navigation
Conversation
- Replace empty render() stub in inspector.rs with a full Ratatui Table widget that displays storage diffs (StateDiff / LedgerEntryDiff) for the currently selected invocation frame - Color-code rows: green for Added, red for Deleted, yellow for Modified; Unchanged entries are filtered out of the view - Add scroll-offset support so long diff lists can be navigated - Render a one-line argument summary above the diff table when an invocation frame is selected - Extend TuiState with selected_invocation and state_diff fields so the app can pass live data to the inspector - Update app.rs to initialise TuiState with the new fields - Retain legacy render() no-op stub for backward compatibility - Add unit tests for truncation, row building, scroll clamping, and Unchanged-entry filtering Closes Toolbox-Lab#485
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
|
@olatecki Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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 |
|
@mergebot merge |
|
please kindly merge |
|
@olatecki please fix conflicts in your PR |
|
On it
…On Fri, 23 Oct 2026, 22.13 Lewechi, ***@***.***> wrote:
*codeZe-us* left a comment (Toolbox-Lab/Prism#499)
<#499 (comment)>
@olatecki <https://github.com/olatecki> please fix conflicts in your PR
—
Reply to this email directly, view it on GitHub
<#499?email_source=notifications&email_token=B7R7XAZSX4F7YQZAP5X7PQ35VPCXVA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMZXGQ4DINZQGM22M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-6374847035>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B7R7XA4KU6GUX5CL3I2WIL35VPCXVAVCNFSNUABGKJSXA33TNF2G64TZHMYTCOBTG42TEMRZGQ5US43TOVSTWNJZGY2TGMJRGY4TFILWAI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
conficts fixed please merge,thank you. |
|
@codeZe-us conflicts fixed workflow run
…On Fri, Oct 23, 2026 at 10:13 PM Lewechi ***@***.***> wrote:
*codeZe-us* left a comment (Toolbox-Lab/Prism#499)
<#499 (comment)>
@olatecki <https://github.com/olatecki> please fix conflicts in your PR
—
Reply to this email directly, view it on GitHub
<#499?email_source=notifications&email_token=B7R7XAZSX4F7YQZAP5X7PQ35VPCXVA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMZXGQ4DINZQGM22M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-6374847035>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/B7R7XA4KU6GUX5CL3I2WIL35VPCXVAVCNFSNUABGKJSXA33TNF2G64TZHMYTCOBTG42TEMRZGQ5US43TOVSTWNJZGY2TGMJRGY4TFILWAI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
|
please sir merge. Thank you. |
Description
Implements the
ender_inspector function in crates/cli/src/tui/widgets/inspector.rs, replacing the empty stub with a fully functional Ratatui Table widget that displays storage state changes for the currently selected invocation frame in the TUI debugger.
How It Was Done
inspector.rs: Added
ender_inspector(frame, area, state_diff, selected, scroll) which:
ender()\ stub for backward compatibility
state.rs: Extended \TuiState\ with:
�pp.rs: Updated \TuiState\ initialisation to include the two new fields.
Issues Encountered (If Any)
None. The existing \StateDiff, \LedgerEntryDiff, and \DiffChangeType\ types in \grat-core\ provided exactly the right data model.
Related Issue
Closes #485
How It Was Tested
Seven unit tests added directly in \inspector.rs:
Screenshots / Video (If Applicable)
Widget renders as a bordered table panel:
\
┌ Inspector ─ GABC…::transfer ──────────────────────────────────────┐
│ Args: GABC…, GDEF…, 1000 │
│ Change Key Before After │
│ │
│ + Added contract_data::balance — 0000beef │
│ ~ Modified contract_data::counter 00000001 00000002 │
│ - Deleted contract_data::temp_lock deadbeef — │
└───────────────────────────────────────────────────────────────────┘
\\