Add Blocking Modal when User Attempts to Delete Self-hosted Model In Use

When a user attempts to delete a self-hosted model and the model is in use, we need to display a modal with further instructions for unlinking the model before it can be removed.

Follow the Figma design here

The Task:

  • Implement the modal below in the UI, using the data fetched from the query
  • The "View AI powered Features" button will link out to the Features page (/admin/ai/feature_settings)

Screenshot_2024-07-31_at_4.11.07_PM

Edited by Mohamed Hamda