feat(credential-groups): complete managed account enrollment - #6729
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR SummaryMedium Risk Overview Workspace People management replaces Revoke with Delete: the enrollment row is removed (managed credentials cascade) rather than marked revoked. Status chips on people rows are removed; group settings listing hides revoked enrollments and uses a safer encoded pagination cursor. Configuration treats credential options as optional by default (including Slack managed-user setup). The Slack custom-bot modal adds a Managed user authorization capability that wires Credential Group OAuth redirect URLs into the app manifest. Workflow canvas resolves dynamic dropdown IDs (e.g. credential group names) via Reviewed by Cursor Bugbot for commit c3f455a. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR completes optional managed-account enrollment, adds Slack managed-user authorization, simplifies Credential Group membership management, and improves dynamic block-option labels. The pagination repair now survives deletion of its boundary row, but its replacement cursor can silently paginate from an unrelated or fabricated boundary.
Confidence Score: 4/5The PR is not yet safe to merge because credential-group pagination can silently omit valid people when given a foreign or modified cursor. The new self-contained cursor is used directly as a keyset boundary without establishing that it belongs to the current workspace, credential group, and stable filter identity, allowing successful responses that begin at an unrelated position. Files Needing Attention: apps/sim/lib/credential-groups/enrollments.ts
|
| Filename | Overview |
|---|---|
| apps/sim/lib/credential-groups/enrollments.ts | Adds deletion, optional completion, and self-contained pagination cursors; cursor boundaries are not validated against the requested result set. |
| apps/sim/lib/credential-groups/application/manage-groups.ts | Filters settings enrollment pages to active, non-deleted lifecycle statuses. |
| apps/sim/app/credential-groups/enroll/[token]/page.tsx | Allows optional account submission and labels existing connections as reconnect actions. |
| apps/sim/lib/credential-groups/slack-managed-users.ts | Implements the managed Slack user authorization integration. |
| apps/sim/hooks/queries/dynamic-subblock-options.ts | Resolves and caches display labels for persisted dynamic dropdown option IDs. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
Invite[Credential Group invitation] --> Enroll[Recipient enrollment]
Enroll --> OAuth[Optional account connections]
OAuth --> Complete[Complete enrollment]
Complete --> Done[Completion page]
Admin[Workspace administrator] --> People[People list]
People --> Cursor[Self-contained pagination cursor]
People --> Delete[Delete enrollment]
Delete --> Cleanup[Managed credentials removed]
Reviews (4): Last reviewed commit: "fix(credential-groups): hydrate canvas l..." | Re-trigger Greptile
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 51afa70. Configure here.
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit a18cbf3. Configure here.
|
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort 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 c3f455a. Configure here.

Summary
Type of Change
Testing
bun run lintbun run lint:checkbun run type-checkbun run check:auditsChecklist