Skip to content

improvement(admin): move user row actions into an overflow menu with confirm modals - #6384

Merged
waleedlatif1 merged 8 commits into
stagingfrom
admin-user-row-actions-menu
Aug 7, 2026
Merged

improvement(admin): move user row actions into an overflow menu with confirm modals#6384
waleedlatif1 merged 8 commits into
stagingfrom
admin-user-row-actions-menu

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Moved Reset password, Promote/Demote, and Ban/Unban into a ... overflow menu (RowActionsMenu, same as Secrets/API keys) so the actions column stops wrapping to two lines
  • Kept Impersonate as the only inline button since it's the action we use most
  • Ban now opens a ChipConfirmModal (destructive) with the optional reason as a ChipModalField, replacing the ad-hoc inline two-step row
  • Promote/Demote now opens the same confirm modal instead of firing immediately

Type of Change

  • Improvement

Testing

Tested manually

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Skipped Skipped Aug 7, 2026 8:06pm

Request Review

@cursor

cursor Bot commented Aug 7, 2026

Copy link
Copy Markdown

PR Summary

Medium Risk
Changes how platform admins trigger ban, role changes, and password resets in the UI, but adds confirmation for destructive actions and does not alter the underlying mutation APIs.

Overview
Admin user rows no longer show a wide strip of inline buttons. Impersonate stays as a single inline Chip; reset password, promote/demote, and ban/unban move into the shared RowActionsMenu overflow pattern (same as API keys/secrets), with a narrower actions column.

Ban and promote/demote now require ChipConfirmModal confirmation instead of inline two-step ban UI or immediate role mutations. Ban keeps an optional reason via ChipModalField; pending actions track user ids so refetches can refresh the email shown in the modal. Reset password still runs from the menu but surfaces success/error via toast and a brief inline “sending…” message instead of button label churn.

Inline error banners for ban/role/reset are trimmed where errors are shown in modals or toasts; unban/impersonate errors still use the section error line.

Reviewed by Cursor Bugbot for commit 731f1d7. Configure here.

@greptile-apps

greptile-apps Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR consolidates less-frequent user administration operations into an overflow menu while retaining impersonation inline.

  • Adds confirmation modals for ban and role changes.
  • Moves password-reset progress outside the closing menu and reports completion through toasts.
  • Replaces the inline ban-reason workflow with a modal field.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains.

Important Files Changed

Filename Overview
apps/sim/app/workspace/[workspaceId]/settings/components/admin/admin.tsx Reworks administrative row actions and confirmation flows; the previously reported feedback issues are fixed, invalid, accepted, or unrelated to PR-introduced behavior.

Reviews (9): Last reviewed commit: "improvement(admin): align the role confi..." | Re-trigger Greptile

Comment thread apps/sim/app/workspace/[workspaceId]/settings/components/admin/admin.tsx Outdated
Comment thread apps/sim/app/workspace/[workspaceId]/settings/components/admin/admin.tsx Outdated
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 c8ce9d7. Configure here.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

1 issue from previous review remains unresolved.

Fix All in Cursor

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit f7c1ffc. Configure here.

@waleedlatif1
waleedlatif1 force-pushed the admin-user-row-actions-menu branch from f7c1ffc to e429457 Compare August 7, 2026 19:45
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 e429457. Configure here.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1
waleedlatif1 force-pushed the admin-user-row-actions-menu branch from e429457 to 731f1d7 Compare August 7, 2026 20:05
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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 731f1d7. Configure here.

@waleedlatif1
waleedlatif1 merged commit 73bac1a into staging Aug 7, 2026
30 checks passed
@waleedlatif1
waleedlatif1 deleted the admin-user-row-actions-menu branch August 7, 2026 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant