From b656bc16ebe24f124cc4ad54c5fbf3da98f06671 Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Mon, 16 Feb 2026 03:02:19 +0530 Subject: [PATCH] :chore: Create required field labels, full validation tooltip on Next button, no advance on save failure --- bun.lock | 1 + src/app/components/DragAndDropFile.tsx | 3 + .../createBlueprintSteps/EmailDetails.tsx | 1 + .../createBlueprintSteps/ExtractFields.tsx | 4 +- .../createBlueprintSteps/PatternDetails.tsx | 6 + src/app/create/[id]/page.tsx | 128 ++++++++++++++---- src/components/ui/input.tsx | 3 + src/components/ui/textarea.tsx | 4 +- 8 files changed, 119 insertions(+), 31 deletions(-) diff --git a/bun.lock b/bun.lock index f12a1c37..89096d4b 100644 --- a/bun.lock +++ b/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "registry", diff --git a/src/app/components/DragAndDropFile.tsx b/src/app/components/DragAndDropFile.tsx index 4ea6bd23..5c15ab6d 100644 --- a/src/app/components/DragAndDropFile.tsx +++ b/src/app/components/DragAndDropFile.tsx @@ -16,6 +16,7 @@ const DragAndDropFile = ({ errorMessage, loading, tooltipComponent, + required, }: { accept: string; title?: string; @@ -26,6 +27,7 @@ const DragAndDropFile = ({ errorMessage?: string; tooltipComponent?: React.ReactNode; loading?: boolean; + required?: boolean; }) => { return (
@@ -33,6 +35,7 @@ const DragAndDropFile = ({
{tooltipComponent ? ( diff --git a/src/app/create/[id]/createBlueprintSteps/EmailDetails.tsx b/src/app/create/[id]/createBlueprintSteps/EmailDetails.tsx index e1791a8e..400017ca 100644 --- a/src/app/create/[id]/createBlueprintSteps/EmailDetails.tsx +++ b/src/app/create/[id]/createBlueprintSteps/EmailDetails.tsx @@ -156,6 +156,7 @@ const EmailDetails = ({
- +

We auto-write the regexes for all the toggled fields

@@ -934,7 +934,7 @@ const ExtractFields = ({
- +