-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Good First IssueA beginner-friendly issue, great for first-time contributorsA beginner-friendly issue, great for first-time contributorsHelp WantedWould love additional input or contributions!Would love additional input or contributions!Priority:HighShould be addressed soon but not criticalShould be addressed soon but not criticalType:TaskTasks tied specifically to developer operations and maintenanceTasks tied specifically to developer operations and maintenance
Description
Nature of issue?
- Existing feature enhancement
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?
Metadata
Metadata
Assignees
Labels
Good First IssueA beginner-friendly issue, great for first-time contributorsA beginner-friendly issue, great for first-time contributorsHelp WantedWould love additional input or contributions!Would love additional input or contributions!Priority:HighShould be addressed soon but not criticalShould be addressed soon but not criticalType:TaskTasks tied specifically to developer operations and maintenanceTasks tied specifically to developer operations and maintenance
Activity
andrewn commentedon May 28, 2020
I think there definitely should be a single
Table
component that we can use for all these.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?
catarak commentedon May 28, 2020
Great idea 😸
[-]Add sorting columns to Asset List[/-][+]Create generic Table component[/+]sagar-joshi commentedon Feb 12, 2021
if @andrewn is no longer working on this then I'd like to work on this @catarak
sagar-joshi commentedon Feb 16, 2021
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
andrewn commentedon Feb 17, 2021
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
react-table
but we should be mindful of adding to the bundle size and another library that we need to learn. Can we first try moving around the existing code into shared components to achieve the same functionality?Happy to help work through this more if you think it's helpful. :-)
sagar-joshi commentedon Feb 17, 2021
@andrewn thank you for suggesting the approach.
Okay, I will start by looking for common features.
:)
sagar-joshi commentedon Feb 24, 2021
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?
Or is this error due to some other reason, because (I am not sure but ) I remember it did not used to crash earlier when I had not uploaded anything in the assets. After uploading some assets, and then clicking on assets, loading graphics appear for some time and then the app crashes and No Uploaded Assets appears on the screen.
8 remaining items