Skip to content

Feature: Batch‑delete websites (FR #3320) #3438 #3442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Conversation

The-Yearly
Copy link

This PR adds the ability to select and delete multiple websites in one action refer #3320

  • Why

    • Managing deletion of many test or stale sites one‑by‑one are slow and error‑prone. Bulk deletion streamlines it
  • How it works

    • Checkboxes—a checkbox appears beside each website row,
    • Delete button—when ≥1 sites are selected, a Delete (selected) button becomes active.
    • Safety confirmation—clicking Delete opens a confirmation Page
  • Screen Shots:

    • Before Implementation
      image
    • After Implemetation
      • Before Selecting
        image
      • After Selecting
        image
      • Confirmation

    image

I have done the same for websites tab and websites tab under users in settings also

Copy link

vercel bot commented May 20, 2025

@The-Yearly is attempting to deploy a commit to the umami-software Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR implements batch website deletion functionality, allowing users to select and delete multiple websites simultaneously through a checkbox interface and confirmation modal.

  • Added checkbox column and delete icon in src/app/(main)/settings/websites/WebsitesTable.tsx for multi-select functionality
  • Implemented batch deletion logic in src/app/(main)/settings/websites/[websiteId]/WebsiteDeleteForm.tsx to handle array of website IDs
  • Added state management for selected websites using deleteIds and confirmation modal in WebsitesTable.tsx
  • Integrated useModified hook in WebsitesDataTable.tsx and UserWebsites.tsx to refresh UI after batch deletions
  • Added safety confirmation with different CONFIRM_VALUE strings for single ('DELETE') vs batch ('DELETE MULTIPLE') operations

💡 (5/5) You can turn off certain types of comments like style here!

7 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile

@The-Yearly
Copy link
Author

@mikecao could u pls review this

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.

3 participants