Skip to content

Conversation

@mafredri
Copy link
Member

@mafredri mafredri commented Nov 24, 2025

This change implements bulk delete for tasks, closely copying UI and components from workspaces batch actions.

Since workspace batch actions are behind a feature, we add one for tasks as well.

Fixes coder/internal#1088


capture-eed2a76d capture-e8273b8c capture-8d0ccc0c

🤖 PR was written by Claude Sonnet 4.5 Thinking and reviewed by a human 🏂🏻

@mafredri mafredri force-pushed the bulk-delete-feature-plan- branch 9 times, most recently from e90e182 to fecb385 Compare November 25, 2025 12:43
@mafredri mafredri marked this pull request as ready for review November 25, 2025 12:45
Copy link
Member

@aslilac aslilac left a comment

Choose a reason for hiding this comment

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

I feel like the text/stages could use a little more tweaking. I expect people to care a lot less about what terraform resources are being destroyed when deleting a task than they would when deleting workspaces that people actually ssh into.

and as danielle was saying, I definitely think we should convert the styles to tailwind. the goal has been "no new emotion styles, full stop" for quite a while. this would even be a good opportunity to convert the styles of the components these are taking from. leave the campsite better than you found it!

@mafredri mafredri force-pushed the bulk-delete-feature-plan- branch from 166b19d to e9b3b69 Compare November 26, 2025 10:35
@mafredri mafredri force-pushed the bulk-delete-feature-plan- branch from e9b3b69 to 89dd770 Compare November 26, 2025 10:39
@mafredri
Copy link
Member Author

@aslilac @DanielleMaywood I believe I've addressed your feedback. PTAL (I haven't approved Chromatic changes yet so you can check those out too.)

Also: #20946

@DanielleMaywood
Copy link
Contributor

Looks like the styling is a little different between the tasks page and workspaces page when selecting them all.

SCR-20251126-kcwd SCR-20251126-kcyi

@mafredri
Copy link
Member Author

@DanielleMaywood could you highlight the difference? I don't see it.

@DanielleMaywood
Copy link
Contributor

@DanielleMaywood could you highlight the difference? I don't see it.

On the tasks page, when you bulk select the rows change color, when they don't on the workspaces page. Notice the rows have a different color in the screenshots

@mafredri
Copy link
Member Author

Ah, nvm. See it now. The color changes. Not sure if it's better or worse but I can align.

@mafredri mafredri force-pushed the bulk-delete-feature-plan- branch from 1584949 to af188b1 Compare November 26, 2025 11:14
Copy link
Contributor

@DanielleMaywood DanielleMaywood left a comment

Choose a reason for hiding this comment

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

From my side I'm happy

mafredri added a commit that referenced this pull request Nov 26, 2025
Add comprehensive documentation for active frontend pattern migrations
discovered through analysis of 200+ git commits touching site/ files:

Core Migrations:
- Emotion → Tailwind CSS (strict 'no new emotion' policy)
- MUI Components → Custom/Radix/shadcn (Tooltips, Tables, Buttons)
- MUI Icons → lucide-react with specific icon mappings
- spyOn → queries parameter for GET endpoint mocks in Storybook
- localStorage → user_configs table for user preferences

New Documentation:
- Icon migration mappings (BusinessIcon→Building2Icon, etc.)
- Radix component prop naming conventions (placement→side)
- cn() utility usage for conditional className merging
- Chromatic testing best practices (prefer snapshots over assertions)

Includes concrete before/after examples and migration patterns to guide
developers away from deprecated approaches toward current best practices.

Analysis based on PRs: #20948, #20946, #20938, #20905, #20900, #20869,
#20849, #20808, #20530, #20479, #20261, #20201, #20200, #20193, #20318

---

🤖 This change was written by Claude Sonnet 4.5 Thinking using mux and reviewed by a human 🏂
@mafredri mafredri requested a review from aslilac November 26, 2025 16:39
@mafredri mafredri enabled auto-merge (squash) November 27, 2025 15:56
@mafredri mafredri merged commit ee58f40 into main Nov 27, 2025
32 of 33 checks passed
@mafredri mafredri deleted the bulk-delete-feature-plan- branch November 27, 2025 16:05
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bulk delete of Tasks

5 participants