Feature Request: The Witness Dashboard

With the Sign-In and Broadcast system fully operational, we can now implement The Witness Dashboard.

  • The Feature: A link in the logged-in menu titled "My Witness Votes" that takes the user to the Witness page, but automatically filters the results to show only the witnesses they have voted for.
  • The Technical Flow:
    1. The app calls the Hive API (get_accounts) for the signed-in user.
    2. We extract the witness_votes array (this contains the list of names they support).
    3. The app then calls get_witnesses_by_account using that list to show their full profiles (Rank, Version, Price Feed).
  • Purpose: Allows users to see their "Portfolio" of 30 votes instantly without scrolling through the top 200 list.

Feature 2: Witness Health Widget (Home Screen)

  • The Feature: A high-level status card on the Home Dashboard.
  • The Flow:
    1. The widget displays a summary: "You are using 28/30 votes. 27 are Active, 1 is Offline."
    2. The user can star the witnesses so they appear on the widget
    3. The widget lists the top 5 witnesses the user supports with a simple Green/Red status light next to each.
  • Purpose: Gives users "at-a-glance" peace of mind that their chosen witnesses are running their servers correctly.

Feature 3: Integrated "Set as Proxy" Action

  • The Feature: We add a "Set as Proxy" button directly onto every Witness card and every User Profile.
  • The UI Logic:
    1. On the Witness List, next to the "Vote" button, we add a secondary button (or a dropdown menu) labeled "Set as Proxy."
    2. On User Profiles: If you visit any user's profile, a "Set as Proxy" option appears in their settings/governance section.
    3. Visual Feedback: If the user has a proxy set, the app shows a prominent banner at the top of the Witness page: "You are currently proxying your votes to @username. [Clear Proxy]"
  • Technical Rule (The PeakD Way):
    • When a user clicks "Set as Proxy," the app should warn them: "Setting a proxy will override your current manual witness votes. Do you want to proceed?"
    • This uses the account_witness_proxy operation.

Feature 4: Smart Witness Voting (With Proxy Awareness)

  • The Feature: Integrated "Vote" and "Unvote" buttons on every witness profile.
  • The Flow:
    1. The user clicks "Vote" on a new witness.
    2. Safety Check: The app checks if the user has already used 30 votes. If yes, it prompts: "You have reached your 30-vote limit. Please remove a witness before adding a new one."
    3. Once confirmed, it broadcasts the account_witness_vote operation via Hivesigner.
  • The Problem: On Hive, you cannot vote for a witness if you have a proxy set.
  • The Solution:
    • If a user has a proxy, the "Vote" buttons on all witnesses should be disabled (greyed out) or replaced with a tooltip that says: "Remove your proxy to vote manually."
    • This prevents user confusion and "failed transaction" errors.