-
Notifications
You must be signed in to change notification settings - Fork 620
fix(SelectPanel): prioritize message over loading status #6321
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
base: main
Are you sure you want to change the base?
fix(SelectPanel): prioritize message over loading status #6321
Conversation
🦋 Changeset detectedLatest commit: c935294 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Pull Request Overview
This PR fixes a bug in SelectPanel where the loading status was being displayed instead of the empty message when the panel starts empty. The change prioritizes showing messages over loading indicators by reordering the conditional logic.
- Reorders conditional checks in
getBodyContent()
to prioritize message display over loading status - Ensures that when both a message and loading state exist, the message takes precedence
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
…pty-list-message-when-there-are-no-action-items
…pty-list-message-when-there-are-no-action-items
…pty-list-message-when-there-are-no-action-items
…nel-is-not-rendering-the-empty-list-message-when-there-are-no-action-items
…ssage-when-there-are-no-action-items' of github.com:primer/react into 5402-bug-selectpanel-is-not-rendering-the-empty-list-message-when-there-are-no-action-items
👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/391255 |
🟢 golden-jobs completed with status |
Closes https://github.com/github/primer/issues/5402
Fixes bug where the selectpanel is empty from the beginning and the loading status is displayed instead of the empty message.
Changelog
Changed
Rollout strategy
Testing & Reviewing
Merge checklist