Skip to content

fix(APP-1231): show value field for payable allowed actions - #1422

Open
harryburger wants to merge 2 commits into
mainfrom
fix/app-1231-payable-allowed-actions
Open

harryburger wants to merge 2 commits into
mainfrom
fix/app-1231-payable-allowed-actions

Conversation

@harryburger

@harryburger harryburger commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Task: https://linear.app/aragon/issue/APP-1231/show-value-field-for-payable-allowed-actions

When a payable function is in the only-allowed actions list, the value field was not rendered. The allowed actions never passed stateMutability to the action, so it was always treated as non payable.

Now getAllowedActionItems forwards decoded.stateMutability to the action inputData, so payable ones show the value field.

Needs aragon/app-backend#1589 to return stateMutability on allowed actions. The field is optional, so without it nothing changes.

Tested locally against sandbox (backend PR is deployed there) on the test DAO, WETH9 deposit now shows the value field and the value is set on the action.

Type of Change

  • Patch: Bug fix (non-breaking change which fixes an issue)

Developer Checklist:

  • Manually smoke tested the functionality in a preview or locally
  • Confirmed there are no new warnings or errors in the browser console
  • (For User Stories only) Double-checked that all Acceptance Criteria are satisfied
  • Confirmed there are no new warnings on automated tests
  • Merged and published any dependent changes in downstream modules
  • Selected the correct base branch
  • Commented the code in hard-to-understand areas
  • Followed the code style guidelines of this project
  • Reviewed that the Files Changed in Github’s UI reflect my intended changes
  • Confirmed the pipeline checks are not failing

Review Checklist:

  • (For User Stories only) Tested in a preview or locally that all Acceptance Criteria are satisfied
  • Confirmed that changes follow the code style guidelines of this project

@harryburger
harryburger requested a review from a team as a code owner September 25, 2026 20:53
Copilot AI lite review requested due to automatic review settings September 25, 2026 20:53
@linear-code

linear-code Bot commented Sep 25, 2026

Copy link
Copy Markdown

APP-1231

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved issues were identified that would block approval.

Review effort: Lite
Findings: None

What changed in this PR

Forwards allowed-action function mutability so payable actions display the native value field.

Changes:

  • Added optional stateMutability to decoded allowed actions.
  • Passed it into constructed custom actions.
  • Added coverage for payable, nonpayable, and missing metadata.
File Description
apps/​app/​src/​modules/​governance/​components/​actionComposer/​actionComposerUtils.ts Updated as part of this pull request.
apps/​app/​src/​modules/​governance/​components/​actionComposer/​actionComposerUtils.test.ts Updated as part of this pull request.
apps/​app/​src/​modules/​governance/​api/​executeSelectorsService/​domain/​allowedActionDecoded.ts Updated as part of this pull request.
.changeset/​app-1231-payable-allowed-actions.md Updated as part of this pull request.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

🚀 Preview Deployment: View Here

@github-actions

github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

E2E results (preview)

Smoke

Base URL https://app-next-mb6qyzf8i-aragon-app.vercel.app
Suite smoke
Playwright result ✅ passed
Summary 86 passed
HTML report View report
GitHub job ✅ completed

View run #5342

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved issues were identified that would block approval.

Review effort: Lite
Findings: None

@Fabricevladimir Fabricevladimir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good to go 🚀

This branch was successfully deployed

1 active deployment
preview — 37fb3d35 Deployed Sep 28, 2026 by harryburger via deploy / deploy #5342
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.

3 participants