-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Create Asset List View and refactor overlay code #356
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
Conversation
</tr> | ||
</thead> | ||
<tbody> | ||
{this.props.assets.map(asset => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be nice to show a short message when the user has no assets and when the asset list is being fetched? Maybe it's quick enough not to be an issue but initially I was looking at the Overlay wondering if I should be seeing anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that it's slow and it may be nice to have a loading state for this view, which could also be used for the SketchList
view as well.
Also agree that this should handle the case in which there are no assets 😸
{this.props.assets.map(asset => | ||
<tr className="asset-table__row visibility-toggle" key={asset.key}> | ||
<td className="asset-table__delete"> | ||
<button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1,3 +1,5 @@ | |||
// TODO Organize this file by reducer type, ot break this apart into | |||
// multiple files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I think having different files would be good as I struggled a bit figuring out where new action constants should go.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah this file has gotten crazy, and can definitely be broken apart. Not sure if it would be better to put this in a folder called "constants" or maybe follow the "ducks" redux design pattern.
This looks really good! I made some small inline comments. OverlayI think the Uploading same asset multiple timesI uploaded the same Asset listing being slow / storing by project
Would this actually speed up the displaying of the list as we'd still need to fetch all the projects and assets to be displayed? This feels like something we could do later? I think that having some sort of loading spinner UI whilst the client is waiting for the data from the API might make it seem snappier? Deleting assets from Asset List viewMy expectation would be that if I delete an asset from this view then it would disappear from the project view too. It might be enough to allow the Asset List columns to be sortable so that users can find what they're looking for and then go straight to the project to manage the assets for that project? |
I purposefully hid the delete icon as I wasn't sure if it made sense to add the ability to delete an asset here, but I think it doesn't make sense so I'll remove it. I'm not sure why the image you uploaded multiple times isn't appearing. That seems like a bug 😈 |
This is a fix for issue #169. This creates a view for all of a user's assets on S3, and refactors the overlay component code a bit. Some open questions I have: