From 074f8ffae7192b677cea3ff92357ff7d08ed62f8 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Wed, 23 Apr 2025 19:24:44 +0100 Subject: [PATCH 1/2] No need for the action as can link direct to /account/plan --- frontend/src/routes/_account.index.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/frontend/src/routes/_account.index.tsx b/frontend/src/routes/_account.index.tsx index 169eab0b5..5718eee16 100644 --- a/frontend/src/routes/_account.index.tsx +++ b/frontend/src/routes/_account.index.tsx @@ -83,9 +83,6 @@ const actionSchema = v.variant("action", [ v.object({ action: v.literal("org.matrix.cross_signing_reset"), }), - v.object({ - action: v.literal("org.matrix.plan_management"), - }), v.partial( v.looseObject({ action: v.never(), @@ -129,10 +126,6 @@ export const Route = createFileRoute("/_account/")({ to: "/reset-cross-signing", search: { deepLink: true }, }); - case "org.matrix.plan_management": - throw redirect({ - to: "/plan", - }); } }, From 96f1b590ebf304cb5aef21c3f9617c2d463a7933 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Fri, 9 May 2025 10:24:30 +0100 Subject: [PATCH 2/2] Revert "No need for the action as can link direct to /account/plan" This reverts commit 074f8ffae7192b677cea3ff92357ff7d08ed62f8. --- frontend/src/routes/_account.index.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/frontend/src/routes/_account.index.tsx b/frontend/src/routes/_account.index.tsx index 5718eee16..169eab0b5 100644 --- a/frontend/src/routes/_account.index.tsx +++ b/frontend/src/routes/_account.index.tsx @@ -83,6 +83,9 @@ const actionSchema = v.variant("action", [ v.object({ action: v.literal("org.matrix.cross_signing_reset"), }), + v.object({ + action: v.literal("org.matrix.plan_management"), + }), v.partial( v.looseObject({ action: v.never(), @@ -126,6 +129,10 @@ export const Route = createFileRoute("/_account/")({ to: "/reset-cross-signing", search: { deepLink: true }, }); + case "org.matrix.plan_management": + throw redirect({ + to: "/plan", + }); } },