This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a change to branch chore/ts-migration-non-dashboard
in repository https://gitbox.apache.org/repos/asf/superset.git
discard 4054753f17 fix(types): address CI type errors in explore components
discard d5f28529db fix(types): improve type safety in explore components
discard af95377e93 fix(types): fix TypeScript errors across multiple files
discard 8edb520a3b fix(types): fix hooks and queriesData type issues in
ChartRenderer
discard ec90213980 fix(types): fix remaining type mismatches in Chart
components
discard 01e543179e fix(types): fix setControlValue type and thunk dispatch cast
discard 6a2ff340af fix(types): resolve remaining TypeScript errors in
chartActions tests
discard 622fce859b fix(types): align initialValues type and declare webpack
globals
discard e2a75392a5 fix(types): use ContextMenuFilters from core and fix
FeatureFlagMap type
discard f8701f4b5d fix(types): add chartRenderingSucceeded to Actions type
discard cac2ae0a07 fix(types): resolve TypeScript errors in Chart and
chartActions tests
discard 10b58c007f fix(tests): add type casting for mock return types in
chartActions tests
discard 169998b34e fix(types): widen onCellChange id parameter to string |
number
discard 88f2ca8759 fix: address code review feedback
discard 81cb8e516d fix(types): address code review feedback
discard b931647eae fix(types): add type safety to DatasourceEditor and related
components
discard 3696a8276a fix(types): address code review feedback for TypeScript
migrations
discard 8983f37266 fix: resolve remaining TypeScript errors and code review
feedback
discard 23798e4256 fix: resolve TypeScript errors in migrated files
discard a211de740e fix(chart): use setDataMask prop as fallback when
actions.updateDataMask is absent
discard b9ccfa21f1 fix(chart): remove unused POST_CHART_FORM_DATA constant
discard 62d79fd94b fix(chart): use derived vizType for drill-to-detail
behavior check
discard 792b0eb996 fix(reports): only show success toast when delete succeeds
discard 0ccee4cab1 fix: remove unused ChartDataResponse interface
discard a23b504a0b chore(frontend): migrate non-dashboard JS/JSX files to
TypeScript
add debdfbc835 chore(deps-dev): bump
@babel/plugin-transform-modules-commonjs from 7.27.1 to 7.28.6 in
/superset-frontend (#37117)
add 64424f1625 chore(deps-dev): bump @types/node from 25.0.7 to 25.0.8 in
/superset-websocket (#37116)
add 6ca0f7a925 chore(deps-dev): bump @babel/cli from 7.28.3 to 7.28.6 in
/superset-frontend (#37124)
add 2324b4c9e5 chore(deps-dev): bump @babel/preset-typescript from 7.26.0
to 7.28.5 in /superset-frontend (#36661)
add 6eb4db6930 fix(controls): Only initialize categorical control on
numeric x axis (#37115)
add 23b91d22ef fix(charts): properly parse error responses in
StatefulChart (#37130)
add 81fdc2bd0e feat(dates): adding handling for first of (#37098)
add c867d9379f chore(deps-dev): bump ts-loader from 9.5.2 to 9.5.4 in
/superset-frontend (#36999)
add 96a3f2a187 chore(deps-dev): bump @babel/preset-react from 7.27.1 to
7.28.5 in /superset-frontend (#37047)
add 68e917c3f6 chore(deps-dev): bump eslint-plugin-testing-library from
7.14.0 to 7.15.4 in /superset-frontend (#37052)
add db61e4f62a chore(deps-dev): bump
eslint-plugin-react-you-might-not-need-an-effect from 0.8.3 to 0.8.5 in
/superset-frontend (#37054)
add 7f6cdc5616 chore(deps-dev): bump prettier from 3.7.4 to 3.8.0 in
/superset-websocket (#37149)
add 4c267b7ee2 chore(deps-dev): bump prettier from 3.7.4 to 3.8.0 in /docs
(#37152)
add f69cd43bd0 chore(deps-dev): bump eslint-plugin-prettier from 5.5.4 to
5.5.5 in /docs (#37153)
add c6ad0dbd3a chore(deps-dev): bump prettier from 3.7.4 to 3.8.0 in
/superset-frontend (#37156)
add 89380638b0 chore(deps): bump immer from 11.0.1 to 11.1.3 in
/superset-frontend (#37159)
add 82d74d15ec chore(deps): bump react-intersection-observer from 9.16.0
to 10.0.0 in /superset-frontend (#37162)
add 129b8e10a2 chore(deps-dev): bump @babel/core from 7.28.3 to 7.28.6 in
/superset-frontend (#37154)
add e071e0c5a4 chore(deps-dev): bump eslint-plugin-prettier from 5.5.4 to
5.5.5 in /superset-frontend (#37160)
add b142f1956f chore(deps): bump chrono-node from 2.7.8 to 2.9.0 in
/superset-frontend (#36632)
add 95c14b1fc1 chore(Matrixify): disable matrixify for incompatible viz
types (#37163)
add 9555798d37 fix(data-zoom): Data-zoom not rendered properly in
Matrixify (#37134)
add ab8df1ab34 fix: Move head_custom_extra above csrf token input (#37173)
add 54f19856de fix: HTML detection in tables (#37171)
add c30edaf075 feat: add tab select with save chart to dashboard (#36332)
add 4532ccf638 fix(mcp): push Flask app context in mcp_auth_hook for tool
execution (#37190)
add d0783da3e5 fix(mcp): Handle big_number charts and make semantic
warnings non-blocking (#37142)
add 2bcb66c2fc refactor(mcp): simplify single metric chart type check
(#37215)
add 4b1d92e575 feat: add droppable area to tab empty state (#37210)
add 896947c787 fix(mcp): restore select_columns filtering in list tools
(#37213)
add f4474b2e3e feat: Dynamic currency (#36416)
add b941be01cf chore(deps-dev): bump @types/node from 25.0.8 to 25.0.9 in
/superset-websocket (#37193)
add 33ff127370 chore(deps-dev): bump baseline-browser-mapping from 2.9.9
to 2.9.14 in /superset-frontend (#37198)
add f00f7d1c18 chore(deps): bump ioredis from 5.9.0 to 5.9.2 in
/superset-websocket (#37194)
add a77c2d550c fix(mixed-timeseries): prevent duplicate legend entries
(#37217)
add e93ff2fbac chore(frontend): migrate non-dashboard JS/JSX files to
TypeScript
add 74e6946af9 fix: remove unused ChartDataResponse interface
add 7484cf7b65 fix(reports): only show success toast when delete succeeds
add ce16d4467d fix(chart): use derived vizType for drill-to-detail
behavior check
add c9d4e196f6 fix(chart): remove unused POST_CHART_FORM_DATA constant
add 4459b120a9 fix(chart): use setDataMask prop as fallback when
actions.updateDataMask is absent
add e98bcf4a4e fix: resolve TypeScript errors in migrated files
add 9e36d4d141 fix: resolve remaining TypeScript errors and code review
feedback
add c99e7721c5 fix(types): address code review feedback for TypeScript
migrations
add d16c072ea8 fix(types): add type safety to DatasourceEditor and related
components
add 284acdd957 fix(types): address code review feedback
add e567e005b9 fix: address code review feedback
add 312c2beeff fix(types): widen onCellChange id parameter to string |
number
add 83654e10ce fix(tests): add type casting for mock return types in
chartActions tests
add 6ddf7956c9 fix(types): resolve TypeScript errors in Chart and
chartActions tests
add 46f1dfb093 fix(types): add chartRenderingSucceeded to Actions type
add 5cd9523a1b fix(types): use ContextMenuFilters from core and fix
FeatureFlagMap type
add d902c06666 fix(types): align initialValues type and declare webpack
globals
add fcf41b230f fix(types): resolve remaining TypeScript errors in
chartActions tests
add 71ce03d7ea fix(types): fix setControlValue type and thunk dispatch cast
add a4927e7671 fix(types): fix remaining type mismatches in Chart
components
add 2faf90ccdc fix(types): fix hooks and queriesData type issues in
ChartRenderer
add 0f452f10b3 fix(types): fix TypeScript errors across multiple files
add 6ffcd9204e fix(types): improve type safety in explore components
add a13bc12951 fix(types): address CI type errors in explore components
add 4024f802c8 fix(types): resolve TypeScript errors in explore and report
components
add 7a7661ee93 fix(types): add missing properties to DatasourceEditor
types after rebase
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (4054753f17)
\
N -- N -- N refs/heads/chore/ts-migration-non-dashboard
(7a7661ee93)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
No new revisions were added by this update.
Summary of changes:
docs/package.json | 4 +-
docs/yarn.lock | 36 +-
superset-frontend/package-lock.json | 559 ++++++++++++---------
superset-frontend/package.json | 28 +-
.../packages/superset-core/package.json | 8 +-
.../src/shared-controls/customControls.tsx | 21 +-
.../src/shared-controls/sharedControls.tsx | 3 +
.../superset-ui-chart-controls/src/types.ts | 1 +
.../test/shared-controls/customControls.test.tsx | 57 +++
.../src/chart/components/StatefulChart.test.tsx | 340 +++++++++++++
.../src/chart/components/StatefulChart.tsx | 37 +-
.../CurrencyFormats.ts} | 4 +-
.../src/currency-format/CurrencyFormatter.ts | 88 +++-
.../superset-ui-core/src/currency-format/index.ts | 10 +-
.../Drawer => currency-format}/types.ts | 11 +-
.../superset-ui-core/src/currency-format/utils.ts | 129 ++++-
.../superset-ui-core/src/query/types/Datasource.ts | 1 +
.../src/query/types/QueryResponse.ts | 6 +
.../superset-ui-core/src/utils/html.test.tsx | 18 +
.../packages/superset-ui-core/src/utils/html.tsx | 129 ++---
.../test/currency-format/CurrencyFormatter.test.ts | 31 ++
.../currency-format/analyzeCurrencyInData.test.ts} | 23 +-
.../currency-format/hasMixedCurrencies.test.ts} | 18 +-
.../currency-format/normalizeCurrency.test.ts} | 23 +-
.../packages/superset-ui-demo/package.json | 8 +-
.../src/transformProps.js | 13 +-
.../BigNumberPeriodOverPeriod/transformProps.ts | 13 +-
.../src/BigNumber/BigNumberTotal/transformProps.ts | 16 +-
.../BigNumberWithTrendline/transformProps.ts | 11 +-
.../plugin-chart-echarts/src/BigNumber/types.ts | 2 +-
.../src/Funnel/transformProps.ts | 11 +-
.../src/Gauge/transformProps.ts | 6 +
.../src/Heatmap/transformProps.ts | 17 +-
.../src/MixedTimeseries/transformProps.ts | 54 +-
.../plugin-chart-echarts/src/Pie/transformProps.ts | 13 +-
.../src/Sunburst/transformProps.ts | 11 +-
.../src/Timeseries/transformProps.ts | 29 +-
.../src/Treemap/transformProps.ts | 12 +-
.../test/BigNumber/transformProps.test.ts | 56 +++
.../test/Timeseries/transformProps.test.ts | 132 +++++
.../src/PivotTableChart.tsx | 124 ++++-
.../src/plugin/transformProps.ts | 18 +-
.../src/react-pivottable/TableRenderers.jsx | 8 +-
.../src/react-pivottable/utilities.js | 56 ++-
.../plugins/plugin-chart-pivot-table/src/types.ts | 2 +
.../test/plugin/transformProps.test.ts | 189 +++++++
.../plugins/plugin-chart-table/src/TableChart.tsx | 2 +-
.../plugin-chart-table/src/transformProps.ts | 35 +-
.../plugins/plugin-chart-table/src/types.ts | 1 +
.../plugin-chart-table/src/utils/formatValue.ts | 11 +-
.../plugin-chart-table/src/utils/isEqualColumns.ts | 3 +
.../test/utils/formatValue.test.ts | 155 ++++++
.../Datasource/DatasourceModal/index.tsx | 1 +
.../DatasourceEditor/DatasourceEditor.tsx | 185 ++++---
.../tests/DatasourceEditor.test.tsx | 44 +-
.../tests/DatasourceEditorCurrency.test.tsx | 67 +++
.../components/gridComponents/Tab/Tab.jsx | 86 ++--
.../components/gridComponents/Tab/Tab.test.tsx | 69 ++-
superset-frontend/src/dashboard/constants.ts | 3 +
.../components/ControlPanelsContainer.test.tsx | 109 ++++
.../explore/components/ControlPanelsContainer.tsx | 14 +-
.../ExploreChartHeader/ExploreChartHeader.test.tsx | 14 +-
.../components/ExploreViewContainer/index.tsx | 162 +++---
.../src/explore/components/SaveModal.test.jsx | 383 ++++++++++++++
.../src/explore/components/SaveModal.tsx | 287 ++++++++++-
.../ColumnConfigControl/ColumnConfigControl.tsx | 2 +
.../controls/ColumnConfigControl/constants.tsx | 2 +-
.../CurrencyControl.test.tsx} | 27 +-
.../controls/CurrencyControl/CurrencyControl.tsx | 80 ++-
.../useExploreAdditionalActionsMenu/index.tsx | 14 +-
.../src/explore/exploreUtils/exploreUtils.test.tsx | 23 +-
.../explore/exploreUtils/getChartDataUri.test.ts | 8 +-
.../src/explore/exploreUtils/getChartKey.test.ts | 5 +-
.../src/explore/exploreUtils/getExploreUrl.test.ts | 2 +-
.../exploreUtils/getSimpleSQLExpression.test.ts | 6 -
.../src/explore/reducers/exploreReducer.test.ts | 12 +-
.../src/explore/reducers/exploreReducer.ts | 55 +-
superset-frontend/src/explore/types.ts | 19 +
superset-frontend/src/features/datasets/types.ts | 1 +
.../ReportModal/HeaderReportDropdown/index.tsx | 11 +-
.../src/features/reports/ReportModal/index.tsx | 4 +-
superset-frontend/src/middleware/logger.test.ts | 33 +-
superset-websocket/package-lock.json | 42 +-
superset-websocket/package.json | 6 +-
superset/charts/schemas.py | 9 +
superset/cli/examples.py | 3 +
superset/common/query_actions.py | 65 +++
superset/common/query_context_factory.py | 34 ++
superset/connectors/sqla/models.py | 6 +-
superset/dashboards/schemas.py | 1 +
superset/datasets/api.py | 2 +
superset/datasets/schemas.py | 2 +
superset/examples/data_loading.py | 2 +
superset/examples/international_sales.py | 238 +++++++++
superset/mcp_service/auth.py | 83 +--
superset/mcp_service/chart/tool/get_chart_data.py | 21 +-
superset/mcp_service/chart/tool/list_charts.py | 25 +-
.../chart/validation/runtime/__init__.py | 22 +-
.../mcp_service/dashboard/tool/list_dashboards.py | 25 +-
superset/mcp_service/dataset/tool/list_datasets.py | 25 +-
...00_9787190b3d89_add_currency_column_support.py} | 23 +-
superset/superset_typing.py | 2 +
superset/templates/superset/spa.html | 7 +-
superset/utils/currency.py | 160 ++++++
superset/utils/date_parser.py | 109 +++-
superset/views/core.py | 21 +-
superset/viz.py | 1 +
tests/integration_tests/datasets/commands_tests.py | 3 +
tests/integration_tests/fixtures/importexport.py | 1 +
.../common/test_query_actions_currency.py | 290 +++++++++++
.../common/test_query_context_factory.py | 106 ++++
tests/unit_tests/connectors/sqla/models_test.py | 64 +++
tests/unit_tests/datasets/commands/export_test.py | 1 +
tests/unit_tests/datasets/schema_tests.py | 29 ++
.../mcp_service/chart/tool/test_get_chart_data.py | 130 ++++-
.../mcp_service/chart/validation}/__init__.py | 0
.../chart/validation/test_runtime_validator.py | 221 ++++++++
tests/unit_tests/utils/currency_test.py | 332 ++++++++++++
tests/unit_tests/utils/date_parser_tests.py | 64 +++
119 files changed, 5606 insertions(+), 890 deletions(-)
create mode 100644
superset-frontend/packages/superset-ui-chart-controls/test/shared-controls/customControls.test.tsx
copy
superset-frontend/packages/superset-ui-core/src/{components/Divider/types.ts =>
currency-format/CurrencyFormats.ts} (90%)
copy superset-frontend/packages/superset-ui-core/src/{components/Drawer =>
currency-format}/types.ts (83%)
copy superset-frontend/{src/explore/exploreUtils/getLegacyEndpointType.test.ts
=>
packages/superset-ui-core/test/currency-format/analyzeCurrencyInData.test.ts}
(57%)
copy
superset-frontend/packages/{superset-ui-chart-controls/test/operators/utils/timeOffset.test.ts
=> superset-ui-core/test/currency-format/hasMixedCurrencies.test.ts} (60%)
copy
superset-frontend/packages/superset-ui-core/{src/components/Input/Input.test.tsx
=> test/currency-format/normalizeCurrency.test.ts} (61%)
create mode 100644
superset-frontend/plugins/plugin-chart-table/test/utils/formatValue.test.ts
copy
superset-frontend/src/explore/components/controls/{DateFilterControl/tests/CurrentCalendarFrame.test.tsx
=> CurrencyControl/CurrencyControl.test.tsx} (62%)
create mode 100644 superset/examples/international_sales.py
copy
superset/migrations/versions/{2025-03-03_20-52_94e7a3499973_add_folders_column_to_dataset.py
=> 2025-11-18_14-00_9787190b3d89_add_currency_column_support.py} (66%)
create mode 100644 superset/utils/currency.py
create mode 100644 tests/unit_tests/common/test_query_actions_currency.py
copy {superset-core/src/superset_core/api =>
tests/unit_tests/mcp_service/chart/validation}/__init__.py (100%)
create mode 100644
tests/unit_tests/mcp_service/chart/validation/test_runtime_validator.py
create mode 100644 tests/unit_tests/utils/currency_test.py