-
Notifications
You must be signed in to change notification settings - Fork 79
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
BUG Add a status column to the table view #980
BUG Add a status column to the table view #980
Conversation
d00f13f
to
82a4b16
Compare
* @param {object} props | ||
* @returns {Component|null} | ||
*/ | ||
renderStatus(props) { |
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.
This was inspired by getStatusFlags
on GalleryItem
.
getStatusFlags
has a updateStatusFlags
hook that looks like it's meant to allow module like Fluent to add their own status flags. However, it's not clear how you would go about using it or that it even works.
If allowing module to add their own flags is a key requirements, I think we need to rethink how this is done and come up with a consistent way of doing for both the gallery view and the table view.
|
||
flags = flags.map(({ ...attributes }) => <VersionedBadge {...attributes} />); | ||
|
||
return <span>{flags}</span>; |
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.
So this would return an empty span for folders - was that deliberate?
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've updated it to return null
when there's no flag. There's a possible future where we update this again so other module can specify their own flags and where someone decide they want to flag folders.
871678d
to
e5f206b
Compare
LGTM, just gotta get the tests green @maxime-rainville |
The Table view didn't have a way to view the status of individual files.
Parent issue
Related PRs