Skip to content

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

@vercel
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

3 participants