Skip to content

Update the proposal detail page's activity timeline to log owner-weight-change events in the chronological history #397

Description

@thegreatfeez

Frontend — Dashboard

Summary

When an owner's voting weight changes, that event should be visible in a proposal's history. This adds owner-weight-change events to the proposal detail page's activity timeline so the full sequence of governance actions is auditable in one place.

Background

The proposal detail page in frontend/src/pages/ProposalDetailPage.tsx is where a proposal's activity timeline lists each approve, revoke, and execute event in chronological order. The weighted-governance model emits an event whenever an owner's voting weight is updated, but that event type is not read into the timeline, so weight changes are invisible in the proposal's history.

What Needs to Be Done

  1. Extend the proposal detail page's activity timeline so it also includes owner-weight-change events, interleaved in correct chronological order with the existing approve, revoke, and execute entries.
  2. Render each weight-change entry with a clear label naming the affected owner and showing the old and new weight.
  3. Make sure the timeline still reads correctly for proposals that mix approvals, revocations, execution, and weight-change events, as well as proposals with none.

Acceptance Criteria

  • The activity timeline displays owner-weight-change events alongside approve, revoke, and execute events.
  • Weight-change entries appear in the correct chronological position.
  • Each weight-change entry names the affected owner and shows the old and new weight.
  • Proposals with no weight-change events look unchanged.

Files to Look At

  • frontend/src/pages/ProposalDetailPage.tsx — the proposal detail view and its activity timeline
  • frontend/src/lib/contract.ts — on-chain event reads
  • frontend/src/hooks/useContract.ts — assembles per-proposal data

Difficulty: Medium

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions