Conversation
|
|
|
View your CI Pipeline Execution ↗ for commit 49780ee
☁️ Nx Cloud last updated this comment at |
|
View your CI Pipeline Execution ↗ for commit 9521ed7
☁️ Nx Cloud last updated this comment at |
|
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.
|
|
I see you added the "on stage" label, I'll get this merged to the stage branch! |
…r-managers-gmail-account' (PR #8958) into stage
…r-managers-gmail-account' (PR #8958) into stage
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
WalkthroughFilters Google Sheets integrations in the sync dialog to only show integrations whose Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 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 |
|
Merge conflict attempting to merge this into stage. Please fix manually. |
65c0e93 to
b48397c
Compare
|
Merge conflict attempting to merge this into stage. Please fix manually. |
This comment has been minimized.
This comment has been minimized.
…hows-another-managers-gmail-account
…r-managers-gmail-account' (PR #8958) into stage
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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/journeys-admin/src/components/JourneyVisitorsList/FilterDrawer/GoogleSheetsSyncDialog/GoogleSheetsSyncDialog.spec.tsx`:
- Around line 260-371: The tests render GoogleSheetsSyncDialog directly which
skips the required test providers and MSW/Apollo stack; update each test that
calls render(<GoogleSheetsSyncDialog ... />) to wrap the component with the
prescribed provider chain (SnackbarProvider →
ApolloLoadingProvider/MockedProvider → ThemeProvider) and ensure MSW
test/mswServer.ts is initialized via the test setup (keep using setupApolloMocks
and mockUseIntegrationQuery/mockUseAuth for data but render through the
ApolloLoadingProvider helper); this will mirror runtime wiring and fix divergent
behavior in the tests.
In `@docs/plans/2026-04-07-001-fix-google-sync-dropdown-userid-mismatch-plan.md`:
- Around line 14-15: The plan text is stale: update the document to reflect that
the implemented fix no longer filters integrations by integration.user?.id
(which compared Prisma UUID to Firebase UID and always failed); change
references that say the branch filters by integration.user?.id and remove or
rewrite the note at lines 119-122 about a pending filter fix so the doc
correctly describes the current behavior and the actual fix (matching by the
correct user identifier used in the UI, e.g., the Firebase UID or the normalized
id field used by the integrations lookup); specifically search for and replace
mentions of integration.user?.id, currentUserId comparison, and the “filter fix
pending” wording so the plan accurately documents the implemented change and its
rationale.
🪄 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: 8b38e23c-c0c4-4cbd-9c7c-0d70fdb98f2c
⛔ Files ignored due to path filters (1)
apps/journeys-admin/__generated__/GetIntegration.tsis excluded by!**/__generated__/**
📒 Files selected for processing (5)
apps/journeys-admin/src/components/JourneyVisitorsList/FilterDrawer/GoogleSheetsSyncDialog/GoogleSheetsSyncDialog.spec.tsxapps/journeys-admin/src/components/JourneyVisitorsList/FilterDrawer/GoogleSheetsSyncDialog/GoogleSheetsSyncDialog.tsxapps/journeys-admin/src/libs/useIntegrationQuery/useIntegrationQuery.tsdocs/plans/2026-04-07-001-fix-google-sync-dropdown-userid-mismatch-plan.mdlibs/locales/en/apps-journeys-admin.json
💤 Files with no reviewable changes (1)
- libs/locales/en/apps-journeys-admin.json
✅ Files skipped from review due to trivial changes (1)
- apps/journeys-admin/src/libs/useIntegrationQuery/useIntegrationQuery.ts
…hows-another-managers-gmail-account
This comment has been minimized.
This comment has been minimized.
…hows-another-managers-gmail-account
|
Merge conflict attempting to merge this into stage. Please fix manually. |
Review feedback addressed (ee4fc7a)Challenged:
Skipped (optional/nit):
|
…hows-another-managers-gmail-account
|
Merge conflict attempting to merge this into stage. Please fix manually. |
This comment has been minimized.
This comment has been minimized.
…hows-another-managers-gmail-account
Summary
Bug (NES-1492): In multi-manager teams, the Google Sheets sync dropdown showed ALL team integrations — including those created by other managers.
Previous fix (#8938, reverted as #8957): Filtered by
integration.user?.id === currentUserId, but this comparison always failed becauseintegration.user.idresolves to a Prisma UUID (via federation throughapi-users), whileuseAuth().user.idis the Firebase UID. Result: dropdown showed zero integrations.This fix: Uses the
userIdscalar field exposed in #8967 to filter integrations byintegration.userId === currentUserId— both are Firebase UIDs, so the comparison works correctly.Changes
userIdto theGetIntegrationquery (keptuser { id }— used byGoogleIntegrationDetailsfor ownership checks)GoogleSheetsSyncDialogto compareintegration.userIdinstead ofintegration.user?.idDependencies
userIdonIntegrationGooglebackend)Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit