-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add customizable empty state prop in resource list #2971
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
|
We're on the cusp of getting #2843 reviewed and merged which converts ResourceList to a functional component. Can we get that in and rebase this PR atop of that? |
|
@BPScott I want to ship this functionality by Monday next week, does that timeline make sense to you? If it does then I'll gladly do it |
seems possible. Liase with @dleroux and @AndrewMusgrave to see what else needs to be done in that conversion PR, perhaps merge it as-is and do a of your own pr to follow up on their remaining feedback. I'm kinda wary of the how it looks to work with somebody on a refactor for months of them being very responsive, and us being busy and slowish to respond, and then telling them whoops sorry you need to handle this new functionality that we added in the mean time. It's gonna burn trust with folks who send us PRs |
BPScott
left a comment
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.
Code looks good. Docs currently feel a bit like placeholders, with a very sparse description and not-realistic "I am an empty state" content. Would be good to get those fleshed out more.
Co-authored-by: Chloe Rice <chloerice@users.noreply.github.com>
ad61f60 to
02f53eb
Compare
BPScott
left a comment
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.
We can come back to improve the example content of the empty result latter ![]()
WHY are these changes introduced?
The plus global nav team wants the ability to customize the empty state of the resource list.
WHAT is this pull request doing?
Add a prop that takes in a react node to be rendered instead of the default empty state
How to 🎩
🖥 Local development instructions
🗒 General tophatting guidelines
📄 Changelog guidelines
Copy-paste this code in
playground/Playground.tsx:🎩 checklist
README.mdwith documentation changes