This PR adds a batch deletion feature to the Kutt application, allowing users to delete multiple links at once. The current UI only supports one-by-one deletion, which can be time-consuming when dealing with a large number of links. With this new feature, users can select multiple links using checkboxes and delete them all at once.
Summary of Changes
Added checkboxes next to each link in the LinksTable UI for selection.
Added a "Delete Selected" button that triggers the batch deletion process.
Modified the deleteLink validator to accept an array of IDs instead of a single ID.
Modified the delete function in the links.ts file to handle an array of IDs and delete all the corresponding links from the database.
Testing
Manually tested the batch deletion feature by selecting multiple links and verifying that they were deleted successfully.
Tested the validation of the deleteLink validator by passing both single and multiple IDs.
Tested the deletion of links from the database by verifying that the corresponding links were removed.
Screenshots
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/batch-deletion
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.
Description
This PR adds a batch deletion feature to the Kutt application, allowing users to delete multiple links at once. The current UI only supports one-by-one deletion, which can be time-consuming when dealing with a large number of links. With this new feature, users can select multiple links using checkboxes and delete them all at once.
Summary of Changes
Testing
Screenshots
Fixes #1.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.