eclipse-tractusx / portal-frontend

Portal Frontend
Apache License 2.0
4 stars 25 forks source link

Inability to Delete URL in "Register URL for Autosetup" Function on App Subscription Page #793

Open jjeroch opened 1 month ago

jjeroch commented 1 month ago

Description: We have identified a bug in the "Register URL for Autosetup" function on the App Subscription page. The issue is that the function does not support deleting the registered URL, which is causing inconvenience and limiting the functionality of the application.

Steps to Reproduce:

  1. Navigate to the App Subscription page.
  2. Locate the "RegisterURL" section & click on it
  3. Attempt to delete the registered URL.

Expected Behavior: The "Register URL for Autosetup" function should provide the option to delete the registered URL, allowing users to remove the URL when necessary.

Actual Behavior: Currently, there is no option or functionality available to delete the registered URL. This limitation prevents users from removing unnecessary or outdated URLs, hindering the flexibility and usability of the application.



Attachments:

image
jjeroch commented 1 month ago

Attention: I think the endpoint doesnt support empty URL - I was sure it would, but that seems to have been wrong. Need to get fixed from backend side first

jjeroch commented 1 month ago

linked backend ticket: https://github.com/eclipse-tractusx/portal-backend/issues/764

jjeroch commented 1 month ago

@nidhigarg-bmw I have enhanced the design https://www.figma.com/design/pcHZWXTQJUguIT75QSk9KW/Portal-Designs?node-id=10726-24432&t=f1ScmxTnG5pYapzp-0

Screen if the user company has an URL configured already, overlay is displayed and no new URL yet entered:

Image

Screen if the user entered a new url:

Image

=> as usual please make sure that the delete button is acting on hover and click => when clicking the delete button the empty PUT api call is getting called => while running the action the user should not be able to click delete, confirm or cancel => while running the action the user should get a load element displayed where previously the delete icon was displayed => the url is only removed after we received an success message from the backend => if no URL is yet configured display "{empty}" (see design below) => please also take over the overlay intro description (can get taken from Figma), overlay title, field headers, etc.

In case no URL is available in the backend:

Image