Skip to content

Add read-only mode for viewing proposals without profile#194

Merged
0xbe1 merged 2 commits intomainfrom
skip-profile
Oct 6, 2025
Merged

Add read-only mode for viewing proposals without profile#194
0xbe1 merged 2 commits intomainfrom
skip-profile

Conversation

@0xbe1
Copy link
Contributor

@0xbe1 0xbe1 commented Oct 6, 2025

Summary

  • Enable viewing proposals in TUI without selecting a profile (read-only mode)
  • Add "Skip (read-only)" option in profile selection menu
  • Disable vote/execute/reject actions when no profile is set

Motivation

Users should be able to view proposal details (function calls, votes, simulation results, balance changes, module changes) without requiring authentication. This is useful for:

  • Observers monitoring multisig proposals
  • Quick inspection without loading a profile
  • Read-only access matching the non-owner experience

Changes

HomeView.tsx

  • Remove profile requirement for accessing proposals (only network + multisig needed)
  • Add "Skip (read-only)" option in profile selection menu
  • Update UI to display "Read-only" indicator when no profile selected
  • Allow navigation to proposals without profile

ProposalView.tsx

  • Make profile prop optional
  • Handle initialization without profile (skip signer loading)
  • Block E/Y/N/R key presses in read-only mode (no-op instead of errors)
  • Display "(Read-only)" in footer when no profile set
  • Disable all transaction actions (vote, execute, reject) without profile

Test Plan

  • Build succeeds without errors
  • Can navigate to proposals with network + multisig only
  • "Skip (read-only)" option appears in profile menu
  • Proposals display correctly in read-only mode
  • E/Y/N/R keys have no effect in read-only mode
  • Footer shows "(Read-only)" indicator
  • Can still vote/execute/reject when profile is selected

🤖 Generated with Claude Code

0xbe1 and others added 2 commits October 6, 2025 23:28
Users can now view proposals without selecting a profile by choosing
"Skip (read-only)" in the profile menu. This enables read-only access
to proposal data (function, votes, simulation results, payload, etc.)
without requiring authentication.

Changes:
- Make profile optional for accessing proposals in TUI
- Add "Skip (read-only)" option in profile selection menu
- Display read-only mode indicators in UI
- Block vote/execute/reject actions when no profile is set
- Show appropriate error messages for blocked actions

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
When viewing proposals without a profile selected (read-only mode),
pressing E/Y/N/R keys now has no effect instead of showing error
messages. This provides cleaner UX for read-only access.

Changes:
- Add profile check to keyboard input handler for Y/N/E/R keys
- Remove redundant profile guards from handleVote and handleExecute
- Keys are now no-op in read-only mode rather than showing errors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@0xbe1 0xbe1 merged commit 21808ad into main Oct 6, 2025
1 check failed
@0xbe1 0xbe1 deleted the skip-profile branch October 6, 2025 15:37
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

Comments