mirror of
https://github.com/apache/superset.git
synced 2026-09-01 21:11:28 +00:00
The new regression test's `toHaveStyle` assertion on the arrow span kept
failing in CI (rgb(0, 0, 0) instead of the expected success color) even
after wrapping the render in ThemeProvider. The `css` prop on a plain DOM
element only compiles to an actual style when the build wires up emotion's
JSX pragma (importSource: '@emotion/react'), which webpack.config.js does
but this package's Jest/Babel config does not -- so `<span css={...}>` was
rendering a literal, useless `css="[object Object]"` DOM attribute under
Jest, silently defeating the assertion (and any future one like it).
Switches the arrow's color/margin to a plain inline `style` object, which
works identically under both webpack and Jest.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@superset-ui/plugin-chart-table
This plugin provides Table chart for Superset.
Usage
Configure key, which can be any string, and register the plugin. This key will be used to
lookup this chart throughout the app.
import TableChartPlugin from '@superset-ui/plugin-chart-table';
new TableChartPlugin().configure({ key: 'table' }).register();
Then use it via SuperChart. See
storybook
for more details.
<SuperChart
chartType="table"
width={600}
height={600}
formData={...}
queriesData={[{
data: {...},
}]}
/>