Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for displaying pandas DataFrame as an interactive table #1373

Merged
merged 9 commits into from
Oct 16, 2024

Commits on Oct 14, 2024

  1. Add Dataframe class

    desertproject authored and dokterbob committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    05f602b View commit details
    Browse the repository at this point in the history
  2. Add Dataframe component

    desertproject authored and dokterbob committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    54e3636 View commit details
    Browse the repository at this point in the history
  3. Add @mui/x-data-grid package

    desertproject authored and dokterbob committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    d60cf4e View commit details
    Browse the repository at this point in the history
  4. Refactor Dataframe element to handle DataFrame serialization internally

    - Updated Dataframe class to accept pandas DataFrame directly.
    - Automatically serialize DataFrame to JSON with orient="split" in __post_init__.
    - Simplified interface, removing the need for users to manually serialize data.
    desertproject authored and dokterbob committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    3b0c70c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b3ac869 View commit details
    Browse the repository at this point in the history
  6. Implement loading state in Dataframe component

    - Added loading state to DataGrid using the loading prop.
    - Refactored data parsing logic to handle loading more cleanly.
    desertproject authored and dokterbob committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    428d15b View commit details
    Browse the repository at this point in the history
  7. Add tests for DataFrame rendering and interaction

    - Created sample DataFrame with 15 rows (more than 10) in main.py to test pagination
    - Added Cypress test to validate Dataframe rendering, sorting, pagination, and rows per page functionality
    desertproject authored and dokterbob committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    78801c5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a7e2a74 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    69e1257 View commit details
    Browse the repository at this point in the history