Skip to content

Design: Provide a warning model when users toggle catalog resource setting to off

Context

!124668 (comment 1471666332)

Problems to solve

Currently, its impossible to toggle the catalog resource setting to off. We want to allow users to do that so they can remove the resource from the catalog.

We need to have a confirmation modal which explains:

  1. Toggling the resource off will remove it from the catalog
  2. Toggling it back on again will re-add it to the catalog
  3. Making a release that contains valid CI components will re-add it to the catalog

Proposal

Implement the ability to turn the toggle off.

  • 🔗 Figma Prototype
  • See the design tabs below 👇
  • Users will see the modal when they try to toggle off. Once user confirms the action, they will see the toast.

Adjust the existing modal and alert when toggle on.

  • 🔗 Figma Prototype
  • See the design tabs below 👇
  • Users will NOT see the modal when they try to toggle on.
  • Users will see the toast as a result of confirming their action. We could replace the alert with toast, it's a less intrusive action as now we are making it reversible.

Implementation Table

Group Issue Link
backend #428439 (closed)
frontend 👈 You are here
Edited by Sunjung Park