From 24be8a882961f355ecd8707b4f2baabd5828fea0 Mon Sep 17 00:00:00 2001 From: sauravniraula Date: Thu, 24 Jul 2025 02:02:02 +0545 Subject: [PATCH] fix(nextjs): changes max(4) in schemas to max(3) --- .../3BulletIconsOnlySlideLayout.tsx | 2 +- .../6NumberedBulletsSlideLayout.tsx | 2 +- .../7MetricsWithImageSlideLayout.tsx | 2 +- .../default/Type2NumberedSlideLayout.tsx | 2 +- .../default/Type2SlideLayout.tsx | 2 +- .../default/Type2TimelineSlideLayout.tsx | 2 +- .../default/Type3SlideLayout.tsx | 2 +- .../general/BulletIconsOnlySlideLayout.tsx | 2 +- .../general/MetricsWithImageSlideLayout.tsx | 2 +- .../general/NumberedBulletsSlideLayout.tsx | 2 +- .../general/TeamSlideLayout.tsx | 2 +- .../modern/3ProblemSlideLayout.tsx | 2 +- .../modern/4SolutionSlideLayout.tsx | 4 +- .../modern/z10TeamSlideLayout.tsx | 2 +- .../pitch-deck/HelloFriendsSlide.tsx | 139 ------------------ .../pitch-deck/MarketSizeSlide.tsx | 2 +- .../pitch-deck/ProblemsSlide.tsx | 2 +- .../pitch-deck/SolutionsSlide.tsx | 2 +- .../pitch-deck/TestimonialSlide.tsx | 2 +- 19 files changed, 19 insertions(+), 158 deletions(-) delete mode 100644 servers/nextjs/presentation-layouts/pitch-deck/HelloFriendsSlide.tsx diff --git a/servers/nextjs/presentation-layouts/8-slides-ordered/3BulletIconsOnlySlideLayout.tsx b/servers/nextjs/presentation-layouts/8-slides-ordered/3BulletIconsOnlySlideLayout.tsx index 4fccedda..3c61f92f 100644 --- a/servers/nextjs/presentation-layouts/8-slides-ordered/3BulletIconsOnlySlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/8-slides-ordered/3BulletIconsOnlySlideLayout.tsx @@ -24,7 +24,7 @@ const bulletIconsOnlySlideSchema = z.object({ description: "Optional short subtitle or brief explanation", }), icon: IconSchema, - })).min(2).max(4).default([ + })).min(2).max(3).default([ { title: 'Custom Software', subtitle: 'We create tailored software to optimize processes and boost efficiency.', diff --git a/servers/nextjs/presentation-layouts/8-slides-ordered/6NumberedBulletsSlideLayout.tsx b/servers/nextjs/presentation-layouts/8-slides-ordered/6NumberedBulletsSlideLayout.tsx index 103398ef..71c25a97 100644 --- a/servers/nextjs/presentation-layouts/8-slides-ordered/6NumberedBulletsSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/8-slides-ordered/6NumberedBulletsSlideLayout.tsx @@ -23,7 +23,7 @@ const numberedBulletsSlideSchema = z.object({ description: z.string().min(10).max(150).meta({ description: "Bullet point description", }), - })).min(1).max(4).default([ + })).min(1).max(3).default([ { title: 'Customer Insights', description: 'Surveys reveal that 78% of businesses are planning to invest in digital solutions, with 85% preferring customized approaches.' diff --git a/servers/nextjs/presentation-layouts/8-slides-ordered/7MetricsWithImageSlideLayout.tsx b/servers/nextjs/presentation-layouts/8-slides-ordered/7MetricsWithImageSlideLayout.tsx index 11fcbf86..a085de5a 100644 --- a/servers/nextjs/presentation-layouts/8-slides-ordered/7MetricsWithImageSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/8-slides-ordered/7MetricsWithImageSlideLayout.tsx @@ -26,7 +26,7 @@ const metricsWithImageSlideSchema = z.object({ value: z.string().min(1).max(20).meta({ description: "Metric value (e.g., 200+, 95%, 50%)" }), - })).min(1).max(4).default([ + })).min(1).max(3).default([ { label: 'Satisfied Clients', value: '200+' diff --git a/servers/nextjs/presentation-layouts/default/Type2NumberedSlideLayout.tsx b/servers/nextjs/presentation-layouts/default/Type2NumberedSlideLayout.tsx index e03a3cf3..76457ca6 100644 --- a/servers/nextjs/presentation-layouts/default/Type2NumberedSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/default/Type2NumberedSlideLayout.tsx @@ -16,7 +16,7 @@ const type2NumberedSlideSchema = z.object({ description: z.string().min(10).max(130).meta({ description: "Item description", }) - })).min(2).max(4).default([ + })).min(2).max(3).default([ { heading: 'First Point', description: 'Description for the first key point that explains important details' diff --git a/servers/nextjs/presentation-layouts/default/Type2SlideLayout.tsx b/servers/nextjs/presentation-layouts/default/Type2SlideLayout.tsx index 0d72d880..275a6fe7 100644 --- a/servers/nextjs/presentation-layouts/default/Type2SlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/default/Type2SlideLayout.tsx @@ -16,7 +16,7 @@ const type2SlideSchema = z.object({ description: z.string().min(10).max(130).meta({ description: "Item description", }) - })).min(2).max(4).default([ + })).min(2).max(3).default([ { heading: 'First Point', description: 'Description for the first key point that explains important details' diff --git a/servers/nextjs/presentation-layouts/default/Type2TimelineSlideLayout.tsx b/servers/nextjs/presentation-layouts/default/Type2TimelineSlideLayout.tsx index 3e5942e9..216efcf5 100644 --- a/servers/nextjs/presentation-layouts/default/Type2TimelineSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/default/Type2TimelineSlideLayout.tsx @@ -16,7 +16,7 @@ const type2TimelineSlideSchema = z.object({ description: z.string().min(10).max(130).meta({ description: "Item description", }) - })).min(2).max(4).default([ + })).min(2).max(3).default([ { heading: 'First Point', description: 'Description for the first key point that explains important details' diff --git a/servers/nextjs/presentation-layouts/default/Type3SlideLayout.tsx b/servers/nextjs/presentation-layouts/default/Type3SlideLayout.tsx index c07b8090..f520e7f5 100644 --- a/servers/nextjs/presentation-layouts/default/Type3SlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/default/Type3SlideLayout.tsx @@ -20,7 +20,7 @@ const type3SlideSchema = z.object({ image: ImageSchema.meta({ description: "Item image", }) - })).min(2).max(4).default([ + })).min(2).max(3).default([ { heading: 'First Feature', description: 'Description for the first featured item with detailed information', diff --git a/servers/nextjs/presentation-layouts/general/BulletIconsOnlySlideLayout.tsx b/servers/nextjs/presentation-layouts/general/BulletIconsOnlySlideLayout.tsx index da7143c5..486910ef 100644 --- a/servers/nextjs/presentation-layouts/general/BulletIconsOnlySlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/general/BulletIconsOnlySlideLayout.tsx @@ -24,7 +24,7 @@ const bulletIconsOnlySlideSchema = z.object({ description: "Optional short subtitle or brief explanation", }), icon: IconSchema, - })).min(2).max(4).default([ + })).min(2).max(3).default([ { title: 'Custom Software', subtitle: 'We create tailored software to optimize processes and boost efficiency.', diff --git a/servers/nextjs/presentation-layouts/general/MetricsWithImageSlideLayout.tsx b/servers/nextjs/presentation-layouts/general/MetricsWithImageSlideLayout.tsx index 9b7ee8c6..65299b90 100644 --- a/servers/nextjs/presentation-layouts/general/MetricsWithImageSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/general/MetricsWithImageSlideLayout.tsx @@ -26,7 +26,7 @@ const metricsWithImageSlideSchema = z.object({ value: z.string().min(1).max(20).meta({ description: "Metric value (e.g., 200+, 95%, 50%)" }), - })).min(1).max(4).default([ + })).min(1).max(3).default([ { label: 'Satisfied Clients', value: '200+' diff --git a/servers/nextjs/presentation-layouts/general/NumberedBulletsSlideLayout.tsx b/servers/nextjs/presentation-layouts/general/NumberedBulletsSlideLayout.tsx index d6efa638..d8fb2f96 100644 --- a/servers/nextjs/presentation-layouts/general/NumberedBulletsSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/general/NumberedBulletsSlideLayout.tsx @@ -23,7 +23,7 @@ const numberedBulletsSlideSchema = z.object({ description: z.string().min(10).max(150).meta({ description: "Bullet point description", }), - })).min(1).max(4).default([ + })).min(1).max(3).default([ { title: 'Customer Insights', description: 'Surveys reveal that 78% of businesses are planning to invest in digital solutions, with 85% preferring customized approaches.' diff --git a/servers/nextjs/presentation-layouts/general/TeamSlideLayout.tsx b/servers/nextjs/presentation-layouts/general/TeamSlideLayout.tsx index 8c7551f6..5de04d87 100644 --- a/servers/nextjs/presentation-layouts/general/TeamSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/general/TeamSlideLayout.tsx @@ -26,7 +26,7 @@ const teamSlideSchema = z.object({ companyDescription: z.string().min(10).max(150).default('Ginyard International Co. is a leading provider of innovative digital solutions tailored for businesses. Our mission is to empower organizations to achieve their goals through cutting-edge technology and strategic partnerships.').meta({ description: "Company description or team introduction text", }), - teamMembers: z.array(teamMemberSchema).min(2).max(4).default([ + teamMembers: z.array(teamMemberSchema).min(2).max(3).default([ { name: 'Juliana Silva', position: 'CEO', diff --git a/servers/nextjs/presentation-layouts/modern/3ProblemSlideLayout.tsx b/servers/nextjs/presentation-layouts/modern/3ProblemSlideLayout.tsx index 57619863..6054eb44 100644 --- a/servers/nextjs/presentation-layouts/modern/3ProblemSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/modern/3ProblemSlideLayout.tsx @@ -36,7 +36,7 @@ const problemStatementSlideSchema = z.object({ }), ) .min(2) - .max(4) + .max(3) .default([ { title: "Inefficiency", diff --git a/servers/nextjs/presentation-layouts/modern/4SolutionSlideLayout.tsx b/servers/nextjs/presentation-layouts/modern/4SolutionSlideLayout.tsx index 6879f1c6..e91ea490 100644 --- a/servers/nextjs/presentation-layouts/modern/4SolutionSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/modern/4SolutionSlideLayout.tsx @@ -22,7 +22,7 @@ const solutionSlideSchema = z.object({ .min(20) .max(300) .default( - "Show that we offer a solution that solves the problems previously described and identified. Make sure that the solutions we offer uphold the values of effectiveness, efficiency, and are highly relevant to the market situation and societyshiva raj badu is here and what is hsd sdksdf klfdslkf lkflkfsldkf.", + "Show that we offer a solution that solves the problems previously described and identified. Make sure that the solutions we offer uphold the values of effectiveness, efficiency, and are highly relevant to the market situation and society is here and what is hsd sdksdf klfdslkf lkflkfsldkf.", ) .meta({ description: "Main content text describing the solution", @@ -42,7 +42,7 @@ const solutionSlideSchema = z.object({ }), ) .min(2) - .max(4) + .max(3) .default([ { title: "Market", diff --git a/servers/nextjs/presentation-layouts/modern/z10TeamSlideLayout.tsx b/servers/nextjs/presentation-layouts/modern/z10TeamSlideLayout.tsx index b3e37c34..c32d08c3 100644 --- a/servers/nextjs/presentation-layouts/modern/z10TeamSlideLayout.tsx +++ b/servers/nextjs/presentation-layouts/modern/z10TeamSlideLayout.tsx @@ -33,7 +33,7 @@ const modernTeamSlideSchema = z.object({ teamMembers: z .array(teamMemberSchema) .min(2) - .max(4) + .max(3) .default([ { name: "Sarah Johnson", diff --git a/servers/nextjs/presentation-layouts/pitch-deck/HelloFriendsSlide.tsx b/servers/nextjs/presentation-layouts/pitch-deck/HelloFriendsSlide.tsx deleted file mode 100644 index dea6a62b..00000000 --- a/servers/nextjs/presentation-layouts/pitch-deck/HelloFriendsSlide.tsx +++ /dev/null @@ -1,139 +0,0 @@ -import * as z from "zod"; - -import { ImageSchema, IconSchema } from "../defaultSchemes"; - -// Schema definition -export const Schema = z.object({ - - sectionTitle: z.string() - .min(3) - .max(30) - .default("WELCOME!") - .meta({ - description: "Main greeting or welcome message - can be 'Hello!', 'Welcome!', 'Greetings!', or similar", - }), - - sectionSubtitle: z.string() - .min(10) - .max(60) - .default("WE'RE EXCITED TO SHARE OUR STORY") - .meta({ - description: "Supporting message that sets the tone and builds connection with the audience", - }), - - welcomeMessage: z.string() - .min(30) - .max(200) - .default("Thank you for joining us today. We're thrilled to have this opportunity to connect with you and share our journey, insights, and vision for the future.") - .meta({ - description: "Main welcome or introductory message that engages the audience personally", - }), - - callToActionText: z.string() - .min(5) - .max(25) - .default("Let's Get Started") - .meta({ - description: "Action button text that encourages audience engagement or progression", - }), - - speakerImage: ImageSchema.default({ - __image_url__: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80", - __image_prompt__: "Professional presenter or team representative in business setting" - }).meta({ - description: "Image of the presenter, team representative, or welcoming figure", - }), - - showDecorations: z.boolean() - .default(true) - .meta({ - description: "Whether to display decorative visual elements like underlines and accents", - }), - - showCallToAction: z.boolean() - .default(true) - .meta({ - description: "Whether to show the call-to-action button", - }), -}) - -// Type inference -type SchemaType = z.infer; - -// Component definition -const HelloFriendsSlide = ({ data }: { data: Partial }) => { - - const { sectionTitle, sectionSubtitle, welcomeMessage, callToActionText, speakerImage, showDecorations, showCallToAction } = data; - - return ( -
- {/* Main Content Area */} -
- {/* Left Side - Teal Background */} -
- {/* Speech Bubble */} - {/* Decorative Circle */} -
- - {/* Right Side - White Background */} -
- {/* Content */} -
- {/* Title Section */} -
- {sectionTitle && ( -

- {sectionTitle} -

- )} - - {sectionSubtitle && ( -

- {sectionSubtitle} -

- )} - - {/* Decorative underline */} - {showDecorations && ( -
- )} -
- - {/* Welcome Text */} - {welcomeMessage && ( -
-

- {welcomeMessage} -

-
- )} - - {/* Thank You Button */} - {showCallToAction && ( -
- -
- )} -
-
-
- - {/* Overlapping Circular Office Image */} - {speakerImage?.__image_url__ && ( -
-
- {speakerImage.__image_prompt__} -
-
- )} -
- ); -}; - -export default HelloFriendsSlide; \ No newline at end of file diff --git a/servers/nextjs/presentation-layouts/pitch-deck/MarketSizeSlide.tsx b/servers/nextjs/presentation-layouts/pitch-deck/MarketSizeSlide.tsx index d048ae28..df920b88 100644 --- a/servers/nextjs/presentation-layouts/pitch-deck/MarketSizeSlide.tsx +++ b/servers/nextjs/presentation-layouts/pitch-deck/MarketSizeSlide.tsx @@ -25,7 +25,7 @@ export const Schema = z.object({ marketType: z.string().min(3).max(30), marketDescription: z.string().min(20).max(150), marketValue: z.string().min(3).max(25).optional() - })).min(2).max(4).default([ + })).min(2).max(3).default([ { marketType: "Total Addressable Market (TAM)", marketDescription: "The overall revenue opportunity available if we achieved 100% market share across all segments and geographies.", diff --git a/servers/nextjs/presentation-layouts/pitch-deck/ProblemsSlide.tsx b/servers/nextjs/presentation-layouts/pitch-deck/ProblemsSlide.tsx index 5cf72903..3a4aee1d 100644 --- a/servers/nextjs/presentation-layouts/pitch-deck/ProblemsSlide.tsx +++ b/servers/nextjs/presentation-layouts/pitch-deck/ProblemsSlide.tsx @@ -25,7 +25,7 @@ export const Schema = z.object({ itemNumber: z.string().min(1).max(3), challengeTitle: z.string().min(5).max(40), challengeDescription: z.string().min(20).max(200) - })).min(2).max(4).default([ + })).min(2).max(3).default([ { itemNumber: "01", challengeTitle: "Inefficient Processes", diff --git a/servers/nextjs/presentation-layouts/pitch-deck/SolutionsSlide.tsx b/servers/nextjs/presentation-layouts/pitch-deck/SolutionsSlide.tsx index 4b83c8ea..5eb91707 100644 --- a/servers/nextjs/presentation-layouts/pitch-deck/SolutionsSlide.tsx +++ b/servers/nextjs/presentation-layouts/pitch-deck/SolutionsSlide.tsx @@ -25,7 +25,7 @@ export const Schema = z.object({ itemNumber: z.string().min(1).max(3), solutionTitle: z.string().min(5).max(40), solutionDescription: z.string().min(20).max(200) - })).min(2).max(4).default([ + })).min(2).max(3).default([ { itemNumber: "01", solutionTitle: "Process Optimization", diff --git a/servers/nextjs/presentation-layouts/pitch-deck/TestimonialSlide.tsx b/servers/nextjs/presentation-layouts/pitch-deck/TestimonialSlide.tsx index 2be34797..25fe2f88 100644 --- a/servers/nextjs/presentation-layouts/pitch-deck/TestimonialSlide.tsx +++ b/servers/nextjs/presentation-layouts/pitch-deck/TestimonialSlide.tsx @@ -35,7 +35,7 @@ export const Schema = z.object({ testimonialText: z.string().min(50).max(300), rating: z.number().min(1).max(5), clientPhoto: ImageSchema - })).min(2).max(4).default([ + })).min(2).max(3).default([ { clientName: "Sarah Johnson", clientTitle: "Chief Executive Officer",