From a9d77bbf637201ccd6f36ff3e5fa83b3e756f9d4 Mon Sep 17 00:00:00 2001 From: Konsti Wohlwend Date: Fri, 19 Jun 2026 16:46:05 -0700 Subject: [PATCH] feat: show info note when Reject action is selected in signup rule editor (#1633) --- .../projects/[projectId]/sign-up-rules/page-client.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sign-up-rules/page-client.tsx b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sign-up-rules/page-client.tsx index 7dcbf07b8..5213915c7 100644 --- a/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sign-up-rules/page-client.tsx +++ b/apps/dashboard/src/app/(main)/(protected)/projects/[projectId]/sign-up-rules/page-client.tsx @@ -717,6 +717,15 @@ function RejectMessageField({ state, size = "sm", className }: { state: RuleEdit ); } +function RejectActionNote({ state }: { state: RuleEditorState }) { + if (state.actionType !== 'reject') return null; + return ( +

+ Reject will prevent users from signing up completely. Consider using Restrict instead — it still creates the user account but blocks app access, and you can unrestrict users later from the dashboard. +

+ ); +} + function SaveCancelButtons({ state, size = "sm" }: { state: RuleEditorState, size?: "sm" | "lg" }) { return ( <> @@ -797,6 +806,7 @@ function RuleEditor(props: { +