Stop treating login/save-progress as a 48-character email limit.
The overlay was failing Zod on preset method-card support text attached with the draft; raise that cap, allow RFC-length emails, and drop Back to home from the overlay. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
export const CUSTOM_METHOD_CARD_WIZARD_MAX_FIELD_CHARS = 48;
|
||||
|
||||
/**
|
||||
* Max length for the policy description. Wider than the title so Customize can
|
||||
* seed existing card support text without blocking Next.
|
||||
* Max length for persisted method-card `supportText`. Wider than the title so
|
||||
* Customize can seed existing card copy and catalog blurbs without blocking Next.
|
||||
*/
|
||||
export const CUSTOM_METHOD_CARD_WIZARD_MAX_DESCRIPTION_CHARS = 200;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
const EMAIL_MAX_LEN = 254;
|
||||
/** RFC 5321 max mailbox length (no angle brackets). */
|
||||
export const EMAIL_MAX_LEN = 254;
|
||||
|
||||
/** Pragmatic check for the create-flow “save progress” email field (draft + footer enablement). */
|
||||
export function isValidCreateFlowSaveEmail(value: unknown): boolean {
|
||||
|
||||
Reference in New Issue
Block a user