Skip to content

Add RPC tester interface to example app#1085

Open
1egoman wants to merge 3 commits into
mainfrom
add-rpc-tester
Open

Add RPC tester interface to example app#1085
1egoman wants to merge 3 commits into
mainfrom
add-rpc-tester

Conversation

@1egoman
Copy link
Copy Markdown
Contributor

@1egoman 1egoman commented May 15, 2026

Adds a new button on the bottom control bar for the "rpc tester":

Screenshot 2026-05-15 at 11 09 19 AM

When clicked, it opens up a new panel which has two sections:

Screenshot 2026-05-15 at 11 09 04 AM

The top section allows sending RPC messages - select a destination participant, topic, and enter a payload, and click "Send". Note that there are two payload presets - "hello world" and "X" * 20000 to provide some easy to generate data to test some edge cases.

The bottom section lets you configure rpc handlers. Enter a rpc handler topic and a static response, and submit. Then when this participant receives a RPC request, the request will be responded to with the static response. This static response also has the same payload presets as the request.

Warning

This pull request was LLM generated and has only been lightly reviewed by a human. The author has tested this and confirms it works in the happy path, but no other validation has been done.

A more thorough review of this needs to occur before it could be merged.

1egoman added 2 commits May 15, 2026 11:07
This can be used to exercise sending / receiving rpc requests in the example app
Comment on lines +472 to +478
children: [
Expanded(
child: Text(
entry.topic,
style: theme.textTheme.titleSmall?.copyWith(fontWeight: FontWeight.bold, color: theme.scaffoldBackgroundColor),
),
),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

A drive by comment: the colors in this app (besides being out of date) are fairly limited, which makes styling some of these more complicated interfaces fairly challenging.

I think I might make a follow up pull request which updates the example to use the more modern color pallete / logo, and at the same time try to add in some more color scales to make this less annoying.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I did this: #1086

@1egoman 1egoman changed the title RPC tester interface to example app Add RPC tester interface to example app May 15, 2026
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.

1 participant