Skip to content

backport: feat(ui): add Auto Update button for dashmate RPC password#641

Merged
lklimek merged 5 commits into
v1.0-devfrom
zk-extract/dashmate-auto-update
Feb 24, 2026
Merged

backport: feat(ui): add Auto Update button for dashmate RPC password#641
lklimek merged 5 commits into
v1.0-devfrom
zk-extract/dashmate-auto-update

Conversation

@lklimek
Copy link
Copy Markdown
Contributor

@lklimek lklimek commented Feb 24, 2026

Summary

  • Adds read_dashmate_rpc_password() function that reads the RPC password from ~/.dashmate/config.json
  • Adds "Auto Update" button next to the local network password field in the Network Chooser screen
  • On click, reads password from dashmate config (local_seed config name) and auto-fills + saves it

Note: When Auto Update fails (no dashmate installed, missing config), the error is only logged via tracing::error! — no user-visible feedback in the UI. Consider adding an inline error message.

Test plan

Manual test scenarios: docs/ai-design/2026-02-24-dashmate-auto-update/manual-test-scenarios.md

  • Button present on Local Network tab
  • Successful auto-fill with dashmate installed
  • Graceful handling without dashmate (error logged)
  • Manual Save button still works independently
  • Password persists across app restart

🤖 Co-authored by Claudius the Magnificent AI Agent

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lklimek lklimek self-assigned this Feb 24, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 24, 2026

Warning

Rate limit exceeded

@lklimek has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 22 minutes and 34 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between f6a09ee and d81b8e1.

📒 Files selected for processing (2)
  • docs/ai-design/2026-02-24-dashmate-auto-update/manual-test-scenarios.md
  • src/ui/network_chooser_screen.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch zk-extract/dashmate-auto-update

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

lklimek and others added 4 commits February 24, 2026 11:13
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace custom inline Frame-based error display with the codebase's
standard MessageBanner::set_global() pattern. The banner is rendered
centrally by island_central_panel() and auto-dismisses after a default
duration, providing a consistent user experience.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@lklimek lklimek marked this pull request as ready for review February 24, 2026 11:05
@lklimek lklimek merged commit d4ac7ab into v1.0-dev Feb 24, 2026
4 checks passed
@lklimek lklimek deleted the zk-extract/dashmate-auto-update branch February 24, 2026 11:13
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