Skip to content

Commit

Permalink
Merge pull request #4 from apache-superset/master
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
stephenLYZ authored Apr 22, 2021
2 parents 0c87b2f + ec94457 commit f011d71
Show file tree
Hide file tree
Showing 36 changed files with 112 additions and 146 deletions.
6 changes: 3 additions & 3 deletions docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

1. First, make sure you have run `yarn` and `yarn build` in `superset-ui` or your own plugin repo.
2. Go to
[superset-frontend](https://github.com/apache/incubator-superset/tree/master/superset-frontend),
[superset-frontend](https://github.com/apache/superset/tree/master/superset-frontend),
use `npm link` to create a symlink of the plugin source code in `node_modules`:

```sh
cd incubator-superset/superset-frontend
cd superset/superset-frontend
# npm link ~/path/to/your/plugin
npm link ../../superset-ui/plugins/plugin-chart-word-cloud
```
Expand All @@ -24,4 +24,4 @@

## Deactivate plugins

To deactivate a plugin, simply run `npm install` in `incubator-superset/superset-frontend` again.
To deactivate a plugin, simply run `npm install` in `superset/superset-frontend` again.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"plugins/*"
],
"useWorkspaces": true,
"version": "0.17.35",
"version": "0.17.36",
"ignoreChanges": [
"**/*.md",
"**/*.spec.tsx?",
Expand Down
2 changes: 1 addition & 1 deletion packages/superset-ui-chart-controls/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/chart-controls",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset UI control-utils",
"sideEffects": false,
"main": "lib/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { styled, Metric, SafeMarkdown } from '@superset-ui/core';
import InfoTooltipWithTrigger from './InfoTooltipWithTrigger';
import { ColumnTypeLabel } from './ColumnTypeLabel';
import CertifiedIconWithTooltip from './CertifiedIconWithTooltip';
import Tooltip from './Tooltip';

const FlexRowContainer = styled.div`
align-items: center;
Expand Down Expand Up @@ -67,7 +68,9 @@ export function MetricOption({
details={metric.certification_details}
/>
)}
<span className="option-label">{link}</span>
<Tooltip id="metric-name-tooltip" title={verbose} trigger={['hover']} placement="top">
<span className="option-label">{link}</span>
</Tooltip>
{metric.description && (
<InfoTooltipWithTrigger
className="text-muted"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,7 @@ describe('MetricOption', () => {
wrapper = shallow(factory(props));
expect(wrapper.find('ColumnTypeLabel')).toHaveLength(1);
});
it('shows a Tooltip for the verbose metric name', () => {
expect(wrapper.find('Tooltip')).toHaveLength(1);
});
});
50 changes: 25 additions & 25 deletions packages/superset-ui-demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/demo",
"version": "0.17.35",
"version": "0.17.36",
"description": "Storybook for Superset UI ✨",
"private": true,
"main": "index.js",
Expand Down Expand Up @@ -39,31 +39,31 @@
"@storybook/preset-typescript": "^3.0.0",
"@storybook/react": "^5.3.18",
"@superset-ui/core": "file:../superset-ui-core/src",
"@superset-ui/legacy-plugin-chart-calendar": "0.17.34",
"@superset-ui/legacy-plugin-chart-chord": "0.17.34",
"@superset-ui/legacy-plugin-chart-country-map": "0.17.34",
"@superset-ui/legacy-plugin-chart-event-flow": "0.17.34",
"@superset-ui/legacy-plugin-chart-force-directed": "0.17.34",
"@superset-ui/legacy-plugin-chart-heatmap": "0.17.34",
"@superset-ui/legacy-plugin-chart-histogram": "0.17.34",
"@superset-ui/legacy-plugin-chart-horizon": "0.17.34",
"@superset-ui/legacy-plugin-chart-map-box": "0.17.34",
"@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.34",
"@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.34",
"@superset-ui/legacy-plugin-chart-partition": "0.17.34",
"@superset-ui/legacy-plugin-chart-pivot-table": "0.17.34",
"@superset-ui/legacy-plugin-chart-rose": "0.17.34",
"@superset-ui/legacy-plugin-chart-sankey": "0.17.34",
"@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.34",
"@superset-ui/legacy-plugin-chart-sunburst": "0.17.34",
"@superset-ui/legacy-plugin-chart-time-table": "0.17.34",
"@superset-ui/legacy-plugin-chart-treemap": "0.17.34",
"@superset-ui/legacy-plugin-chart-calendar": "0.17.36",
"@superset-ui/legacy-plugin-chart-chord": "0.17.36",
"@superset-ui/legacy-plugin-chart-country-map": "0.17.36",
"@superset-ui/legacy-plugin-chart-event-flow": "0.17.36",
"@superset-ui/legacy-plugin-chart-force-directed": "0.17.36",
"@superset-ui/legacy-plugin-chart-heatmap": "0.17.36",
"@superset-ui/legacy-plugin-chart-histogram": "0.17.36",
"@superset-ui/legacy-plugin-chart-horizon": "0.17.36",
"@superset-ui/legacy-plugin-chart-map-box": "0.17.36",
"@superset-ui/legacy-plugin-chart-paired-t-test": "0.17.36",
"@superset-ui/legacy-plugin-chart-parallel-coordinates": "0.17.36",
"@superset-ui/legacy-plugin-chart-partition": "0.17.36",
"@superset-ui/legacy-plugin-chart-pivot-table": "0.17.36",
"@superset-ui/legacy-plugin-chart-rose": "0.17.36",
"@superset-ui/legacy-plugin-chart-sankey": "0.17.36",
"@superset-ui/legacy-plugin-chart-sankey-loop": "0.17.36",
"@superset-ui/legacy-plugin-chart-sunburst": "0.17.36",
"@superset-ui/legacy-plugin-chart-time-table": "0.17.36",
"@superset-ui/legacy-plugin-chart-treemap": "0.17.36",
"@superset-ui/legacy-plugin-chart-word-cloud": "^0.11.15",
"@superset-ui/legacy-plugin-chart-world-map": "0.17.34",
"@superset-ui/legacy-preset-chart-big-number": "0.17.34",
"@superset-ui/plugin-chart-echarts": "0.17.35",
"@superset-ui/plugin-chart-table": "0.17.35",
"@superset-ui/plugin-chart-word-cloud": "0.17.34",
"@superset-ui/legacy-plugin-chart-world-map": "0.17.36",
"@superset-ui/legacy-preset-chart-big-number": "0.17.36",
"@superset-ui/plugin-chart-echarts": "0.17.36",
"@superset-ui/plugin-chart-table": "0.17.36",
"@superset-ui/plugin-chart-word-cloud": "0.17.36",
"@types/react-bootstrap": "^0.32.22",
"@types/react-loadable": "^5.5.3",
"@types/react-resizable": "^1.7.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-calendar/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-calendar",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Calendar Heatmap",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3-array": "^2.0.3",
"d3-selection": "^1.4.0",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-chord/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-chord",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Chord Diagram",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3": "^3.5.17",
"prop-types": "^15.6.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-country-map/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-country-map",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Country Map",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3": "^3.5.17",
"d3-array": "^2.0.3",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-event-flow/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-event-flow",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Event Flow",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"dependencies": {
"@data-ui/event-flow": "^0.0.84",
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"prop-types": "^15.6.2"
},
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-force-directed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-force-directed",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Force-directed Graph",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3": "^3.5.17",
"prop-types": "^15.7.2"
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-heatmap/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-heatmap",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Heatmap",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3": "^3.5.17",
"d3-svg-legend": "^1.x",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-histogram/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-histogram",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Histogram",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -30,7 +30,7 @@
"dependencies": {
"@data-ui/histogram": "^0.0.84",
"@data-ui/theme": "^0.0.84",
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"@vx/legend": "^0.0.198",
"@vx/responsive": "^0.0.199",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-horizon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-horizon",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Horizon",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3-array": "^2.0.3",
"d3-scale": "^3.0.1",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-map-box/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-map-box",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - MapBox",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"immutable": "^3.8.2",
"mapbox-gl": "^0.53.0",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-paired-t-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-paired-t-test",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Paired T Test",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"distributions": "^1.0.0",
"prop-types": "^15.6.2",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-parallel-coordinates/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-parallel-coordinates",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Parallel Coordinates",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3": "^3.5.17",
"prop-types": "^15.7.2"
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-partition/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-partition",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Partition",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3": "^3.5.17",
"d3-hierarchy": "^1.1.8",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-pivot-table/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-pivot-table",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Pivot Table",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3": "^3.5.17",
"datatables.net-bs": "^1.10.15",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-rose/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-rose",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Nightingale Rose Diagram",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3": "^3.5.17",
"nvd3": "1.8.6",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-sankey-loop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-sankey-loop",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Sankey Diagram with Loops",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3-sankey-diagram": "^0.7.3",
"d3-selection": "^1.4.0",
Expand Down
4 changes: 2 additions & 2 deletions plugins/legacy-plugin-chart-sankey/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@superset-ui/legacy-plugin-chart-sankey",
"version": "0.17.34",
"version": "0.17.36",
"description": "Superset Legacy Chart - Sankey Diagram",
"sideEffects": [
"*.css"
Expand Down Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/chart-controls": "0.17.34",
"@superset-ui/chart-controls": "0.17.36",
"@superset-ui/core": "0.17.32",
"d3": "^3.5.17",
"d3-sankey": "^0.4.2",
Expand Down
Loading

0 comments on commit f011d71

Please sign in to comment.