Skip to content

Browser native confirm() dialog used for delete confirmation on Knowledge Base page #48

@androemeda

Description

@androemeda

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

  1. Navigate to /admin/knowledge-base
  2. Ensure at least one file is listed in the table
  3. Click the red trash icon in the Actions column for any file
  4. Observe that a native browser alert dialog appears:
    "Are you sure you want to delete this file?"

Screenshot

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions