-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Create generic Table component #1442
Comments
I think there definitely should be a single I think we should move the search and sorting state into the component itself (using React state) and not Redux. If I recall, we reset the sortable state in redux whenever the component mounts anyway, so having it there doesn't offer many benefits. Maybe this is a good candidate for the next component in the component library? |
Great idea 😸 |
Can react-table package be used for creating a Table component instead of creating from scratch? https://github.com/tannerlinsley/react-table react-table Overview: https://react-table.tanstack.com/docs/overview |
Hi @sagar-joshi, it's cool that you'd like to work on this! My approach to this woud be:
I like the look of Happy to help work through this more if you think it's helpful. :-) |
@andrewn thank you for suggesting the approach.
Okay, I will start by looking for common features. |
I was able to test CollectionList and SketchList but while trying to test AssetList when I click on the Assets tab, I get the below error at line:
in actions/assets.js
Do I need to have aws s3 bucket to test AssetList? |
@sagar-joshi you do! you can follow this guide: https://github.com/processing/p5.js-web-editor/blob/develop/developer_docs/installation.md#s3-bucket-configuration |
@andrewn Hello , i am new here, how can i contribute to this issue since i need more clarity about this issue. Would appreciate your help |
Nature of issue?
Feature enhancement details:
As reported in #1424.
The Sketch List and Collection List components have the ability to sort their columns (name, date created, etc.). The Asset List should have the ability to sort by name-, size- and sketch-.
This also brings up a bigger issue... which is should these three components be integrated into a
Table
component? With a search bar and sortable columns? Should their state be stored in React and removed from Redux?The text was updated successfully, but these errors were encountered: