Skip to content

[ZEPPELIN-6775] Show the Assistant conversation list's empty state only after a successful load - #5621

Merged
voidmatcha merged 3 commits into
apache:masterfrom
miinhho:ZEPPELIN-6775-assistant-list-empty-state
Nov 26, 2026
Merged

voidmatcha merged 3 commits into
apache:masterfrom
miinhho:ZEPPELIN-6775-assistant-list-empty-state

Conversation

@miinhho

@miinhho miinhho commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

What is this PR for?

The AI Assistant conversation list starts with no rows, so it can show No conversations yet. alongside the loading indicator or an error. Neither state tells the user whether the list is actually empty.

The panel model now supplies the list's data and load state. ConversationList uses that state to render loading, errors, retry, and empty results. Empty and no-match messages wait for a successful response, but locally created conversations remain visible while the first request is pending.

What type of PR is it?

Bug Fix

What is the Jira issue?

How should this be tested?

From zeppelin-web-angular/projects/zeppelin-react, run:

npm test -- ConversationList.spec.tsx AssistantConversationPanel.spec.tsx useAssistantPanel.spec.tsx

With the initial list response delayed, open the conversation list and verify that it shows loading without an empty message. If the first request fails, verify that the error and Retry appear and that the empty message stays hidden while retrying. A successful empty response should show No conversations yet.; a successful non-empty response should show the returned conversations.

Questions:

  • Does the license files need to update? No.
  • Is there breaking changes for older versions? No.
  • Does this needs documentation? No.

voidmatcha
voidmatcha previously approved these changes Nov 25, 2026

@voidmatcha voidmatcha left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@voidmatcha

Copy link
Copy Markdown
Member

@miinhho Could you rebase this PR?

- Require a successful list response before showing empty or no-match messages.
- Cover delayed loading, locally created rows, and retry recovery.
- Replace the empty-state display switch with the list query contract.
- Keep loading, retry, and empty-result decisions inside ConversationList.
- Use listState and ConversationListState to distinguish the loaded data and request state from the search term.
@miinhho
miinhho force-pushed the ZEPPELIN-6775-assistant-list-empty-state branch from 9537be8 to 169cded Compare November 26, 2026 00:49
@voidmatcha
voidmatcha merged commit 2127bde into apache:master Nov 26, 2026
62 of 64 checks passed
@voidmatcha

Copy link
Copy Markdown
Member

Merged into master (2127bde).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants