Skip to content

Update proposal detail activity timeline to log owner-weight-change events (#397) - #561

Open
ByteForce-Labs wants to merge 1 commit into
Ac0rdP:mainfrom
ByteForce-Labs:feature/issue-397-weight-change-timeline
Open

Update proposal detail activity timeline to log owner-weight-change events (#397)#561
ByteForce-Labs wants to merge 1 commit into
Ac0rdP:mainfrom
ByteForce-Labs:feature/issue-397-weight-change-timeline

Conversation

@ByteForce-Labs

Copy link
Copy Markdown

Summary

Closes #397

When an owner's voting weight changes, that event is now logged in the proposal detail page's activity timeline, interleaved in correct chronological order with existing approve, revoke, and execute events.

Changes

  • frontend/src/lib/contract.tsgetProposalEvents now includes governance-wide owner_weight_changed (c_wgt) events in every proposal's chronological history, and each weight-change entry names the affected owner with its old → new weight (e.g. GOWNER...AAAA: Weight: 25 → 40).
  • frontend/src/pages/ProposalDetailPage.tsx — activity timeline renders owner-weight-change entries with a clear "Owner Weight Changed" badge.
  • frontend/src/lib/__tests__/contract-events.test.ts — updated to assert the owner-named weight-change detail.
  • frontend/src/pages/ProposalDetailPage.test.tsx — added timeline rendering test for owner-weight-change events alongside approve/execute.
  • Supporting contract-lib refactors (duplicate helper dedup, getOwnerWeight returns bigint, recurring-proposal wrapper cleanup) and OwnersPage quorum/weight UI additions.

Acceptance criteria

  • ✅ 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 old and new weight.
  • ✅ Proposals with no weight-change events look unchanged.

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown

@web3nova is attempting to deploy a commit to the thegreatfeez's projects Team on Vercel.

A member of the Team first needs to authorize it.

@thegreatfeez

Copy link
Copy Markdown
Contributor

Resolve the conflict

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.

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

3 participants