Skip to content

fix(files): replace native confirm with modal dialog for file deletion#211

Open
Git-Shubham14 wants to merge 1 commit into
imanchalsingh:mainfrom
Git-Shubham14:fix/delete-confirmation-modal
Open

fix(files): replace native confirm with modal dialog for file deletion#211
Git-Shubham14 wants to merge 1 commit into
imanchalsingh:mainfrom
Git-Shubham14:fix/delete-confirmation-modal

Conversation

@Git-Shubham14

@Git-Shubham14 Git-Shubham14 commented Jul 4, 2026

Copy link
Copy Markdown

##Summary
closes #190

Description

Replaces the native browser window.confirm() popup with a styled confirmation modal dialog before deleting a file in My Files. The modal shows the file name, a red irreversibility warning, and Cancel/Delete buttons — matching the existing modal design system used across the app.

Type of Change

  • Bug fix

Checklist

  • Code follows project style
  • Tested locally (blocked by pre-existing server bug — duplicate export default in validateEnv.js crashes the server, preventing login)
  • Updated documentation

Pre-existing Issues (not caused by this PR)

  • validateEnv.js has duplicate export default crashing the server (blocks login/signup locally)
  • Cannot find name 'Check' in MyFiles.tsx — from a pending PR on a separate branch
  • baseUrl deprecated warning in tsconfig.app.json — pre-existing repo issue

Code can be verified by reviewing the JSX in MyFiles.tsx or on the live Vercel deployment once merged.

@netlify

netlify Bot commented Jul 4, 2026

Copy link
Copy Markdown

👷 Deploy request for file-sharingsystem pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 999ee8b

@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

@Git-Shubham14 is attempting to deploy a commit to the imanchalsingh Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added bug Something isn't working frontend SSoC26 Official label of org labels Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend SSoC26 Official label of org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: No confirmation modal before deleting a file — deletion is instant and irreversible

1 participant