-
Notifications
You must be signed in to change notification settings - Fork 854
feat(eui): add noItemsMessage prop to EuiInMemoryTable #8812
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
feat(eui): add noItemsMessage prop to EuiInMemoryTable #8812
Conversation
b0a51e2
to
2f2f0eb
Compare
2f2f0eb
to
9a8baa9
Compare
175f56c
to
0c91584
Compare
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.
🟢 Tested locally in Storybook, new/old props work as expected. Code seems correct.
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 it'd make sense to add an entry in the changelog, since it's a prop being renamed; what do you think @weronikaolejniczak? 🤔
I agree, we'd need a changelog entry for such a change to inform users about the deprecation. Other than that, the changes look solid. Thank you! |
@acstll ahhh, you're totally right! So at first all I did was add a JSDoc comment, and that's why I added |
0c91584
to
a3d6da8
Compare
a3d6da8
to
2b03732
Compare
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.
Thank you @weronikaolejniczak for the quick update! 🚢
💚 Build SucceededHistory
|
💚 Build Succeeded
History
|
`104.0.2` ⏩ `104.1.0` [Questions? Please see our Kibana upgrade FAQ.](https://github.com/elastic/eui/blob/main/wiki/eui-team-processes/upgrading-kibana.md#faq-for-kibana-teams) ## Package updates ### `@elastic/eui` #### [`v104.1.0`](https://github.com/elastic/eui/releases/v104.1.0) - Added new component token `components.forms.codeInlineBackground` ([#8813](elastic/eui#8813)) - Updated background color for `EuiCode` to use `components.forms.codeInlineBackground` ([#8813](elastic/eui#8813)) - Added `noItemsMessage` prop to `EuiInMemoryTable` ([#8812](elastic/eui#8812)) - Added prop `delimiter` on `EuiDatePickerRange` ([#8810](elastic/eui#8810)) **Bug fixes** - Fixed an issue with `EuiSuperDatePicker` where toggling `isQuickSelectOnly` would cause a full re-render when the selected range uses absolute dates ([#8810](elastic/eui#8810)) **Deprecations** - Deprecated `message` prop in `EuiInMemoryTable` in favor of `noItemsMessage` which is a more meaningful prop name; there are no functional changes ([#8812](elastic/eui#8812)) ### `@elastic/eui-theme-borealis` #### [`v3.1.0`](https://github.com/elastic/eui/releases/v3.1.0) - Added new component token `components.forms.codeInlineBackground` ([#8813](elastic/eui#8813))
Summary
The
message
prop inEuiInMemoryTable
doesn't have a JSDoc comment so developers may not immediately know its purpose. It is passed to thenoItemsMessage
which is a more explicit name.(source: EuiInMemoryTable > message)
What I'm doing here is adding
noItemsMessage
(that's passed intonoItemsMessage
inEuiBasicTable
) and markmessage
as deprecated.Impact to users
It's not a breaking change. It helps developers understand the purpose of the
message
prop better by just reading the prop namenoItemsMessage
, and show the description on the documentation site.Added to the Deprecation Schedule.
QA
message
prop on EuiInMemoryTable pagenoItemsMessage
prop shows up with an appropriate message on the same page