puter icon indicating copy to clipboard operation
puter copied to clipboard

Add ability to cancel ongoing deployments in Dev Center

Open jelveh opened this issue 9 months ago • 4 comments

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:

  1. 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)
  2. 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
  3. 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:

  1. User starts deployment
  2. During "Deploying (X%)", user can click cancel
  3. Show brief "Cancelling..." message
  4. Clean up partial deployment
  5. 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

jelveh avatar Mar 02 '25 19:03 jelveh

Can I get assigned this feature?

ivanma9 avatar Mar 05 '25 07:03 ivanma9

Assigned! Let us know if you run into and hurdles.

KernelDeimos avatar Mar 05 '25 09:03 KernelDeimos

I see there is an "instant-deploy-cancel"/ instant deploy code, that is not related to this issue right?

ivanma9 avatar Mar 15 '25 02:03 ivanma9

I'm not sure, can you tell me where that is?

KernelDeimos avatar Mar 15 '25 02:03 KernelDeimos