This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a change to branch chore/ts-migration-dashboard
in repository https://gitbox.apache.org/repos/asf/superset.git
discard 92282d58882 chore(frontend): update package-lock.json after dependency
cleanup
discard fce0b2ea96b chore(frontend): remove deprecated dependencies and update
documentation
discard d54833bc9c9 refactor(frontend): migrate sinon to jest and remove sinon
dependency
discard 61681dfc58d refactor(frontend): remove dead type definition files and
orphaned tests
discard 273fc93752d chore(frontend): TypeScript quality improvements across
phases 1-5
discard 9d9131da3e1 fix(deps): sync deck.gl/luma.gl overrides with plugin
dependency versions
discard 8340c07e8b5 chore(frontend): migrate remaining JS/JSX files to
TypeScript and fix all type errors
discard 7e7f8281f8a refactor(dashboard): consolidate duplicate type
definitions across utility files
discard 31e286d8202 chore(dashboard): migrate all dashboard JS/JSX files to
TypeScript
omit e2a566d72f7 fix(types): remove invalid sqlLabMode prop from
TableSelector
omit 7deff1c791c fix(types): remove unnecessary `as any` cast on
server_pagination
omit a387df5651a fix(types): add explanatory comment for type cast in
AnnotationLayerControl
omit d494f447200 fix(types): fix column type mismatch in ResultSet
prepareCopyToClipboardTabularData
omit 8c7a9678575 fix(types): remove unnecessary else branch in
ChartRenderer setDataMask
omit f34286454ef fix(types): remove unsafe Response cast in chartAction
catch block
omit c3c73415f88 fix(types): use TabularDataRow[] instead of Record<string,
any>[]
omit 989a4ad6a61 fix(reports): use report.id as key for alerts_reports in
reducer
omit b7b57396455 fix(types): remove invalid getErrorMessage import from
FallbackComponent
omit 653a635d1f1 style: format ExploreViewContainer with prettier
omit 42d1536c80e fix(types): correct ExploreViewContainer export type and
MatrixifyFormData cast
omit 3e4f9e7fbb3 fix(types): use callable type for actions to fix build
omit 3fed820f3f7 fix(types): simplify action types to fix build errors
omit c27bf8da537 fix(types): improve type safety in ExploreViewContainer
omit 5fb917e07fe style: format with prettier
omit f6cbc58407a fix(tests): resolve test failures in chartActions,
EmbedCodeContent, ExploreChartHeader, and logger
omit 0ec29bdd67d fix(tests): exclude compiled esm/lib directories from jest
omit 4f1da90bc05 style: format with prettier
omit 14092b5609f style: format with prettier
omit 7d0d97bae7b fix(tests): fix test failures in ChartRenderer,
ExploreChartHeader, and Chart
omit 8ff65607e60 fix(types): add missing properties to DatasourceEditor
types after rebase
omit 121e4960a3d fix(types): resolve TypeScript errors in explore and
report components
omit 1b406e21342 fix(types): address CI type errors in explore components
omit 9d082798c7d fix(types): improve type safety in explore components
omit 8ba307b9d07 fix(types): fix TypeScript errors across multiple files
omit b03b68c3422 fix(types): fix hooks and queriesData type issues in
ChartRenderer
omit d705549bc4e fix(types): fix remaining type mismatches in Chart
components
omit 5f023db487f fix(types): fix setControlValue type and thunk dispatch
cast
omit b35866a8633 fix(types): resolve remaining TypeScript errors in
chartActions tests
omit b3d99a2811c fix(types): align initialValues type and declare webpack
globals
omit dc009447ded fix(types): use ContextMenuFilters from core and fix
FeatureFlagMap type
omit aebca035333 fix(types): add chartRenderingSucceeded to Actions type
omit c2c50a2afc0 fix(types): resolve TypeScript errors in Chart and
chartActions tests
omit b0b45cca042 fix(tests): add type casting for mock return types in
chartActions tests
omit 5048433eaba fix(types): widen onCellChange id parameter to string |
number
omit eca23a12775 fix: address code review feedback
omit 0afbc3ea3d0 fix(types): address code review feedback
omit 8ccf4dfb754 fix(types): add type safety to DatasourceEditor and
related components
omit 9c3759a65d8 fix(types): address code review feedback for TypeScript
migrations
omit c6da8acbc77 fix: resolve remaining TypeScript errors and code review
feedback
omit 0a3babf41a1 fix: resolve TypeScript errors in migrated files
omit ff3b98e388f fix(chart): use setDataMask prop as fallback when
actions.updateDataMask is absent
omit bef90c6283b fix(chart): remove unused POST_CHART_FORM_DATA constant
omit 0da6adefa3f fix(chart): use derived vizType for drill-to-detail
behavior check
omit 2a39dcfe16f fix(reports): only show success toast when delete succeeds
omit 599e46ee21a fix: remove unused ChartDataResponse interface
omit 574afe41c8b chore(frontend): migrate non-dashboard JS/JSX files to
TypeScript
add 61bd8f0cf26 chore(deps): bump use-query-params from 1.2.3 to 2.2.2 in
/superset-frontend (#36997)
add 4a7cdccdad5 fix: Heatmap does not render correctly on normalization
(#37208)
add a6a66ca4832 feat: Dataset folders editor (#36239)
add bd654690918 chore(deps-dev): bump globals from 17.2.0 to 17.3.0 in
/docs (#37599)
add 2d35ed23918 chore(deps-dev): bump @babel/runtime-corejs3 from 7.28.6
to 7.29.0 in /superset-frontend (#37605)
add f2b6c395cdf feat: Add PWA file handler for CSV/XLS/Parquet uploads
(#36191)
add 11257c05369 fix(examples): skip URI safety check for system imports
(#37577)
add be404f9b844 fix(dashboard): Avoid calling loadData for invisible
charts on virtual rendering (#37452)
add e9b494163b9 refactor(db): use Dialect instead of Engine in select_star
to avoid SSH tunnels (#35540)
add 86f690d17fe fix(dashboard): fix Export as Example with app prefix and
enable Dashboard Export E2E tests (#37529)
add 4b0d4975130 test: add new RTL and integration tests for DatasetList
(#36681)
add 91131d59966 chore(charts): echarts left padding too big and automation
of title (#36993)
add f60c82e4a60 fix: charts row limit warning is missing for server
(#37112)
add 53664c10760 chore(frontend): migrate non-dashboard JS/JSX files to
TypeScript
add 9774e0677d9 fix: remove unused ChartDataResponse interface
add 7bf31dbfd97 fix(reports): only show success toast when delete succeeds
add 64b6e76a53e fix(chart): use derived vizType for drill-to-detail
behavior check
add 42f873d1eca fix(chart): remove unused POST_CHART_FORM_DATA constant
add 636ca562158 fix(chart): use setDataMask prop as fallback when
actions.updateDataMask is absent
add 42d791c9152 fix: resolve TypeScript errors in migrated files
add 57d820532ad fix: resolve remaining TypeScript errors and code review
feedback
add 854a8cedcd3 fix(types): address code review feedback for TypeScript
migrations
add 716dd6c0bcd fix(types): add type safety to DatasourceEditor and
related components
add 837ea01048e fix(types): address code review feedback
add d723cbf93e9 fix: address code review feedback
add 95a06a21ad0 fix(types): widen onCellChange id parameter to string |
number
add c49f7d57d7c fix(tests): add type casting for mock return types in
chartActions tests
add adc6c55455e fix(types): resolve TypeScript errors in Chart and
chartActions tests
add ecb04ba02ec fix(types): add chartRenderingSucceeded to Actions type
add cc7064fb257 fix(types): use ContextMenuFilters from core and fix
FeatureFlagMap type
add b44cebb65f8 fix(types): align initialValues type and declare webpack
globals
add 1739eb55d43 fix(types): resolve remaining TypeScript errors in
chartActions tests
add 07361d161fb fix(types): fix setControlValue type and thunk dispatch
cast
add 6ba5faa6b0b fix(types): fix remaining type mismatches in Chart
components
add 1483d5578f9 fix(types): fix hooks and queriesData type issues in
ChartRenderer
add d5f8526daca fix(types): fix TypeScript errors across multiple files
add 4a7e1d0a1d9 fix(types): improve type safety in explore components
add fe656f9d2b6 fix(types): address CI type errors in explore components
add 6b3d068da91 fix(types): resolve TypeScript errors in explore and
report components
add 8e2d1245fe7 fix(types): add missing properties to DatasourceEditor
types after rebase
add 8d9ea8036f9 fix(tests): fix test failures in ChartRenderer,
ExploreChartHeader, and Chart
add 99b901181cb style: format with prettier
add d63f4096b19 style: format with prettier
add 1f40b4d96fd fix(tests): exclude compiled esm/lib directories from jest
add 21de4f04157 fix(tests): resolve test failures in chartActions,
EmbedCodeContent, ExploreChartHeader, and logger
add a7132e538db style: format with prettier
add 5aa4924f78c fix(types): improve type safety in ExploreViewContainer
add a827be2585d fix(types): simplify action types to fix build errors
add 5bbe9c6c12c fix(types): use callable type for actions to fix build
add c7ed415ac42 fix(types): correct ExploreViewContainer export type and
MatrixifyFormData cast
add 47c6a203697 style: format ExploreViewContainer with prettier
add b50702e40ea fix(types): remove invalid getErrorMessage import from
FallbackComponent
add bebb19e62a4 fix(reports): use report.id as key for alerts_reports in
reducer
add 0d457168d68 fix(types): use TabularDataRow[] instead of Record<string,
any>[]
add e90babf658c fix(types): remove unsafe Response cast in chartAction
catch block
add 55c7b22c909 fix(types): remove unnecessary else branch in
ChartRenderer setDataMask
add ce7afcedc60 fix(types): fix column type mismatch in ResultSet
prepareCopyToClipboardTabularData
add a412d42f8e9 fix(types): add explanatory comment for type cast in
AnnotationLayerControl
add 9e5fe296901 fix(types): remove unnecessary `as any` cast on
server_pagination
add 6841a2cbebf fix(types): remove invalid sqlLabMode prop from
TableSelector
add 035620df67d chore(dashboard): migrate all dashboard JS/JSX files to
TypeScript
add 2b81d824361 refactor(dashboard): consolidate duplicate type
definitions across utility files
add 975fe9be720 chore(frontend): migrate remaining JS/JSX files to
TypeScript and fix all type errors
add 7a26ceb20bb fix(deps): sync deck.gl/luma.gl overrides with plugin
dependency versions
add b38e614f617 chore(frontend): TypeScript quality improvements across
phases 1-5
add b973b60f93c refactor(frontend): remove dead type definition files and
orphaned tests
add 78235de57b6 refactor(frontend): migrate sinon to jest and remove sinon
dependency
add cec9af5a65c chore(frontend): remove deprecated dependencies and update
documentation
add 9d392c4b4df fix(types): resolve rebase conflicts and fix duplicate
imports
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 (92282d58882)
\
N -- N -- N refs/heads/chore/ts-migration-dashboard (9d392c4b4df)
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:
docker/pythonpath_dev/superset_config.py | 2 +-
docs/package.json | 2 +-
docs/static/feature-flags.json | 7 +
docs/yarn.lock | 8 +-
requirements/development.txt | 2 +-
superset-frontend/jest.config.js | 2 +-
superset-frontend/package-lock.json | 60 +-
superset-frontend/package.json | 3 +-
.../components/ColumnTypeLabel/ColumnTypeLabel.tsx | 7 +-
.../src/components/MetricOption.tsx | 2 +-
.../src/sections/chartTitle.tsx | 4 +-
.../test/components/ColumnTypeLabel.test.tsx | 4 +
.../src/components/Icons/AntdEnhanced.tsx | 2 +
.../src/components/Icons/index.tsx | 2 +
.../superset-ui-core/src/utils/featureFlags.ts | 2 +
.../playwright/components/core/Menu.ts | 217 ++
.../playwright/components/core/index.ts | 2 +
.../playwright/pages/DashboardPage.ts | 68 +-
.../tests/experimental/dashboard/export.spec.ts | 81 +-
.../src/BoxPlot/transformProps.ts | 6 +-
.../src/Heatmap/transformProps.ts | 29 +-
.../src/MixedTimeseries/transformProps.ts | 7 +-
.../src/Timeseries/transformProps.ts | 6 +-
.../src/Timeseries/transformers.ts | 4 +-
.../test/Heatmap/buildQuery.test.ts | 82 +
.../test/Heatmap/transformProps.test.ts | 68 +
.../test/Timeseries/transformers.test.ts | 168 ++
superset-frontend/spec/helpers/ProviderWrapper.tsx | 10 +-
.../assets/images/icons/move.svg} | Bin 1466 -> 1468 bytes
.../assets/images/icons/sigma.svg} | Bin 1045 -> 1013 bytes
.../src/assets/images/pwa/icon-192.png | Bin 0 -> 9097 bytes
.../src/assets/images/pwa/icon-512.png | Bin 0 -> 25535 bytes
.../src/assets/images/pwa/screenshot-narrow.png | Bin 0 -> 100187 bytes
.../src/assets/images/pwa/screenshot-wide.png | Bin 0 -> 253025 bytes
superset-frontend/src/components/Chart/Chart.tsx | 18 +-
.../Datasource/DatasourceModal/index.tsx | 10 +-
.../FoldersEditor/FoldersEditor.test.tsx | 545 +++++
.../Datasource/FoldersEditor/TreeItem.styles.ts | 214 ++
.../Datasource/FoldersEditor/TreeItem.tsx | 396 ++++
.../FoldersEditor/VirtualizedTreeItem.tsx | 220 ++
.../FoldersEditor/VirtualizedTreeList.tsx | 229 ++
.../components/DragOverlayContent.tsx | 75 +
.../components/FoldersToolbarComponent.tsx | 78 +
.../components/ResetConfirmModal.tsx} | 50 +-
.../Datasource/FoldersEditor/components}/index.ts | 4 +-
.../Datasource/FoldersEditor/constants.ts | 60 +
.../FoldersEditor/folderOperations.test.ts | 217 ++
.../Datasource/FoldersEditor/folderOperations.ts | 217 ++
.../Datasource/FoldersEditor/folderValidation.ts | 109 +
.../FoldersEditor/hooks/useAutoScroll.ts | 191 ++
.../FoldersEditor/hooks/useDragHandlers.ts | 663 ++++++
.../FoldersEditor/hooks/useHeightCache.ts | 81 +
.../FoldersEditor/hooks/useItemHeights.ts | 89 +
.../components/Datasource/FoldersEditor/index.tsx | 467 +++++
.../components/Datasource/FoldersEditor/sensors.ts | 47 +
.../components/Datasource/FoldersEditor/styles.tsx | 90 +
.../Datasource/FoldersEditor/treeUtils.test.ts | 669 ++++++
.../Datasource/FoldersEditor/treeUtils.ts | 332 +++
.../Datasource/FoldersEditor}/types.ts | 16 +-
.../DatasourceEditor/DatasourceEditor.tsx | 67 +
.../src/components/Datasource/types.ts | 6 +
.../src/components/ListView/ListView.test.tsx | 9 +-
.../src/dashboard/components/Header/index.tsx | 1 +
.../components/SliceHeader/SliceHeader.test.tsx | 189 +-
.../src/dashboard/components/SliceHeader/index.tsx | 20 +-
.../DownloadMenuItems/DownloadMenuItems.test.tsx | 88 +-
.../components/menu/DownloadMenuItems/index.tsx | 7 +-
.../src/embedded/EmbeddedContextProviders.tsx | 10 +-
.../src/explore/components/ChartPills.tsx | 20 +-
.../DatasourcePanel/DatasourcePanel.test.tsx | 23 +-
.../DatasourcePanel/DatasourcePanelItem.test.tsx | 14 +-
.../transformDatasourceFolders.test.ts | 61 +-
.../DatasourcePanel/transformDatasourceFolders.ts | 5 +-
.../explore/components/DatasourcePanel/types.ts | 18 +-
.../explore/components/ExploreChartPanel/index.tsx | 1 +
.../ExploreViewContainer.test.tsx | 436 +++-
.../components/ExploreViewContainer/index.tsx | 27 +
.../MetricControl/FilterDefinitionOption.tsx | 4 +-
.../features/allEntities/AllEntitiesTable.test.tsx | 7 -
.../features/databases/UploadDataModel/index.tsx | 20 +-
.../datasets/DuplicateDatasetModal.test.tsx | 282 +++
.../datasets/hooks/useDatasetLists.test.ts | 180 +-
.../src/features/home/RightMenu.test.tsx | 2 +
.../src/pages/ChartList/ChartList.test.tsx | 16 +-
.../src/pages/ChartList/ChartList.testHelpers.tsx | 6 +-
.../DatasetList/DatasetList.behavior.test.tsx | 493 +++++
.../DatasetList/DatasetList.integration.test.tsx | 252 +++
.../DatasetList/DatasetList.listview.test.tsx | 2215 ++++++++++++++++++++
.../DatasetList/DatasetList.permissions.test.tsx | 414 ++++
.../src/pages/DatasetList/DatasetList.test.tsx | 567 +++++
.../pages/DatasetList/DatasetList.testHelpers.tsx | 540 +++++
.../src/pages/FileHandler/index.test.tsx | 368 ++++
superset-frontend/src/pages/FileHandler/index.tsx | 138 ++
.../src/pages/GroupsList/GroupsList.test.tsx | 7 +-
superset-frontend/src/pwa-manifest.json | 65 +
.../Slider.test.tsx => src/service-worker.ts} | 29 +-
.../src/views/RootContextProviders.tsx | 10 +-
superset-frontend/src/views/menu.tsx | 10 +-
superset-frontend/src/views/routes.tsx | 8 +
superset-frontend/webpack.config.js | 45 +-
superset/commands/database/importers/v1/utils.py | 4 +-
superset/commands/dataset/update.py | 13 +-
superset/config.py | 4 +
superset/db_engine_specs/base.py | 6 +-
superset/db_engine_specs/bigquery.py | 5 +-
superset/db_engine_specs/hive.py | 6 +-
superset/db_engine_specs/presto.py | 6 +-
superset/examples/data_loading.py | 5 +
superset/examples/generic_loader.py | 7 +
superset/initialization/__init__.py | 10 +-
superset/models/core.py | 22 +-
.../static/service-worker.js | 11 +-
superset/templates/superset/spa.html | 15 +-
superset/views/base.py | 1 +
superset/views/core.py | 15 +
tests/unit_tests/db_engine_specs/test_base.py | 5 +-
tests/unit_tests/db_engine_specs/test_bigquery.py | 5 +-
tests/unit_tests/db_engine_specs/test_hive.py | 4 +-
tests/unit_tests/db_engine_specs/test_postgres.py | 4 +-
tests/unit_tests/db_engine_specs/test_presto.py | 4 +-
120 files changed, 12367 insertions(+), 409 deletions(-)
create mode 100644 superset-frontend/playwright/components/core/Menu.ts
create mode 100644
superset-frontend/plugins/plugin-chart-echarts/test/Heatmap/buildQuery.test.ts
copy
superset-frontend/{packages/superset-ui-chart-controls/src/components/ColumnTypeLabel/type-icons/field_boolean.svg
=> src/assets/images/icons/move.svg} (59%)
copy
superset-frontend/{packages/superset-ui-chart-controls/src/components/ColumnTypeLabel/type-icons/field_num.svg
=> src/assets/images/icons/sigma.svg} (82%)
create mode 100644 superset-frontend/src/assets/images/pwa/icon-192.png
create mode 100644 superset-frontend/src/assets/images/pwa/icon-512.png
create mode 100644
superset-frontend/src/assets/images/pwa/screenshot-narrow.png
create mode 100644 superset-frontend/src/assets/images/pwa/screenshot-wide.png
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/FoldersEditor.test.tsx
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/TreeItem.styles.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/TreeItem.tsx
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/VirtualizedTreeItem.tsx
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/VirtualizedTreeList.tsx
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/components/DragOverlayContent.tsx
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/components/FoldersToolbarComponent.tsx
copy
superset-frontend/{packages/superset-ui-core/src/components/CertifiedBadge/index.tsx
=> src/components/Datasource/FoldersEditor/components/ResetConfirmModal.tsx}
(55%)
copy superset-frontend/{packages/superset-core/src/utils =>
src/components/Datasource/FoldersEditor/components}/index.ts (81%)
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/constants.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/folderOperations.test.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/folderOperations.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/folderValidation.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/hooks/useAutoScroll.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/hooks/useDragHandlers.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/hooks/useHeightCache.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/hooks/useItemHeights.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/index.tsx
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/sensors.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/styles.tsx
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/treeUtils.test.ts
create mode 100644
superset-frontend/src/components/Datasource/FoldersEditor/treeUtils.ts
copy superset-frontend/src/{features/users =>
components/Datasource/FoldersEditor}/types.ts (72%)
create mode 100644
superset-frontend/src/features/datasets/DuplicateDatasetModal.test.tsx
create mode 100644
superset-frontend/src/pages/DatasetList/DatasetList.behavior.test.tsx
create mode 100644
superset-frontend/src/pages/DatasetList/DatasetList.integration.test.tsx
create mode 100644
superset-frontend/src/pages/DatasetList/DatasetList.listview.test.tsx
create mode 100644
superset-frontend/src/pages/DatasetList/DatasetList.permissions.test.tsx
create mode 100644 superset-frontend/src/pages/DatasetList/DatasetList.test.tsx
create mode 100644
superset-frontend/src/pages/DatasetList/DatasetList.testHelpers.tsx
create mode 100644 superset-frontend/src/pages/FileHandler/index.test.tsx
create mode 100644 superset-frontend/src/pages/FileHandler/index.tsx
create mode 100644 superset-frontend/src/pwa-manifest.json
copy
superset-frontend/{packages/superset-ui-core/src/components/Slider/Slider.test.tsx
=> src/service-worker.ts} (62%)
copy
superset-frontend/packages/superset-ui-core/src/components/EmptyState/Empty.test.tsx
=> superset/static/service-worker.js (78%)