Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-8100

Edit Label Modal customization

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • User Interface
    • None
    • None
    • Product / Portfolio Work
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      1. Proposed title of this feature request

      Feature Request: Allow customization of submit function in useLabelsModal hook.


      2. What is the nature and description of the request?

      This request proposes to enhance the useLabelsModal hook by providing an option for consumers to customize the submit function. Currently, the hook's submit logic is tightly coupled, preventing external customization. By exposing a way to override or extend this function, we can integrate the modal into specific workflows (like CNV's label editing) without needing to rebuild the entire component. This will allow CNV to use the existing useLabelsModal implementation while still running its own custom code upon submission.


      3. Why does the customer need this? (List the business requirements here)

       

      • Prevent redundant development: We are currently using our own implementation of an edit labels modal within CNV. By using the exposed useLabelsModal hook, we can leverage an existing component from the console package, reducing code duplication and maintenance efforts.
      • Standardize UI/UX: Adopting the console's modal ensures a consistent look and feel across different parts of the application, aligning the CNV user experience with the broader console UI.
      • Enable custom business logic: The ability to customize the submit function is a critical requirement for CNV to execute its specific label management logic when a user confirms their changes in the modal.

      4. List any affected packages or components.

      • useLabelsModal hook: This is the primary component that needs to be modified to accept a customizable submit function.

              amobrem Ali Mobrem
              rh-ee-gkremer Gal Kremer
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                None
                None