Skip to content

Integrate User Proposal Voting History

This feature will create a seamless link between a user's profile and their voting history on the main proposals page. It consists of two key parts:

  1. "Proposal Votes" Stat on User Profiles: A new "stats card" will be added to the user profile page, alongside existing stats like "Followers" and "Total Posts". This card will display a single number: the total count of DHF proposals the user has voted on. The entire card will be clickable, acting as a direct link to a new, powerful view. Mockup of the New Stat Card: (Imagine a card styled like "Followers" but with a governance icon, the number of votes, and the label "PROPOSAL VOTES")
  2. Filtered View on the Main Proposals Page: When a user clicks the new "Proposal Votes" stat card on a profile (e.g., themarkymark), they will be taken to the main /proposals page. This page will now be automatically filtered to show only the proposals that @themarkymark has voted for. We should add a filtering indicator to the search box, so themarkymark will appear for example inside the filter box, which already has[x]. This allows the user to easily understand the current view and clear the filter with a single click to return to the full list of all proposals. We already have a search box to search proposals

Developer Notes:

API: bridge_api Method: list_proposal_votes Key Parameter: single voter name.

Json Example { "jsonrpc": "2.0", "method": "bridge_api.list_proposal_votes", "params": { "start_voter": "blocktrades", <-- Voter Name "limit": 100, "order_by": "proposal_id", "order_direction": "desc", "status": "active" // <-- Powerful server-side filtering! }, "id": 1 }