Repository navigation
Add bulk delete to Agents table - #95431
Conversation
Bring in the compact AgentsTable component and migrate AgentsPage off the legacy FlatList rows ahead of adding bulk delete support.
Bulk delete from the Agents table loops over the existing deleteAgent action and should stay on the list page instead of navigating back.
Enable row checkboxes on wide layouts and delete selected agents by looping over the existing deleteAgent action with a confirmation modal.
|
@Krishna2323 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 08625a40d5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 649337243d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Intersect selectedAgentKeys with the currently rendered agents instead of only checking pendingAction, so accountIDs that disappear from Onyx (e.g. an optimistic create resolving) are dropped from the selection. Also swap the legacy Button for ButtonComposed and react-native's ScrollView for @components/ScrollView to satisfy the no-restricted-imports rule, and document the new AgentsTableProps fields.
Can't enter selection mode by long-pressing on items on small screens. Is that expected? Its in the testing step but still want to confirm that. Monosnap.screencast.2026-07-13.10-20-01.mp4 |
# Conflicts: # src/libs/actions/Agent.ts
|
Agree that should be a green button.
I think the answer is yes, eventually! Once we get everything updated with the new table styles, maybe we can go back and revisit that exposed bulk action button idea. |
|
Updated |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid_hybrid.mp4Android: mWeb Chromeandroid_mWeb.mp4iOS: HybridAppios_hybrid.mp4iOS: mWeb Safariios_mWeb.mp4MacOS: Chrome / Safariweb_chrome.mp4 |
|
@NicolasBonet Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
cc: @JS00001 |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / SafariCleanShot.2026-07-15.at.09.53.46.mp4 |
|
🚧 NicolasBonet has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/NicolasBonet in version: 9.4.35-1 🚀
|
|
Yes — help site changes are required, and I've drafted them. This PR adds web row-selection checkboxes and bulk deletion to the Agents table. The existing help article Create and Use Agents documented deleting a single agent but not the new bulk flow, so I added a How to delete multiple agents at once section (web-only, since selection is gated to the wide layout). 📝 Draft docs PR: #96248 What changed & how labels were verified
@luacmartins, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.4.35-6 🚀
|
|
We had a minor issue related with this PR in here: #96256 (comment), here we have the solution: #96292 |


Explanation of Change
Add row selection checkboxes to the Agents table on web and support bulk deletion of selected agents. Bulk delete loops over the existing
deleteAgentaction (with navigation skipped so the user stays on the list page). Also merges in the compactAgentsTablecomponent migration that bulk selection depends on.Fixed Issues
$ #95412
PROPOSAL:
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Screen.Recording.2026-07-09.at.1.05.22.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari