Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 17 minutes and 40 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughStorybook configuration is migrated from webpack-based Next.js integration to Vite-based integration. TypeScript configurations across APIs are updated to explicitly set Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (3)
apps/watch/src/components/DialogShare/DialogShare.stories.tsx (1)
1-4: Move the renamed test import back into alphabetical order.
storybook/testis now an unscoped package import, so it should follow thereactimport here.Suggested import ordering
import { Meta, StoryObj } from '@storybook/nextjs' -import { expect, screen, userEvent, waitFor } from 'storybook/test' import noop from 'lodash/noop' import { ComponentProps } from 'react' +import { expect, screen, userEvent, waitFor } from 'storybook/test'As per coding guidelines, "Use alphabetical order for imports and exports."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/watch/src/components/DialogShare/DialogShare.stories.tsx` around lines 1 - 4, The import order in DialogShare.stories.tsx is out of alphabetical order: move the unscoped "storybook/test" import so it comes after the "react" import (i.e., reorder the import statements so "import { ComponentProps } from 'react'" appears before "import { expect, screen, userEvent, waitFor } from 'storybook/test'"), preserving the other imports (Meta, StoryObj from '@storybook/nextjs' and noop from 'lodash/noop').apps/watch/src/components/DialogDownload/DialogDownload.stories.tsx (1)
1-4: Move the renamed test import back into alphabetical order.Now that this source is
storybook/test, it should sit after thereactimport in thisapps/watchfile.Suggested import ordering
import { Meta, StoryObj } from '@storybook/nextjs' -import { screen, userEvent } from 'storybook/test' import noop from 'lodash/noop' import { ComponentProps } from 'react' +import { screen, userEvent } from 'storybook/test'As per coding guidelines, "Use alphabetical order for imports and exports."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/watch/src/components/DialogDownload/DialogDownload.stories.tsx` around lines 1 - 4, Reorder the imports to follow alphabetical order: move the `storybook/test` import (symbols: `screen`, `userEvent`) so it comes after the `react` import (symbol: `ComponentProps`) and before `@storybook/nextjs`; update the import block in DialogDownload.stories.tsx to place `ComponentProps` before `screen`/`userEvent` to satisfy the project's import ordering rule.apps/watch/src/components/PageVideos/FilterList/LanguagesFilter/LanguagesFilter.stories.tsx (1)
1-3: Move the renamed test import back into alphabetical order.
storybook/testshould now come afterlodash/noopin this import block.Suggested import ordering
import { Meta, StoryObj } from '@storybook/nextjs' -import { screen, userEvent } from 'storybook/test' import noop from 'lodash/noop' +import { screen, userEvent } from 'storybook/test'As per coding guidelines, "Use alphabetical order for imports and exports."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apps/watch/src/components/PageVideos/FilterList/LanguagesFilter/LanguagesFilter.stories.tsx` around lines 1 - 3, The import statements are out of alphabetical order: move the import that brings in screen and userEvent from 'storybook/test' so it comes after the import of noop from 'lodash/noop' in the top of the LanguagesFilter.stories.tsx file; ensure the import order among the symbols Meta, StoryObj, noop, screen, and userEvent is alphabetical to follow the project's import ordering guideline.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@apps/arclight/next-env.d.ts`:
- Line 3: Update the triple-slash reference in next-env.d.ts: replace the
incorrect path string "./../../dist/apps/arclight/.next/types/routes.d.ts" with
the local Next build path "./.next/types/routes.d.ts" so the file references the
app's own .next types (look for the existing /// <reference
path="...routes.d.ts" /> line in next-env.d.ts and change the path portion
accordingly).
---
Nitpick comments:
In `@apps/watch/src/components/DialogDownload/DialogDownload.stories.tsx`:
- Around line 1-4: Reorder the imports to follow alphabetical order: move the
`storybook/test` import (symbols: `screen`, `userEvent`) so it comes after the
`react` import (symbol: `ComponentProps`) and before `@storybook/nextjs`; update
the import block in DialogDownload.stories.tsx to place `ComponentProps` before
`screen`/`userEvent` to satisfy the project's import ordering rule.
In `@apps/watch/src/components/DialogShare/DialogShare.stories.tsx`:
- Around line 1-4: The import order in DialogShare.stories.tsx is out of
alphabetical order: move the unscoped "storybook/test" import so it comes after
the "react" import (i.e., reorder the import statements so "import {
ComponentProps } from 'react'" appears before "import { expect, screen,
userEvent, waitFor } from 'storybook/test'"), preserving the other imports
(Meta, StoryObj from '@storybook/nextjs' and noop from 'lodash/noop').
In
`@apps/watch/src/components/PageVideos/FilterList/LanguagesFilter/LanguagesFilter.stories.tsx`:
- Around line 1-3: The import statements are out of alphabetical order: move the
import that brings in screen and userEvent from 'storybook/test' so it comes
after the import of noop from 'lodash/noop' in the top of the
LanguagesFilter.stories.tsx file; ensure the import order among the symbols
Meta, StoryObj, noop, screen, and userEvent is alphabetical to follow the
project's import ordering guideline.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 95129fbe-17e4-4a2c-96cf-87b10f03e0be
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (36)
.storybook/main.ts.storybook/manager.js.storybook/preview.jsapis/api-analytics/tsconfig.app.jsonapis/api-analytics/tsconfig.spec.jsonapis/api-gateway/tsconfig.app.jsonapis/api-journeys/tsconfig.app.jsonapis/api-journeys/tsconfig.spec.jsonapis/api-languages/tsconfig.app.jsonapis/api-languages/tsconfig.spec.jsonapis/api-media/tsconfig.app.jsonapis/api-media/tsconfig.spec.jsonapis/api-users/tsconfig.app.jsonapis/api-users/tsconfig.spec.jsonapps/arclight/next-env.d.tsapps/arclight/tsconfig.spec.jsonapps/journeys-admin/tsconfig.spec.jsonapps/journeys/tsconfig.spec.jsonapps/resources/tsconfig.spec.jsonapps/short-links/tsconfig.spec.jsonapps/videos-admin/src/theme/themePrimitives.tsapps/videos-admin/tsconfig.spec.jsonapps/watch/src/components/DialogDownload/DialogDownload.stories.tsxapps/watch/src/components/DialogShare/DialogShare.stories.tsxapps/watch/src/components/PageVideos/FilterList/LanguagesFilter/LanguagesFilter.stories.tsxapps/watch/tsconfig.spec.jsonlibs/journeys/ui/src/components/ContentCarousel/ContentCarousel.tsxlibs/journeys/ui/tsconfig.spec.jsonlibs/shared/ai/tsconfig.spec.jsonlibs/shared/gql/tsconfig.spec.jsonlibs/shared/ui-dynamic/tsconfig.spec.jsonlibs/shared/ui/tsconfig.spec.jsonlibs/yoga/tsconfig.spec.jsonpackage.jsontools/tsconfig.tools.jsontsconfig.base.json
💤 Files with no reviewable changes (13)
- .storybook/main.ts
- libs/journeys/ui/tsconfig.spec.json
- libs/shared/gql/tsconfig.spec.json
- apps/resources/tsconfig.spec.json
- apps/watch/tsconfig.spec.json
- apps/videos-admin/tsconfig.spec.json
- libs/shared/ui-dynamic/tsconfig.spec.json
- apps/journeys-admin/tsconfig.spec.json
- libs/shared/ai/tsconfig.spec.json
- apps/journeys/tsconfig.spec.json
- libs/shared/ui/tsconfig.spec.json
- apps/arclight/tsconfig.spec.json
- apps/short-links/tsconfig.spec.json
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx affected --target=test --base=762cfe0c6c1b04... |
❌ Failed | 48s | View ↗ |
nx affected --target=test --base=762cfe0c6c1b04... |
❌ Failed | 42s | View ↗ |
nx affected --target=test --base=762cfe0c6c1b04... |
❌ Failed | 39s | View ↗ |
nx affected --target=build --base=762cfe0c6c1b0... |
✅ Succeeded | 50s | View ↗ |
nx affected --target=fetch-secrets --base=762cf... |
✅ Succeeded | 2s | View ↗ |
nx run-many --target=prisma-generate --all --pa... |
✅ Succeeded | 3s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-04-24 00:30:23 UTC
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
Found 1 test failure on Blacksmith runners: Failure
|
429067b to
47bd98f
Compare
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
.storybook/main.ts (1)
1-1: Nit: drop the auto-migration banner.The
// This file has been automatically migrated to valid ESM format by Storybook.comment is a one-off migration artifact and doesn't carry ongoing value — safe to remove once the migration is verified.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.storybook/main.ts at line 1, Remove the one-line migration banner comment "// This file has been automatically migrated to valid ESM format by Storybook." from the top of the file; update the header so only relevant file-level comments or configuration remain and ensure no other changes to exported Storybook configuration (e.g., the default export or any top-level imports/exports such as the existing ESM export) are made.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.storybook/preview.js:
- Around line 40-46: The backgrounds configuration in the exported parameters
object uses the wrong key name `disabled`; update the backgrounds object so it
uses `disable: true` (and keep `grid.disable: true`) to correctly disable the
Storybook backgrounds addon; locate the exported constant named `parameters` and
change the `backgrounds.disabled` property to `backgrounds.disable` so Storybook
9 recognizes the setting.
- Around line 57-67: Replace the deprecated defaultValue usage by adding a
top-level initialGlobals map and remove defaultValue from globalTypes: move the
initial value for the theme key into initialGlobals (e.g., initialGlobals = {
theme: 'all' }) so the toolbar initializes correctly in Storybook 9+. Also add
title: 'Theme Mode' to the theme.toolbar config (alongside icon and items) and
ensure the default export includes the initialGlobals entry; update the
globalTypes object to only declare name/description/toolbar (no defaultValue).
---
Nitpick comments:
In @.storybook/main.ts:
- Line 1: Remove the one-line migration banner comment "// This file has been
automatically migrated to valid ESM format by Storybook." from the top of the
file; update the header so only relevant file-level comments or configuration
remain and ensure no other changes to exported Storybook configuration (e.g.,
the default export or any top-level imports/exports such as the existing ESM
export) are made.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 30d5ca96-21b6-4c68-933a-ff9595847f7b
📒 Files selected for processing (58)
.gitignore.storybook/main.ts.storybook/manager.js.storybook/preview.jsapis/api-analytics/tsconfig.app.jsonapis/api-analytics/tsconfig.spec.jsonapis/api-gateway/tsconfig.app.jsonapis/api-journeys-modern/src/emails/stories/JourneyAccessRequest.stories.tsxapis/api-journeys-modern/src/emails/stories/JourneyShared.stories.tsxapis/api-journeys-modern/src/emails/stories/JourneySharedNoAccount.stories.tsxapis/api-journeys-modern/src/emails/stories/TeamInvite.stories.tsxapis/api-journeys-modern/src/emails/stories/TeamInviteAccepted.stories.tsxapis/api-journeys-modern/src/emails/stories/TeamInviteNoAccount.stories.tsxapis/api-journeys-modern/src/emails/stories/TeamRemoved.stories.tsxapis/api-journeys-modern/src/emails/stories/VisitorInteraction.stories.tsxapis/api-journeys-modern/src/emails/stories/apiJourneysConfig.tsxapis/api-journeys/tsconfig.app.jsonapis/api-journeys/tsconfig.spec.jsonapis/api-languages/tsconfig.app.jsonapis/api-languages/tsconfig.spec.jsonapis/api-media/tsconfig.app.jsonapis/api-media/tsconfig.spec.jsonapis/api-users/src/emails/stories/EmailVerify.stories.tsxapis/api-users/src/emails/stories/EmailVerifyNextSteps.stories.tsxapis/api-users/src/lib/apiUsersConfig/apiUsersConfig.tsxapis/api-users/tsconfig.app.jsonapis/api-users/tsconfig.jsonapis/api-users/tsconfig.spec.jsonapis/api-users/tsconfig.stories.jsonapps/arclight/tsconfig.spec.jsonapps/journeys-admin/src/components/AccessAvatars/AccessAvatars.stories.tsxapps/journeys-admin/src/components/AccessDenied/AccessDenied.stories.tsxapps/journeys-admin/src/components/AccessDialog/AccessDialog.stories.tsxapps/journeys-admin/src/components/AccessDialog/AddUserSection/AddUserSection.stories.tsxapps/journeys-admin/src/components/AccessDialog/AddUserSection/EmailInviteForm/EmailInviteForm.stories.tsxapps/journeys-admin/src/components/Avatar/Avatar.stories.tsxapps/journeys-admin/src/components/ContainedIconButton/ContainedIconButton.stories.tsxapps/journeys-admin/src/components/DynamicPowerBiReport/Report/Report.stories.tsxapps/journeys-admin/src/components/Editor/Editor.stories.tsxapps/journeys-admin/src/components/Editor/Fab/Fab.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/Canvas.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/CanvasFooter/CanvasFooter.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/CanvasFooter/CardAnalytics/CanvasAnalytics.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/ButtonEdit/ButtonEdit.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/MultiselectOptionEdit/MultiselectOptionEdit.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/MultiselectQuestionEdit/MultiselectQuestionEdit.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/RadioOptionEdit/RadioOptionEdit.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/RadioQuestionEdit/RadioQuestionEdit.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/SignUpEdit/SignUpEdit.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/TypographyEdit/TypographyEdit.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/QuickControls/MoveBlock/MoveBlock.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Canvas/QuickControls/QuickControls.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Goals/GoalsBanner/GoalsBanner.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Goals/GoalsList/GoalsList.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Goals/GoalsList/GoalsListItem/GoalsListItem.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Social/Message/Message.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Social/Post/Post.stories.tsxapps/journeys-admin/src/components/Editor/Slider/Content/Social/SocialPreview.stories.tsx
💤 Files with no reviewable changes (1)
- apps/arclight/tsconfig.spec.json
✅ Files skipped from review due to trivial changes (48)
- .gitignore
- apis/api-gateway/tsconfig.app.json
- apis/api-journeys/tsconfig.spec.json
- apis/api-journeys/tsconfig.app.json
- apis/api-media/tsconfig.spec.json
- apis/api-media/tsconfig.app.json
- apis/api-analytics/tsconfig.spec.json
- apis/api-languages/tsconfig.app.json
- apis/api-languages/tsconfig.spec.json
- apis/api-users/tsconfig.json
- apps/journeys-admin/src/components/Editor/Fab/Fab.stories.tsx
- apis/api-journeys-modern/src/emails/stories/TeamInviteNoAccount.stories.tsx
- apis/api-analytics/tsconfig.app.json
- apis/api-journeys-modern/src/emails/stories/TeamInviteAccepted.stories.tsx
- .storybook/manager.js
- apis/api-journeys-modern/src/emails/stories/apiJourneysConfig.tsx
- apps/journeys-admin/src/components/ContainedIconButton/ContainedIconButton.stories.tsx
- apis/api-journeys-modern/src/emails/stories/TeamRemoved.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Canvas/CanvasFooter/CardAnalytics/CanvasAnalytics.stories.tsx
- apis/api-journeys-modern/src/emails/stories/TeamInvite.stories.tsx
- apis/api-users/tsconfig.spec.json
- apps/journeys-admin/src/components/Editor/Slider/Content/Canvas/CanvasFooter/CanvasFooter.stories.tsx
- apis/api-users/src/lib/apiUsersConfig/apiUsersConfig.tsx
- apps/journeys-admin/src/components/AccessAvatars/AccessAvatars.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/RadioQuestionEdit/RadioQuestionEdit.stories.tsx
- apps/journeys-admin/src/components/DynamicPowerBiReport/Report/Report.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Social/Message/Message.stories.tsx
- apis/api-users/src/emails/stories/EmailVerifyNextSteps.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/SignUpEdit/SignUpEdit.stories.tsx
- apps/journeys-admin/src/components/AccessDialog/AccessDialog.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/RadioOptionEdit/RadioOptionEdit.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Canvas/QuickControls/QuickControls.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Goals/GoalsBanner/GoalsBanner.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Social/Post/Post.stories.tsx
- apps/journeys-admin/src/components/AccessDenied/AccessDenied.stories.tsx
- apis/api-journeys-modern/src/emails/stories/VisitorInteraction.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Social/SocialPreview.stories.tsx
- apps/journeys-admin/src/components/AccessDialog/AddUserSection/AddUserSection.stories.tsx
- apps/journeys-admin/src/components/Avatar/Avatar.stories.tsx
- apis/api-journeys-modern/src/emails/stories/JourneyShared.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/ButtonEdit/ButtonEdit.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Goals/GoalsList/GoalsList.stories.tsx
- apps/journeys-admin/src/components/Editor/Slider/Content/Canvas/QuickControls/MoveBlock/MoveBlock.stories.tsx
- apis/api-users/tsconfig.stories.json
- apps/journeys-admin/src/components/Editor/Slider/Content/Canvas/InlineEditWrapper/TypographyEdit/TypographyEdit.stories.tsx
- apis/api-journeys-modern/src/emails/stories/JourneySharedNoAccount.stories.tsx
- apis/api-users/tsconfig.app.json
- apis/api-users/src/emails/stories/EmailVerify.stories.tsx
Storybook 9+ deprecated `defaultValue` on `globalTypes` in favor of a top-level `initialGlobals` export. Also adds `title` to toolbar config. Made-with: Cursor
Review feedback addressed (77bcd3f)Fixed:
Challenged:
Skipped:
|

Summary by CodeRabbit
storybook-static/to.gitignore.