feat(credentials): add named API keys to credential groups - #8188
TheodoreSpeaks wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
|
There was a problem hiding this comment.
All reported issues were addressed across 59 files
Tip: instead of fixing issues one by one fix them all with cubic
Re-trigger cubic
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
bc33ac0 to
0e4c37a
Compare
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
|
@cubic-dev-ai review this PR |
@TheodoreSpeaks I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
1 issue found across 70 files
Confidence score: 4/5
- In
apps/sim/app/o/[organizationId]/integrations/member-integrations-list.tsx, account-metadata failures can incorrectly render both the empty-state message and the API-key request error, confusing users about whether integrations are unavailable or loading failed — excludeorganizationAccounts.isErrorfrom the empty-state condition.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/sim/app/o/[organizationId]/integrations/member-integrations-list.tsx">
<violation number="1" location="apps/sim/app/o/[organizationId]/integrations/member-integrations-list.tsx:194">
P3: An account-metadata failure now shows both “No integrations are available” and “Could not load API key requests.” Exclude `organizationAccounts.isError` from the empty-state condition.</violation>
</file>
You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.
Fix all with cubic | Re-trigger cubic
| {showEmpty && | ||
| visible.length === 0 && | ||
| visibleApiKeys.length === 0 && | ||
| !organizationAccounts.isPending && |
There was a problem hiding this comment.
P3: An account-metadata failure now shows both “No integrations are available” and “Could not load API key requests.” Exclude organizationAccounts.isError from the empty-state condition.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/sim/app/o/[organizationId]/integrations/member-integrations-list.tsx, line 194:
<comment>An account-metadata failure now shows both “No integrations are available” and “Could not load API key requests.” Exclude `organizationAccounts.isError` from the empty-state condition.</comment>
<file context>
@@ -171,8 +175,23 @@ export function MemberIntegrationsList({
{showEmpty &&
visible.length === 0 &&
+ visibleApiKeys.length === 0 &&
+ !organizationAccounts.isPending &&
!availability.integrationAvailabilityError &&
!showSlackSetupError && (
</file context>
| !organizationAccounts.isPending && | |
| !organizationAccounts.isPending && | |
| !organizationAccounts.isError && |
| {showEmpty && | ||
| visible.length === 0 && | ||
| visibleApiKeys.length === 0 && | ||
| !organizationAccounts.isPending && |
There was a problem hiding this comment.
When the organization-accounts request fails and no other integration matches, this condition still renders the empty state because it excludes only pending requests. The error state below then renders at the same time, so users see both “No integrations are available” and “Could not load API key requests,” obscuring that the inventory failed to load.
| !organizationAccounts.isPending && | |
| !organizationAccounts.isPending && | |
| !organizationAccounts.isError && |
Summary
Type of Change
Testing
Focused regression tests for the integration flow (87 passing); app type check; 26-package lint and lint:check; all 47 audits; docs and block registry gates. The migration and replay passed in temporary PostgreSQL 17 with synthetic data.
Checklist