Description
On the /admin/knowledge-base page, clicking the delete icon in the Actions column triggers a native browser confirm() dialog to confirm file deletion. This is inconsistent with the rest of the UI, looks unprofessional, and does not follow the app's design language.
Steps to Reproduce
- Navigate to
/admin/knowledge-base
- Ensure at least one file is listed in the table
- Click the red trash icon in the Actions column for any file
- Observe that a native browser alert dialog appears:
"Are you sure you want to delete this file?"
Screenshot
Proposed Fix
Replace the window.confirm() call in handleDeleteFile with a styled in-app modal dialog that:
- Displays the name of the file being deleted
- Provides Cancel and Delete buttons styled consistently with the site's
blue-600, slate, and red-600 color palette