Skip to content

fix(examples): keep dashboard cards and panel in step in assistant-ui-dashboards - #1595

Open
AbhinRustagi wants to merge 4 commits into
mainfrom
abhin/dashboards-example-fixes
Open

AbhinRustagi wants to merge 4 commits into
mainfrom
abhin/dashboards-example-fixes

Conversation

@AbhinRustagi

@AbhinRustagi AbhinRustagi commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Fixes from QA on the assistant-ui dashboards example:

  • The card follows the dashboard's own stream, so it says "Generating" while the panel does and "Couldn't load" after a failure, instead of "Live" straight away

  • Switching chats or hitting New Chat closes the panel, and cards in a reopened chat don't pop it open again

  • Picking a dashboard in the Dashboards tab now jumps to the chat that built it, and its card there shows "Close" since it's the one open

  • "Show more" is no longer hidden behind the Next dev badge

  • When the backend fails, the chat shows the gateway's error in a few seconds, instead of "An error occurred." after ~30s of retries

…-dashboards

- The card reads the dashboard's stream, so it says Generating or Changing
  while the panel does and Couldn't load after a failure, not Live
- Switching chats or starting a new one closes the panel; cards in a
  reopened chat no longer open it by themselves
- Picking a dashboard in the Dashboards tab switches to the chat that built it
- The Next dev badge moves to the bottom-right and the list gets bottom
  padding, so Show more isn't covered
@vercel

vercel Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openui-docs Ready Ready Preview Nov 10, 2026 3:16pm UTC

Request Review

…the list

The card compared the panel only with its own tool call, so a dashboard opened
from the Dashboards tab left its card saying Open. It now also matches the
list's key for the same dashboard.
…ross an edit (#1599)

Two fixes to editing in assistant-ui-dashboards.

An edit went to the latest dashboard in the thread, not the one open beside
the chat: the chat route only received the messages, so the model could not
know which dashboard the user was looking at. Each chat request now carries
the open dashboard's artifact id, the route validates it and names it in the
system prompt, and the prompt reads "it", "this" or "the dashboard" as the
open one when there is one. A dashboard opened from the list beside a new
chat can now be edited too.

Every edit rebuilt the panel, which reset its filters and scroll position:
the edit's card reopened the panel under its own tool call id, and the panel
is keyed by that. An edit to the dashboard already in the panel now leaves it
mounted; it follows the edit through the stream it shares with the card. All
of a dashboard's cards read as open while the panel shows it.

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>

This branch was successfully deployed

1 active deployment
Preview — b8b25120 Deployed Nov 10, 2026 by vercel[bot]
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