Skip to content

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

Conversation

weronikaolejniczak
Copy link
Contributor

@weronikaolejniczak weronikaolejniczak commented Jun 20, 2025

Summary

The message prop in EuiInMemoryTable doesn't have a JSDoc comment so developers may not immediately know its purpose. It is passed to the noItemsMessage which is a more explicit name.

Screenshot 2025-06-20 at 13 30 22
(source: EuiInMemoryTable > message)

What I'm doing here is adding noItemsMessage (that's passed into noItemsMessage in EuiBasicTable) and mark message as deprecated.

Screenshot 2025-06-20 at 13 34 31

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 name noItemsMessage, and show the description on the documentation site.

Added to the Deprecation Schedule.

QA

  • Verify the description shows up for the message prop on EuiInMemoryTable page
  • Verify the noItemsMessage prop shows up with an appropriate message on the same page

@weronikaolejniczak weronikaolejniczak self-assigned this Jun 20, 2025
@weronikaolejniczak weronikaolejniczak added support-duty-flywheel Label for PRs, see eui-private #310 skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) labels Jun 20, 2025
@weronikaolejniczak weronikaolejniczak force-pushed the chore/add-message-prop-jsdoc branch from b0a51e2 to 2f2f0eb Compare June 20, 2025 11:36
@weronikaolejniczak weronikaolejniczak marked this pull request as ready for review June 20, 2025 11:37
@weronikaolejniczak weronikaolejniczak requested a review from a team as a code owner June 20, 2025 11:37
@weronikaolejniczak weronikaolejniczak force-pushed the chore/add-message-prop-jsdoc branch from 2f2f0eb to 9a8baa9 Compare June 20, 2025 11:39
@weronikaolejniczak weronikaolejniczak force-pushed the chore/add-message-prop-jsdoc branch from 175f56c to 0c91584 Compare June 20, 2025 11:44
@acstll acstll self-requested a review June 30, 2025 09:03
Copy link
Contributor

@acstll acstll left a 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.

Copy link
Contributor

@acstll acstll left a 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? 🤔

@tkajtoch
Copy link
Member

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!

@weronikaolejniczak
Copy link
Contributor Author

@acstll ahhh, you're totally right! So at first all I did was add a JSDoc comment, and that's why I added skip-changelog. Then I thought - but this prop message isn't really meaningful, it could be renamed to noItemsMessage (as it is for EuiBasicTable), then we have consistency and the name already implies the purpose... But I forgot to add a changelog hahaha

@weronikaolejniczak weronikaolejniczak removed the skip-changelog Use on PRs to skip changelog requirement (Don't delete - used for automation) label Jun 30, 2025
@weronikaolejniczak weronikaolejniczak force-pushed the chore/add-message-prop-jsdoc branch from 0c91584 to a3d6da8 Compare June 30, 2025 10:16
@weronikaolejniczak weronikaolejniczak force-pushed the chore/add-message-prop-jsdoc branch from a3d6da8 to 2b03732 Compare June 30, 2025 10:16
@weronikaolejniczak weronikaolejniczak changed the title chore(eui): add JSDoc to EuiInMemoryTable message prop feat(eui): add noItemsMessage prop to EuiInMemoryTable Jun 30, 2025
Copy link
Contributor

@acstll acstll left a 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! 🚢

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @weronikaolejniczak

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @weronikaolejniczak

@weronikaolejniczak weronikaolejniczak merged commit 633a11e into elastic:main Jun 30, 2025
5 checks passed
tkajtoch added a commit to elastic/kibana that referenced this pull request Jul 2, 2025
`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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support-duty-flywheel Label for PRs, see eui-private #310
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants