Skip to content

feat/deleteindividual-scans - #113

Merged
ieliofficial merged 5 commits into
mainfrom
feat/del-individual-scans
Aug 13, 2026
Merged

feat/deleteindividual-scans#113
ieliofficial merged 5 commits into
mainfrom
feat/del-individual-scans

Conversation

@DevOlabode

Copy link
Copy Markdown
Member

Closes #112.

@DevOlabode DevOlabode self-assigned this Aug 12, 2026
Implemented a new DELETE endpoint for removing saved scans from user storage. The ScanController now includes the deleteSavedScan method, which handles authentication, validates input, and interacts with the storage service to delete the specified scan. Updated the storageService to support scan deletion and added corresponding tests to ensure functionality and error handling. Frontend integration allows users to delete scans from the dashboard.
Added a new DELETE endpoint for removing saved scans from user storage, along with frontend integration in the DashboardView. Users can now confirm and delete scans, with appropriate error handling and UI updates. Updated documentation to reflect the new API capabilities and added tests to ensure functionality.
@DevOlabode DevOlabode changed the title feat/del-individual-scans feat/deleteindividual-scans Aug 12, 2026

@ieliofficial ieliofficial left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. Follows the existing controller shape and the error mapping matches what the other routes do.

I specifically looked at whether the scan id could escape the scans directory, and it can't, since you match against the directory listing and build the path from the entry name rather than from user input. Good.

Heads up that this conflicts with #107 in storageService.js and its test file, so whichever lands second will need a rebase.

@ieliofficial
ieliofficial merged commit e17b923 into main Aug 13, 2026
2 checks passed
@ieliofficial
ieliofficial deleted the feat/del-individual-scans branch August 13, 2026 05:09
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.

Delete individual scans

2 participants