diff --git a/apps/nextjs/src/app/aila/[id]/download/DownloadView.stories.tsx b/apps/nextjs/src/app/aila/[id]/download/DownloadView.stories.tsx index 6021b1dfe..7c78c3bf3 100644 --- a/apps/nextjs/src/app/aila/[id]/download/DownloadView.stories.tsx +++ b/apps/nextjs/src/app/aila/[id]/download/DownloadView.stories.tsx @@ -1,6 +1,7 @@ import type { AilaPersistedChat } from "@oakai/aila/src/protocol/schema"; import type { Meta, StoryObj } from "@storybook/react"; +import { chromaticParams } from "../../../../../.storybook/chromatic"; import { DemoProvider } from "../../../../../src/components/ContextProviders/Demo"; import { DownloadContent } from "./DownloadView"; @@ -9,6 +10,7 @@ const meta: Meta = { component: DownloadContent, parameters: { layout: "fullscreen", + ...chromaticParams(["mobile", "legacy"]), }, decorators: [ (Story) => ( diff --git a/apps/nextjs/src/app/aila/[id]/share/index.stories.tsx b/apps/nextjs/src/app/aila/[id]/share/index.stories.tsx index b8a803caf..3030971dc 100644 --- a/apps/nextjs/src/app/aila/[id]/share/index.stories.tsx +++ b/apps/nextjs/src/app/aila/[id]/share/index.stories.tsx @@ -1,6 +1,7 @@ import type { LooseLessonPlan } from "@oakai/aila/src/protocol/schema"; import type { Meta, StoryObj } from "@storybook/react"; +import { chromaticParams } from "../../../../../.storybook/chromatic"; import ShareChat from "./"; const meta: Meta = { @@ -8,6 +9,7 @@ const meta: Meta = { component: ShareChat, parameters: { layout: "fullscreen", + ...chromaticParams(["mobile", "legacy"]), }, }; diff --git a/apps/nextjs/src/app/aila/help/index.stories.tsx b/apps/nextjs/src/app/aila/help/index.stories.tsx index df567c777..0b2ad6147 100644 --- a/apps/nextjs/src/app/aila/help/index.stories.tsx +++ b/apps/nextjs/src/app/aila/help/index.stories.tsx @@ -3,6 +3,7 @@ import type { Meta, StoryObj } from "@storybook/react"; import { DemoProvider } from "@/components/ContextProviders/Demo"; import { HelpContent } from "."; +import { chromaticParams } from "../../../../.storybook/chromatic"; const meta: Meta = { title: "Pages/Chat/Help", @@ -10,6 +11,7 @@ const meta: Meta = { parameters: { // Including custom decorators changes the layout from fullscreen layout: "fullscreen", + ...chromaticParams(["mobile", "legacy"]), }, decorators: [ (Story) => ( diff --git a/apps/nextjs/src/app/faqs/index.stories.tsx b/apps/nextjs/src/app/faqs/index.stories.tsx index 7eef2c06a..c4e362311 100644 --- a/apps/nextjs/src/app/faqs/index.stories.tsx +++ b/apps/nextjs/src/app/faqs/index.stories.tsx @@ -1,10 +1,14 @@ import type { Meta, StoryObj } from "@storybook/react"; import { FAQPageContent } from "."; +import { chromaticParams } from "../../../.storybook/chromatic"; const meta: Meta = { title: "Pages/FAQs", component: FAQPageContent, + parameters: { + ...chromaticParams(["mobile", "legacy"]), + }, }; export default meta; diff --git a/apps/nextjs/src/app/home-page.stories.tsx b/apps/nextjs/src/app/home-page.stories.tsx index e61e5eab1..77bab6e97 100644 --- a/apps/nextjs/src/app/home-page.stories.tsx +++ b/apps/nextjs/src/app/home-page.stories.tsx @@ -1,10 +1,14 @@ import type { Meta, StoryObj } from "@storybook/react"; +import { chromaticParams } from "../../.storybook/chromatic"; import { HomePageContent } from "./home-page"; const meta: Meta = { title: "Pages/Homepage", component: HomePageContent, + parameters: { + ...chromaticParams(["mobile", "legacy"]), + }, }; export default meta; diff --git a/apps/nextjs/src/app/legal/[slug]/legal.stories.tsx b/apps/nextjs/src/app/legal/[slug]/legal.stories.tsx index 88a049b92..87c82ea02 100644 --- a/apps/nextjs/src/app/legal/[slug]/legal.stories.tsx +++ b/apps/nextjs/src/app/legal/[slug]/legal.stories.tsx @@ -1,10 +1,14 @@ import type { Meta, StoryObj } from "@storybook/react"; +import { chromaticParams } from "../../../../.storybook/chromatic"; import { LegalContent } from "./legal"; const meta: Meta = { title: "Pages/Legal/Sanity dynamic", component: LegalContent, + parameters: { + ...chromaticParams(["mobile", "legacy"]), + }, }; export default meta; diff --git a/apps/nextjs/src/app/legal/account-locked/account-locked.stories.tsx b/apps/nextjs/src/app/legal/account-locked/account-locked.stories.tsx index 820cdd4e9..c229bcaa9 100644 --- a/apps/nextjs/src/app/legal/account-locked/account-locked.stories.tsx +++ b/apps/nextjs/src/app/legal/account-locked/account-locked.stories.tsx @@ -1,10 +1,14 @@ import type { Meta, StoryObj } from "@storybook/react"; +import { chromaticParams } from "../../../../.storybook/chromatic"; import { AccountLocked } from "./account-locked"; const meta: Meta = { title: "Pages/Legal/Account Locked", component: AccountLocked, + parameters: { + ...chromaticParams(["mobile", "legacy"]), + }, }; export default meta; diff --git a/apps/nextjs/src/app/prompts/prompts.stories.tsx b/apps/nextjs/src/app/prompts/prompts.stories.tsx index df2e3d10e..6adfaffb4 100644 --- a/apps/nextjs/src/app/prompts/prompts.stories.tsx +++ b/apps/nextjs/src/app/prompts/prompts.stories.tsx @@ -1,10 +1,14 @@ import type { Meta, StoryObj } from "@storybook/react"; +import { chromaticParams } from "../../../.storybook/chromatic"; import { PromptsContent } from "./prompts"; const meta: Meta = { title: "Pages/Prompts", component: PromptsContent, + parameters: { + ...chromaticParams(["mobile", "legacy"]), + }, }; export default meta; diff --git a/apps/nextjs/src/components/AppComponents/Chat/chat-start.stories.tsx b/apps/nextjs/src/components/AppComponents/Chat/chat-start.stories.tsx index d02716551..9a2fa9202 100644 --- a/apps/nextjs/src/components/AppComponents/Chat/chat-start.stories.tsx +++ b/apps/nextjs/src/components/AppComponents/Chat/chat-start.stories.tsx @@ -2,6 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react"; import { DemoProvider } from "@/components/ContextProviders/Demo"; +import { chromaticParams } from "../../../../.storybook/chromatic"; import { DialogProvider } from "../DialogContext"; import { ChatStart } from "./chat-start"; @@ -11,6 +12,7 @@ const meta: Meta = { parameters: { // Including custom decorators changes the layout from fullscreen layout: "fullscreen", + ...chromaticParams(["mobile", "legacy"]), }, decorators: [ (Story) => ( diff --git a/apps/nextjs/src/components/Onboarding/AcceptTermsForm.stories.tsx b/apps/nextjs/src/components/Onboarding/AcceptTermsForm.stories.tsx index cca0f90ef..a393c8a2d 100644 --- a/apps/nextjs/src/components/Onboarding/AcceptTermsForm.stories.tsx +++ b/apps/nextjs/src/components/Onboarding/AcceptTermsForm.stories.tsx @@ -1,10 +1,14 @@ import type { Meta, StoryObj } from "@storybook/react"; +import { chromaticParams } from "../../../.storybook/chromatic"; import { AcceptTermsForm } from "./AcceptTermsForm"; const meta: Meta = { title: "Pages/Onboarding/AcceptTermsForm", component: AcceptTermsForm, + parameters: { + ...chromaticParams(["mobile", "legacy"]), + }, }; export default meta; diff --git a/apps/nextjs/src/components/Onboarding/LegacyUpgradeNotice.stories.tsx b/apps/nextjs/src/components/Onboarding/LegacyUpgradeNotice.stories.tsx index d61d4b03f..e87700358 100644 --- a/apps/nextjs/src/components/Onboarding/LegacyUpgradeNotice.stories.tsx +++ b/apps/nextjs/src/components/Onboarding/LegacyUpgradeNotice.stories.tsx @@ -1,10 +1,14 @@ import type { Meta, StoryObj } from "@storybook/react"; +import { chromaticParams } from "../../../.storybook/chromatic"; import { LegacyUpgradeNotice } from "./LegacyUpgradeNotice"; const meta: Meta = { title: "Pages/Onboarding/LegacyUpgradeNotice", component: LegacyUpgradeNotice, + parameters: { + ...chromaticParams(["mobile", "legacy"]), + }, }; export default meta;