Skip to content

fix(APP-1560): Keep the proposal and execute wizard exits inside the workspace - #1653

Merged
milosh86 merged 2 commits into
app-1529-routing-switch-wsscope-query-params-and-accountfrom
app-1560-proposal-wizard-guard-exits-to-the-dao-page-instead
Dec 3, 2026
Merged

milosh86 merged 2 commits into
app-1529-routing-switch-wsscope-query-params-and-accountfrom
app-1560-proposal-wizard-guard-exits-to-the-dao-page-instead

Conversation

@milosh86

@milosh86 milosh86 commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Description

Fixes APP-1560. When the wallet or permission check fails, the workspace proposal wizard now exits to returnTo, or else to the workspace default (/proposals?scope={account}), instead of /dao/{network}/{address}/proposals. This matches the existing execute guard and the wizard's close link.

The same fallback order (returnTo ?? exitPath ?? daoUtils.getDaoUrl(...)) now also applies to three more links in the same wizards:

  • Not-found error page of the proposal wizard (createProposalPageClient): the "plugin not found" action link.
  • Publish proposal dialog: the "Proceed anyway" link while indexing, via a new optional indexingFallbackUrl param.
  • Execute actions dialog: the "View transactions" button after a successful execute, via a new optional successUrl param.

The publish proposal dialog's "View proposal" success link now also stays inside the workspace. WorkspaceCreateProposalPage reads ws and scope from the URL and passes them down as workspaceParams. When they are set, the link opens /account/{network}/{address}/proposals/{SLUG}?ws&scope. A linked-account plugin opens the linked account's page, as the DAO link already did. If the slug is not known yet, the link goes to the wizard exit. Other callers of the dialog pass no workspaceParams, so nothing changes for them.

On /dao/… routes there is no returnTo or exitPath, so DAO pages behave as before. createProcessPageClient and createPolicyPageClient pass no exitPath. Through the shared guard hook they would now follow a returnTo too, like their close link already does. No entry point passes one to these wizards today, so nothing changes for them in practice.

Out of scope: other /dao/… links on workspace pages stay with APP-1451.

Stacked on #1649 (APP-1529), which adds the workspace routes. Retarget to main once that merges.

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

@linear-code

linear-code Bot commented Dec 1, 2026

Copy link
Copy Markdown

APP-1560

@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

🚀 Preview Deployment: View Here

@milosh86
milosh86 added this pull request to stack #1651 December 1, 2026 08:50
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

E2E results (preview)

Smoke

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

View run #6118

@milosh86
milosh86 marked this pull request as ready for review December 1, 2026 09:14
@milosh86
milosh86 requested a review from a team as a code owner December 1, 2026 09:15

@tyhonchik tyhonchik 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.

LGTM. Nit: publishProposalDialog.tsx:141 and :218 both compute indexingFallbackUrl ?? daoUtils.getDaoUrl(dao, 'proposals'); one const would do.

…pace when the permission guard redirects

Signed-off-by: Milos Dzepina <milos@aragon.org>
Signed-off-by: Milos Dzepina <milos@aragon.org>
@milosh86
milosh86 force-pushed the app-1560-proposal-wizard-guard-exits-to-the-dao-page-instead branch from 5aa3005 to 80c9acf Compare December 2, 2026 08:29
@milosh86

milosh86 commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

@tyhonchik nit addressed in the #1657.

@milosh86
milosh86 merged commit fa4e3de into main Dec 3, 2026
63 checks passed
@milosh86
milosh86 deleted the app-1560-proposal-wizard-guard-exits-to-the-dao-page-instead branch December 3, 2026 08:06

This branch was previously deployed

1 inactive deployment
preview — 80c9acf3 Deployed Dec 2, 2026 by milosh86 via deploy / deploy #6118
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.

2 participants