eclipse-tractusx / portal-frontend

Portal Frontend
Apache License 2.0
3 stars 30 forks source link

sig#810: Enhancement of Company Data Management UI: Integration of Extended Error Handling for Sharing State #941

Open jjeroch opened 1 month ago

jjeroch commented 1 month ago

Ticket Title:

Enhancement of Company Data Management UI: Integration of Extended Error Handling for Sharing State


Description:

We are aiming to improve the user experience of the Company Data Management interface by introducing a more comprehensive error handling mechanism. The enhancement involves integrating the GET /v6/sharing-state endpoint to the current UI workflow. This new feature will enable the UI to display whether the processing of company data that are in a "PENDING" state is still in progress or if there has been an error during the processing. The error detection will be facilitated by checking for specific response body attributes provided by the endpoint.


Acceptance Criteria:

  1. Endpoint Integration: Incorporate the GET /v6/sharing-state endpoint into the Company Data Management UI logic.
  2. Error Handling Logic: Implement logic to detect and handle errors based on the response body attributes: "sharingStateType", "sharingErrorCode", and "sharingErrorMessage".
  3. UI Feedback: Update the UI to provide feedback to the user when company data is in a "PENDING" state and to show appropriate error messages if the "SharingProcessError" is identified.
  4. Retry Mechanism: Include a retry mechanism or guidance for the user to rectify the error if possible.
  5. Logging: Ensure that all error states and the associated error messages are logged for further investigation and audit purposes.
  6. Documentation: Update the technical documentation to reflect the new changes and error handling procedures.
  7. Testing: Develop unit tests and integration tests to validate the new functionality and error handling logic.

Technical Implementation Details:


Dependencies:


Impact Assessment:


Rollout Plan:

  1. Develop and test the new features in a development environment.
  2. Perform code reviews and iterate based on feedback.
  3. Deploy to a staging environment for integration testing.
  4. Conduct user acceptance testing (UAT) with a select group of users.
  5. Plan and execute the deployment to production with appropriate change management processes.
  6. Monitor the feature post-release for any unforeseen issues.

Please proceed with the implementation following the above specifications. Let's enhance our user experience and improve the robustness of our

jjeroch commented 1 month ago

In the scenario of an Error, the Status "Error" (in red) is supposed to get displayed, NOT "Pending". Additionally we need an solution to display the error well. to be identified how we might do this. First, frontend logic, afterwards design ;)

manojava-gk commented 1 month ago
Screenshot 2024-07-22 at 11 14 45 PM Screenshot 2024-07-22 at 11 10 12 PM

Initial design to show Error in listing page and in the detail page. @jjeroch @MaximilianHauer

manojava-gk commented 1 month ago

@jjeroch @MaximilianHauer created a new site from portal successfully

Screenshot 2024-07-24 at 4 53 56 PM
MaximilianHauer commented 1 week ago

@manojava-gk

error message

i assume we should limit the errormessage only to show the message part and not everything image

table header

please add the following table header image

manojava-gk commented 1 week ago

@manojava-gk

error message

i assume we should limit the errormessage only to show the message part and not everything image

table header

please add the following table header image

As discussed, error message is coming from sharing-states api response. It is not handled from portal side.

Table header is updated