Refactor to skip move to folder action fields in Gmail context#679
Refactor to skip move to folder action fields in Gmail context#679elie222 merged 2 commits intoelie222:mainfrom
Conversation
|
@edulelis is attempting to deploy a commit to the Inbox Zero OSS Program Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughProvider handling is refactored: actions stop selecting account.provider from Prisma and instead pass provider via context and embed it under emailAccount.account. The deleteRuleAction signature includes provider. The rule creation schema now conditionally includes action.fields.folderName only for Microsoft providers. Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant deleteRuleAction
participant DB
participant PromptGen as generatePromptOnDeleteRule
participant AI
Caller->>deleteRuleAction: invoke({ ctx: { emailAccountId, provider }, parsedInput: { id } })
deleteRuleAction->>DB: fetch emailAccount (without account.provider)
deleteRuleAction->>PromptGen: after(): emailAccount + account: { provider }
PromptGen->>AI: generate delete-rule prompt
AI-->>PromptGen: response
PromptGen-->>deleteRuleAction: prompt result
deleteRuleAction-->>Caller: completion
sequenceDiagram
participant Caller
participant analyzeWritingStyleAction
participant DB
participant AI as aiAnalyzeWritingStyle
Caller->>analyzeWritingStyleAction: invoke(...)
analyzeWritingStyleAction->>DB: fetch emailAccount (no account.provider)
analyzeWritingStyleAction->>AI: call with { ...emailAccount, account: { provider } }
AI-->>analyzeWritingStyleAction: analysis
analyzeWritingStyleAction-->>Caller: result
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (12)apps/web/**/*.{ts,tsx}📄 CodeRabbit Inference Engine (apps/web/CLAUDE.md)
Files:
!{.cursor/rules/*.mdc}📄 CodeRabbit Inference Engine (.cursor/rules/cursor-rules.mdc)
Files:
**/*.ts📄 CodeRabbit Inference Engine (.cursor/rules/form-handling.mdc)
Files:
**/*.{ts,tsx}📄 CodeRabbit Inference Engine (.cursor/rules/logging.mdc)
Files:
apps/web/utils/**📄 CodeRabbit Inference Engine (.cursor/rules/project-structure.mdc)
Files:
apps/web/utils/**/*.ts📄 CodeRabbit Inference Engine (.cursor/rules/project-structure.mdc)
Files:
**/*.{js,jsx,ts,tsx}📄 CodeRabbit Inference Engine (.cursor/rules/ultracite.mdc)
Files:
!pages/_document.{js,jsx,ts,tsx}📄 CodeRabbit Inference Engine (.cursor/rules/ultracite.mdc)
Files:
apps/web/utils/{ai,llms}/**/*📄 CodeRabbit Inference Engine (.cursor/rules/llm.mdc)
Files:
apps/web/utils/{ai,llms}/**/*.ts📄 CodeRabbit Inference Engine (.cursor/rules/llm.mdc)
Files:
apps/web/utils/actions/**/*.ts📄 CodeRabbit Inference Engine (apps/web/CLAUDE.md)
Files:
apps/web/utils/actions/*.ts📄 CodeRabbit Inference Engine (.cursor/rules/server-actions.mdc)
Files:
🧠 Learnings (2)📚 Learning: 2025-07-18T17:27:58.249ZApplied to files:
📚 Learning: 2025-07-18T17:27:58.249ZApplied to files:
🔇 Additional comments (5)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
Summary by CodeRabbit