eclipse-tractusx / portal-shared-components

Portal Shared UI Components
https://eclipse-tractusx.github.io/portal-shared-components
Apache License 2.0
1 stars 11 forks source link

Update Storybook with Table Content Warning/Refresh Feature #223

Open jjeroch opened 2 months ago

jjeroch commented 2 months ago

Description:

This ticket requires the update of our Storybook to include the newly developed feature that provides a warning and refresh option when table content fails to load. This feature has already been successfully developed and implemented in the portal connector table. The task is to document and showcase this functionality within Storybook to ensure that it is accessible to developers and stakeholders for future reference and implementation consistency.

Acceptance Criteria:

  1. Documentation of Feature:

    • Clearly document the warning/refresh feature in Storybook, including how it operates and under what circumstances it is triggered.
  2. Interactive Example:

    • Create an interactive example within Storybook that allows users to see the feature in action, demonstrating the warning message and refresh mechanism.
  3. Consistent UI/UX:

    • Ensure that the Warning/Refresh feature is consistent with the design language and user experience patterns established throughout the application.
  4. Accessibility:

    • Validate that the warning and refresh UI is accessible, including screen reader support and keyboard navigation compliance.
  5. Edge Case Handling:

    • Include examples of how the feature handles edge cases, such as multiple consecutive failures to load content.

Technical Requirements:

  1. Storybook Integration:

    • Integrate the warning/refresh feature into the existing Storybook infrastructure without disrupting other documented components.
  2. Props Table:

    • Update the Props table in Storybook to include any new props related to the warning/refresh feature.
  3. Testing:

    • Conduct thorough testing of the Storybook example to ensure it functions as expected and provides a clear demonstration of the feature.
manojava-gk commented 2 months ago

@jjeroch shall I do this in newly created mdx file with explanation?

jjeroch commented 2 months ago

@manojava-gk yes please create a initial mdx for the table description. Content as defined below:

Overview

The Data Table component is a versatile UI element designed to display data in a structured format with enhanced functionalities such as searching, filtering, and action buttons. It also includes error and warning notifications for missing backend data or other issues.

Features

Theming

Interactive Elements

Usage

Do's

Don'ts

Error Handling

Accessibility

manojava-gk commented 2 months ago

Thanks for the input @jjeroch Will add it

manojava-gk commented 1 month ago

@jjeroch as mdx related PR is still in open state, I have added Table.mdx file there as well with the above content