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

CRDCDH-881 Data Submission > Submitted Data tab #317

Merged
merged 14 commits into from
Apr 2, 2024
Merged

Conversation

amattu2
Copy link
Member

@amattu2 amattu2 commented Mar 20, 2024

Overview

This PR introduces a new Data Submissions Dashboard tab called Submitted Data. The new tab offers a node type filter and a dynamic table which displays the uploaded nodes and their properties–The columns change based on the selected node.

Warning

This branch is based off CRDCDH-882, which included newly added testing features.

Change Details (Specifics)

  • Add new tab
  • Add test coverage for
    • General functionality (error handling)
    • Table filters
    • Table itself
    • Safe JSON parsing utility
  • Remove unused "User" function argument on GenericTable > renderValue
  • Added test ID attributes to GenericTable > Header Col and Pagination components

Related Ticket(s)

CRDCDH-881

@amattu2 amattu2 added this to the 3.0.0 (PMVP-M1) milestone Mar 21, 2024
@amattu2 amattu2 changed the title CRDCDH-881 Data Submission > Data Content tab CRDCDH-881 Data Submission > Submitted Data tab Mar 26, 2024
@amattu2 amattu2 added the 🚧 Do Not Merge This PR is not ready for merging label Mar 27, 2024
@amattu2 amattu2 marked this pull request as ready for review March 27, 2024 18:59
@amattu2 amattu2 removed the 🚧 Do Not Merge This PR is not ready for merging label Mar 29, 2024
Base automatically changed from CRDCDH-882 to 3.0.0 April 2, 2024 14:44
Copy link
Collaborator

@Alejandro-Vega Alejandro-Vega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible could we move the overflow to within just the Table, without the table pagination section? Seems a bit inconvenient to have to scroll back to click on next page. Everything else LGTM.

@amattu2
Copy link
Member Author

amattu2 commented Apr 2, 2024

@Alejandro-Vega If possible could we move the overflow to within just the Table, without the table pagination section? Seems a bit inconvenient to have to scroll back to click on next page. Everything else LGTM.

Should be fixed now. Added a new prop to the table: horizontalScroll – which allows the column content to fill necessary space (disables line wraps) and adds a horizontal scrollbar to the table itself (instead of the container). The default is false and should have no effect on existing usage.

Screenshot 2024-04-02 at 12 22 38 PM

Copy link
Collaborator

@Alejandro-Vega Alejandro-Vega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One last thing I noticed was the table looks a little off when empty. I'm assuming it is due to there not being any columns. Not sure what the expected behavior is since you are getting them dynamically.

Screenshot 2024-04-02 at 12 32 27 PM

@amattu2
Copy link
Member Author

amattu2 commented Apr 2, 2024

One last thing I noticed was the table looks a little off when empty. I'm assuming it is due to there not being any columns. Not sure what the expected behavior is since you are getting them dynamically.

Screenshot 2024-04-02 at 12 32 27 PM

Byproduct of using display: block on a table. The horizontalScroll property is now ignored when there is no content. Thanks for finding this, I didn't even think to check that.

Screenshot 2024-04-02 at 12 53 16 PM

Copy link
Collaborator

@Alejandro-Vega Alejandro-Vega left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Alejandro-Vega Alejandro-Vega merged commit 05789f1 into 3.0.0 Apr 2, 2024
3 checks passed
@Alejandro-Vega Alejandro-Vega deleted the CRDCDH-881 branch April 2, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants