Let anyone finish a Rule without an account or email.

Continue on final review and Finish without inviting no longer open a login wall. The header stays Exit until Save your progress is done, and Send invitations is the only invite-path login.
This commit is contained in:
adilallo committed 2026-11-23 14:48:01 -07:00
1 parent 077942166c
commit 0535f6f167
14 files changed
+377 -225

No files matched your search

@@ -9,7 +9,6 @@ import {
updatePublishedRule,
} from "../../../../lib/create/api";
import { writeLastPublishedRule } from "../../../../lib/create/lastPublishedRule";
import { writePendingKeepRuleLogin } from "../../../../lib/create/pendingKeepRuleLogin";
import messages from "../../../../messages/en/index";
import type { CreateFlowState } from "../types";
import {
@@ -142,7 +141,6 @@ export function useCreateFlowFinalize({
document: ruleDocument,
});
updateState({ editingPublishedRuleId: undefined });
writePendingKeepRuleLogin();
onGuestPublished?.({ skippedInvites: false });
router.push(createFlowStepPath("completed"));
return;
@@ -215,7 +213,6 @@ export function useCreateFlowFinalize({
: {}),
});
if (isGuest) {
writePendingKeepRuleLogin();
onGuestPublished?.({ skippedInvites: skippedGuestInvites });
} else {
void deleteServerDraftAfterPublish();