Skip to content

fix: governance frontend fixes#1702

Open
brunod-e wants to merge 5 commits intodevfrom
fix/governance-frontend
Open

fix: governance frontend fixes#1702
brunod-e wants to merge 5 commits intodevfrom
fix/governance-frontend

Conversation

@brunod-e
Copy link
Collaborator

@vercel
Copy link

vercel bot commented Mar 12, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
anticapture Ready Ready Preview, Comment Mar 12, 2026 7:09pm
anticapture-storybook Ready Ready Preview, Comment Mar 12, 2026 7:09pm

Request Review

@brunod-e brunod-e marked this pull request as draft March 12, 2026 02:53
@claude
Copy link

claude bot commented Mar 12, 2026

Claude encountered an error —— View job


I'll analyze this and get back to you.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f8a84bcd2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

import daoConfigByDaoId from "@/shared/dao-config";
import type { DaoIdEnum } from "@/shared/types/daos";

const ETH_ADDRESS_REGEX = /(0x[0-9a-fA-F]{40})(?![0-9a-fA-F])/g;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add a left boundary when extracting calldata addresses

The new ETH_ADDRESS_REGEX only checks the right boundary, so it can match the last 40 hex chars inside longer values (for example a 64-hex bytes32 hash) and treat them as Ethereum addresses. In decoded calldata that includes hashes or packed bytes, this will render incorrect ENS names and mutate the displayed payload, which can mislead users reviewing proposal actions.

Useful? React with 👍 / 👎.

@brunod-e brunod-e marked this pull request as ready for review March 12, 2026 14:32
@claude
Copy link

claude bot commented Mar 12, 2026

Claude encountered an error —— View job


I'll analyze this and get back to you.

@brunod-e brunod-e changed the title feat(governance): enhance useVotes hook with support and voterAddress… fix: governance frontend fixes Mar 12, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f8a84bcd2

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +36 to +39
const isQueued =
proposalStatus === "queued" ||
proposalStatus === "pending_execution" ||
proposalStatus === "executed";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include succeeded proposals in queued timeline state

The timeline logic omits succeeded from isQueued, so proposals that are now labeled as pending queue never render a queued milestone at all. In practice, when a proposal has passed but not yet been queued, the UI stops at Ended, which misrepresents the current workflow stage and makes it look like nothing remains. This should treat succeeded as a queued-stage proposal (with pending state) so the timeline matches the status shown elsewhere.

Useful? React with 👍 / 👎.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bb10db3f33

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +37 to +39
proposalStatus === "queued" ||
proposalStatus === "pending_execution" ||
proposalStatus === "executed";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treat expired proposals as queued in timeline

The queued milestone is gated only on queued, pending_execution, and executed, so proposals with status expired render without any queued step even though expiration occurs after queueing in governor flows. In that case the timeline regresses to Created/Started/Ended and hides the stage where execution failed to happen before expiry, which misrepresents proposal progression for users troubleshooting why a passed proposal was never executed.

Useful? React with 👍 / 👎.

Copy link
Collaborator

@isadorable-png isadorable-png left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Missing voting power on didn't vote tab
  2. Big links are breaking the layout, still needs fixing

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4ae67ceb61

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +26 to +30
<EnsAvatar
key={`ens-${i}`}
address={segment as `0x${string}`}
showAvatar={false}
nameClassName="text-secondary font-mono text-sm font-normal not-italic leading-5"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve full calldata addresses in ENS-rendered output

Rendering decoded calldata addresses through EnsAvatar without showFullAddress causes unresolved addresses to be shortened (e.g. 0x1234…abcd) instead of showing the exact 42-char value, so proposal actions can display ambiguous or indistinguishable recipients when multiple addresses share the same prefix/suffix. This regresses the fidelity of the calldata viewer and can mislead users validating execution targets even though the copied text still contains full addresses.

Useful? React with 👍 / 👎.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants