Skip to content

CS-117 Remove screenshots on portal#2095

Open
github-actions[bot] wants to merge 8 commits intomainfrom
chas/remove-screenshots
Open

CS-117 Remove screenshots on portal#2095
github-actions[bot] wants to merge 8 commits intomainfrom
chas/remove-screenshots

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Feb 3, 2026

This is an automated pull request to merge chas/remove-screenshots into dev.
It was created by the [Auto Pull Request] action.

@vercel
Copy link

vercel bot commented Feb 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Building Building Preview, Comment Feb 5, 2026 3:40pm
portal Building Building Preview, Comment Feb 5, 2026 3:40pm

Request Review

@cursor
Copy link

cursor bot commented Feb 3, 2026

PR Summary

Medium Risk
Introduces deletion of user-uploaded assets and DB records plus S3 batch deletes; mistakes in scoping (user/org/policyId) or error handling could cause unintended data loss or orphaned files.

Overview
Adds a "Remove images" action for passing fleet policies with attachments, including a confirmation modal that calls DELETE /api/fleet-policy and refreshes the policy list.

Extends FleetPolicyItem/PolicyImageUploadModal to receive organizationId explicitly (instead of reading from router params), and implements DELETE in apps/portal/src/app/api/fleet-policy/route.ts to delete attachment objects from S3 (batched) and remove matching fleetPolicyResult records for the current user/policy/org.

Written by Cursor Bugbot for commit ac3d7ad. This will update automatically on new commits. Configure here.

@chasprowebdev chasprowebdev changed the title [dev] [chasprowebdev] chas/remove-screenshots CS-117 Remove screenshots on portal Feb 3, 2026
@linear
Copy link

linear bot commented Feb 3, 2026

@chasprowebdev
Copy link
Contributor

remove-images.mov

@chasprowebdev chasprowebdev requested a review from Marfuen February 3, 2026 02:26
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants