Feature Request: The Witness Dashboard
With the Sign-In and Broadcast system fully operational, we can now implement The Witness Dashboard.
Feature 1: The "My Votes" Filtered View (Direct Link)
- 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:
- The app calls the Hive API (
get_accounts) for the signed-in user. - We extract the
witness_votesarray (this contains the list of names they support). - The app then calls
get_witnesses_by_accountusing that list to show their full profiles (Rank, Version, Price Feed).
- The app calls the Hive API (
- 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:
- The widget displays a summary: "You are using 28/30 votes. 27 are Active, 1 is Offline."
- The user can star the witnesses so they appear on the widget
- 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:
- On the Witness List, next to the "Vote" button, we add a secondary button (or a dropdown menu) labeled "Set as Proxy."
- On User Profiles: If you visit any user's profile, a "Set as Proxy" option appears in their settings/governance section.
- 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_proxyoperation.
Feature 4: Smart Witness Voting (With Proxy Awareness)
- The Feature: Integrated "Vote" and "Unvote" buttons on every witness profile.
-
The Flow:
- The user clicks "Vote" on a new witness.
- 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."
- Once confirmed, it broadcasts the
account_witness_voteoperation 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.