Skip to content

feat: frame visualization tool results with Shiny Chat - #274

Draft
cpsievert wants to merge 14 commits into
mainfrom
fix/visualize-tool-borders
Draft

feat: frame visualization tool results with Shiny Chat#274
cpsievert wants to merge 14 commits into
mainfrom
fix/visualize-tool-borders

Conversation

@cpsievert

Copy link
Copy Markdown
Contributor

Why this matters

Visualization tool results now use Shiny Chat's native framed presentation, so QueryChat no longer reaches into its condensed tool-display structure to create the surrounding frame.

Depends on posit-dev/shinychat#331.

What changes

  • Request presentation="framed" for visualization results in Python and R.
  • Remove QueryChat's Shiny Chat frame-selector overrides while keeping visualization-specific sizing and footer styling.
  • Refresh served CSS copies and update focused tests.

Verification

  • uv run pytest pkg-py/tests/test_viz_footer.py -q
  • Rscript -e ...test-viz-tool.R

A focused Playwright run exposed failures and then hung during teardown; this PR remains draft pending follow-up.

Comment thread pyproject.toml Outdated
The previous test read R/querychat_viz.R from the package source tree,
which does not exist when tests run under R CMD check. Exercise the
visualize tool with mocked ggsql/session and assert on
result@extra instead.
shinychat renamed the tool-result display field presentation -> open_style
(with values minimal/framed); request the framed open style for
visualization results.
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.

1 participant