Repository navigation
Add account integrations page - #550
Conversation
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new ChangesAccount Integrations Feature
Sequence DiagramsequenceDiagram
participant Browser
participant AccountIntegrationsRoute
participant WorkerAPI as /account/integrations.json
participant readAuthenticatedAppUser
participant buildPayload
participant listValues
Browser->>AccountIntegrationsRoute: navigate to /account/integrations
AccountIntegrationsRoute->>WorkerAPI: fetch (credentials: include)
WorkerAPI->>readAuthenticatedAppUser: authenticate
readAuthenticatedAppUser-->>WorkerAPI: user | null
alt unauthenticated
WorkerAPI-->>AccountIntegrationsRoute: 401
AccountIntegrationsRoute->>Browser: redirect to /login
else authenticated
WorkerAPI->>buildPayload: buildPayload(user, env)
buildPayload->>listValues: listValues({ userId, scope })
listValues-->>buildPayload: stored integration values
buildPayload-->>WorkerAPI: { ok, email, username, integrations[] }
WorkerAPI-->>AccountIntegrationsRoute: 200 JSON payload
AccountIntegrationsRoute->>Browser: render integration cards
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
|
🔎 Preview deployed: https://kody-pr-550.kentcdodds.workers.dev Worker: Mocks:
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 39ed019. Configure here.
Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>

Summary
/account/integrationspage and JSON endpoint for saved OAuth integration metadata./connect/oauthreloads the latest stored integration config.Walkthrough
Testing
npx vitest run packages/worker/src/app/handlers/account-integrations.node.test.tsnpm run typechecknpm run lint(passes with existing warnings)npm run format:checknpm run validate/connect/oauth?provider=githuband loads the current stored integration config.Summary by CodeRabbit