Skip to content

Feat/chatbot charts v2 - #1695

Merged
AldemirLucas merged 8 commits into
mainfrom
feat/chatbot-charts-v2
Sep 18, 2026
Merged

AldemirLucas merged 8 commits into
mainfrom
feat/chatbot-charts-v2

Conversation

@AldemirLucas

@AldemirLucas AldemirLucas commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add the design team's chart color palette to VegaChart.js's CHART_CONFIG: single-series mark color, a 3-color and an 8-color (+ 2 new colors, totaling 10 colors) categorical set, and a 5-stop sequential gradient (replacing generic Vega-Lite scheme guesses).
  • Pick between the two categorical palettes per chart, based on the real distinct series count in the bound data (pickCategoryPalette/countColorSeries), instead of one flat list that repeats colors past 10 series.
  • Fall back to the color encoding's detail.field when counting series, since the color field is sometimes a calculate-derived display label not present in the raw rows.

vrtornisiello and others added 8 commits September 15, 2026 16:55
Render Vega-Lite chart artifacts and export-file download cards from the
agent's tool outputs. Adds the ExportResultCard, per-format icons/helpers,
the Charts/VegaChart components, TopoJSON basemaps with an immutable cache
header, and the vega-embed dependency.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Removed outdated comments and improved the rendering logic for charts and download cards. Added animation effects for chart visibility and refined the handling of export formats. Updated the VegaChart component to support status changes for better user experience.
Migrate the export-format icons to the shared lucide `./icons` barrel via
makeIcon, matching every other chatbot icon, and drop the now-unused custom
SVG components under public/img/icons.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The pale yellow (#F2C94C) braces washed out against the light icon tile.
Use amber #D69E2E (with a matching tint) so it reads like the CSV/AVRO tiles.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add friendly labels, icons and request/result views for the chart, export
and list_query_results tools, with pt/en/es strings. Show only the relevant
arguments and responses, and fall back to the shared error label on failure.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ypewriter

Tool-call args and outputs already arrive complete from the backend (one event
each), so the per-character tool-stream typewriter animated data we already had
in full — and the thinking-section card gating hid it anyway. Drop that whole
machinery (queue, pump, per-char patching, streaming flags) and apply each tool
event whole on arrival, the same shape loaded history uses, so the friendly
views render immediately.

Move the "running" shimmer to a render-side minimum dwell in ThinkingSection so
fast tools still flash a running state before settling. Matches the reference
frontend's model (event-level rendering + RUNNING_DWELL_MS).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@AldemirLucas AldemirLucas linked an issue Sep 18, 2026 that may be closed by this pull request
@AldemirLucas
AldemirLucas merged commit 4869075 into main Sep 18, 2026
2 of 3 checks passed
@AldemirLucas
AldemirLucas deleted the feat/chatbot-charts-v2 branch September 18, 2026 14:49

This branch had an error being deployed

1 failed deployment
staging — 354b9ac3 Deployed Sep 18, 2026 by AldemirLucas via Cypress E2E Tests #159
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.

Chatbot: Visualização de Dados com resultados

2 participants