puter
puter copied to clipboard
Add ability to cancel ongoing deployments in Dev Center
Currently, once a deployment starts in Dev Center, users have no way to cancel it even if they realize they selected the wrong files or the deployment is taking too long. This can be frustrating, especially with large deployments.
All the relevant code resides in dev-center.js
Technical Requirements:
-
Add a cancel button to the deployment progress interface:
- Replace or augment the current "Deploying (X%)" message with a cancellable interface
- Add a clear visual indicator that the deployment can be cancelled (e.g., "✕" button)
-
Implement proper cancellation handling:
- Cancel any ongoing file uploads/transfers
- Clean up any partially uploaded files in the app directory
- Reset the drop area to its initial state
- Show feedback that the deployment was cancelled
-
Consider states where cancellation might not be possible:
- If deployment is near completion
- During critical operations that shouldn't be interrupted
- Add appropriate UI feedback for such cases
User Experience Flow:
- User starts deployment
- During "Deploying (X%)", user can click cancel
- Show brief "Cancelling..." message
- Clean up partial deployment
- Reset UI to pre-deployment state
Expected Behavior:
- The cancel button should be clearly visible during deployment
- Cancellation should be responsive and immediate
- User should receive clear feedback about the cancellation
- The app should return to a clean state after cancellation
Can I get assigned this feature?
Assigned! Let us know if you run into and hurdles.
I see there is an "instant-deploy-cancel"/ instant deploy code, that is not related to this issue right?
I'm not sure, can you tell me where that is?