From 62f12d791e25490755006dd13cca124fa068f4f5 Mon Sep 17 00:00:00 2001 From: Rex Ledesma Date: Thu, 18 Jan 2024 12:07:37 -0500 Subject: [PATCH] chore(prettier): add `@trivago/prettier-plugin-sort-imports` --- js_modules/dagster-ui/.prettierrc.js | 7 + js_modules/dagster-ui/package.json | 1 + .../packages/app-oss/.prettierrc.js | 7 + .../dagster-ui/packages/app-oss/package.json | 2 + .../dagster-ui/packages/app-oss/src/App.tsx | 3 +- .../packages/app-oss/src/NUX/CommunityNux.tsx | 5 +- .../packages/app-oss/src/pages/_document.tsx | 3 +- .../packages/app-oss/src/telemetryLink.tsx | 1 + .../packages/eslint-config/.prettierrc.js | 7 + .../packages/eslint-config/package.json | 1 + .../packages/ui-components/.babelrc | 3 +- .../packages/ui-components/.prettierrc.js | 9 +- .../ui-components/.storybook/blueprint.css | 2 +- .../ui-components/.storybook/preview.js | 16 +- .../packages/ui-components/package.json | 2 + .../packages/ui-components/rollup.config.js | 1 - .../ui-components/src/components/Alert.tsx | 3 +- .../src/components/BaseButton.tsx | 1 - .../ui-components/src/components/BaseTag.tsx | 1 - .../ui-components/src/components/Box.tsx | 1 - .../ui-components/src/components/Button.tsx | 5 +- .../src/components/ButtonGroup.tsx | 5 +- .../src/components/ButtonLink.tsx | 1 - .../ui-components/src/components/Checkbox.tsx | 6 +- .../src/components/ConfigEditorWithSchema.tsx | 2 +- .../src/components/ConfigTypeSchema.tsx | 1 - .../src/components/DagsterCodeMirrorStyle.tsx | 13 +- .../ui-components/src/components/Dialog.tsx | 5 +- .../src/components/ErrorBoundary.tsx | 1 - .../ui-components/src/components/Menu.tsx | 13 +- .../src/components/MiddleTruncate.tsx | 2 +- .../src/components/NewConfigEditor.tsx | 8 +- .../src/components/NonIdealState.tsx | 3 +- .../src/components/PageHeader.tsx | 1 - .../ui-components/src/components/Popover.tsx | 7 +- .../src/components/ProductTour.tsx | 1 - .../src/components/ProgressBar.tsx | 2 +- .../ui-components/src/components/Radio.tsx | 1 - .../src/components/RawCodeMirror.tsx | 5 +- .../src/components/RefreshableCountdown.tsx | 1 - .../ui-components/src/components/Select.tsx | 3 +- .../ui-components/src/components/Slider.tsx | 6 +- .../ui-components/src/components/Spinner.tsx | 2 +- .../src/components/SplitPanelContainer.tsx | 1 - .../src/components/StyledButton.tsx | 1 - .../src/components/SubwayDot.tsx | 3 +- .../ui-components/src/components/Suggest.tsx | 7 +- .../ui-components/src/components/Table.tsx | 1 - .../ui-components/src/components/Tabs.tsx | 1 - .../ui-components/src/components/Tag.tsx | 5 +- .../src/components/TagSelector.tsx | 5 +- .../ui-components/src/components/Text.tsx | 1 - .../src/components/TextInput.tsx | 7 +- .../ui-components/src/components/Toaster.tsx | 5 +- .../src/components/TokenizingField.tsx | 5 +- .../ui-components/src/components/Tooltip.tsx | 1 - .../ui-components/src/components/Trace.tsx | 1 - .../ui-components/src/components/Warning.tsx | 1 - .../components/__stories__/Alert.stories.tsx | 2 +- .../__stories__/BaseButton.stories.tsx | 2 +- .../__stories__/BaseTag.stories.tsx | 2 +- .../components/__stories__/Box.stories.tsx | 2 +- .../components/__stories__/Button.stories.tsx | 2 +- .../__stories__/ButtonGroup.stories.tsx | 2 +- .../__stories__/ButtonLink.stories.tsx | 2 +- .../__stories__/Checkbox.stories.tsx | 2 +- .../__stories__/Countdown.stories.tsx | 2 +- .../components/__stories__/Dialog.stories.tsx | 4 +- .../components/__stories__/Group.stories.tsx | 2 +- .../components/__stories__/Icon.stories.tsx | 4 +- .../__stories__/LegacyColors.stories.tsx | 2 +- .../components/__stories__/Menu.stories.tsx | 4 +- .../__stories__/MiddleTruncate.stories.tsx | 2 +- .../__stories__/NonIdealState.stories.tsx | 2 +- .../__stories__/Popover.stories.tsx | 2 +- .../__stories__/ProductTour.stories.tsx | 4 +- .../__stories__/ProgressBar.stories.tsx | 2 +- .../components/__stories__/Select.stories.tsx | 2 +- .../components/__stories__/Slider.stories.tsx | 4 +- .../__stories__/Spinner.stories.tsx | 2 +- .../StyledRawCodeMirror.stories.tsx | 2 +- .../__stories__/Suggest.stories.tsx | 2 +- .../components/__stories__/Table.stories.tsx | 2 +- .../components/__stories__/Tabs.stories.tsx | 4 +- .../components/__stories__/Tag.stories.tsx | 2 +- .../__stories__/TagSelector.stories.tsx | 2 +- .../__stories__/TextArea.stories.tsx | 2 +- .../__stories__/TextInput.stories.tsx | 2 +- .../__stories__/Toaster.stories.tsx | 2 +- .../__stories__/TokenizingField.stories.tsx | 6 +- .../__stories__/Tooltip.stories.tsx | 4 +- .../__stories__/UnstyledButton.stories.tsx | 2 +- .../__stories__/useDelayedState.stories.tsx | 2 +- .../useSuggestionsForString.stories.tsx | 2 +- .../__tests__/TokenizingField.test.tsx | 2 +- .../src/components/__tests__/Tooltip.test.tsx | 2 +- .../components/__tests__/actWarnings.test.tsx | 2 +- .../useSuggestionsForString.test.tsx | 2 +- .../configeditor/ConfigEditorHelp.tsx | 1 - .../configeditor/codemirror-yaml/mode.tsx | 8 +- .../src/components/createToaster.tsx | 2 +- .../src/components/useViewport.tsx | 2 +- .../packages/ui-components/src/setupTests.ts | 2 +- .../ui-components/src/theme/color.tsx | 1 - .../ui-components/tsconfig.build.json | 9 +- .../packages/ui-core/.prettierrc.js | 9 +- .../packages/ui-core/.storybook/preview.js | 15 +- .../dagster-ui/packages/ui-core/package.json | 3 +- .../packages/ui-core/src/app/App.tsx | 3 +- .../packages/ui-core/src/app/AppError.tsx | 7 +- .../packages/ui-core/src/app/AppProvider.tsx | 31 +- .../packages/ui-core/src/app/AppTopNav.tsx | 12 +- .../packages/ui-core/src/app/ContentRoot.tsx | 3 +- .../ui-core/src/app/CustomAlertProvider.tsx | 4 +- .../src/app/CustomConfirmationProvider.tsx | 3 +- .../packages/ui-core/src/app/DomUtils.tsx | 3 +- .../src/app/ExecutionSessionStorage.tsx | 5 +- .../ui-core/src/app/FallthroughRoot.tsx | 3 +- .../packages/ui-core/src/app/Flags.tsx | 2 +- .../ui-core/src/app/GraphQueryImpl.ts | 2 +- .../packages/ui-core/src/app/Permissions.tsx | 2 +- .../ui-core/src/app/PythonErrorInfo.tsx | 10 +- .../packages/ui-core/src/app/QueryRefresh.tsx | 5 +- .../ui-core/src/app/ShortcutHandler.tsx | 7 +- .../packages/ui-core/src/app/Telemetry.tsx | 2 +- .../ui-core/src/app/UserSettingsButton.tsx | 9 +- .../ui-core/src/app/UserSettingsDialog.tsx | 6 +- .../packages/ui-core/src/app/Util.tsx | 2 +- .../ui-core/src/app/WebSocketProvider.tsx | 9 +- .../__stories__/AppStackTraceLink.stories.tsx | 2 +- .../__stories__/PythonErrorInfo.stories.tsx | 4 +- .../src/app/__tests__/AppTopNav.test.tsx | 2 +- .../CustomConfirmationProvider.test.tsx | 5 +- .../ExecutionSessionStorage.test.tsx | 2 +- .../app/__tests__/PythonErrorInfo.test.tsx | 2 +- .../src/app/__tests__/analytics.test.tsx | 2 +- .../app/__tests__/formatElapsedTime.test.tsx | 2 +- .../packages/ui-core/src/app/blueprint.css | 2 +- .../ui-core/src/app/time/HourCycleSelect.tsx | 3 +- .../ui-core/src/app/time/ThemeSelect.tsx | 5 +- .../ui-core/src/app/time/TimeContext.tsx | 1 - .../ui-core/src/app/time/TimezoneSelect.tsx | 3 +- .../src/app/time/timestampToString.tsx | 2 +- .../src/app/types/Permissions.types.ts | 1 - .../app/types/PythonErrorFragment.types.ts | 1 - .../src/app/types/PythonErrorInfo.types.ts | 1 - .../ui-core/src/app/types/Telemetry.types.ts | 1 - .../src/asset-data/AssetDataRefreshButton.tsx | 3 +- .../src/asset-data/AssetLiveDataProvider.tsx | 1 - .../__tests__/AssetLiveDataProvider.test.tsx | 9 +- .../ui-core/src/asset-data/__tests__/util.ts | 2 +- .../types/AssetLiveDataProvider.types.ts | 1 - .../ui-core/src/asset-graph/AssetEdges.tsx | 3 +- .../src/asset-graph/AssetGraphExplorer.tsx | 12 +- .../asset-graph/AssetGraphExplorerFilters.tsx | 4 +- .../src/asset-graph/AssetGraphJobSidebar.tsx | 5 +- .../ui-core/src/asset-graph/AssetNode.tsx | 22 +- .../ui-core/src/asset-graph/AssetNodeMenu.tsx | 6 +- .../asset-graph/AssetNodeStatusContent.tsx | 6 +- .../src/asset-graph/AssetRunLinking.tsx | 6 +- .../src/asset-graph/AssetRunLogObserver.tsx | 1 - .../src/asset-graph/CollapsedGroupNode.tsx | 6 +- .../src/asset-graph/ContextMenuWrapper.tsx | 3 +- .../src/asset-graph/ExpandedGroupNode.tsx | 7 +- .../ui-core/src/asset-graph/ForeignNode.tsx | 4 +- .../src/asset-graph/SidebarAssetInfo.tsx | 12 +- .../ui-core/src/asset-graph/Utils.tsx | 3 +- .../__fixtures__/AssetNode.fixtures.ts | 10 +- .../__stories__/AssetNode.stories.tsx | 5 +- .../__stories__/SidebarAssetInfo.stories.tsx | 3 +- .../asset-graph/__tests__/AssetNode.test.tsx | 2 +- .../__tests__/AssetRunLogObserver.test.tsx | 2 +- .../ui-core/src/asset-graph/layout.ts | 3 +- .../asset-graph/sidebar/AssetSidebarNode.tsx | 6 +- .../src/asset-graph/sidebar/SearchFilter.tsx | 3 +- .../src/asset-graph/sidebar/Sidebar.tsx | 4 +- .../src/asset-graph/sidebar/StatusDot.tsx | 1 - .../ui-core/src/asset-graph/sidebar/util.tsx | 5 +- .../types/AssetGraphJobSidebar.types.ts | 1 - .../src/asset-graph/types/AssetNode.types.ts | 1 - .../types/AssetRunLogObserver.types.ts | 1 - .../types/SidebarAssetInfo.types.ts | 1 - .../types/useAssetGraphData.types.ts | 1 - .../types/useFindAssetLocation.types.ts | 1 - .../src/asset-graph/useAssetGraphData.tsx | 5 +- .../src/asset-graph/useFindAssetLocation.tsx | 1 - .../src/assets/AllIndividualEventsButton.tsx | 18 +- .../ui-core/src/assets/AssetActionMenu.tsx | 4 +- .../AssetDefinedInMultipleReposNotice.tsx | 4 +- .../ui-core/src/assets/AssetEventDetail.tsx | 8 +- .../ui-core/src/assets/AssetEventList.tsx | 8 +- .../assets/AssetEventMetadataEntriesTable.tsx | 6 +- .../src/assets/AssetEventSystemTags.tsx | 4 +- .../ui-core/src/assets/AssetEvents.tsx | 16 +- .../ui-core/src/assets/AssetGroupRoot.tsx | 6 +- .../ui-core/src/assets/AssetGroupSuggest.tsx | 5 +- .../src/assets/AssetLineageElements.tsx | 4 +- .../packages/ui-core/src/assets/AssetLink.tsx | 3 +- .../src/assets/AssetMaterializationGraphs.tsx | 11 +- .../AssetMaterializationUpstreamData.tsx | 14 +- .../ui-core/src/assets/AssetMetadata.tsx | 6 +- .../src/assets/AssetNodeDefinition.tsx | 10 +- .../src/assets/AssetNodeInstigatorTag.tsx | 1 - .../ui-core/src/assets/AssetNodeLineage.tsx | 6 +- .../src/assets/AssetNodeLineageGraph.tsx | 6 +- .../ui-core/src/assets/AssetNodeList.tsx | 4 +- .../src/assets/AssetNodePartitionCounts.tsx | 23 +- .../ui-core/src/assets/AssetPageHeader.tsx | 15 +- .../src/assets/AssetPartitionDetail.tsx | 10 +- .../ui-core/src/assets/AssetPartitionList.tsx | 8 +- .../src/assets/AssetPartitionStatus.tsx | 2 +- .../assets/AssetPartitionStatusCheckboxes.tsx | 4 +- .../ui-core/src/assets/AssetPartitions.tsx | 14 +- .../ui-core/src/assets/AssetPlots.tsx | 5 +- .../assets/AssetSidebarActivitySummary.tsx | 6 +- .../ui-core/src/assets/AssetTable.tsx | 6 +- .../packages/ui-core/src/assets/AssetTabs.tsx | 6 +- .../ui-core/src/assets/AssetValueGraph.tsx | 5 +- .../packages/ui-core/src/assets/AssetView.tsx | 12 +- .../ui-core/src/assets/AssetWipeDialog.tsx | 6 +- .../ui-core/src/assets/AssetsCatalogRoot.tsx | 6 +- .../ui-core/src/assets/AssetsCatalogTable.tsx | 14 +- .../ui-core/src/assets/AssetsEmptyState.tsx | 3 +- .../assets/AssetsGroupsGlobalGraphRoot.tsx | 6 +- .../AssetAutomaterializePolicyPage.tsx | 4 +- .../AssetKeysDialog.tsx | 3 +- .../AutoMaterializeExperimentalBanner.tsx | 3 +- .../AutomaterializeLeftPanel.tsx | 6 +- .../AutomaterializeMiddlePanel.tsx | 6 +- ...AutomaterializeRequestedPartitionsLink.tsx | 12 +- .../AutomaterializeRightPanel.tsx | 12 +- .../AutomaterializeRunTag.tsx | 6 +- .../CollapsibleSection.tsx | 5 +- .../EvaluationCounts.tsx | 3 +- .../ParentUpdatedLink.tsx | 4 +- .../ParentUpdatedPartitionLink.tsx | 4 +- .../PartitionSegmentWithPopover.tsx | 8 +- .../PolicyEvaluationCondition.tsx | 5 +- .../PolicyEvaluationStatusTag.tsx | 4 +- .../PolicyEvaluationTable.tsx | 6 +- .../RuleEvaluationOutcomes.tsx | 6 +- ...VirtualizedAssetPartitionListForDialog.tsx | 5 +- .../WaitingOnAssetKeysLink.tsx | 4 +- .../WaitingOnAssetKeysPartitionLink.tsx | 4 +- .../AutoMaterializePolicyPage.stories.tsx | 3 +- .../AutomaterializeMiddlePanel.stories.tsx | 2 +- ...rializeRequestedPartitionsLink.stories.tsx | 2 +- .../PartitionSegmentWithPopover.stories.tsx | 5 +- .../PolicyEvaluationCondition.stories.tsx | 3 +- .../AutoMaterializePolicyPage/types.tsx | 1 - ...aterializeRequestedPartitionsLink.types.ts | 1 - .../types/AutomaterializeRightPanel.types.ts | 1 - .../types/AutomaterializeRunTag.types.ts | 1 - .../types/GetEvaluationsQuery.types.ts | 1 - .../useEvaluationsQueryResult.tsx | 1 - .../AssetAutomaterializePolicyPage.tsx | 4 +- .../AssetKeysDialog.tsx | 3 +- .../AutoMaterializeExperimentalBanner.tsx | 3 +- .../AutomaterializeLeftPanel.tsx | 6 +- .../AutomaterializeMiddlePanel.tsx | 6 +- ...AutomaterializeRequestedPartitionsLink.tsx | 12 +- .../AutomaterializeRightPanel.tsx | 12 +- .../AutomaterializeRunTag.tsx | 6 +- .../CollapsibleSection.tsx | 5 +- .../EvaluationCounts.tsx | 3 +- .../ParentUpdatedLink.tsx | 4 +- .../ParentUpdatedPartitionLink.tsx | 4 +- .../PartitionSegmentWithPopover.tsx | 8 +- .../PolicyEvaluationCondition.tsx | 5 +- .../PolicyEvaluationStatusTag.tsx | 4 +- .../PolicyEvaluationTable.tsx | 6 +- .../RuleEvaluationOutcomes.tsx | 6 +- ...VirtualizedAssetPartitionListForDialog.tsx | 5 +- .../WaitingOnAssetKeysLink.tsx | 4 +- .../WaitingOnAssetKeysPartitionLink.tsx | 4 +- .../AutoMaterializePolicyPageOld/types.tsx | 1 - ...aterializeRequestedPartitionsLink.types.ts | 1 - .../types/AutomaterializeRightPanel.types.ts | 1 - .../types/AutomaterializeRunTag.types.ts | 1 - .../types/GetEvaluationsQuery.types.ts | 1 - .../useEvaluationsQueryResult.tsx | 1 - .../assets/AutomaterializeDaemonStatusTag.tsx | 3 +- .../src/assets/AutomaterializePolicyTag.tsx | 3 +- .../AutomaterializeTagWithEvaluation.tsx | 3 +- .../src/assets/BackfillPreviewModal.tsx | 8 +- .../CalculateChangedAndMissingDialog.tsx | 24 +- .../ui-core/src/assets/CurrentRunsBanner.tsx | 5 +- .../src/assets/DependsOnSelfBanner.tsx | 3 +- .../FailedRunSinceMaterializationBanner.tsx | 7 +- .../assets/LastMaterializationMetadata.tsx | 12 +- .../LaunchAssetChoosePartitionsDialog.tsx | 8 +- .../src/assets/LaunchAssetExecutionButton.tsx | 8 +- .../assets/LaunchAssetObservationButton.tsx | 6 +- .../src/assets/MultipartitioningSupport.tsx | 5 +- .../ui-core/src/assets/OverdueTag.tsx | 4 +- .../src/assets/PartitionHealthSummary.tsx | 6 +- .../ui-core/src/assets/RunlessEventTag.tsx | 3 +- .../src/assets/RunningBackfillsNotice.tsx | 3 +- .../packages/ui-core/src/assets/Stale.tsx | 12 +- .../src/assets/UnderlyingOpsOrGraph.tsx | 4 +- .../packages/ui-core/src/assets/Version.tsx | 3 +- .../__fixtures__/AssetTables.fixtures.ts | 12 +- .../BackfillPreviewQuery.fixtures.tsx | 6 +- .../LaunchAssetExecutionButton.fixtures.ts | 1 - .../__stories__/AssetEventDetail.stories.tsx | 3 +- .../AssetLineageElements.stories.tsx | 2 +- .../AssetNodeDefinition.stories.tsx | 4 +- .../AssetPartitionDetail.stories.tsx | 5 +- .../__stories__/AssetTables.stories.tsx | 3 +- ...nchAssetChoosePartitionsDialog.stories.tsx | 2 +- .../assets/__stories__/OverdueTag.stories.tsx | 3 +- .../PartitionHealthSummary.stories.tsx | 3 +- .../assets/__tests__/AssetGroupTags.test.tsx | 4 +- .../assets/__tests__/AssetPartitions.test.tsx | 2 +- .../src/assets/__tests__/AssetView.test.tsx | 8 +- .../LaunchAssetExecutionButton.test.tsx | 2 +- .../globalAssetGraphPathToString.test.tsx | 2 +- .../__tests__/usePartitionHealthData.test.tsx | 12 +- .../usePartitionKeyInParams.test.tsx | 2 +- .../packages/ui-core/src/assets/asInput.ts | 1 - .../asset-checks/AssetCheckDetailModal.tsx | 6 +- .../asset-checks/AssetCheckStatusTag.tsx | 3 +- .../src/assets/asset-checks/AssetChecks.tsx | 6 +- .../assets/asset-checks/AssetChecksBanner.tsx | 3 +- .../asset-checks/ExecuteChecksButton.tsx | 4 +- .../VirtualizedAssetCheckTable.tsx | 8 +- .../__stories__/AssetChecks.stories.tsx | 6 +- .../types/AssetCheckDetailModal.types.ts | 1 - .../asset-checks/types/AssetChecks.types.ts | 1 - .../types/ExecuteChecksButton.types.ts | 1 - .../types/VirtualizedAssetCheckTable.types.ts | 1 - ...omaterializationEvaluationHistoryTable.tsx | 6 +- .../AutomaterializationRoot.tsx | 14 +- .../AutomaterializationTickDetailDialog.tsx | 17 +- .../AutomaterializeRunHistoryTable.tsx | 3 +- ...omaterializationEvaluationHistoryTable.tsx | 3 +- ...omaterializationEvaluationHistoryTable.tsx | 1 - .../types/AssetDaemonTicksQuery.types.ts | 1 - ...tomaterializationTickDetailDialog.types.ts | 1 - .../src/assets/types/AssetConfig.types.ts | 1 - ...AssetDefinedInMultipleReposNotice.types.ts | 1 - .../src/assets/types/AssetGroupRoot.types.ts | 1 - .../types/AssetLineageElements.types.ts | 1 - .../AssetMaterializationUpstreamData.types.ts | 1 - .../src/assets/types/AssetMetadata.types.ts | 1 - .../assets/types/AssetNodeDefinition.types.ts | 1 - .../types/AssetNodeInstigatorTag.types.ts | 1 - .../types/AssetPartitionDetail.types.ts | 1 - .../assets/types/AssetTableFragment.types.ts | 1 - .../src/assets/types/AssetView.types.ts | 1 - .../src/assets/types/AssetWipeDialog.types.ts | 1 - .../assets/types/AssetsCatalogRoot.types.ts | 1 - .../assets/types/AssetsCatalogTable.types.ts | 1 - .../types/AutomationPolicySensorFlag.types.ts | 1 - .../types/BackfillPreviewModal.types.ts | 1 - .../CalculateChangedAndMissingDialog.types.ts | 1 - ...LaunchAssetChoosePartitionsDialog.types.ts | 1 - .../types/LaunchAssetExecutionButton.types.ts | 1 - .../src/assets/types/OverdueTag.types.ts | 1 - .../types/RunningBackfillsNotice.types.ts | 1 - .../types/UnderlyingOpsOrGraph.types.ts | 1 - .../useAutomaterializeDaemonStatus.types.ts | 1 - .../types/usePartitionHealthData.types.ts | 1 - .../usePartitionNameForPipeline.types.ts | 1 - .../types/useRecentAssetEvents.types.ts | 1 - .../types/useReportEventsModal.types.ts | 1 - .../assets/useAutomaterializeDaemonStatus.tsx | 2 +- .../usePartitionDimensionSelections.tsx | 5 +- .../src/assets/usePartitionHealthData.tsx | 3 +- .../assets/usePartitionNameForPipeline.tsx | 1 - .../src/assets/useRecentAssetEvents.tsx | 5 +- .../src/assets/useReportEventsModal.tsx | 4 +- .../src/configeditor/ConfigEditorUtils.tsx | 3 +- .../types/ConfigEditorUtils.types.ts | 1 - .../ui-core/src/dagstertype/DagsterType.tsx | 6 +- .../dagstertype/types/DagsterType.types.ts | 1 - .../packages/ui-core/src/gantt/GanttChart.tsx | 28 +- .../ui-core/src/gantt/GanttChartLayout.ts | 3 +- .../src/gantt/GanttChartModeControl.tsx | 3 +- .../ui-core/src/gantt/GanttChartTimescale.tsx | 6 +- .../ui-core/src/gantt/GanttStatusPanel.tsx | 6 +- .../ui-core/src/gantt/RunGroupPanel.tsx | 24 +- .../ui-core/src/gantt/VizComponents.tsx | 3 +- .../packages/ui-core/src/gantt/ZoomSlider.tsx | 3 +- .../gantt/__stories__/GanttChart.stories.tsx | 9 +- .../ui-core/src/gantt/toGraphQueryItems.tsx | 1 - .../src/gantt/types/RunGroupPanel.types.ts | 1 - .../gantt/types/toGraphQueryItems.types.ts | 1 - .../ui-core/src/gantt/useGanttChartMode.tsx | 1 - .../src/graph/ExternalConnectionNode.tsx | 7 +- .../ui-core/src/graph/MappingLine.tsx | 3 +- .../packages/ui-core/src/graph/OpEdges.tsx | 1 - .../packages/ui-core/src/graph/OpGraph.tsx | 8 +- .../packages/ui-core/src/graph/OpIOBox.tsx | 10 +- .../packages/ui-core/src/graph/OpNode.tsx | 14 +- .../packages/ui-core/src/graph/OpTags.tsx | 5 +- .../ui-core/src/graph/ParentOpNode.tsx | 4 +- .../ui-core/src/graph/SVGComponents.tsx | 3 +- .../ui-core/src/graph/SVGViewport.tsx | 7 +- .../src/graph/__stories__/OpGraph.stories.tsx | 2 +- .../src/graph/__tests__/OpGraph.test.tsx | 2 +- .../ui-core/src/graph/asyncGraphLayout.ts | 3 +- .../packages/ui-core/src/graph/common.ts | 1 - .../packages/ui-core/src/graph/layout.ts | 1 - .../ui-core/src/graph/types/OpGraph.types.ts | 1 - .../ui-core/src/graph/types/OpNode.types.ts | 1 - .../ui-core/src/graphql/permissions.json | 20 +- .../src/graphql/possibleTypes.generated.json | 461 +++++++++++++++++- .../hooks/__tests__/useDocumentTitle.test.tsx | 2 +- .../__tests__/useQueryPersistedState.test.tsx | 2 +- .../__tests__/useSelectionReducer.test.tsx | 2 +- .../src/instance/CodeLocationsPage.tsx | 4 +- .../ui-core/src/instance/DaemonHealth.tsx | 5 +- .../ui-core/src/instance/DaemonList.tsx | 4 +- .../src/instance/DeploymentStatusProvider.tsx | 1 - .../src/instance/InstanceBackfills.tsx | 10 +- .../src/instance/InstanceConcurrency.tsx | 36 +- .../ui-core/src/instance/InstanceConfig.tsx | 19 +- .../src/instance/InstanceHealthPage.tsx | 6 +- .../ui-core/src/instance/InstanceTabs.tsx | 4 +- .../packages/ui-core/src/instance/JobMenu.tsx | 4 +- .../ui-core/src/instance/LastRunSummary.tsx | 4 +- .../ui-core/src/instance/RepoFilterButton.tsx | 3 +- .../src/instance/StepSummaryForRun.tsx | 6 +- .../instance/__tests__/DaemonList.test.tsx | 2 +- .../instance/backfill/BackfillActionsMenu.tsx | 6 +- .../src/instance/backfill/BackfillPage.tsx | 14 +- .../BackfillPartitionsRequestedDialog.tsx | 4 +- .../src/instance/backfill/BackfillRow.tsx | 8 +- .../backfill/BackfillStatusTagForPage.tsx | 3 +- .../backfill/BackfillStepStatusDialog.tsx | 6 +- .../src/instance/backfill/BackfillTable.tsx | 4 +- .../backfill/BackfillTerminationDialog.tsx | 8 +- .../backfill/TargetPartitionsDisplay.tsx | 3 +- .../__stories__/BackfillPage.stories.tsx | 2 +- .../backfill/__tests__/BackfillTable.test.tsx | 4 +- .../types/BackfillActionsMenu.types.ts | 1 - .../backfill/types/BackfillPage.types.ts | 1 - .../backfill/types/BackfillRow.types.ts | 1 - .../types/BackfillStepStatusDialog.types.ts | 1 - .../backfill/types/BackfillTable.types.ts | 1 - .../types/BackfillTerminationDialog.types.ts | 1 - .../backfill/types/BackfillUtils.types.ts | 1 - .../src/instance/types/DaemonList.types.ts | 1 - .../instance/types/InstanceBackfills.types.ts | 1 - .../types/InstanceConcurrency.types.ts | 1 - .../instance/types/InstanceConfig.types.ts | 1 - .../types/InstanceHealthFragment.types.ts | 1 - .../types/InstanceHealthPage.types.ts | 1 - .../src/instance/types/JobMenu.types.ts | 1 - .../src/instance/types/NextTick.types.ts | 1 - .../instance/types/StepSummaryForRun.types.ts | 1 - .../instance/types/useCanSeeConfig.types.ts | 1 - .../instance/types/useDaemonStatus.types.ts | 1 - .../types/useSupportsCapturedLogs.types.ts | 1 - .../ui-core/src/instance/useDaemonStatus.tsx | 3 +- .../src/instigation/InstigationTick.tsx | 10 +- .../src/instigation/InstigationUtils.tsx | 6 +- .../src/instigation/LiveTickTimeline2.tsx | 12 +- .../src/instigation/TickDetailsDialog.tsx | 20 +- .../ui-core/src/instigation/TickHistory.tsx | 29 +- .../ui-core/src/instigation/Unloadable.tsx | 10 +- .../__tests__/InstigationTick.test.tsx | 2 +- .../instigation/__tests__/Unloadable.test.tsx | 2 +- .../types/InstigationTick.types.ts | 1 - .../types/InstigationUtils.types.ts | 1 - .../types/TickDetailsDialog.types.ts | 1 - .../instigation/types/TickHistory.types.ts | 1 - .../launchpad/ConfigEditorConfigPicker.tsx | 12 +- .../src/launchpad/ConfigEditorModePicker.tsx | 3 +- .../ui-core/src/launchpad/LaunchButton.tsx | 5 +- .../launchpad/LaunchRootExecutionButton.tsx | 1 - .../src/launchpad/LaunchpadAllowedRoot.tsx | 5 +- .../src/launchpad/LaunchpadHooksContext.tsx | 4 +- .../ui-core/src/launchpad/LaunchpadRoot.tsx | 4 +- .../src/launchpad/LaunchpadSession.tsx | 14 +- .../src/launchpad/LaunchpadSessionError.tsx | 3 +- .../src/launchpad/LaunchpadSessionLoading.tsx | 3 +- .../launchpad/LaunchpadSetupFromRunRoot.tsx | 3 +- .../src/launchpad/LaunchpadSetupRoot.tsx | 2 +- .../LaunchpadStoredSessionsContainer.tsx | 3 +- .../ui-core/src/launchpad/LaunchpadTabs.tsx | 11 +- .../LaunchpadTransientSessionContainer.tsx | 3 +- .../ui-core/src/launchpad/LoadingOverlay.tsx | 3 +- .../ui-core/src/launchpad/OpSelector.tsx | 6 +- .../ui-core/src/launchpad/RunPreview.tsx | 14 +- .../src/launchpad/SessionSettingsBar.tsx | 3 +- .../ui-core/src/launchpad/TagEditor.tsx | 7 +- .../ui-core/src/launchpad/showLaunchError.tsx | 3 +- .../types/ConfigEditorConfigPicker.types.ts | 1 - .../types/LaunchpadAllowedRoot.types.ts | 1 - .../launchpad/types/LaunchpadSession.types.ts | 1 - .../types/LaunchpadSetupFromRunRoot.types.ts | 1 - .../src/launchpad/types/OpSelector.types.ts | 1 - .../src/launchpad/types/RunPreview.types.ts | 1 - .../src/launchpad/useLaunchWithTelemetry.ts | 5 +- .../ui-core/src/metadata/MetadataEntry.tsx | 28 +- .../ui-core/src/metadata/TableSchema.tsx | 7 +- .../__stories__/MetadataEntry.stories.tsx | 3 +- .../TableMetadataEntryComponent.test.tsx | 2 +- .../src/metadata/types/MetadataEntry.types.ts | 1 - .../src/metadata/types/TableSchema.types.ts | 1 - .../ui-core/src/nav/DeploymentStatusIcon.tsx | 4 +- .../ui-core/src/nav/InstanceWarningIcon.tsx | 4 +- .../packages/ui-core/src/nav/JobMetadata.tsx | 10 +- .../packages/ui-core/src/nav/LatestRunTag.tsx | 8 +- .../packages/ui-core/src/nav/LeftNav.tsx | 4 +- .../packages/ui-core/src/nav/LeftNavItem.tsx | 8 +- .../src/nav/LeftNavRepositorySection.tsx | 4 +- .../packages/ui-core/src/nav/PipelineNav.tsx | 4 +- .../nav/ReloadRepositoryLocationButton.tsx | 1 - .../packages/ui-core/src/nav/RepoNavItem.tsx | 18 +- .../packages/ui-core/src/nav/RepoSelector.tsx | 16 +- .../ui-core/src/nav/RepositoryContentList.tsx | 5 +- .../ui-core/src/nav/RepositoryLink.tsx | 8 +- .../nav/RepositoryLocationStateObserver.tsx | 8 +- .../src/nav/ScheduleAndSensorDialog.tsx | 3 +- .../ui-core/src/nav/ScheduleOrSensorTag.tsx | 10 +- .../ui-core/src/nav/VersionNumber.tsx | 2 +- .../ui-core/src/nav/WarningTooltip.tsx | 3 +- .../ui-core/src/nav/WorkspaceStatus.tsx | 6 +- .../__fixtures__/useDaemonStatus.fixtures.tsx | 18 +- .../nav/__stories__/RepoNavItem.stories.tsx | 5 +- .../nav/__stories__/RepoSelector.stories.tsx | 5 +- .../__tests__/DeploymentStatusIcon.test.tsx | 2 +- .../src/nav/__tests__/JobMetadata.test.tsx | 2 +- .../LeftNavRepositorySection.test.tsx | 2 +- .../ReloadRepositoryLocationButton.test.tsx | 2 +- .../__tests__/ScheduleOrSensorTag.test.tsx | 2 +- .../src/nav/__tests__/VersionNumber.test.tsx | 2 +- .../nav/__tests__/WorkspaceStatus.test.tsx | 2 +- .../nav/__tests__/useDaemonStatus.test.tsx | 2 +- .../useRepositoryLocationReload.test.tsx | 2 +- .../src/nav/getLeftNavItemsForOption.tsx | 4 +- .../src/nav/types/JobMetadata.types.ts | 1 - .../src/nav/types/LatestRunTag.types.ts | 1 - .../RepositoryLocationStateObserver.types.ts | 1 - .../src/nav/types/VersionNumber.types.ts | 1 - .../nav/types/useCodeLocationsStatus.types.ts | 1 - .../useRepositoryLocationReload.types.ts | 1 - .../src/nav/useCodeLocationsStatus.tsx | 6 +- .../src/nav/useRepositoryLocationReload.tsx | 11 +- .../packages/ui-core/src/ops/OpCard.tsx | 6 +- .../ui-core/src/ops/OpDetailsRoot.tsx | 7 +- .../ui-core/src/ops/OpTypeSignature.tsx | 6 +- .../packages/ui-core/src/ops/OpsRoot.tsx | 36 +- .../ui-core/src/ops/types/OpCard.types.ts | 1 - .../src/ops/types/OpDetailsRoot.types.ts | 1 - .../src/ops/types/OpTypeSignature.types.ts | 1 - .../ui-core/src/ops/types/OpsRoot.types.ts | 1 - .../src/overview/OverviewActivityRoot.tsx | 4 +- .../src/overview/OverviewAssetsRoot.tsx | 9 +- .../ui-core/src/overview/OverviewJobsRoot.tsx | 4 +- .../src/overview/OverviewJobsTable.tsx | 6 +- .../src/overview/OverviewResourcesRoot.tsx | 4 +- .../src/overview/OverviewResourcesTable.tsx | 6 +- .../ui-core/src/overview/OverviewRoot.tsx | 1 - .../src/overview/OverviewSchedulesRoot.tsx | 6 +- .../src/overview/OverviewSchedulesTable.tsx | 6 +- .../src/overview/OverviewSensorsRoot.tsx | 6 +- .../src/overview/OverviewSensorsTable.tsx | 6 +- .../ui-core/src/overview/OverviewTabs.tsx | 3 +- .../src/overview/OverviewTimelineRoot.tsx | 6 +- .../__tests__/sortRepoBuckets.test.tsx | 2 +- .../BasicInstigationStateFragment.types.ts | 1 - .../overview/types/OverviewJobsRoot.types.ts | 1 - .../types/OverviewResourcesRoot.types.ts | 1 - .../types/OverviewSchedulesRoot.types.ts | 1 - .../types/OverviewSensorsRoot.types.ts | 1 - .../src/partitions/AssetJobPartitionsView.tsx | 8 +- .../src/partitions/BackfillMessaging.tsx | 6 +- .../src/partitions/BackfillSelector.tsx | 14 +- .../src/partitions/CreatePartitionDialog.tsx | 6 +- .../src/partitions/DimensionRangeInput.tsx | 4 +- .../src/partitions/DimensionRangeWizard.tsx | 18 +- .../src/partitions/JobBackfillsTable.tsx | 6 +- .../src/partitions/OpJobPartitionsView.tsx | 12 +- .../ui-core/src/partitions/PartitionGraph.tsx | 3 +- .../src/partitions/PartitionRunList.tsx | 6 +- .../PartitionRunStatusCheckboxes.tsx | 3 +- .../src/partitions/PartitionStatus.tsx | 18 +- .../src/partitions/PartitionStepStatus.tsx | 24 +- .../src/partitions/PipelinePartitionsRoot.tsx | 4 +- .../ui-core/src/partitions/RunMatrixUtils.tsx | 5 +- .../__tests__/CreatePartitionDialog.test.tsx | 2 +- .../OpJobPartitionsViewContent.test.tsx | 2 +- .../__tests__/SpanRepresentation.test.tsx | 2 +- .../types/BackfillMessaging.types.ts | 1 - .../types/BackfillSelector.types.ts | 1 - .../types/CreatePartitionDialog.types.ts | 1 - .../types/JobBackfillsTable.types.ts | 1 - .../types/OpJobPartitionsView.types.ts | 1 - .../types/PartitionRunList.types.ts | 1 - .../types/PartitionStepStatus.types.ts | 1 - .../partitions/types/useMatrixData.types.ts | 1 - .../types/usePartitionStepQuery.types.ts | 1 - .../ui-core/src/partitions/useMatrixData.tsx | 3 +- .../src/partitions/usePartitionStepQuery.tsx | 7 +- .../ui-core/src/pipelines/Description.tsx | 3 +- .../ui-core/src/pipelines/GraphExplorer.tsx | 16 +- .../ui-core/src/pipelines/GraphNotices.tsx | 5 +- .../src/pipelines/JobFeatureContext.tsx | 1 - .../ui-core/src/pipelines/JobTabs.tsx | 4 +- .../src/pipelines/LegacyPipelineTag.tsx | 3 +- .../pipelines/NonIdealPipelineQueryResult.tsx | 3 +- .../src/pipelines/PipelineExplorerRoot.tsx | 7 +- .../PipelineOrJobDisambiguationRoot.tsx | 1 - .../src/pipelines/PipelineOverviewRoot.tsx | 3 +- .../src/pipelines/PipelinePathUtils.tsx | 3 +- .../src/pipelines/PipelineReference.tsx | 4 +- .../ui-core/src/pipelines/PipelineRoot.tsx | 1 - .../src/pipelines/PipelineRunsRoot.tsx | 10 +- .../src/pipelines/SidebarComponents.tsx | 11 +- .../pipelines/SidebarContainerOverview.tsx | 12 +- .../ui-core/src/pipelines/SidebarOp.tsx | 8 +- .../src/pipelines/SidebarOpDefinition.tsx | 14 +- .../pipelines/SidebarOpExecutionGraphs.tsx | 6 +- .../src/pipelines/SidebarOpHelpers.tsx | 18 +- .../src/pipelines/SidebarOpInvocation.tsx | 4 +- .../src/pipelines/SidebarResourcesSection.tsx | 6 +- .../ui-core/src/pipelines/SidebarRoot.tsx | 4 +- .../pipelines/__tests__/PipelineNav.test.tsx | 2 +- .../__tests__/PipelineReference.test.tsx | 2 +- .../pipelines/__tests__/PipelineRoot.test.tsx | 2 +- .../pipelines/types/GraphExplorer.types.ts | 1 - .../types/PipelineExplorerRoot.types.ts | 1 - .../pipelines/types/PipelineRunsRoot.types.ts | 1 - .../types/SidebarContainerOverview.types.ts | 1 - .../src/pipelines/types/SidebarOp.types.ts | 1 - .../types/SidebarOpDefinition.types.ts | 1 - .../types/SidebarOpExecutionGraphs.types.ts | 1 - .../types/SidebarOpInvocation.types.ts | 1 - .../types/SidebarResourcesSection.types.ts | 1 - .../ui-core/src/pipelines/useJobTitle.tsx | 1 - .../src/plugins/__stories__/sql.stories.tsx | 2 +- .../packages/ui-core/src/plugins/generic.tsx | 3 +- .../packages/ui-core/src/plugins/sql.tsx | 3 +- .../ui-core/src/resources/ResourceRoot.tsx | 8 +- .../ui-core/src/resources/ResourceTabs.tsx | 3 +- .../src/resources/VirtualizedResourceRow.tsx | 8 +- .../resources/VirtualizedResourceTable.tsx | 3 +- .../src/resources/WorkspaceResourcesRoot.tsx | 4 +- .../src/resources/types/ResourceRoot.types.ts | 1 - .../types/WorkspaceResourcesRoot.types.ts | 1 - .../ui-core/src/runs/AssetTagCollections.tsx | 5 +- .../ui-core/src/runs/CapturedLogPanel.tsx | 4 +- .../src/runs/CellTruncationProvider.tsx | 3 +- .../ui-core/src/runs/ComputeLogPanel.tsx | 4 +- .../ui-core/src/runs/CreatedByTag.tsx | 4 +- .../ui-core/src/runs/DeletionDialog.tsx | 5 +- .../ui-core/src/runs/ExecutionStateDot.tsx | 3 +- .../ui-core/src/runs/LogFilterSelect.tsx | 5 +- .../ui-core/src/runs/LogsFilterInput.tsx | 15 +- .../ui-core/src/runs/LogsProvider.tsx | 14 +- .../packages/ui-core/src/runs/LogsRow.tsx | 6 +- .../ui-core/src/runs/LogsRowComponents.tsx | 14 +- .../src/runs/LogsRowStructuredContent.tsx | 8 +- .../ui-core/src/runs/LogsScrollingTable.tsx | 17 +- .../src/runs/LogsScrollingTableHeader.tsx | 3 +- .../packages/ui-core/src/runs/LogsToolbar.tsx | 16 +- .../ui-core/src/runs/QueuedRunsBanners.tsx | 4 +- .../ui-core/src/runs/RawLogContent.tsx | 35 +- .../ui-core/src/runs/ReexecutionDialog.tsx | 6 +- .../ui-core/src/runs/RepoSectionHeader.tsx | 5 +- .../packages/ui-core/src/runs/Run.tsx | 16 +- .../ui-core/src/runs/RunActionButtons.tsx | 6 +- .../ui-core/src/runs/RunActionsMenu.tsx | 20 +- .../ui-core/src/runs/RunConfigDialog.tsx | 5 +- .../ui-core/src/runs/RunFragments.tsx | 1 - .../ui-core/src/runs/RunHeaderActions.tsx | 6 +- .../packages/ui-core/src/runs/RunListTabs.tsx | 12 +- .../ui-core/src/runs/RunMetadataProvider.tsx | 3 +- .../packages/ui-core/src/runs/RunRoot.tsx | 8 +- .../packages/ui-core/src/runs/RunRow.tsx | 8 +- .../packages/ui-core/src/runs/RunStats.tsx | 6 +- .../ui-core/src/runs/RunStatusDots.tsx | 4 +- .../ui-core/src/runs/RunStatusPez.tsx | 8 +- .../ui-core/src/runs/RunStatusTag.tsx | 4 +- .../packages/ui-core/src/runs/RunTable.tsx | 4 +- .../packages/ui-core/src/runs/RunTag.tsx | 3 +- .../packages/ui-core/src/runs/RunTags.tsx | 4 +- .../packages/ui-core/src/runs/RunTimeline.tsx | 32 +- .../ui-core/src/runs/RunTimingDetails.tsx | 4 +- .../ui-core/src/runs/RunTimingTags.tsx | 4 +- .../packages/ui-core/src/runs/RunUtils.tsx | 5 +- .../ui-core/src/runs/RunsFilterInput.tsx | 18 +- .../packages/ui-core/src/runs/RunsRoot.tsx | 6 +- .../ui-core/src/runs/ScheduledRunListRoot.tsx | 10 +- .../ui-core/src/runs/StepLogsDialog.tsx | 8 +- .../src/runs/TerminateAllRunsButton.tsx | 4 +- .../ui-core/src/runs/TerminationDialog.tsx | 10 +- .../ui-core/src/runs/TickTagForRun.tsx | 4 +- .../packages/ui-core/src/runs/TimeElapsed.tsx | 3 +- .../packages/ui-core/src/runs/UserDisplay.tsx | 3 +- .../runs/__fixtures__/RunsRoot.fixtures.tsx | 2 +- .../runs/__stories__/CreatedByTag.stories.tsx | 5 +- .../__stories__/DeletionDialog.stories.tsx | 4 +- .../__stories__/LogFilterSelect.stories.tsx | 2 +- .../runs/__stories__/RunStatus.stories.tsx | 5 +- .../runs/__stories__/RunStatusPez.stories.tsx | 5 +- .../runs/__stories__/RunTimeline.stories.tsx | 2 +- .../__stories__/TerminationDialog.stories.tsx | 4 +- .../runs/__stories__/TimeElapsed.stories.tsx | 4 +- .../__tests__/AssetKeyTagCollection.test.tsx | 2 +- .../runs/__tests__/ReexecutionDialog.test.tsx | 2 +- .../runs/__tests__/RunActionButtons.test.tsx | 2 +- .../runs/__tests__/RunActionsMenu.test.tsx | 2 +- .../runs/__tests__/RunFilterInput.test.tsx | 6 +- .../runs/__tests__/RunTimingDetails.test.tsx | 2 +- .../runs/__tests__/TerminationDialog.test.tsx | 2 +- .../__tests__/batchRunsForTimeline.test.tsx | 2 +- .../types/RunActionButtonsTestQuery.types.ts | 1 - .../useQueryPersistedLogFilter.test.tsx | 4 +- .../src/runs/mergeStatusToBackground.tsx | 2 +- .../src/runs/types/CapturedLogPanel.types.ts | 1 - .../src/runs/types/LogsProvider.types.ts | 1 - .../ui-core/src/runs/types/LogsRow.types.ts | 1 - .../runs/types/LogsScrollingTable.types.ts | 1 - .../src/runs/types/QueuedRunsBanners.types.ts | 1 - .../src/runs/types/RunActionsMenu.types.ts | 1 - .../src/runs/types/RunFragments.types.ts | 1 - .../src/runs/types/RunListTabs.types.ts | 1 - .../runs/types/RunMetadataProvider.types.ts | 1 - .../ui-core/src/runs/types/RunRoot.types.ts | 1 - .../ui-core/src/runs/types/RunStats.types.ts | 1 - .../ui-core/src/runs/types/RunTable.types.ts | 1 - .../src/runs/types/RunTimingDetails.types.ts | 1 - .../ui-core/src/runs/types/RunUtils.types.ts | 1 - .../src/runs/types/RunsFilterInput.types.ts | 1 - .../ui-core/src/runs/types/RunsRoot.types.ts | 1 - .../runs/types/ScheduledRunListRoot.types.ts | 1 - .../types/TerminateAllRunsButton.types.ts | 1 - .../src/runs/types/useComputeLogs.types.ts | 1 - .../runs/types/useRunsForTimeline.types.ts | 1 - .../runs/useComputeLogFileKeyForSelection.tsx | 3 +- .../ui-core/src/runs/useComputeLogs.tsx | 3 +- .../src/runs/useCursorPaginatedQuery.tsx | 5 +- .../runs/useJobAvailabilityErrorForRun.tsx | 3 +- .../ui-core/src/runs/useJobReExecution.tsx | 5 +- .../src/runs/useQueryPersistedLogFilter.ts | 4 +- .../ui-core/src/runs/useRunsForTimeline.tsx | 7 +- .../ui-core/src/runs/useTagPinning.tsx | 1 - .../src/schedules/ScheduleBulkActionMenu.tsx | 4 +- .../ui-core/src/schedules/ScheduleDetails.tsx | 14 +- .../src/schedules/ScheduleMutations.tsx | 3 +- .../src/schedules/SchedulePartitionStatus.tsx | 12 +- .../ui-core/src/schedules/ScheduleRoot.tsx | 8 +- .../schedules/ScheduleStateChangeDialog.tsx | 6 +- .../ui-core/src/schedules/ScheduleSwitch.tsx | 6 +- .../ui-core/src/schedules/SchedulerInfo.tsx | 3 +- .../src/schedules/SchedulesNextTicks.tsx | 22 +- .../ui-core/src/schedules/SchedulesTable.tsx | 3 +- .../src/schedules/TimestampDisplay.tsx | 3 +- .../__tests__/ScheduleBulkActionMenu.test.tsx | 2 +- .../ScheduleStateChangeDialog.test.tsx | 8 +- .../types/ScheduleMutations.types.ts | 1 - .../types/SchedulePartitionStatus.types.ts | 1 - .../src/schedules/types/ScheduleRoot.types.ts | 1 - .../schedules/types/ScheduleSwitch.types.ts | 1 - .../schedules/types/ScheduleUtils.types.ts | 1 - .../types/SchedulesNextTicks.types.ts | 1 - .../ui-core/src/scripts/DownloadMocks.ts | 6 +- .../src/scripts/generateGraphQLTypes.ts | 1 - .../ui-core/src/search/SearchDialog.tsx | 24 +- .../ui-core/src/search/SearchResults.tsx | 17 +- .../__stories__/SearchDialog.stories.tsx | 2 +- .../src/search/types/useGlobalSearch.types.ts | 1 - .../ui-core/src/search/useGlobalSearch.tsx | 3 +- .../ui-core/src/sensors/EditCursorDialog.tsx | 11 +- .../src/sensors/SensorBulkActionMenu.tsx | 4 +- .../ui-core/src/sensors/SensorDetails.tsx | 10 +- .../ui-core/src/sensors/SensorInfo.tsx | 3 +- .../src/sensors/SensorMonitoredAssets.tsx | 3 +- .../ui-core/src/sensors/SensorMutations.tsx | 3 +- .../src/sensors/SensorPageAutomaterialize.tsx | 4 +- .../src/sensors/SensorPreviousRuns.tsx | 6 +- .../ui-core/src/sensors/SensorRoot.tsx | 14 +- .../src/sensors/SensorStateChangeDialog.tsx | 6 +- .../ui-core/src/sensors/SensorSwitch.tsx | 6 +- .../ui-core/src/sensors/SensorTargetList.tsx | 3 +- .../SensorStateChangeDialog.stories.tsx | 5 +- .../SensorStateChangeDialog.test.tsx | 8 +- .../types/AssetSensorTicksQuery.types.ts | 1 - .../sensors/types/EditCursorDialog.types.ts | 1 - .../src/sensors/types/SensorFragment.types.ts | 1 - .../sensors/types/SensorMutations.types.ts | 1 - .../sensors/types/SensorPreviousRuns.types.ts | 1 - .../src/sensors/types/SensorRoot.types.ts | 1 - .../src/sensors/types/SensorSwitch.types.ts | 1 - .../ui-core/src/snapshots/SnapshotNav.tsx | 8 +- .../ui-core/src/snapshots/SnapshotRoot.tsx | 1 - .../src/snapshots/types/SnapshotNav.types.ts | 1 - .../src/testing/ApolloTestProvider.tsx | 3 +- .../packages/ui-core/src/testing/SVGMocks.ts | 1 - .../ui-core/src/testing/StorybookProvider.tsx | 3 +- .../ui-core/src/testing/TestProvider.tsx | 5 +- .../ui-core/src/ticks/DryRunRequestTable.tsx | 4 +- .../src/ticks/DynamicPartitionRequests.tsx | 4 +- .../src/ticks/EvaluateScheduleDialog.tsx | 6 +- .../ui-core/src/ticks/SensorDryRunDialog.tsx | 6 +- .../ui-core/src/ticks/TickLogDialog.tsx | 20 +- .../ui-core/src/ticks/TickStatusTag.tsx | 15 +- .../DryRunRequestTable.fixtures.tsx | 2 +- .../__tests__/DryRunRequestTable.test.tsx | 2 +- .../__tests__/EvaluateScheduleDialog.test.tsx | 2 +- .../__tests__/SensorDryRunDialog.test.tsx | 4 +- .../types/EvaluateScheduleDialog.types.ts | 1 - .../ticks/types/RunRequestFragment.types.ts | 1 - .../ticks/types/SensorDryRunDialog.types.ts | 1 - .../src/ticks/types/TickLogDialog.types.ts | 1 - .../ui-core/src/typeexplorer/TypeExplorer.tsx | 6 +- .../typeexplorer/TypeExplorerContainer.tsx | 5 +- .../ui-core/src/typeexplorer/TypeList.tsx | 6 +- .../src/typeexplorer/TypeListContainer.tsx | 6 +- .../src/typeexplorer/TypeWithTooltip.tsx | 5 +- .../types/ConfigTypeSchema.types.ts | 1 - .../typeexplorer/types/TypeExplorer.types.ts | 1 - .../types/TypeExplorerContainer.types.ts | 1 - .../src/typeexplorer/types/TypeList.types.ts | 1 - .../types/TypeListContainer.types.ts | 1 - .../types/TypeWithTooltip.types.ts | 1 - .../packages/ui-core/src/ui/AnchorButton.tsx | 5 +- .../packages/ui-core/src/ui/CheckAllBox.tsx | 3 +- .../packages/ui-core/src/ui/ClearButton.tsx | 3 +- .../src/ui/Filters/DateRangePickerWrapper.tsx | 12 +- .../ui-core/src/ui/Filters/FilterDropdown.tsx | 10 +- .../__stories__/useFilters.stories.tsx | 3 +- .../__tests__/useStaticSetFilter.test.tsx | 3 +- .../__tests__/useSuggestionFilter.test.tsx | 2 +- .../__tests__/useTimeRangeFilter.test.tsx | 11 +- .../src/ui/Filters/useCodeLocationFilter.tsx | 1 - .../ui-core/src/ui/Filters/useFilter.tsx | 5 +- .../ui/Filters/useInstigationStatusFilter.tsx | 1 - .../src/ui/Filters/useStaticSetFilter.tsx | 4 +- .../src/ui/Filters/useSuggestionFilter.tsx | 4 +- .../src/ui/Filters/useTimeRangeFilter.tsx | 22 +- .../ui-core/src/ui/GraphQueryInput.tsx | 33 +- .../packages/ui-core/src/ui/Loading.tsx | 3 +- .../packages/ui-core/src/ui/Markdown.tsx | 3 +- .../ui-core/src/ui/MarkdownWithPlugins.tsx | 3 +- .../packages/ui-core/src/ui/MenuLink.tsx | 11 +- .../ui-core/src/ui/NotebookButton.tsx | 7 +- .../ui-core/src/ui/SearchInputSpinner.tsx | 3 +- .../ui-core/src/ui/SectionedLeftNav.tsx | 12 +- .../ui-core/src/ui/StickyTableContainer.tsx | 3 +- .../packages/ui-core/src/ui/TabLink.tsx | 3 +- .../packages/ui-core/src/ui/TagActions.tsx | 9 +- .../packages/ui-core/src/ui/TimeFromNow.tsx | 5 +- .../ui-core/src/ui/ToggleableSection.tsx | 3 +- .../src/ui/VirtualizedItemListForDialog.tsx | 5 +- .../ui-core/src/ui/VirtualizedTable.tsx | 3 +- .../ui/__stories__/AnchorButton.stories.tsx | 5 +- .../src/ui/__stories__/Markdown.stories.tsx | 2 +- .../__stories__/SectionedLeftNav.stories.tsx | 2 +- .../ui/__tests__/useFormatDateTime.test.tsx | 2 +- .../__tests__/useRepoExpansionState.test.tsx | 2 +- .../src/workers/dagre_layout.worker.ts | 1 - .../ui-core/src/workers/fuseSearch.worker.ts | 1 - .../src/workspace/CodeLocationMenu.tsx | 5 +- .../src/workspace/CodeLocationRowSet.tsx | 8 +- .../src/workspace/CodeLocationSource.tsx | 3 +- .../ui-core/src/workspace/GraphRoot.tsx | 8 +- .../src/workspace/GuessJobLocationRoot.tsx | 8 +- .../ui-core/src/workspace/ReloadAllButton.tsx | 4 +- .../src/workspace/RepositoryCountTags.tsx | 4 +- .../src/workspace/RepositoryInformation.tsx | 2 +- .../RepositoryLocationErrorDialog.tsx | 3 +- .../src/workspace/RepositoryLocationsList.tsx | 6 +- .../src/workspace/VirtualizedAssetRow.tsx | 8 +- .../src/workspace/VirtualizedAssetTable.tsx | 3 +- .../workspace/VirtualizedCodeLocationRow.tsx | 4 +- .../src/workspace/VirtualizedGraphTable.tsx | 6 +- .../src/workspace/VirtualizedJobRow.tsx | 8 +- .../src/workspace/VirtualizedJobTable.tsx | 3 +- .../workspace/VirtualizedRepoAssetTable.tsx | 10 +- .../src/workspace/VirtualizedScheduleRow.tsx | 12 +- .../workspace/VirtualizedScheduleTable.tsx | 3 +- .../src/workspace/VirtualizedSensorRow.tsx | 12 +- .../src/workspace/VirtualizedSensorTable.tsx | 3 +- .../workspace/VirtualizedWorkspaceTable.tsx | 6 +- .../src/workspace/WorkspaceAssetsRoot.tsx | 4 +- .../src/workspace/WorkspaceContext.tsx | 3 +- .../src/workspace/WorkspaceGraphsRoot.tsx | 4 +- .../ui-core/src/workspace/WorkspaceHeader.tsx | 10 +- .../src/workspace/WorkspaceJobsRoot.tsx | 4 +- .../src/workspace/WorkspaceOpsRoot.tsx | 4 +- .../ui-core/src/workspace/WorkspaceRoot.tsx | 4 +- .../src/workspace/WorkspaceSchedulesRoot.tsx | 4 +- .../src/workspace/WorkspaceSensorsRoot.tsx | 4 +- .../ui-core/src/workspace/WorkspaceTabs.tsx | 4 +- .../VirtualizedJobTable.stories.tsx | 5 +- .../__tests__/CodeLocationSource.test.tsx | 2 +- .../__tests__/buildRepoAddress.test.ts | 2 +- .../src/workspace/repoAddressFromPath.ts | 2 +- .../src/workspace/repoAddressToSelector.tsx | 1 - .../src/workspace/types/GraphRoot.types.ts | 1 - .../types/RepositoryInformation.types.ts | 1 - .../types/VirtualizedAssetRow.types.ts | 1 - .../types/VirtualizedGraphTable.types.ts | 1 - .../types/VirtualizedJobRow.types.ts | 1 - .../types/VirtualizedRepoAssetTable.types.ts | 1 - .../types/VirtualizedScheduleRow.types.ts | 1 - .../types/VirtualizedSensorRow.types.ts | 1 - .../types/WorkspaceAssetsRoot.types.ts | 1 - .../workspace/types/WorkspaceContext.types.ts | 1 - .../types/WorkspaceGraphsRoot.types.ts | 1 - .../types/WorkspaceJobsRoot.types.ts | 1 - .../types/WorkspaceSchedulesRoot.types.ts | 1 - .../types/WorkspaceSensorsRoot.types.ts | 1 - .../ui-core/src/workspace/workspacePath.ts | 1 - js_modules/dagster-ui/tox.ini | 4 +- js_modules/dagster-ui/yarn.lock | 78 ++- 912 files changed, 2597 insertions(+), 2179 deletions(-) diff --git a/js_modules/dagster-ui/.prettierrc.js b/js_modules/dagster-ui/.prettierrc.js index 520c97e734cd3..5bf4531d9fc40 100644 --- a/js_modules/dagster-ui/.prettierrc.js +++ b/js_modules/dagster-ui/.prettierrc.js @@ -3,4 +3,11 @@ module.exports = { printWidth: 100, singleQuote: true, trailingComma: 'all', + + // https://github.com/trivago/prettier-plugin-sort-imports + importOrder: ['^@dagster-io/(.*)$', '^[./]'], + importOrderSeparation: true, + importOrderSortSpecifiers: true, + importOrderGroupNamespaceSpecifiers: true, + plugins: ["@trivago/prettier-plugin-sort-imports"] }; diff --git a/js_modules/dagster-ui/package.json b/js_modules/dagster-ui/package.json index 05df212e9d8da..3dea5edc37bf4 100644 --- a/js_modules/dagster-ui/package.json +++ b/js_modules/dagster-ui/package.json @@ -8,6 +8,7 @@ "build-with-profiling": "yarn workspace @dagster-io/app-oss build --profile && yarn post-build", "post-build": "cd ../../python_modules/dagster-webserver/dagster_webserver && rm -rf webapp && mkdir -p webapp && cp -r ../../../js_modules/dagster-ui/packages/app-oss/build ./webapp/ && mkdir -p webapp/build/vendor && cp -r graphql-playground ./webapp/build/vendor && cp ../../../js_modules/dagster-ui/packages/app-oss/csp-header.txt ./webapp/build", "lint": "yarn workspace @dagster-io/app-oss lint && yarn workspace @dagster-io/ui-core lint && yarn workspace @dagster-io/ui-components lint", + "format": "yarn workspace @dagster-io/app-oss format && yarn workspace @dagster-io/ui-core format && yarn workspace @dagster-io/ui-components format", "start": "yarn workspace @dagster-io/app-oss start", "ts": "yarn workspace @dagster-io/app-oss ts && yarn workspace @dagster-io/ui-components ts", "postinstall": "patch-package" diff --git a/js_modules/dagster-ui/packages/app-oss/.prettierrc.js b/js_modules/dagster-ui/packages/app-oss/.prettierrc.js index 520c97e734cd3..aa8a10aad6070 100644 --- a/js_modules/dagster-ui/packages/app-oss/.prettierrc.js +++ b/js_modules/dagster-ui/packages/app-oss/.prettierrc.js @@ -3,4 +3,11 @@ module.exports = { printWidth: 100, singleQuote: true, trailingComma: 'all', + + // https://github.com/trivago/prettier-plugin-sort-imports + importOrder: ['^@dagster-io/(.*)$', '^[./]'], + importOrderSeparation: true, + importOrderSortSpecifiers: true, + importOrderGroupNamespaceSpecifiers: true, + plugins: ['@trivago/prettier-plugin-sort-imports'], }; diff --git a/js_modules/dagster-ui/packages/app-oss/package.json b/js_modules/dagster-ui/packages/app-oss/package.json index 3a902725c838a..9e889f5cf25e5 100644 --- a/js_modules/dagster-ui/packages/app-oss/package.json +++ b/js_modules/dagster-ui/packages/app-oss/package.json @@ -29,6 +29,7 @@ }, "devDependencies": { "@dagster-io/eslint-config": "workspace:*", + "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/jest": "^29.5.11", "@types/node": "^16.11.20", "@types/react": "^18.2.0", @@ -51,6 +52,7 @@ "start": "next dev", "build": "next build", "lint": "eslint src/ --ext=.tsx,.ts,.js --fix -c .eslintrc.js", + "format": "prettier -w --config ./.prettierrc.js .", "test": "jest", "ts": "tsc -p .", "analyze": "webpack-bundle-analyzer '.next/webpack-stats.json'" diff --git a/js_modules/dagster-ui/packages/app-oss/src/App.tsx b/js_modules/dagster-ui/packages/app-oss/src/App.tsx index 7d2ac4e68c901..b1227487318c4 100644 --- a/js_modules/dagster-ui/packages/app-oss/src/App.tsx +++ b/js_modules/dagster-ui/packages/app-oss/src/App.tsx @@ -1,3 +1,5 @@ +import React from 'react'; + import {App} from '@dagster-io/ui-core/app/App'; import {createAppCache} from '@dagster-io/ui-core/app/AppCache'; import {errorLink, setupErrorToasts} from '@dagster-io/ui-core/app/AppError'; @@ -8,7 +10,6 @@ import {UserSettingsButton} from '@dagster-io/ui-core/app/UserSettingsButton'; import {logLink, timeStartLink} from '@dagster-io/ui-core/app/apolloLinks'; import {LiveDataPollRateContext} from '@dagster-io/ui-core/asset-data/AssetLiveDataProvider'; import {DeploymentStatusType} from '@dagster-io/ui-core/instance/DeploymentStatusProvider'; -import React from 'react'; import {CommunityNux} from './NUX/CommunityNux'; import {extractInitializationData} from './extractInitializationData'; diff --git a/js_modules/dagster-ui/packages/app-oss/src/NUX/CommunityNux.tsx b/js_modules/dagster-ui/packages/app-oss/src/NUX/CommunityNux.tsx index 233f77e1cf296..a8f11d387885b 100644 --- a/js_modules/dagster-ui/packages/app-oss/src/NUX/CommunityNux.tsx +++ b/js_modules/dagster-ui/packages/app-oss/src/NUX/CommunityNux.tsx @@ -1,4 +1,7 @@ import {gql, useMutation, useQuery} from '@apollo/client'; +import React from 'react'; +import isEmail from 'validator/lib/isEmail'; + import { Body, Box, @@ -16,8 +19,6 @@ import { colorTextRed, } from '@dagster-io/ui-components'; import {useStateWithStorage} from '@dagster-io/ui-core/hooks/useStateWithStorage'; -import React from 'react'; -import isEmail from 'validator/lib/isEmail'; export const CommunityNux = () => { const [didDismissCommunityNux, dissmissInBrowser] = useStateWithStorage( diff --git a/js_modules/dagster-ui/packages/app-oss/src/pages/_document.tsx b/js_modules/dagster-ui/packages/app-oss/src/pages/_document.tsx index 4111160df449a..0e392e6145953 100644 --- a/js_modules/dagster-ui/packages/app-oss/src/pages/_document.tsx +++ b/js_modules/dagster-ui/packages/app-oss/src/pages/_document.tsx @@ -1,7 +1,6 @@ import fs from 'fs'; +import {Head, Html, Main, NextScript} from 'next/document'; import path from 'path'; - -import {Html, Head, Main, NextScript} from 'next/document'; import React from 'react'; function getSecurityPolicy() { diff --git a/js_modules/dagster-ui/packages/app-oss/src/telemetryLink.tsx b/js_modules/dagster-ui/packages/app-oss/src/telemetryLink.tsx index 27f37fdb26a3e..ad10e6bbad128 100644 --- a/js_modules/dagster-ui/packages/app-oss/src/telemetryLink.tsx +++ b/js_modules/dagster-ui/packages/app-oss/src/telemetryLink.tsx @@ -1,4 +1,5 @@ import {ApolloLink} from '@apollo/client'; + import {TelemetryAction, logTelemetry} from '@dagster-io/ui-core/app/Telemetry'; const TELEMETRY_WHITELIST = new Set([ diff --git a/js_modules/dagster-ui/packages/eslint-config/.prettierrc.js b/js_modules/dagster-ui/packages/eslint-config/.prettierrc.js index 520c97e734cd3..aa8a10aad6070 100644 --- a/js_modules/dagster-ui/packages/eslint-config/.prettierrc.js +++ b/js_modules/dagster-ui/packages/eslint-config/.prettierrc.js @@ -3,4 +3,11 @@ module.exports = { printWidth: 100, singleQuote: true, trailingComma: 'all', + + // https://github.com/trivago/prettier-plugin-sort-imports + importOrder: ['^@dagster-io/(.*)$', '^[./]'], + importOrderSeparation: true, + importOrderSortSpecifiers: true, + importOrderGroupNamespaceSpecifiers: true, + plugins: ['@trivago/prettier-plugin-sort-imports'], }; diff --git a/js_modules/dagster-ui/packages/eslint-config/package.json b/js_modules/dagster-ui/packages/eslint-config/package.json index 8bf47633f4945..3e2c63760c08e 100644 --- a/js_modules/dagster-ui/packages/eslint-config/package.json +++ b/js_modules/dagster-ui/packages/eslint-config/package.json @@ -26,6 +26,7 @@ "eslint-plugin-react-hooks": "^4.6.0" }, "devDependencies": { + "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/jest": "^29.5.11", "eslint": "^8.49.0", "jest": "^29.7.0", diff --git a/js_modules/dagster-ui/packages/ui-components/.babelrc b/js_modules/dagster-ui/packages/ui-components/.babelrc index b399b41474b7b..1d7bfea27d2ac 100644 --- a/js_modules/dagster-ui/packages/ui-components/.babelrc +++ b/js_modules/dagster-ui/packages/ui-components/.babelrc @@ -1,7 +1,8 @@ { "presets": [ [ - "@babel/preset-env", { + "@babel/preset-env", + { "useBuiltIns": "entry", "corejs": 3 } diff --git a/js_modules/dagster-ui/packages/ui-components/.prettierrc.js b/js_modules/dagster-ui/packages/ui-components/.prettierrc.js index fccca4efde50a..aa8a10aad6070 100644 --- a/js_modules/dagster-ui/packages/ui-components/.prettierrc.js +++ b/js_modules/dagster-ui/packages/ui-components/.prettierrc.js @@ -2,5 +2,12 @@ module.exports = { bracketSpacing: false, printWidth: 100, singleQuote: true, - trailingComma: 'all' + trailingComma: 'all', + + // https://github.com/trivago/prettier-plugin-sort-imports + importOrder: ['^@dagster-io/(.*)$', '^[./]'], + importOrderSeparation: true, + importOrderSortSpecifiers: true, + importOrderGroupNamespaceSpecifiers: true, + plugins: ['@trivago/prettier-plugin-sort-imports'], }; diff --git a/js_modules/dagster-ui/packages/ui-components/.storybook/blueprint.css b/js_modules/dagster-ui/packages/ui-components/.storybook/blueprint.css index 65d28041a1cd4..e660c5ae13762 100644 --- a/js_modules/dagster-ui/packages/ui-components/.storybook/blueprint.css +++ b/js_modules/dagster-ui/packages/ui-components/.storybook/blueprint.css @@ -1,3 +1,3 @@ @import '@blueprintjs/core/lib/css/blueprint.css'; @import '@blueprintjs/select/lib/css/blueprint-select.css'; -@import '@blueprintjs/popover2/lib/css/blueprint-popover2.css'; \ No newline at end of file +@import '@blueprintjs/popover2/lib/css/blueprint-popover2.css'; diff --git a/js_modules/dagster-ui/packages/ui-components/.storybook/preview.js b/js_modules/dagster-ui/packages/ui-components/.storybook/preview.js index 6ff3f49d91e39..06b5b5c68d5f7 100644 --- a/js_modules/dagster-ui/packages/ui-components/.storybook/preview.js +++ b/js_modules/dagster-ui/packages/ui-components/.storybook/preview.js @@ -1,26 +1,24 @@ +import * as React from 'react'; +import {MemoryRouter} from 'react-router-dom'; +import {createGlobalStyle} from 'styled-components/macro'; + import { FontFamily, - GlobalInter, - GlobalInconsolata, GlobalDialogStyle, + GlobalInconsolata, + GlobalInter, GlobalPopoverStyle, GlobalSuggestStyle, GlobalToasterStyle, GlobalTooltipStyle, } from '../src'; - -import {MemoryRouter} from 'react-router-dom'; -import * as React from 'react'; - -import {createGlobalStyle} from 'styled-components/macro'; - -import './blueprint.css'; import { colorBackgroundDefault, colorLinkDefault, colorTextDefault, colorTextLight, } from '../src/theme/color'; +import './blueprint.css'; const GlobalStyle = createGlobalStyle` * { diff --git a/js_modules/dagster-ui/packages/ui-components/package.json b/js_modules/dagster-ui/packages/ui-components/package.json index 59e72a541b962..542a40f6b8fdf 100644 --- a/js_modules/dagster-ui/packages/ui-components/package.json +++ b/js_modules/dagster-ui/packages/ui-components/package.json @@ -15,6 +15,7 @@ "prepublish": "yarn lint && yarn ts && yarn jest", "build": "rm -rf lib && tsc -p ./tsconfig.build.json && yarn rollup -c rollup.config.js", "lint": "eslint src/ --ext=.tsx,.ts,.js --fix -c .eslintrc.js", + "format": "prettier -w --config ./.prettierrc.js .", "jest": "jest", "jest-all-silent": "yarn jest --silent --watchAll=false", "ts": "tsc -p .", @@ -65,6 +66,7 @@ "@testing-library/jest-dom": "^6.1.5", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.4.3", + "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/babel__core": "^7", "@types/babel__preset-env": "^7", "@types/codemirror": "^5.60.5", diff --git a/js_modules/dagster-ui/packages/ui-components/rollup.config.js b/js_modules/dagster-ui/packages/ui-components/rollup.config.js index a462dac04bfbf..ec6d31b84f8c3 100644 --- a/js_modules/dagster-ui/packages/ui-components/rollup.config.js +++ b/js_modules/dagster-ui/packages/ui-components/rollup.config.js @@ -1,5 +1,4 @@ /* eslint-disable import/no-default-export */ - import babel from '@rollup/plugin-babel'; import commonjs from '@rollup/plugin-commonjs'; import image from '@rollup/plugin-image'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Alert.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Alert.tsx index 0c30b6f672f3e..42419feb149f6 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Alert.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Alert.tsx @@ -15,10 +15,9 @@ import { colorTextRed, colorTextYellow, } from '../theme/color'; - import {Box} from './Box'; import {Group} from './Group'; -import {IconName, Icon} from './Icon'; +import {Icon, IconName} from './Icon'; export type AlertIntent = 'info' | 'warning' | 'error' | 'success'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/BaseButton.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/BaseButton.tsx index 22e50cca040a9..b139b1979a30c 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/BaseButton.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/BaseButton.tsx @@ -7,7 +7,6 @@ import { colorBackgroundDefaultHover, colorTextDefault, } from '../theme/color'; - import {StyledButton, StyledButtonText} from './StyledButton'; interface CommonButtonProps { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/BaseTag.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/BaseTag.tsx index e886cd9c0a081..4b671ad985cf8 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/BaseTag.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/BaseTag.tsx @@ -7,7 +7,6 @@ import { colorTooltipBackground, colorTooltipText, } from '../theme/color'; - import {IconWrapper} from './Icon'; import {SpinnerWrapper} from './Spinner'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Box.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Box.tsx index 2af1214deb703..fda1d9e4c4b79 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Box.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Box.tsx @@ -2,7 +2,6 @@ import styled, {css} from 'styled-components'; import {colorKeylineDefault} from '../theme/color'; import {assertUnreachable} from '../util/assertUnreachable'; - import {BorderSetting, BorderSide, DirectionalSpacing, FlexProperties} from './types'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Button.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Button.tsx index 64a61509f0339..d1da41cb0ff26 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Button.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Button.tsx @@ -1,6 +1,6 @@ // eslint-disable-next-line no-restricted-imports -import {AnchorButton as BlueprintAnchorButton, Button as BlueprintButton} from '@blueprintjs/core'; import * as React from 'react'; +import {AnchorButton as BlueprintAnchorButton, Button as BlueprintButton} from '@blueprintjs/core'; import styled from 'styled-components'; import {CoreColors} from '../palettes/Colors'; @@ -17,13 +17,12 @@ import { colorAccentYellowHover, colorBackgroundGray, colorBackgroundGreen, + colorBackgroundLightHover, colorBackgroundRed, colorBackgroundYellow, colorBorderDefault, colorBorderHover, - colorBackgroundLightHover, } from '../theme/color'; - import {BaseButton} from './BaseButton'; import {Spinner} from './Spinner'; import {StyledButton, StyledButtonText} from './StyledButton'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/ButtonGroup.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/ButtonGroup.tsx index bc171153f0315..4d7e32d3fe822 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/ButtonGroup.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/ButtonGroup.tsx @@ -1,10 +1,9 @@ import * as React from 'react'; -import {colorBackgroundLighterHover, colorTextLight, colorTextDefault} from '../theme/color'; - +import {colorBackgroundLighterHover, colorTextDefault, colorTextLight} from '../theme/color'; import {BaseButton} from './BaseButton'; import {JoinedButtons, buildColorSet} from './Button'; -import {IconName, Icon} from './Icon'; +import {Icon, IconName} from './Icon'; import {Tooltip} from './Tooltip'; export type ButtonGroupItem = { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/ButtonLink.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/ButtonLink.tsx index a31f54d5b6572..59b23f97b1758 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/ButtonLink.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/ButtonLink.tsx @@ -2,7 +2,6 @@ import * as React from 'react'; import styled, {css} from 'styled-components'; import {colorLinkDefault} from '../theme/color'; - import {Box} from './Box'; type Color = diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Checkbox.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Checkbox.tsx index 7aec68f17719a..7dcda2a852d89 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Checkbox.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Checkbox.tsx @@ -4,16 +4,16 @@ import styled, {css} from 'styled-components'; import { colorAccentBlue, + colorAccentBlueHover, colorAccentGray, - colorAccentWhite, colorAccentReversed, + colorAccentWhite, colorBackgroundDefault, colorBackgroundGray, + colorFocusRing, colorTextDefault, colorTextDisabled, colorTextLighter, - colorFocusRing, - colorAccentBlueHover, } from '../theme/color'; type Format = 'check' | 'star' | 'switch'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/ConfigEditorWithSchema.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/ConfigEditorWithSchema.tsx index 2d02715a9cad8..576d3d294b80c 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/ConfigEditorWithSchema.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/ConfigEditorWithSchema.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import {createGlobalStyle} from 'styled-components'; import {Box} from './Box'; -import {ConfigSchema, ConfigEditorHandle, NewConfigEditor} from './NewConfigEditor'; +import {ConfigEditorHandle, ConfigSchema, NewConfigEditor} from './NewConfigEditor'; import {Spinner} from './Spinner'; import {SplitPanelContainer} from './SplitPanelContainer'; import {ConfigEditorHelp} from './configeditor/ConfigEditorHelp'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/ConfigTypeSchema.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/ConfigTypeSchema.tsx index 7f2663452a6f0..a104c07f5fc63 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/ConfigTypeSchema.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/ConfigTypeSchema.tsx @@ -14,7 +14,6 @@ import { colorTooltipBackground, colorTooltipText, } from '../theme/color'; - import {Popover} from './Popover'; import {ConfigSchema_allConfigTypes as TypeData} from './configeditor/types/ConfigSchema'; import {FontFamily} from './styles'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/DagsterCodeMirrorStyle.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/DagsterCodeMirrorStyle.tsx index 12cd605a4f7d9..dd3380fc60a91 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/DagsterCodeMirrorStyle.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/DagsterCodeMirrorStyle.tsx @@ -2,26 +2,25 @@ import {createGlobalStyle} from 'styled-components'; import { colorAccentRed, - colorBorderDefault, - colorBackgroundDefault, colorBackgroundBlue, + colorBackgroundBlueHover, colorBackgroundCyan, + colorBackgroundDefault, colorBackgroundGray, colorBackgroundGreen, + colorBackgroundLight, colorBackgroundOlive, colorBackgroundRed, colorBackgroundYellow, - colorTextLight, + colorBorderDefault, colorTextBlue, colorTextCyan, + colorTextDefault, colorTextGreen, + colorTextLight, colorTextRed, colorTextYellow, - colorTextDefault, - colorBackgroundLight, - colorBackgroundBlueHover, } from '../theme/color'; - import {Icons} from './Icon'; import {FontFamily} from './styles'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Dialog.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Dialog.tsx index 8e3fd1e4e7322..d1585b00f431c 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Dialog.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Dialog.tsx @@ -1,6 +1,6 @@ // eslint-disable-next-line no-restricted-imports -import {Dialog as BlueprintDialog} from '@blueprintjs/core'; import * as React from 'react'; +import {Dialog as BlueprintDialog} from '@blueprintjs/core'; import styled, {createGlobalStyle} from 'styled-components'; import { @@ -9,11 +9,10 @@ import { colorDialogBackground, colorShadowDefault, } from '../theme/color'; - import {Box} from './Box'; import {ErrorBoundary} from './ErrorBoundary'; import {Group} from './Group'; -import {IconName, Icon} from './Icon'; +import {Icon, IconName} from './Icon'; interface Props extends Omit< diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/ErrorBoundary.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/ErrorBoundary.tsx index 4319113018473..bfc41c393d91f 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/ErrorBoundary.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/ErrorBoundary.tsx @@ -2,7 +2,6 @@ import React from 'react'; import styled from 'styled-components'; import {colorAccentRed, colorTextLight} from '../theme/color'; - import {Box} from './Box'; import {Body, Subheading} from './Text'; import {FontFamily} from './styles'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Menu.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Menu.tsx index 2d720687877a2..c2342e7445fc0 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Menu.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Menu.tsx @@ -1,11 +1,11 @@ /* eslint-disable no-restricted-imports */ +import * as React from 'react'; import { - Intent, Menu as BlueprintMenu, MenuDivider as BlueprintMenuDivider, MenuItem as BlueprintMenuItem, + Intent, } from '@blueprintjs/core'; -import * as React from 'react'; import styled from 'styled-components'; import { @@ -14,15 +14,14 @@ import { colorAccentGreen, colorAccentRed, colorAccentYellow, + colorBackgroundBlue, colorKeylineDefault, - colorTextDefault, - colorTextLight, colorPopoverBackground, colorPopoverBackgroundHover, - colorBackgroundBlue, + colorTextDefault, + colorTextLight, } from '../theme/color'; - -import {IconName, Icon, IconWrapper} from './Icon'; +import {Icon, IconName, IconWrapper} from './Icon'; interface Props extends React.ComponentProps {} diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/MiddleTruncate.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/MiddleTruncate.tsx index f5231c2dfd058..0fcf59d782d1a 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/MiddleTruncate.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/MiddleTruncate.tsx @@ -1,5 +1,5 @@ -import useResizeObserver from '@react-hook/resize-observer'; import * as React from 'react'; +import useResizeObserver from '@react-hook/resize-observer'; import styled from 'styled-components'; import {calculateMiddleTruncation} from './calculateMiddleTruncation'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/NewConfigEditor.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/NewConfigEditor.tsx index 803407a5fb58c..7e214f848351a 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/NewConfigEditor.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/NewConfigEditor.tsx @@ -1,3 +1,5 @@ +import * as React from 'react'; +import * as yaml from 'yaml'; import 'codemirror/addon/comment/comment'; import 'codemirror/addon/dialog/dialog'; import 'codemirror/addon/fold/foldgutter'; @@ -10,21 +12,17 @@ import 'codemirror/addon/search/jump-to-line'; import 'codemirror/addon/search/search'; import 'codemirror/addon/search/searchcursor'; import 'codemirror/keymap/sublime'; - import debounce from 'lodash/debounce'; -import * as React from 'react'; import {createGlobalStyle} from 'styled-components'; -import * as yaml from 'yaml'; import {colorBackgroundLight} from '../theme/color'; - import {StyledRawCodeMirror} from './StyledRawCodeMirror'; import {patchLint} from './configeditor/codemirror-yaml/lint'; import { YamlModeValidateFunction, + YamlModeValidationResult, expandAutocompletionContextAtCursor, findRangeInDocumentFromPath, - YamlModeValidationResult, } from './configeditor/codemirror-yaml/mode'; import {ConfigEditorHelpContext} from './configeditor/types/ConfigEditorHelpContext'; import {ConfigSchema} from './configeditor/types/ConfigSchema'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/NonIdealState.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/NonIdealState.tsx index 2cd374e2e5e37..62b71b724f973 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/NonIdealState.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/NonIdealState.tsx @@ -1,9 +1,8 @@ import * as React from 'react'; import {colorAccentGray, colorBackgroundLight, colorTextDefault} from '../theme/color'; - import {Box} from './Box'; -import {IconName, Icon} from './Icon'; +import {Icon, IconName} from './Icon'; import {Spinner} from './Spinner'; import {Subheading} from './Text'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/PageHeader.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/PageHeader.tsx index 5aa7d12d08d2b..7eb6673dcab58 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/PageHeader.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/PageHeader.tsx @@ -2,7 +2,6 @@ import * as React from 'react'; import styled from 'styled-components'; import {colorBackgroundLight} from '../theme/color'; - import {Box} from './Box'; import {IconName} from './Icon'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Popover.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Popover.tsx index b405f6e4d652e..154176ee1fd58 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Popover.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Popover.tsx @@ -1,8 +1,8 @@ /* eslint-disable @typescript-eslint/no-var-requires */ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import {Popover2, Popover2Props} from '@blueprintjs/popover2'; import deepmerge from 'deepmerge'; -import * as React from 'react'; import {createGlobalStyle} from 'styled-components'; import searchSVG from '../icon-svgs/search.svg'; @@ -10,13 +10,12 @@ import { colorAccentGray, colorBorderDefault, colorKeylineDefault, - colorTextDefault, - colorTextDisabled, colorPopoverBackground, colorShadowDefault, + colorTextDefault, + colorTextDisabled, colorTooltipBackground, } from '../theme/color'; - import {FontFamily} from './styles'; export const GlobalPopoverStyle = createGlobalStyle` diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/ProductTour.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/ProductTour.tsx index c85fc18cae6c2..51753ad884cd2 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/ProductTour.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/ProductTour.tsx @@ -4,7 +4,6 @@ import React from 'react'; import styled, {CSSProperties} from 'styled-components'; import {colorShadowDefault, colorTooltipBackground, colorTooltipText} from '../theme/color'; - import {Box} from './Box'; import {Button} from './Button'; import {Popover} from './Popover'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/ProgressBar.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/ProgressBar.tsx index 7119f0ab8d9e1..8d2194b43f5a1 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/ProgressBar.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/ProgressBar.tsx @@ -1,6 +1,6 @@ // eslint-disable-next-line no-restricted-imports -import {ProgressBar as BlueprintProgressBar, ProgressBarProps} from '@blueprintjs/core'; import * as React from 'react'; +import {ProgressBar as BlueprintProgressBar, ProgressBarProps} from '@blueprintjs/core'; import styled from 'styled-components'; import {colorAccentGray} from '../theme/color'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Radio.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Radio.tsx index aa76f4f6eb0e7..df95c8d9bac0c 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Radio.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Radio.tsx @@ -1,7 +1,6 @@ import styled from 'styled-components'; import {colorAccentBlue, colorBackgroundDisabled} from '../theme/color'; - import {IconWrapper} from './Icon'; export const RadioContainer = styled.div` diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/RawCodeMirror.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/RawCodeMirror.tsx index 76daf2bb1b885..503afffcee444 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/RawCodeMirror.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/RawCodeMirror.tsx @@ -1,7 +1,6 @@ -import 'codemirror/lib/codemirror.css'; - -import CodeMirror from 'codemirror'; import * as React from 'react'; +import CodeMirror from 'codemirror'; +import 'codemirror/lib/codemirror.css'; type CodeMirrorHandlers = { onReady?: (instance: CodeMirror.Editor) => void; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/RefreshableCountdown.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/RefreshableCountdown.tsx index 74d8236580be7..a5e9d28e6e33d 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/RefreshableCountdown.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/RefreshableCountdown.tsx @@ -2,7 +2,6 @@ import * as React from 'react'; import styled from 'styled-components'; import {colorAccentGray, colorAccentGrayHover, colorTextLight} from '../theme/color'; - import {Group} from './Group'; import {Icon, IconWrapper} from './Icon'; import {Tooltip} from './Tooltip'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Select.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Select.tsx index 29d25994baf33..4eb37553c45b5 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Select.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Select.tsx @@ -1,9 +1,10 @@ /* eslint-disable no-restricted-imports */ +import * as React from 'react'; import {IPopoverProps} from '@blueprintjs/core'; import {Select as BlueprintSelect, SelectProps} from '@blueprintjs/select'; + /* eslint-enable no-restricted-imports */ import deepmerge from 'deepmerge'; -import * as React from 'react'; export const Select = (props: React.PropsWithChildren>) => { const popoverProps: Partial = { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Slider.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Slider.tsx index 44f72446be07c..e5dfe90f1a544 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Slider.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Slider.tsx @@ -1,11 +1,11 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import { - Slider as BlueprintSlider, MultiSlider as BlueprintMultiSlider, - SliderProps as BlueprintSliderProps, MultiSliderProps as BlueprintMultiSliderProps, + Slider as BlueprintSlider, + SliderProps as BlueprintSliderProps, } from '@blueprintjs/core'; -import * as React from 'react'; import styled, {css} from 'styled-components'; import { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Spinner.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Spinner.tsx index d6dcb3f30f121..c18a75e239a15 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Spinner.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Spinner.tsx @@ -1,6 +1,6 @@ // eslint-disable-next-line no-restricted-imports -import {Spinner as BlueprintSpinner} from '@blueprintjs/core'; import * as React from 'react'; +import {Spinner as BlueprintSpinner} from '@blueprintjs/core'; import styled from 'styled-components'; import {colorAccentGray} from '../theme/color'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/SplitPanelContainer.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/SplitPanelContainer.tsx index 736b19c11caa5..8ff50491bb624 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/SplitPanelContainer.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/SplitPanelContainer.tsx @@ -2,7 +2,6 @@ import * as React from 'react'; import styled from 'styled-components'; import {colorAccentGray, colorKeylineDefault} from '../theme/color'; - import {Button} from './Button'; import {Icon} from './Icon'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/StyledButton.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/StyledButton.tsx index d913850ae35f5..a8772df39e4ec 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/StyledButton.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/StyledButton.tsx @@ -1,7 +1,6 @@ import styled from 'styled-components'; import {colorFocusRing, colorShadowDefault} from '../theme/color'; - import {IconWrapper} from './Icon'; import {SpinnerWrapper} from './Spinner'; import {FontFamily} from './styles'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/SubwayDot.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/SubwayDot.tsx index fbaec855dc352..d944fc0273505 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/SubwayDot.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/SubwayDot.tsx @@ -1,9 +1,8 @@ -import memoize from 'lodash/memoize'; import * as React from 'react'; +import memoize from 'lodash/memoize'; import styled from 'styled-components'; import {colorAccentReversed} from '../theme/color'; - import {Icon, IconName} from './Icon'; const SECONDARY_COLORS = { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Suggest.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Suggest.tsx index eb5f9491f2582..749442db95761 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Suggest.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Suggest.tsx @@ -1,14 +1,13 @@ // eslint-disable-next-line no-restricted-imports -import {InputGroupProps2, IPopoverProps} from '@blueprintjs/core'; +import * as React from 'react'; +import {IPopoverProps, InputGroupProps2} from '@blueprintjs/core'; // eslint-disable-next-line no-restricted-imports -import {isCreateNewItem, Suggest as BlueprintSuggest, SuggestProps} from '@blueprintjs/select'; +import {Suggest as BlueprintSuggest, SuggestProps, isCreateNewItem} from '@blueprintjs/select'; import deepmerge from 'deepmerge'; -import * as React from 'react'; import {List as _List} from 'react-virtualized'; import {createGlobalStyle} from 'styled-components'; import {colorAccentGray, colorTextDisabled} from '../theme/color'; - import {Box} from './Box'; import {IconWrapper} from './Icon'; import {TextInputContainerStyles, TextInputStyles} from './TextInput'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Table.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Table.tsx index 206ce77be7f5b..73b26e501fd49 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Table.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Table.tsx @@ -3,7 +3,6 @@ import {HTMLTable, HTMLTableProps} from '@blueprintjs/core'; import styled from 'styled-components'; import {colorKeylineDefault, colorTextDefault, colorTextLight} from '../theme/color'; - import {StyledTag} from './BaseTag'; import {FontFamily} from './styles'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Tabs.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Tabs.tsx index 1820ab34243a0..f1cce27285adb 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Tabs.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Tabs.tsx @@ -9,7 +9,6 @@ import { colorTextDisabled, colorTextLight, } from '../theme/color'; - import {IconWrapper} from './Icon'; import {FontFamily} from './styles'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Tag.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Tag.tsx index e5491df1e206e..a52c92651a294 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Tag.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Tag.tsx @@ -1,6 +1,6 @@ // eslint-disable-next-line no-restricted-imports -import {Tag as BlueprintTag} from '@blueprintjs/core'; import * as React from 'react'; +import {Tag as BlueprintTag} from '@blueprintjs/core'; import { colorAccentBlue, @@ -19,9 +19,8 @@ import { colorTextRed, colorTextYellow, } from '../theme/color'; - import {BaseTag} from './BaseTag'; -import {IconName, Icon} from './Icon'; +import {Icon, IconName} from './Icon'; import {Spinner} from './Spinner'; const intentToFillColor = (intent: React.ComponentProps['intent']) => { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/TagSelector.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/TagSelector.tsx index 046e100fa720d..58d89add6fcb1 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/TagSelector.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/TagSelector.tsx @@ -8,16 +8,15 @@ import { colorTextDefault, colorTextDisabled, } from '../theme/color'; - import {Box} from './Box'; import {Checkbox} from './Checkbox'; import {Icon} from './Icon'; -import {MenuItem, Menu} from './Menu'; +import {Menu, MenuItem} from './Menu'; import {MiddleTruncate} from './MiddleTruncate'; import {Popover} from './Popover'; import {Tag} from './Tag'; import {TextInput, TextInputStyles} from './TextInput'; -import {Container as VirtualContainer, Inner, Row} from './VirtualizedTable'; +import {Inner, Row, Container as VirtualContainer} from './VirtualizedTable'; import {useViewport} from './useViewport'; export type TagSelectorTagProps = { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Text.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Text.tsx index 75960e8258d1a..2c8ca562e50de 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Text.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Text.tsx @@ -1,7 +1,6 @@ import styled from 'styled-components'; import {colorBackgroundBlue} from '../theme/color'; - import {FontFamily} from './styles'; interface TextProps { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/TextInput.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/TextInput.tsx index 5cff6458d6e07..d1de7d5771975 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/TextInput.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/TextInput.tsx @@ -5,20 +5,19 @@ import { colorAccentGray, colorAccentPrimary, colorBackgroundDefault, + colorBackgroundDefaultHover, colorBackgroundDisabled, colorBorderDefault, - colorBorderHover, colorBorderDisabled, + colorBorderHover, colorFocusRing, colorKeylineDefault, colorTextDefault, colorTextDisabled, colorTextLight, colorTextLighter, - colorBackgroundDefaultHover, } from '../theme/color'; - -import {IconName, Icon, IconWrapper} from './Icon'; +import {Icon, IconName, IconWrapper} from './Icon'; import {FontFamily} from './styles'; interface Props extends Omit, 'onChange'> { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Toaster.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Toaster.tsx index 1a687ea412f51..731ae0f4a3cd5 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Toaster.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Toaster.tsx @@ -1,12 +1,11 @@ // eslint-disable-next-line no-restricted-imports -import {IToasterProps, ToasterInstance, ToastProps} from '@blueprintjs/core'; +import {IToasterProps, ToastProps, ToasterInstance} from '@blueprintjs/core'; import React from 'react'; import {createGlobalStyle} from 'styled-components'; import {CoreColors} from '../palettes/Colors'; import {colorAccentBlue, colorAccentGray, colorAccentPrimary, colorAccentRed} from '../theme/color'; - -import {IconName, Icon, IconWrapper} from './Icon'; +import {Icon, IconName, IconWrapper} from './Icon'; import {createToaster} from './createToaster'; export const GlobalToasterStyle = createGlobalStyle` diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/TokenizingField.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/TokenizingField.tsx index 529c5e844bbe8..b939ac95e2a79 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/TokenizingField.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/TokenizingField.tsx @@ -1,6 +1,6 @@ // eslint-disable-next-line no-restricted-imports -import {TagInput} from '@blueprintjs/core'; import * as React from 'react'; +import {TagInput} from '@blueprintjs/core'; import styled from 'styled-components'; import { @@ -16,9 +16,8 @@ import { colorTextRed, colorTextYellow, } from '../theme/color'; - import {Box} from './Box'; -import {MenuItem, Menu} from './Menu'; +import {Menu, MenuItem} from './Menu'; import {Popover} from './Popover'; import {Spinner} from './Spinner'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Tooltip.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Tooltip.tsx index 32fc91c386caf..99dbfaf275809 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Tooltip.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Tooltip.tsx @@ -5,7 +5,6 @@ import React from 'react'; import styled, {createGlobalStyle, css} from 'styled-components'; import {colorTooltipBackground, colorTooltipText} from '../theme/color'; - import {FontFamily} from './styles'; export const GlobalTooltipStyle = createGlobalStyle` diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Trace.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Trace.tsx index b89e678797385..234be8caf9516 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Trace.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Trace.tsx @@ -1,7 +1,6 @@ import styled from 'styled-components'; import {colorBackgroundLight, colorTextLight} from '../theme/color'; - import {FontFamily} from './styles'; export const Trace = styled.div` diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/Warning.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/Warning.tsx index 268abac797a65..beb4876e9a0aa 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/Warning.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/Warning.tsx @@ -7,7 +7,6 @@ import { colorBackgroundRed, colorKeylineDefault, } from '../theme/color'; - import {Icon} from './Icon'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Alert.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Alert.stories.tsx index a5b31872a3a2f..ed4b59f553aaf 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Alert.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Alert.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {Alert, AlertIntent} from '../Alert'; import {Box} from '../Box'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/BaseButton.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/BaseButton.stories.tsx index df48218b09279..3b7af153f914e 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/BaseButton.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/BaseButton.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {CoreColors} from '../../palettes/Colors'; import {BaseButton} from '../BaseButton'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/BaseTag.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/BaseTag.stories.tsx index 393e4c96694fe..1e9875a45acb9 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/BaseTag.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/BaseTag.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import { colorAccentBlue, diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Box.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Box.stories.tsx index 492825efab631..e70afd39d1673 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Box.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Box.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import styled from 'styled-components'; import { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Button.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Button.stories.tsx index 8e1c9c8d6cb95..131140d77b93c 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Button.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Button.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {Box} from '../Box'; import {Button, JoinedButtons} from '../Button'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ButtonGroup.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ButtonGroup.stories.tsx index 54cd22da63d69..f3e0025570428 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ButtonGroup.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ButtonGroup.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {ButtonGroup, ButtonGroupItem} from '../ButtonGroup'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ButtonLink.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ButtonLink.stories.tsx index ee5c40283a74d..a9c8f4cdd9410 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ButtonLink.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ButtonLink.stories.tsx @@ -1,5 +1,5 @@ -import {Story, Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta, Story} from '@storybook/react'; import {colorLinkDefault, colorLinkHover} from '../../theme/color'; import {ButtonLink} from '../ButtonLink'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Checkbox.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Checkbox.stories.tsx index 18314752d95a0..96f6b737475cf 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Checkbox.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Checkbox.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {useState} from 'react'; import { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Countdown.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Countdown.stories.tsx index b38dcc833ad71..15db547379faf 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Countdown.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Countdown.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {Button} from '../Button'; import {Countdown, useCountdown} from '../Countdown'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Dialog.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Dialog.stories.tsx index c979a8075d128..b16157a2afd6a 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Dialog.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Dialog.stories.tsx @@ -1,8 +1,8 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {Button} from '../Button'; -import {DialogBody, DialogFooter, DialogHeader, Dialog, GlobalDialogStyle} from '../Dialog'; +import {Dialog, DialogBody, DialogFooter, DialogHeader, GlobalDialogStyle} from '../Dialog'; import {Group} from '../Group'; // eslint-disable-next-line import/no-default-export diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Group.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Group.stories.tsx index 0af201581e629..019e500ac5a8a 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Group.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Group.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import styled from 'styled-components'; import {colorAccentYellow, colorBackgroundLight, colorLinkDefault} from '../../theme/color'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Icon.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Icon.stories.tsx index de9270ce85a78..e78b5702793d8 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Icon.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Icon.stories.tsx @@ -1,9 +1,9 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {CoreColors} from '../../palettes/Colors'; import {Box} from '../Box'; -import {IconNames as _iconNames, Icon} from '../Icon'; +import {Icon, IconNames as _iconNames} from '../Icon'; import {Tooltip} from '../Tooltip'; const IconNames = _iconNames.slice().sort(); diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/LegacyColors.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/LegacyColors.stories.tsx index e9b8d0bd23af4..0421b50156e04 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/LegacyColors.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/LegacyColors.stories.tsx @@ -1,8 +1,8 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import {Colors as BlueprintColors} from '@blueprintjs/core'; import {Meta} from '@storybook/react'; import nearestColor from 'nearest-color'; -import * as React from 'react'; import rgbHex from 'rgb-hex'; import {Box} from '../Box'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Menu.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Menu.stories.tsx index 43736515083e3..f8d2d049ce29c 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Menu.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Menu.stories.tsx @@ -1,10 +1,10 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import styled from 'styled-components'; import {colorShadowDefault} from '../../theme/color'; import {Group} from '../Group'; -import {Menu, MenuItem, MenuDivider} from '../Menu'; +import {Menu, MenuDivider, MenuItem} from '../Menu'; // eslint-disable-next-line import/no-default-export export default { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/MiddleTruncate.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/MiddleTruncate.stories.tsx index 7f741c68fcd05..d7fb4d5c37f86 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/MiddleTruncate.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/MiddleTruncate.stories.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {Meta} from '@storybook/react'; import faker from 'faker'; -import * as React from 'react'; import {colorBackgroundBlue, colorBackgroundLight} from '../../theme/color'; import {Box} from '../Box'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/NonIdealState.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/NonIdealState.stories.tsx index 610e7527670e2..a88511d5c642c 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/NonIdealState.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/NonIdealState.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {Group} from '../Group'; import {NonIdealState} from '../NonIdealState'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Popover.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Popover.stories.tsx index 69bdc17baac9a..687d08be69e08 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Popover.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Popover.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {Button} from '../Button'; import {Group} from '../Group'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ProductTour.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ProductTour.stories.tsx index b5eba8c93cba7..eac86be87240e 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ProductTour.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ProductTour.stories.tsx @@ -1,8 +1,8 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {ButtonGroup} from '../ButtonGroup'; -import {ProductTour, ProductTourPosition as Position} from '../ProductTour'; +import {ProductTourPosition as Position, ProductTour} from '../ProductTour'; // eslint-disable-next-line import/no-default-export export default { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ProgressBar.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ProgressBar.stories.tsx index bfff25b682353..324ec314adc6f 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ProgressBar.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/ProgressBar.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {colorAccentBlue} from '../../theme/color'; import {Box} from '../Box'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Select.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Select.stories.tsx index 8fa958f939fc8..4ccdbaf0159dc 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Select.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Select.stories.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {Meta} from '@storybook/react'; import faker from 'faker'; -import * as React from 'react'; import {Button} from '../Button'; import {Icon} from '../Icon'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Slider.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Slider.stories.tsx index 184180cf8b79e..ae63884dde604 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Slider.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Slider.stories.tsx @@ -1,11 +1,11 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import {Intent} from '@blueprintjs/core'; import {Meta} from '@storybook/react'; -import * as React from 'react'; import {colorAccentBlue} from '../../theme/color'; import {Group} from '../Group'; -import {Slider, MultiSlider} from '../Slider'; +import {MultiSlider, Slider} from '../Slider'; // eslint-disable-next-line import/no-default-export export default { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Spinner.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Spinner.stories.tsx index 50f2abab10181..a2f0e993f787b 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Spinner.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Spinner.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {colorAccentBlue} from '../../theme/color'; import {Box} from '../Box'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/StyledRawCodeMirror.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/StyledRawCodeMirror.stories.tsx index 75f3181d3edd1..0ea862f5a5e08 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/StyledRawCodeMirror.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/StyledRawCodeMirror.stories.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {Meta} from '@storybook/react'; import CodeMirror from 'codemirror'; -import * as React from 'react'; import {StyledRawCodeMirror} from '../StyledRawCodeMirror'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Suggest.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Suggest.stories.tsx index 539060c506736..44124706027da 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Suggest.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Suggest.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {MenuItem} from '../Menu'; import {Suggest} from '../Suggest'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Table.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Table.stories.tsx index 9146100c14697..4733dd02c51f6 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Table.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Table.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {Table} from '../Table'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tabs.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tabs.stories.tsx index e32636dc39b05..01c2b9a921c72 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tabs.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tabs.stories.tsx @@ -1,10 +1,10 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {colorAccentYellow} from '../../theme/color'; import {Group} from '../Group'; import {Icon} from '../Icon'; -import {Tabs, Tab} from '../Tabs'; +import {Tab, Tabs} from '../Tabs'; // eslint-disable-next-line import/no-default-export export default { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tag.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tag.stories.tsx index 79d6fe534c37a..edec73865ef08 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tag.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tag.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {Group} from '../Group'; import {Tag} from '../Tag'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TagSelector.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TagSelector.stories.tsx index 6482a536f9a2b..ca224165a9c38 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TagSelector.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TagSelector.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import styled from 'styled-components'; import {colorAccentGray, colorAccentGreen} from '../../theme/color'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TextArea.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TextArea.stories.tsx index d4b5086618a31..2b343d7319d2f 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TextArea.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TextArea.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {colorAccentRed} from '../../theme/color'; import {TextArea} from '../TextInput'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TextInput.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TextInput.stories.tsx index 8e220b46a627e..45a9d25f0c439 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TextInput.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TextInput.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {colorAccentPrimary, colorAccentRed} from '../../theme/color'; import {Icon} from '../Icon'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Toaster.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Toaster.stories.tsx index e805fdc331806..61125620bb63a 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Toaster.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Toaster.stories.tsx @@ -1,7 +1,7 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import {Intent} from '@blueprintjs/core'; import {Meta} from '@storybook/react'; -import * as React from 'react'; import {Button} from '../Button'; import {Group} from '../Group'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TokenizingField.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TokenizingField.stories.tsx index f215ab096e749..ff4711a77fad2 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TokenizingField.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/TokenizingField.stories.tsx @@ -1,11 +1,11 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import styled from 'styled-components'; import { - colorAccentRed, - colorAccentGreen, colorAccentBlue, + colorAccentGreen, + colorAccentRed, colorAccentYellow, } from '../../theme/color'; import {Group} from '../Group'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tooltip.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tooltip.stories.tsx index cf2216f43c20a..276af1ae33e5f 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tooltip.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/Tooltip.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import { colorAccentYellow, @@ -14,7 +14,7 @@ import {Checkbox} from '../Checkbox'; import {CustomTooltipProvider} from '../CustomTooltipProvider'; import {Group} from '../Group'; import {Icon} from '../Icon'; -import {Tooltip, GlobalTooltipStyle} from '../Tooltip'; +import {GlobalTooltipStyle, Tooltip} from '../Tooltip'; const SOLID_STYLES: React.CSSProperties = { background: colorBackgroundDefault(), diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/UnstyledButton.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/UnstyledButton.stories.tsx index 84b6f043e838d..37fc4ba846cdd 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/UnstyledButton.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/UnstyledButton.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {colorAccentBlue} from '../../theme/color'; import {Box} from '../Box'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/useDelayedState.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/useDelayedState.stories.tsx index c75623a6a0da3..ddf6e7e5c27ba 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/useDelayedState.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/useDelayedState.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {Box} from '../Box'; import {Button} from '../Button'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/useSuggestionsForString.stories.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/useSuggestionsForString.stories.tsx index f690c927e4774..71678021dd8fd 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/useSuggestionsForString.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__stories__/useSuggestionsForString.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {colorBorderDefault} from '../../theme/color'; import {ButtonLink} from '../ButtonLink'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/TokenizingField.test.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/TokenizingField.test.tsx index 626ed10563d17..0cfeb5b0fff9d 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/TokenizingField.test.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/TokenizingField.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {SuggestionProvider, TokenizingField} from '../TokenizingField'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/Tooltip.test.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/Tooltip.test.tsx index 8f9a8fc00bd1e..7bf4d17e1ec2a 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/Tooltip.test.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/Tooltip.test.tsx @@ -1,5 +1,5 @@ -import {render, screen} from '@testing-library/react'; import * as React from 'react'; +import {render, screen} from '@testing-library/react'; import {Button} from '../Button'; import {Tooltip} from '../Tooltip'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/actWarnings.test.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/actWarnings.test.tsx index c8a1b617a18d4..e1308e44e2f77 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/actWarnings.test.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/actWarnings.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; const Counter = () => { const [count, setCount] = React.useState(0); diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/useSuggestionsForString.test.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/useSuggestionsForString.test.tsx index e880d79b170e9..3bccca0ed4d41 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/useSuggestionsForString.test.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/__tests__/useSuggestionsForString.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {useSuggestionsForString} from '../useSuggestionsForString'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/configeditor/ConfigEditorHelp.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/configeditor/ConfigEditorHelp.tsx index 206d7a704b779..0e2c8cb27b612 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/configeditor/ConfigEditorHelp.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/configeditor/ConfigEditorHelp.tsx @@ -9,7 +9,6 @@ import { } from '../../theme/color'; import {ConfigTypeSchema, TypeData} from '../ConfigTypeSchema'; import {isHelpContextEqual} from '../configeditor/isHelpContextEqual'; - import {ConfigEditorHelpContext} from './types/ConfigEditorHelpContext'; interface ConfigEditorHelpProps { diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/configeditor/codemirror-yaml/mode.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/configeditor/codemirror-yaml/mode.tsx index 7417a4b0e91c4..b385f128b295b 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/configeditor/codemirror-yaml/mode.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/configeditor/codemirror-yaml/mode.tsx @@ -1,14 +1,14 @@ import * as CodeMirror from 'codemirror'; +import * as yaml from 'yaml'; +import 'codemirror/addon/dialog/dialog'; +import 'codemirror/addon/dialog/dialog.css'; import 'codemirror/addon/hint/show-hint'; import 'codemirror/addon/search/search'; import 'codemirror/addon/search/searchcursor'; -import 'codemirror/addon/dialog/dialog'; -import 'codemirror/addon/dialog/dialog.css'; -import * as yaml from 'yaml'; import { - ConfigSchema, ConfigSchema_allConfigTypes_CompositeConfigType as CompositeConfigType, + ConfigSchema, ConfigSchema_allConfigTypes_MapConfigType as MapConfigType, } from '../types/ConfigSchema'; diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/createToaster.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/createToaster.tsx index 68d6b69ee9a6e..e2a096d1a830d 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/createToaster.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/createToaster.tsx @@ -1,6 +1,6 @@ // eslint-disable-next-line no-restricted-imports -import {IToasterProps, Toaster} from '@blueprintjs/core'; import * as React from 'react'; +import {IToasterProps, Toaster} from '@blueprintjs/core'; import {createRoot} from 'react-dom/client'; // https://github.com/palantir/blueprint/issues/5212#issuecomment-1318397270 diff --git a/js_modules/dagster-ui/packages/ui-components/src/components/useViewport.tsx b/js_modules/dagster-ui/packages/ui-components/src/components/useViewport.tsx index 4ad8699bcacc5..499d137bd69f1 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/components/useViewport.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/components/useViewport.tsx @@ -1,5 +1,5 @@ -import animate from 'amator'; import * as React from 'react'; +import animate from 'amator'; export interface Viewport { left: number; // Note: pixel values diff --git a/js_modules/dagster-ui/packages/ui-components/src/setupTests.ts b/js_modules/dagster-ui/packages/ui-components/src/setupTests.ts index 549efed6f2f69..1e7cf154bf39f 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/setupTests.ts +++ b/js_modules/dagster-ui/packages/ui-components/src/setupTests.ts @@ -1,5 +1,5 @@ -import 'regenerator-runtime/runtime'; import '@testing-library/jest-dom'; +import 'regenerator-runtime/runtime'; const ignoredErrors = ['ReactDOM.render is no longer supported in React 18']; diff --git a/js_modules/dagster-ui/packages/ui-components/src/theme/color.tsx b/js_modules/dagster-ui/packages/ui-components/src/theme/color.tsx index 10976ee5e4eb8..017e9eb8d4bdf 100644 --- a/js_modules/dagster-ui/packages/ui-components/src/theme/color.tsx +++ b/js_modules/dagster-ui/packages/ui-components/src/theme/color.tsx @@ -1,7 +1,6 @@ import memoize from 'lodash/memoize'; import {ColorName} from '../palettes/ColorName'; - import {getPaletteForTheme} from './theme'; const color = memoize((semanticName: ColorName): string => { diff --git a/js_modules/dagster-ui/packages/ui-components/tsconfig.build.json b/js_modules/dagster-ui/packages/ui-components/tsconfig.build.json index 62ef5d45b9b6e..eca1793cf6ff4 100644 --- a/js_modules/dagster-ui/packages/ui-components/tsconfig.build.json +++ b/js_modules/dagster-ui/packages/ui-components/tsconfig.build.json @@ -6,10 +6,5 @@ "declaration": true, "emitDeclarationOnly": true }, - "exclude": [ - "node_modules", - "lib", - "**/*.stories.*", - "**/*.test.*" - ] -} \ No newline at end of file + "exclude": ["node_modules", "lib", "**/*.stories.*", "**/*.test.*"] +} diff --git a/js_modules/dagster-ui/packages/ui-core/.prettierrc.js b/js_modules/dagster-ui/packages/ui-core/.prettierrc.js index fccca4efde50a..aa8a10aad6070 100644 --- a/js_modules/dagster-ui/packages/ui-core/.prettierrc.js +++ b/js_modules/dagster-ui/packages/ui-core/.prettierrc.js @@ -2,5 +2,12 @@ module.exports = { bracketSpacing: false, printWidth: 100, singleQuote: true, - trailingComma: 'all' + trailingComma: 'all', + + // https://github.com/trivago/prettier-plugin-sort-imports + importOrder: ['^@dagster-io/(.*)$', '^[./]'], + importOrderSeparation: true, + importOrderSortSpecifiers: true, + importOrderGroupNamespaceSpecifiers: true, + plugins: ['@trivago/prettier-plugin-sort-imports'], }; diff --git a/js_modules/dagster-ui/packages/ui-core/.storybook/preview.js b/js_modules/dagster-ui/packages/ui-core/.storybook/preview.js index d5172a9ef93f3..4e1d139fcb15a 100644 --- a/js_modules/dagster-ui/packages/ui-core/.storybook/preview.js +++ b/js_modules/dagster-ui/packages/ui-core/.storybook/preview.js @@ -1,23 +1,22 @@ +import * as React from 'react'; +import {MemoryRouter} from 'react-router-dom'; +import {createGlobalStyle} from 'styled-components/macro'; + import { FontFamily, - GlobalInter, - GlobalInconsolata, GlobalDialogStyle, + GlobalInconsolata, + GlobalInter, GlobalPopoverStyle, GlobalSuggestStyle, GlobalToasterStyle, GlobalTooltipStyle, browserColorScheme, colorBackgroundDefault, - colorTextDefault, colorLinkDefault, + colorTextDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {MemoryRouter} from 'react-router-dom'; - -import {createGlobalStyle} from 'styled-components/macro'; - import '../src/app/blueprint.css'; const GlobalStyle = createGlobalStyle` diff --git a/js_modules/dagster-ui/packages/ui-core/package.json b/js_modules/dagster-ui/packages/ui-core/package.json index 45b40531dda0d..971ac9bf19598 100644 --- a/js_modules/dagster-ui/packages/ui-core/package.json +++ b/js_modules/dagster-ui/packages/ui-core/package.json @@ -10,8 +10,8 @@ "jest-all-silent": "yarn jest --silent --watchAll=false", "jest:debug": "node --inspect-brk ./node_modules/.bin/jest --runInBand --no-cache", "lint": "eslint src/ --ext=.tsx,.ts,.js,.graphql --fix -c .eslintrc.js", + "format": "prettier -w --config ./.prettierrc.js .", "check-lint": "eslint src/ --ext=.tsx,.ts,.js,.graphql -c .eslintrc.js", - "check-prettier": "prettier --list-different \"./src/**/*.tsx\"", "ts": "tsc -p .", "generate-graphql": "ts-node -O '{\"module\": \"commonjs\"}' ./src/scripts/generateGraphQLTypes.ts", "generate-perms": "ts-node -O '{\"module\": \"commonjs\"}' ./src/scripts/generatePermissions.ts", @@ -108,6 +108,7 @@ "@testing-library/jest-dom": "^6.1.5", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.4.3", + "@trivago/prettier-plugin-sort-imports": "^4.3.0", "@types/codemirror": "^5.60.5", "@types/color": "^3.0.2", "@types/dagre": "^0.7.42", diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/App.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/App.tsx index 9faf2a15cebbd..0a180a5665fd6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/App.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/App.tsx @@ -1,8 +1,7 @@ import * as React from 'react'; import styled from 'styled-components'; -import {LeftNav, LEFT_NAV_WIDTH} from '../nav/LeftNav'; - +import {LEFT_NAV_WIDTH, LeftNav} from '../nav/LeftNav'; import {LayoutContext} from './LayoutProvider'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/AppError.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/AppError.tsx index 43949eee726a6..7d65a0626d3e7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/AppError.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/AppError.tsx @@ -1,6 +1,10 @@ +import * as React from 'react'; import {ServerError} from '@apollo/client'; import {ErrorResponse, onError} from '@apollo/client/link/error'; import {Observable} from '@apollo/client/utilities'; +import {GraphQLError} from 'graphql'; +import memoize from 'lodash/memoize'; + import { FontFamily, Toaster, @@ -8,9 +12,6 @@ import { colorBackgroundRed, colorTextDefault, } from '@dagster-io/ui-components'; -import {GraphQLError} from 'graphql'; -import memoize from 'lodash/memoize'; -import * as React from 'react'; import {showCustomAlert} from './CustomAlertProvider'; import {ERROR_CODES_TO_SURFACE, errorCodeToMessage} from './HTTPErrorCodes'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/AppProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/AppProvider.tsx index 9e46cbc23901d..7da4a67b7703b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/AppProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/AppProvider.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import { - ApolloLink, ApolloClient, + ApolloLink, ApolloProvider, HttpLink, InMemoryCache, @@ -8,27 +9,27 @@ import { } from '@apollo/client'; import {WebSocketLink} from '@apollo/client/link/ws'; import {getMainDefinition} from '@apollo/client/utilities'; +import {BrowserRouter} from 'react-router-dom'; +import {CompatRouter} from 'react-router-dom-v5-compat'; +import {createGlobalStyle} from 'styled-components'; +import {SubscriptionClient} from 'subscriptions-transport-ws'; + import { + CustomTooltipProvider, + FontFamily, GlobalDialogStyle, + GlobalInconsolata, + GlobalInter, GlobalPopoverStyle, GlobalSuggestStyle, GlobalToasterStyle, GlobalTooltipStyle, - FontFamily, - CustomTooltipProvider, - GlobalInter, - GlobalInconsolata, - colorLinkDefault, - colorBackgroundDefault, - colorTextDefault, browserColorScheme, + colorBackgroundDefault, colorFocusRing, + colorLinkDefault, + colorTextDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {BrowserRouter} from 'react-router-dom'; -import {CompatRouter} from 'react-router-dom-v5-compat'; -import {createGlobalStyle} from 'styled-components'; -import {SubscriptionClient} from 'subscriptions-transport-ws'; import {AssetLiveDataProvider} from '../asset-data/AssetLiveDataProvider'; import {AssetRunLogObserver} from '../asset-graph/AssetRunLogObserver'; @@ -36,7 +37,6 @@ import {DeploymentStatusProvider, DeploymentStatusType} from '../instance/Deploy import {InstancePageContext} from '../instance/InstancePageContext'; import {JobFeatureProvider} from '../pipelines/JobFeatureContext'; import {WorkspaceProvider} from '../workspace/WorkspaceContext'; - import {AppContext} from './AppContext'; import {CustomAlertProvider} from './CustomAlertProvider'; import {CustomConfirmationProvider} from './CustomConfirmationProvider'; @@ -45,11 +45,10 @@ import {PermissionsProvider} from './Permissions'; import {patchCopyToRemoveZeroWidthUnderscores} from './Util'; import {WebSocketProvider} from './WebSocketProvider'; import {AnalyticsContext, dummyAnalytics} from './analytics'; +import './blueprint.css'; import {migrateLocalStorageKeys} from './migrateLocalStorageKeys'; import {TimeProvider} from './time/TimeContext'; -import './blueprint.css'; - // The solid sidebar and other UI elements insert zero-width spaces so solid names // break on underscores rather than arbitrary characters, but we need to remove these // when you copy-paste so they don't get pasted into editors, etc. diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/AppTopNav.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/AppTopNav.tsx index 232756c8898f4..76dc501385989 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/AppTopNav.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/AppTopNav.tsx @@ -1,17 +1,18 @@ +import * as React from 'react'; +import {Link, NavLink, useHistory} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Icon, IconWrapper, Tooltip, colorNavBackground, + colorNavButton, colorNavText, - colorNavTextSelected, colorNavTextHover, - colorNavButton, + colorNavTextSelected, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link, NavLink, useHistory} from 'react-router-dom'; -import styled from 'styled-components'; import {DeploymentStatusIcon} from '../nav/DeploymentStatusIcon'; import {VersionNumber} from '../nav/VersionNumber'; @@ -20,7 +21,6 @@ import { useRepositoryLocationReload, } from '../nav/useRepositoryLocationReload'; import {SearchDialog} from '../search/SearchDialog'; - import {LayoutContext} from './LayoutProvider'; import {ShortcutHandler} from './ShortcutHandler'; import {WebSocketStatus} from './WebSocketProvider'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/ContentRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/ContentRoot.tsx index dd4198212e69b..5924b1a01b1c8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/ContentRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/ContentRoot.tsx @@ -1,7 +1,8 @@ -import {MainContent, ErrorBoundary} from '@dagster-io/ui-components'; import * as React from 'react'; import {Route, Switch, useLocation} from 'react-router-dom'; +import {ErrorBoundary, MainContent} from '@dagster-io/ui-components'; + import {AssetFeatureProvider} from '../assets/AssetFeatureContext'; const WorkspaceRoot = React.lazy(() => import('../workspace/WorkspaceRoot')); diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/CustomAlertProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/CustomAlertProvider.tsx index a42012d1b7b80..b566d9c93e4f5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/CustomAlertProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/CustomAlertProvider.tsx @@ -1,9 +1,9 @@ -import {Button, Dialog, DialogBody, DialogFooter, FontFamily} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; -import {testId} from '../testing/testId'; +import {Button, Dialog, DialogBody, DialogFooter, FontFamily} from '@dagster-io/ui-components'; +import {testId} from '../testing/testId'; import {copyValue} from './DomUtils'; const CURRENT_ALERT_CHANGED = 'alert-changed'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/CustomConfirmationProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/CustomConfirmationProvider.tsx index 6cadb1e61703f..5ad5eddd3da09 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/CustomConfirmationProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/CustomConfirmationProvider.tsx @@ -1,6 +1,7 @@ -import {Button, DialogBody, DialogFooter, Dialog} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Button, Dialog, DialogBody, DialogFooter} from '@dagster-io/ui-components'; + interface ConfirmationOptions { catchOnCancel?: boolean; title?: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/DomUtils.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/DomUtils.tsx index 640ffa35054c1..89c1e4f495f71 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/DomUtils.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/DomUtils.tsx @@ -1,6 +1,7 @@ -import {DToasterShowProps, Toaster} from '@dagster-io/ui-components'; import memoize from 'lodash/memoize'; +import {DToasterShowProps, Toaster} from '@dagster-io/ui-components'; + export const getSharedToaster = memoize(async () => { return await Toaster.asyncCreate({position: 'top'}, document.body); }); diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/ExecutionSessionStorage.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/ExecutionSessionStorage.tsx index 16e2da3dcdc6d..b3a9a42c651ba 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/ExecutionSessionStorage.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/ExecutionSessionStorage.tsx @@ -1,7 +1,7 @@ -import memoize from 'lodash/memoize'; import * as React from 'react'; +import memoize from 'lodash/memoize'; -import {AssetKeyInput, AssetCheck} from '../graphql/types'; +import {AssetCheck, AssetKeyInput} from '../graphql/types'; import {useSetStateUpdateCallback} from '../hooks/useSetStateUpdateCallback'; import {getJSONForKey, useStateWithStorage} from '../hooks/useStateWithStorage'; import { @@ -10,7 +10,6 @@ import { } from '../launchpad/types/LaunchpadAllowedRoot.types'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {RepoAddress} from '../workspace/types'; - import {AppContext} from './AppContext'; // Internal LocalStorage data format and mutation helpers diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/FallthroughRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/FallthroughRoot.tsx index 93a5c0567ff77..bf45290934d84 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/FallthroughRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/FallthroughRoot.tsx @@ -1,7 +1,8 @@ -import {Box, Spinner, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; import {Redirect, Route, Switch} from 'react-router-dom'; +import {Box, Spinner, colorTextLight} from '@dagster-io/ui-components'; + import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; import {DagsterRepoOption, WorkspaceContext} from '../workspace/WorkspaceContext'; import {workspacePath, workspacePipelinePath} from '../workspace/workspacePath'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/Flags.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/Flags.tsx index 68b4b49b47ee0..c37629a1f4863 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/Flags.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/Flags.tsx @@ -1,5 +1,5 @@ -import memoize from 'lodash/memoize'; import * as React from 'react'; +import memoize from 'lodash/memoize'; import {getJSONForKey} from '../hooks/useStateWithStorage'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/GraphQueryImpl.ts b/js_modules/dagster-ui/packages/ui-core/src/app/GraphQueryImpl.ts index 744dbd4d2e821..b9fcdbd04b0e0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/GraphQueryImpl.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/app/GraphQueryImpl.ts @@ -1,4 +1,4 @@ -import {isPlannedDynamicStep, dynamicKeyWithoutIndex} from '../gantt/DynamicStepSupport'; +import {dynamicKeyWithoutIndex, isPlannedDynamicStep} from '../gantt/DynamicStepSupport'; export interface GraphQueryItem { name: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/Permissions.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/Permissions.tsx index cc507a5faae3a..145b42a706b4a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/Permissions.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/Permissions.tsx @@ -1,5 +1,5 @@ -import {gql, useQuery} from '@apollo/client'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import { PermissionFragment, diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/PythonErrorInfo.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/PythonErrorInfo.tsx index 1b3d02636059d..782283f47fd7f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/PythonErrorInfo.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/PythonErrorInfo.tsx @@ -1,22 +1,22 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; +import styled from 'styled-components'; + import { Button, - Icon, FontFamily, - colorKeylineDefault, + Icon, colorAccentRed, colorBackgroundRed, + colorKeylineDefault, colorTextLight, colorTextRed, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {ErrorSource} from '../graphql/types'; import {useLaunchPadHooks} from '../launchpad/LaunchpadHooksContext'; import {MetadataEntries} from '../metadata/MetadataEntry'; import {MetadataEntryFragment} from '../metadata/types/MetadataEntry.types'; - import {showSharedToaster} from './DomUtils'; import {useCopyToClipboard} from './browser'; import {PythonErrorChainFragment, PythonErrorFragment} from './types/PythonErrorFragment.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/QueryRefresh.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/QueryRefresh.tsx index e3dfe97d1a46c..5d28cc19be293 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/QueryRefresh.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/QueryRefresh.tsx @@ -1,6 +1,7 @@ -import {NetworkStatus, ObservableQuery, QueryResult} from '@apollo/client'; -import {useCountdown, RefreshableCountdown} from '@dagster-io/ui-components'; import * as React from 'react'; +import {NetworkStatus, ObservableQuery, QueryResult} from '@apollo/client'; + +import {RefreshableCountdown, useCountdown} from '@dagster-io/ui-components'; import {useDocumentVisibility} from '../hooks/useDocumentVisibility'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/ShortcutHandler.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/ShortcutHandler.tsx index 3b1c450eef9e5..caaac81218aa7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/ShortcutHandler.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/ShortcutHandler.tsx @@ -1,12 +1,13 @@ +import * as React from 'react'; +import ReactDOM from 'react-dom'; +import styled from 'styled-components'; + import { colorBorderHover, colorShadowDefault, colorTooltipBackground, colorTooltipText, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import ReactDOM from 'react-dom'; -import styled from 'styled-components'; import {getJSONForKey} from '../hooks/useStateWithStorage'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/Telemetry.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/Telemetry.tsx index 55e8cbacdcac1..44523b8c34871 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/Telemetry.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/Telemetry.tsx @@ -1,7 +1,7 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; import {print} from 'graphql'; import memoize from 'lodash/memoize'; -import * as React from 'react'; import {v4 as uuidv4} from 'uuid'; import {AppContext} from './AppContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/UserSettingsButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/UserSettingsButton.tsx index e32dc216ee9cc..cc7c4ac758f1d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/UserSettingsButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/UserSettingsButton.tsx @@ -1,11 +1,12 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { - IconWrapper, Icon, - colorNavTextSelected, + IconWrapper, colorNavTextHover, + colorNavTextSelected, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {UserSettingsDialog} from './UserSettingsDialog'; import {getVisibleFeatureFlagRows} from './getVisibleFeatureFlagRows'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/UserSettingsDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/UserSettingsDialog.tsx index 68c088c522f4c..045d4efffd4b4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/UserSettingsDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/UserSettingsDialog.tsx @@ -1,3 +1,5 @@ +import * as React from 'react'; + import { Box, Button, @@ -5,14 +7,12 @@ import { Dialog, DialogBody, DialogFooter, - Subheading, Icon, + Subheading, } from '@dagster-io/ui-components'; import {DAGSTER_THEME_KEY, DagsterTheme} from '@dagster-io/ui-components/src/theme/theme'; -import * as React from 'react'; import {useStateWithStorage} from '../hooks/useStateWithStorage'; - import {FeatureFlagType, getFeatureFlags, setFeatureFlags} from './Flags'; import {SHORTCUTS_STORAGE_KEY} from './ShortcutHandler'; import {HourCycleSelect} from './time/HourCycleSelect'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/Util.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/Util.tsx index 8bc58417b24d7..18078eb07ada0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/Util.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/Util.tsx @@ -2,7 +2,7 @@ import {cache} from 'idb-lru-cache'; import memoize from 'lodash/memoize'; import LRU from 'lru-cache'; -import {featureEnabled, FeatureFlag} from './Flags'; +import {FeatureFlag, featureEnabled} from './Flags'; import {timeByParts} from './timeByParts'; function twoDigit(v: number) { diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/WebSocketProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/WebSocketProvider.tsx index deb65987545bd..44d931ac987e1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/WebSocketProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/WebSocketProvider.tsx @@ -1,13 +1,14 @@ +import * as React from 'react'; +import debounce from 'lodash/debounce'; +import styled from 'styled-components'; +import {SubscriptionClient} from 'subscriptions-transport-ws'; + import { colorAccentGray, colorAccentGreen, colorAccentLime, colorAccentPrimary, } from '@dagster-io/ui-components'; -import debounce from 'lodash/debounce'; -import * as React from 'react'; -import styled from 'styled-components'; -import {SubscriptionClient} from 'subscriptions-transport-ws'; import {useFeatureFlags} from './Flags'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/__stories__/AppStackTraceLink.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/__stories__/AppStackTraceLink.stories.tsx index 57991623dbedb..76c1054c4ed7b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/__stories__/AppStackTraceLink.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/__stories__/AppStackTraceLink.stories.tsx @@ -1,7 +1,7 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import {Meta} from '@storybook/react'; import {GraphQLError} from 'graphql'; -import * as React from 'react'; import {AppStackTraceLink} from '../AppError'; import {CustomAlertProvider} from '../CustomAlertProvider'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/__stories__/PythonErrorInfo.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/__stories__/PythonErrorInfo.stories.tsx index 366dd6cc60417..ed267c50b5460 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/__stories__/PythonErrorInfo.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/__stories__/PythonErrorInfo.stories.tsx @@ -1,8 +1,8 @@ // eslint-disable-next-line no-restricted-imports -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; -import {buildPythonError, buildErrorChainLink} from '../../graphql/types'; +import {buildErrorChainLink, buildPythonError} from '../../graphql/types'; import {PythonErrorInfo} from '../PythonErrorInfo'; // eslint-disable-next-line import/no-default-export diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/AppTopNav.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/AppTopNav.test.tsx index 9aa2bdee8f198..e08ab237c30d0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/AppTopNav.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/AppTopNav.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen} from '@testing-library/react'; -import * as React from 'react'; import {MemoryRouter} from 'react-router-dom'; import {AppTopNav} from '../AppTopNav'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/CustomConfirmationProvider.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/CustomConfirmationProvider.test.tsx index dc0240ef9b1a0..ad006bdc044f1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/CustomConfirmationProvider.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/CustomConfirmationProvider.test.tsx @@ -1,9 +1,10 @@ -import {Button} from '@dagster-io/ui-components'; +import * as React from 'react'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {act} from 'react-dom/test-utils'; +import {Button} from '@dagster-io/ui-components'; + import {CustomConfirmationProvider, useConfirmation} from '../CustomConfirmationProvider'; describe('CustomConfirmationProvider', () => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/ExecutionSessionStorage.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/ExecutionSessionStorage.test.tsx index e524159929c1b..a90e2f77a0982 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/ExecutionSessionStorage.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/ExecutionSessionStorage.test.tsx @@ -1,5 +1,5 @@ -import {render, screen, waitFor} from '@testing-library/react'; import * as React from 'react'; +import {render, screen, waitFor} from '@testing-library/react'; import { IExecutionSession, diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/PythonErrorInfo.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/PythonErrorInfo.test.tsx index 4aa866d4c9d4d..bf679e5b2ea4e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/PythonErrorInfo.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/PythonErrorInfo.test.tsx @@ -1,5 +1,5 @@ -import {render, screen} from '@testing-library/react'; import * as React from 'react'; +import {render, screen} from '@testing-library/react'; import {GenericError, PythonErrorInfo} from '../PythonErrorInfo'; import {PythonErrorFragment} from '../types/PythonErrorFragment.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/analytics.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/analytics.test.tsx index d7251bc697b76..8c054a4994aae 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/analytics.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/analytics.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {MemoryRouter, Route, Switch} from 'react-router-dom'; import {AnalyticsContext, GenericAnalytics, useTrackEvent, useTrackPageView} from '../analytics'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/formatElapsedTime.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/formatElapsedTime.test.tsx index 3337794b05823..5cf6febd75d3b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/formatElapsedTime.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/__tests__/formatElapsedTime.test.tsx @@ -1,4 +1,4 @@ -import {formatElapsedTimeWithoutMsec, formatElapsedTimeWithMsec} from '../Util'; +import {formatElapsedTimeWithMsec, formatElapsedTimeWithoutMsec} from '../Util'; const SECOND = 1 * 1000; const MINUTE = 60 * SECOND; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/blueprint.css b/js_modules/dagster-ui/packages/ui-core/src/app/blueprint.css index 65d28041a1cd4..e660c5ae13762 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/blueprint.css +++ b/js_modules/dagster-ui/packages/ui-core/src/app/blueprint.css @@ -1,3 +1,3 @@ @import '@blueprintjs/core/lib/css/blueprint.css'; @import '@blueprintjs/select/lib/css/blueprint-select.css'; -@import '@blueprintjs/popover2/lib/css/blueprint-popover2.css'; \ No newline at end of file +@import '@blueprintjs/popover2/lib/css/blueprint-popover2.css'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/time/HourCycleSelect.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/time/HourCycleSelect.tsx index 67e0c31d1dd6b..0d48488bc3f2c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/time/HourCycleSelect.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/time/HourCycleSelect.tsx @@ -1,6 +1,7 @@ -import {MenuItem, Menu, Select, Button, Icon} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Button, Icon, Menu, MenuItem, Select} from '@dagster-io/ui-components'; + import {HourCycle} from './HourCycle'; import {TimeContext} from './TimeContext'; import {browserHourCycle} from './browserTimezone'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/time/ThemeSelect.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/time/ThemeSelect.tsx index ebae92e6653b2..09dc76237e6d9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/time/ThemeSelect.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/time/ThemeSelect.tsx @@ -1,7 +1,8 @@ -import {Icon, Menu, MenuItem, Select, Button} from '@dagster-io/ui-components'; -import {DagsterTheme} from '@dagster-io/ui-components/src/theme/theme'; import * as React from 'react'; +import {Button, Icon, Menu, MenuItem, Select} from '@dagster-io/ui-components'; +import {DagsterTheme} from '@dagster-io/ui-components/src/theme/theme'; + interface Props { theme: DagsterTheme; onChange: (value: DagsterTheme) => void; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/time/TimeContext.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/time/TimeContext.tsx index 1579c40a9aa22..c59e936c97bc3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/time/TimeContext.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/time/TimeContext.tsx @@ -1,7 +1,6 @@ import * as React from 'react'; import {useStateWithStorage} from '../../hooks/useStateWithStorage'; - import {HourCycle} from './HourCycle'; export const TimezoneStorageKey = 'TimezonePreference'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/time/TimezoneSelect.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/time/TimezoneSelect.tsx index 092bfc72543f5..b51471e90d2c0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/time/TimezoneSelect.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/time/TimezoneSelect.tsx @@ -1,6 +1,7 @@ -import {MenuDivider, MenuItem, Menu, Select} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Menu, MenuDivider, MenuItem, Select} from '@dagster-io/ui-components'; + import {TimeContext} from './TimeContext'; import {browserTimezone, browserTimezoneAbbreviation} from './browserTimezone'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/time/timestampToString.tsx b/js_modules/dagster-ui/packages/ui-core/src/app/time/timestampToString.tsx index 94c8bea05221a..57ac5f0be4424 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/time/timestampToString.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/app/time/timestampToString.tsx @@ -1,7 +1,7 @@ import memoize from 'lodash/memoize'; import {HourCycle} from './HourCycle'; -import {TimeFormat, DEFAULT_TIME_FORMAT} from './TimestampFormat'; +import {DEFAULT_TIME_FORMAT, TimeFormat} from './TimestampFormat'; import {browserTimezone} from './browserTimezone'; type Config = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/types/Permissions.types.ts b/js_modules/dagster-ui/packages/ui-core/src/app/types/Permissions.types.ts index f032a68ff23ee..a6490deefe013 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/types/Permissions.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/app/types/Permissions.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PermissionsQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/types/PythonErrorFragment.types.ts b/js_modules/dagster-ui/packages/ui-core/src/app/types/PythonErrorFragment.types.ts index 48d989d4b7f48..cdc1623e38405 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/types/PythonErrorFragment.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/app/types/PythonErrorFragment.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PythonErrorFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/types/PythonErrorInfo.types.ts b/js_modules/dagster-ui/packages/ui-core/src/app/types/PythonErrorInfo.types.ts index f496768061c37..78cc736394b2e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/types/PythonErrorInfo.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/app/types/PythonErrorInfo.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type UnauthorizedErrorFragment = {__typename: 'UnauthorizedError'; message: string}; diff --git a/js_modules/dagster-ui/packages/ui-core/src/app/types/Telemetry.types.ts b/js_modules/dagster-ui/packages/ui-core/src/app/types/Telemetry.types.ts index d99681a7f9196..0e4e8b9930c73 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/app/types/Telemetry.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/app/types/Telemetry.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type LogTelemetryMutationVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetDataRefreshButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetDataRefreshButton.tsx index 234e550e7f9b6..c4498182da63e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetDataRefreshButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetDataRefreshButton.tsx @@ -1,9 +1,10 @@ -import {Box, Button, Icon, Tooltip, colorAccentGray} from '@dagster-io/ui-components'; import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; import updateLocale from 'dayjs/plugin/updateLocale'; import React from 'react'; +import {Box, Button, Icon, Tooltip, colorAccentGray} from '@dagster-io/ui-components'; + dayjs.extend(relativeTime); dayjs.extend(updateLocale); diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetLiveDataProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetLiveDataProvider.tsx index 23004fd867f47..f28e049704f85 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetLiveDataProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-data/AssetLiveDataProvider.tsx @@ -7,7 +7,6 @@ import {LiveDataForNode, buildLiveDataForNode, tokenForAssetKey} from '../asset- import {AssetKeyInput} from '../graphql/types'; import {isDocumentVisible, useDocumentVisibility} from '../hooks/useDocumentVisibility'; import {useDidLaunchEvent} from '../runs/RunUtils'; - import {AssetDataRefreshButton} from './AssetDataRefreshButton'; import { AssetGraphLiveQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-data/__tests__/AssetLiveDataProvider.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-data/__tests__/AssetLiveDataProvider.test.tsx index ae33b07b36406..4a02b7c6106ad 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-data/__tests__/AssetLiveDataProvider.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-data/__tests__/AssetLiveDataProvider.test.tsx @@ -1,7 +1,5 @@ -jest.useFakeTimers(); - import {MockedProvider, MockedResponse} from '@apollo/client/testing'; -import {render, act, waitFor} from '@testing-library/react'; +import {act, render, waitFor} from '@testing-library/react'; import {GraphQLError} from 'graphql/error'; import React from 'react'; @@ -9,14 +7,15 @@ import {AssetKey, AssetKeyInput, buildAssetKey} from '../../graphql/types'; import {getMockResultFn} from '../../testing/mocking'; import { AssetLiveDataProvider, + BATCH_SIZE, SUBSCRIPTION_IDLE_POLL_RATE, _resetLastFetchedOrRequested, useAssetsLiveData, - BATCH_SIZE, } from '../AssetLiveDataProvider'; - import {buildMockedAssetGraphLiveQuery} from './util'; +jest.useFakeTimers(); + Object.defineProperty(document, 'visibilityState', {value: 'visible', writable: true}); Object.defineProperty(document, 'hidden', {value: false, writable: true}); diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-data/__tests__/util.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-data/__tests__/util.ts index be3c96524911e..16bfb7a904cfe 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-data/__tests__/util.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-data/__tests__/util.ts @@ -2,9 +2,9 @@ import {GraphQLError} from 'graphql/error'; import { AssetKeyInput, - buildAssetNode, buildAssetKey, buildAssetLatestInfo, + buildAssetNode, } from '../../graphql/types'; import {buildQueryMock} from '../../testing/mocking'; import {ASSETS_GRAPH_LIVE_QUERY} from '../AssetLiveDataProvider'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-data/types/AssetLiveDataProvider.types.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-data/types/AssetLiveDataProvider.types.ts index 574b4e11c949a..fdd3a1f72381c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-data/types/AssetLiveDataProvider.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-data/types/AssetLiveDataProvider.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AssetLatestInfoFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetEdges.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetEdges.tsx index 7361342b8f7f2..be06beaf00afb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetEdges.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetEdges.tsx @@ -1,6 +1,7 @@ -import {colorLineageEdgeHighlighted, colorLineageEdge} from '@dagster-io/ui-components'; import React from 'react'; +import {colorLineageEdge, colorLineageEdgeHighlighted} from '@dagster-io/ui-components'; + import {buildSVGPath} from './Utils'; import {AssetLayoutEdge} from './layout'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphExplorer.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphExplorer.tsx index 2449bee6abeb6..6993be41f36d8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphExplorer.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphExplorer.tsx @@ -1,3 +1,9 @@ +import pickBy from 'lodash/pickBy'; +import uniq from 'lodash/uniq'; +import without from 'lodash/without'; +import React from 'react'; +import styled from 'styled-components'; + import { Box, Button, @@ -16,11 +22,6 @@ import { colorKeylineDefault, colorTextLight, } from '@dagster-io/ui-components'; -import pickBy from 'lodash/pickBy'; -import uniq from 'lodash/uniq'; -import without from 'lodash/without'; -import React from 'react'; -import styled from 'styled-components'; import {ShortcutHandler} from '../app/ShortcutHandler'; import {AssetLiveDataRefresh} from '../asset-data/AssetLiveDataProvider'; @@ -44,7 +45,6 @@ import {ExplorerPath} from '../pipelines/PipelinePathUtils'; import {GraphQueryInput} from '../ui/GraphQueryInput'; import {Loading} from '../ui/Loading'; import {WorkspaceContext} from '../workspace/WorkspaceContext'; - import {AssetEdges} from './AssetEdges'; import {useAssetGraphExplorerFilters} from './AssetGraphExplorerFilters'; import {AssetGraphJobSidebar} from './AssetGraphJobSidebar'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphExplorerFilters.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphExplorerFilters.tsx index 91239644a3616..9fdb3f54e029d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphExplorerFilters.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphExplorerFilters.tsx @@ -1,6 +1,7 @@ -import {Box, Icon} from '@dagster-io/ui-components'; import React from 'react'; +import {Box, Icon} from '@dagster-io/ui-components'; + import {AssetGroupSelector} from '../graphql/types'; import {TruncatedTextWithFullTextOnHover} from '../nav/getLeftNavItemsForOption'; import {useFilters} from '../ui/Filters'; @@ -8,7 +9,6 @@ import {FilterObject, FilterTag, FilterTagHighlightedText} from '../ui/Filters/u import {useStaticSetFilter} from '../ui/Filters/useStaticSetFilter'; import {DagsterRepoOption, WorkspaceContext} from '../workspace/WorkspaceContext'; import {buildRepoAddress, buildRepoPathForHuman} from '../workspace/buildRepoAddress'; - import {GraphNode} from './Utils'; const emptySet = new Set(); diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphJobSidebar.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphJobSidebar.tsx index d347e45483cce..2b3aeb9bf639f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphJobSidebar.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetGraphJobSidebar.tsx @@ -1,16 +1,15 @@ -import {gql, useQuery} from '@apollo/client'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PipelineSelector} from '../graphql/types'; import {NonIdealPipelineQueryResult} from '../pipelines/NonIdealPipelineQueryResult'; import { - SidebarContainerOverview, SIDEBAR_ROOT_CONTAINER_FRAGMENT, + SidebarContainerOverview, } from '../pipelines/SidebarContainerOverview'; import {Loading} from '../ui/Loading'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; - import { AssetGraphSidebarQuery, AssetGraphSidebarQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNode.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNode.tsx index f236736561734..50eab2efc0c72 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNode.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNode.tsx @@ -1,4 +1,10 @@ import {gql} from '@apollo/client'; +import countBy from 'lodash/countBy'; +import isEqual from 'lodash/isEqual'; +import React from 'react'; +import {Link} from 'react-router-dom'; +import styled, {CSSObject} from 'styled-components'; + import { Box, FontFamily, @@ -13,20 +19,15 @@ import { colorBackgroundDefault, colorBackgroundGray, colorBackgroundLight, - colorTextDefault, - colorTextLight, - colorTextLighter, + colorLineageNodeBackground, colorLineageNodeBorder, - colorLineageNodeBorderSelected, colorLineageNodeBorderHover, - colorLineageNodeBackground, + colorLineageNodeBorderSelected, colorShadowDefault, + colorTextDefault, + colorTextLight, + colorTextLighter, } from '@dagster-io/ui-components'; -import countBy from 'lodash/countBy'; -import isEqual from 'lodash/isEqual'; -import React from 'react'; -import {Link} from 'react-router-dom'; -import styled, {CSSObject} from 'styled-components'; import {withMiddleTruncation} from '../app/Util'; import {useAssetLiveData} from '../asset-data/AssetLiveDataProvider'; @@ -37,7 +38,6 @@ import {AssetComputeKindTag} from '../graph/OpTags'; import {AssetCheckExecutionResolvedStatus, AssetCheckSeverity} from '../graphql/types'; import {ExplorerPath} from '../pipelines/PipelinePathUtils'; import {markdownToPlaintext} from '../ui/markdownToPlaintext'; - import {useAssetNodeMenu} from './AssetNodeMenu'; import {buildAssetNodeStatusContent} from './AssetNodeStatusContent'; import {AssetLatestRunSpinner} from './AssetRunLinking'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNodeMenu.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNodeMenu.tsx index ebd65e898b395..1b5a04e2d02e4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNodeMenu.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNodeMenu.tsx @@ -1,16 +1,16 @@ -import {Menu, MenuItem, Spinner, MenuDivider, Box} from '@dagster-io/ui-components'; import React from 'react'; +import {Box, Menu, MenuDivider, MenuItem, Spinner} from '@dagster-io/ui-components'; + import {showSharedToaster} from '../app/DomUtils'; import { AssetKeysDialog, - AssetKeysDialogHeader, AssetKeysDialogEmptyState, + AssetKeysDialogHeader, } from '../assets/AutoMaterializePolicyPage/AssetKeysDialog'; import {useMaterializationAction} from '../assets/LaunchAssetExecutionButton'; import {ExplorerPath} from '../pipelines/PipelinePathUtils'; import {VirtualizedItemListForDialog} from '../ui/VirtualizedItemListForDialog'; - import {GraphData, GraphNode, tokenForAssetKey} from './Utils'; import {StatusDot} from './sidebar/StatusDot'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNodeStatusContent.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNodeStatusContent.tsx index 877f426fbe7c7..b6b5dc47ca375 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNodeStatusContent.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetNodeStatusContent.tsx @@ -1,3 +1,6 @@ +import React from 'react'; +import {Link} from 'react-router-dom'; + import { Body, Icon, @@ -19,8 +22,6 @@ import { colorTextRed, colorTextYellow, } from '@dagster-io/ui-components'; -import React from 'react'; -import {Link} from 'react-router-dom'; import { StyleForAssetPartitionStatus, @@ -36,7 +37,6 @@ import { AssetKeyInput, } from '../graphql/types'; import {TimestampDisplay} from '../schedules/TimestampDisplay'; - import {AssetLatestRunSpinner, AssetRunLink} from './AssetRunLinking'; import {LiveDataForNode, stepKeyForAsset} from './Utils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetRunLinking.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetRunLinking.tsx index d4e95791373bf..32fa32a4651ad 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetRunLinking.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetRunLinking.tsx @@ -1,12 +1,12 @@ -import {Tooltip, Spinner, FontFamily} from '@dagster-io/ui-components'; import React from 'react'; import {Link} from 'react-router-dom'; +import {FontFamily, Spinner, Tooltip} from '@dagster-io/ui-components'; + import {assetDetailsPathForKey} from '../assets/assetDetailsPathForKey'; import {AssetViewParams} from '../assets/types'; import {AssetKeyInput} from '../graphql/types'; -import {titleForRun, linkToRunEvent} from '../runs/RunUtils'; - +import {linkToRunEvent, titleForRun} from '../runs/RunUtils'; import {LiveDataForNode} from './Utils'; interface AssetLatestRunSpinnerProps { diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetRunLogObserver.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetRunLogObserver.tsx index f9e5c79ec4708..02f692a103c89 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetRunLogObserver.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/AssetRunLogObserver.tsx @@ -2,7 +2,6 @@ import {gql, useSubscription} from '@apollo/client'; import React from 'react'; import {AssetKey} from '../graphql/types'; - import { AssetLiveRunLogsSubscription, AssetLiveRunLogsSubscriptionVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/CollapsedGroupNode.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/CollapsedGroupNode.tsx index 24fd903d68a82..4fc5f49c5a493 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/CollapsedGroupNode.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/CollapsedGroupNode.tsx @@ -1,3 +1,6 @@ +import React from 'react'; +import styled from 'styled-components'; + import { Box, FontFamily, @@ -10,15 +13,12 @@ import { colorTextLight, colorTextLighter, } from '@dagster-io/ui-components'; -import React from 'react'; -import styled from 'styled-components'; import {withMiddleTruncation} from '../app/Util'; import {CalculateChangedAndMissingDialog} from '../assets/CalculateChangedAndMissingDialog'; import {useMaterializationAction} from '../assets/LaunchAssetExecutionButton'; import {AssetKey} from '../assets/types'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; - import {AssetDescription, NameTooltipCSS} from './AssetNode'; import {ContextMenuWrapper} from './ContextMenuWrapper'; import {GraphNode} from './Utils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ContextMenuWrapper.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ContextMenuWrapper.tsx index 1e904398afc73..6f10404651a5e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ContextMenuWrapper.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ContextMenuWrapper.tsx @@ -1,7 +1,8 @@ -import {colorPopoverBackground} from '@dagster-io/ui-components'; import React from 'react'; import ReactDOM from 'react-dom'; +import {colorPopoverBackground} from '@dagster-io/ui-components'; + const CONTEXT_MENU_EVENT = 'context-menu-event'; export const ContextMenuWrapper = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ExpandedGroupNode.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ExpandedGroupNode.tsx index 226c2b28afeb3..456434fe6cf74 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ExpandedGroupNode.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ExpandedGroupNode.tsx @@ -1,14 +1,15 @@ +import React from 'react'; +import styled from 'styled-components'; + import { Box, Icon, colorLineageGroupBackground, - colorLineageGroupNodeBorder, colorLineageGroupNodeBackground, colorLineageGroupNodeBackgroundHover, + colorLineageGroupNodeBorder, colorLineageGroupNodeBorderHover, } from '@dagster-io/ui-components'; -import React from 'react'; -import styled from 'styled-components'; import {GroupNodeNameAndRepo, useGroupNodeContextMenu} from './CollapsedGroupNode'; import {ContextMenuWrapper} from './ContextMenuWrapper'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ForeignNode.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ForeignNode.tsx index 6e5fa3766202f..b8f177845618f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ForeignNode.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/ForeignNode.tsx @@ -1,9 +1,9 @@ -import {Icon, FontFamily, colorLinkDefault} from '@dagster-io/ui-components'; import React from 'react'; import styled from 'styled-components'; -import {withMiddleTruncation} from '../app/Util'; +import {FontFamily, Icon, colorLinkDefault} from '@dagster-io/ui-components'; +import {withMiddleTruncation} from '../app/Util'; import {ASSET_LINK_NAME_MAX_LENGTH} from './layout'; export const AssetNodeLink = React.memo(({assetKey}: {assetKey: {path: string[]}}) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/SidebarAssetInfo.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/SidebarAssetInfo.tsx index 7d7e05b32c029..72b74cb3bafd8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/SidebarAssetInfo.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/SidebarAssetInfo.tsx @@ -1,4 +1,8 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, ConfigTypeSchema, @@ -8,17 +12,14 @@ import { colorBorderDefault, colorLinkDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {COMMON_COLLATOR} from '../app/Util'; import {useAssetLiveData} from '../asset-data/AssetLiveDataProvider'; import {ASSET_NODE_CONFIG_FRAGMENT} from '../assets/AssetConfig'; import {AssetDefinedInMultipleReposNotice} from '../assets/AssetDefinedInMultipleReposNotice'; import { - AssetMetadataTable, ASSET_NODE_OP_METADATA_FRAGMENT, + AssetMetadataTable, metadataForAssetNode, } from '../assets/AssetMetadata'; import {AssetSidebarActivitySummary} from '../assets/AssetSidebarActivitySummary'; @@ -45,8 +46,7 @@ import {pluginForMetadata} from '../plugins'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - -import {displayNameForAssetKey, GraphNode, nodeDependsOnSelf, stepKeyForAsset} from './Utils'; +import {GraphNode, displayNameForAssetKey, nodeDependsOnSelf, stepKeyForAsset} from './Utils'; import {SidebarAssetQuery, SidebarAssetQueryVariables} from './types/SidebarAssetInfo.types'; import {AssetNodeForGraphQueryFragment} from './types/useAssetGraphData.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/Utils.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/Utils.tsx index 70110baeae14c..e459c39d035a6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/Utils.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/Utils.tsx @@ -3,6 +3,7 @@ import memoize from 'lodash/memoize'; import {COMMON_COLLATOR} from '../app/Util'; import { + AssetCheckLiveFragment, AssetGraphLiveQuery, AssetLatestInfoFragment, AssetLatestInfoRunFragment, @@ -10,10 +11,8 @@ import { AssetNodeLiveFreshnessInfoFragment, AssetNodeLiveMaterializationFragment, AssetNodeLiveObservationFragment, - AssetCheckLiveFragment, } from '../asset-data/types/AssetLiveDataProvider.types'; import {RunStatus, StaleStatus} from '../graphql/types'; - import {AssetNodeKeyFragment} from './types/AssetNode.types'; import {AssetNodeForGraphQueryFragment} from './types/useAssetGraphData.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__fixtures__/AssetNode.fixtures.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__fixtures__/AssetNode.fixtures.ts index 80c9ee7b6e7a1..2f4cbc118cb7e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__fixtures__/AssetNode.fixtures.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__fixtures__/AssetNode.fixtures.ts @@ -1,13 +1,13 @@ import { + AssetCheckExecutionResolvedStatus, + AssetCheckSeverity, RunStatus, - StaleStatus, StaleCause, StaleCauseCategory, - AssetCheckSeverity, - AssetCheckExecutionResolvedStatus, - buildAssetCheckExecution, - buildAssetCheckEvaluation, + StaleStatus, buildAssetCheck, + buildAssetCheckEvaluation, + buildAssetCheckExecution, buildAssetKey, } from '../../graphql/types'; import {LiveDataForNode} from '../Utils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__stories__/AssetNode.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__stories__/AssetNode.stories.tsx index 02e74940c8629..c997f195b2636 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__stories__/AssetNode.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__stories__/AssetNode.stories.tsx @@ -1,12 +1,13 @@ -import {Box} from '@dagster-io/ui-components'; import React from 'react'; +import {Box} from '@dagster-io/ui-components'; + +import * as Mocks from '../__fixtures__/AssetNode.fixtures'; import {_setCacheEntryForTest} from '../../asset-data/AssetLiveDataProvider'; import {KNOWN_TAGS} from '../../graph/OpTags'; import {buildAssetKey} from '../../graphql/types'; import {AssetNode, AssetNodeMinimal} from '../AssetNode'; import {AssetNodeLink} from '../ForeignNode'; -import * as Mocks from '../__fixtures__/AssetNode.fixtures'; import {getAssetNodeDimensions} from '../layout'; // eslint-disable-next-line import/no-default-export diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__stories__/SidebarAssetInfo.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__stories__/SidebarAssetInfo.stories.tsx index d7dada166cc51..5ec12ec183ac4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__stories__/SidebarAssetInfo.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__stories__/SidebarAssetInfo.stories.tsx @@ -1,7 +1,8 @@ import {MockedProvider, MockedResponse} from '@apollo/client/testing'; -import {Box} from '@dagster-io/ui-components'; import React from 'react'; +import {Box} from '@dagster-io/ui-components'; + import {createAppCache} from '../../app/AppCache'; import {buildPartitionHealthMock} from '../../assets/__fixtures__/PartitionHealthQuery.fixtures'; import {AssetEventsQuery} from '../../assets/types/useRecentAssetEvents.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__tests__/AssetNode.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__tests__/AssetNode.test.tsx index bcacc9b2f1d46..9013a9f80f7cd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__tests__/AssetNode.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__tests__/AssetNode.test.tsx @@ -1,5 +1,5 @@ -import {render, screen, waitFor} from '@testing-library/react'; import * as React from 'react'; +import {render, screen, waitFor} from '@testing-library/react'; import {MemoryRouter} from 'react-router-dom'; import {_setCacheEntryForTest} from '../../asset-data/AssetLiveDataProvider'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__tests__/AssetRunLogObserver.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__tests__/AssetRunLogObserver.test.tsx index 2122ddb3a9720..8953e744ee5a5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__tests__/AssetRunLogObserver.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/__tests__/AssetRunLogObserver.test.tsx @@ -4,9 +4,9 @@ import React from 'react'; import { buildAssetKey, - buildSubscription, buildMaterializationEvent, buildPipelineRunLogsSubscriptionSuccess, + buildSubscription, } from '../../graphql/types'; import { ASSET_LIVE_RUN_LOGS_SUBSCRIPTION, diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/layout.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/layout.ts index 40e7df2b948c8..eb3a98637ecd2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/layout.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/layout.ts @@ -1,8 +1,7 @@ import * as dagre from 'dagre'; import {IBounds, IPoint} from '../graph/common'; - -import {GraphData, GraphNode, GraphId, groupIdForNode, isGroupId} from './Utils'; +import {GraphData, GraphId, GraphNode, groupIdForNode, isGroupId} from './Utils'; export interface AssetLayout { id: GraphId; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/AssetSidebarNode.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/AssetSidebarNode.tsx index cfd8cf62a7fec..a0b5d73803319 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/AssetSidebarNode.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/AssetSidebarNode.tsx @@ -1,3 +1,6 @@ +import React from 'react'; +import styled from 'styled-components'; + import { Box, Icon, @@ -9,13 +12,10 @@ import { colorBackgroundLightHover, colorKeylineDefault, } from '@dagster-io/ui-components'; -import React from 'react'; -import styled from 'styled-components'; import {ExplorerPath} from '../../pipelines/PipelinePathUtils'; import {useAssetNodeMenu} from '../AssetNodeMenu'; import {GraphData, GraphNode} from '../Utils'; - import {StatusDot} from './StatusDot'; import {FolderNodeNonAssetType, getDisplayName} from './util'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/SearchFilter.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/SearchFilter.tsx index 8434c90e93f86..d101c4a182403 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/SearchFilter.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/SearchFilter.tsx @@ -1,7 +1,8 @@ -import {MenuItem, useViewport, Suggest, colorTextLighter} from '@dagster-io/ui-components'; import React from 'react'; import styled from 'styled-components'; +import {MenuItem, Suggest, colorTextLighter, useViewport} from '@dagster-io/ui-components'; + import {ShortcutHandler} from '../../app/ShortcutHandler'; export const SearchFilter = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/Sidebar.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/Sidebar.tsx index d4e2521e68b1d..5d853d035fa5e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/Sidebar.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/Sidebar.tsx @@ -1,7 +1,8 @@ -import {Button, Icon, Tooltip, Box} from '@dagster-io/ui-components'; import {useVirtualizer} from '@tanstack/react-virtual'; import React from 'react'; +import {Box, Button, Icon, Tooltip} from '@dagster-io/ui-components'; + import {LayoutContext} from '../../app/LayoutProvider'; import {AssetKey} from '../../assets/types'; import {useQueryAndLocalStoragePersistedState} from '../../hooks/useQueryAndLocalStoragePersistedState'; @@ -10,7 +11,6 @@ import {Container, Inner, Row} from '../../ui/VirtualizedTable'; import {buildRepoPathForHuman} from '../../workspace/buildRepoAddress'; import {GraphData, GraphNode, groupIdForNode, tokenForAssetKey} from '../Utils'; import {SearchFilter} from '../sidebar/SearchFilter'; - import {AssetSidebarNode} from './AssetSidebarNode'; import {FolderNodeType, getDisplayName, nodePathKey} from './util'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/StatusDot.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/StatusDot.tsx index f49c6b0d7ef03..4792ae7b8e3bc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/StatusDot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/StatusDot.tsx @@ -3,7 +3,6 @@ import React from 'react'; import {useAssetLiveData} from '../../asset-data/AssetLiveDataProvider'; import {StatusCase, buildAssetNodeStatusContent} from '../AssetNodeStatusContent'; import {GraphNode} from '../Utils'; - import {StatusCaseDot} from './util'; export function StatusDot({node}: {node: Pick}) { diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/util.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/util.tsx index 6d435f29564bd..bc25f81dcf807 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/util.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/sidebar/util.tsx @@ -1,3 +1,6 @@ +import React from 'react'; +import styled, {keyframes} from 'styled-components'; + import { Spinner, Tooltip, @@ -6,8 +9,6 @@ import { colorAccentGreen, colorAccentRed, } from '@dagster-io/ui-components'; -import React from 'react'; -import styled, {keyframes} from 'styled-components'; import {StatusCase} from '../AssetNodeStatusContent'; import {GraphNode} from '../Utils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetGraphJobSidebar.types.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetGraphJobSidebar.types.ts index aa02caacfa1cc..52bf69e02c378 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetGraphJobSidebar.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetGraphJobSidebar.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AssetGraphSidebarQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetNode.types.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetNode.types.ts index d9d9e76bdf19f..5d1f363ad7b9c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetNode.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetNode.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AssetNodeFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetRunLogObserver.types.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetRunLogObserver.types.ts index 4af492383776a..8ffaecb2d46fc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetRunLogObserver.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/AssetRunLogObserver.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AssetLiveRunLogsSubscriptionVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/SidebarAssetInfo.types.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/SidebarAssetInfo.types.ts index fe566b10cbf02..034820c6f2c1b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/SidebarAssetInfo.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/SidebarAssetInfo.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SidebarAssetFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/useAssetGraphData.types.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/useAssetGraphData.types.ts index ee4cc66ed3b78..1040106ad3d3f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/useAssetGraphData.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/useAssetGraphData.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AssetGraphQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/useFindAssetLocation.types.ts b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/useFindAssetLocation.types.ts index e702278539427..427252b6fcde7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/useFindAssetLocation.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/types/useFindAssetLocation.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AssetForNavigationQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/useAssetGraphData.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/useAssetGraphData.tsx index f6fce1f55b9c0..74b980544bf43 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/useAssetGraphData.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/useAssetGraphData.tsx @@ -4,12 +4,11 @@ import keyBy from 'lodash/keyBy'; import reject from 'lodash/reject'; import React from 'react'; -import {filterByQuery, GraphQueryItem} from '../app/GraphQueryImpl'; +import {GraphQueryItem, filterByQuery} from '../app/GraphQueryImpl'; import {AssetKey} from '../assets/types'; import {AssetGroupSelector, PipelineSelector} from '../graphql/types'; - import {ASSET_NODE_FRAGMENT} from './AssetNode'; -import {buildGraphData, GraphData, toGraphId, tokenForAssetKey} from './Utils'; +import {GraphData, buildGraphData, toGraphId, tokenForAssetKey} from './Utils'; import { AssetGraphQuery, AssetGraphQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/useFindAssetLocation.tsx b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/useFindAssetLocation.tsx index ac1653421e349..c11d8e79cfb2a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/asset-graph/useFindAssetLocation.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/asset-graph/useFindAssetLocation.tsx @@ -5,7 +5,6 @@ import {AssetKey} from '../assets/types'; import {AssetKeyInput} from '../graphql/types'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {RepoAddress} from '../workspace/types'; - import {isHiddenAssetGroupJob} from './Utils'; import { AssetForNavigationQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AllIndividualEventsButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AllIndividualEventsButton.tsx index 4155f78e1af7c..8474a55eff9ac 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AllIndividualEventsButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AllIndividualEventsButton.tsx @@ -1,23 +1,24 @@ +import * as React from 'react'; +import dayjs from 'dayjs'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Button, - DialogFooter, Dialog, + DialogFooter, Group, Icon, IconWrapper, - Table, Mono, - colorTextLight, - colorBackgroundLight, + Table, colorAccentLime, + colorBackgroundLight, colorBackgroundLightHover, colorTextDefault, + colorTextLight, } from '@dagster-io/ui-components'; -import dayjs from 'dayjs'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {Timestamp} from '../app/time/Timestamp'; import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; @@ -27,7 +28,6 @@ import {RunStatusWithStats} from '../runs/RunStatusDots'; import {linkToRunEvent, titleForRun} from '../runs/RunUtils'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; - import {AssetLineageElements} from './AssetLineageElements'; import {AssetEventGroup} from './groupByPartition'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetActionMenu.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetActionMenu.tsx index b0ca520c0a028..4014eb5c8c2a0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetActionMenu.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetActionMenu.tsx @@ -1,12 +1,12 @@ -import {Button, Icon, Menu, MenuItem, Popover, Spinner, Tooltip} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Button, Icon, Menu, MenuItem, Popover, Spinner, Tooltip} from '@dagster-io/ui-components'; + import {usePermissionsForLocation} from '../app/Permissions'; import {AssetKeyInput} from '../graphql/types'; import {MenuLink} from '../ui/MenuLink'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import { executionDisabledMessageForAssets, useMaterializationAction, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetDefinedInMultipleReposNotice.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetDefinedInMultipleReposNotice.tsx index d052f4cdafe23..e327d636a1adb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetDefinedInMultipleReposNotice.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetDefinedInMultipleReposNotice.tsx @@ -1,13 +1,13 @@ import {gql, useQuery} from '@apollo/client'; -import {Alert, Box, ButtonLink, colorTextYellow} from '@dagster-io/ui-components'; import React from 'react'; +import {Alert, Box, ButtonLink, colorTextYellow} from '@dagster-io/ui-components'; + import {showCustomAlert} from '../app/CustomAlertProvider'; import {displayNameForAssetKey} from '../asset-graph/Utils'; import {buildRepoPathForHuman} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {AssetKey} from './types'; import { AssetDefinitionCollisionQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventDetail.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventDetail.tsx index eabf4e14224de..0e93734e6d6e4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventDetail.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventDetail.tsx @@ -1,3 +1,6 @@ +import React from 'react'; +import {Link} from 'react-router-dom'; + import { Box, Group, @@ -8,8 +11,6 @@ import { colorAccentGray, colorTextLight, } from '@dagster-io/ui-components'; -import React from 'react'; -import {Link} from 'react-router-dom'; import {Timestamp} from '../app/time/Timestamp'; import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; @@ -17,10 +18,9 @@ import {AssetKeyInput} from '../graphql/types'; import {Description} from '../pipelines/Description'; import {PipelineReference} from '../pipelines/PipelineReference'; import {RunStatusWithStats} from '../runs/RunStatusDots'; -import {titleForRun, linkToRunEvent} from '../runs/RunUtils'; +import {linkToRunEvent, titleForRun} from '../runs/RunUtils'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; - import {AssetEventMetadataEntriesTable} from './AssetEventMetadataEntriesTable'; import {AssetEventSystemTags} from './AssetEventSystemTags'; import {AssetLineageElements} from './AssetLineageElements'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventList.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventList.tsx index ce2b3dee9cd01..6f1d85c49cbca 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventList.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventList.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; +import styled from 'styled-components'; + import { Box, Caption, @@ -9,9 +13,6 @@ import { colorTextBlue, colorTextLight, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import * as React from 'react'; -import styled from 'styled-components'; import {Timestamp} from '../app/time/Timestamp'; import {AssetRunLink} from '../asset-graph/AssetRunLinking'; @@ -19,7 +20,6 @@ import {AssetKeyInput} from '../graphql/types'; import {RunStatusWithStats} from '../runs/RunStatusDots'; import {titleForRun} from '../runs/RunUtils'; import {Container, Inner, Row} from '../ui/VirtualizedTable'; - import {RunlessEventTag} from './RunlessEventTag'; import {AssetEventGroup} from './groupByPartition'; import {isRunlessEvent} from './isRunlessEvent'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventMetadataEntriesTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventMetadataEntriesTable.tsx index ad7cddb4a2609..1ee5707f8f1b4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventMetadataEntriesTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventMetadataEntriesTable.tsx @@ -1,16 +1,16 @@ -import {Box, Caption, Mono, colorKeylineDefault, colorTextLight} from '@dagster-io/ui-components'; import dayjs from 'dayjs'; import uniqBy from 'lodash/uniqBy'; import React from 'react'; import {Link} from 'react-router-dom'; import styled from 'styled-components'; +import {Box, Caption, Mono, colorKeylineDefault, colorTextLight} from '@dagster-io/ui-components'; + import {MetadataEntry} from '../metadata/MetadataEntry'; import {titleForRun} from '../runs/RunUtils'; - import { - AssetObservationFragment, AssetMaterializationFragment, + AssetObservationFragment, } from './types/useRecentAssetEvents.types'; /** diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventSystemTags.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventSystemTags.tsx index 581eec1d38899..83949b243f374 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventSystemTags.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEventSystemTags.tsx @@ -1,10 +1,10 @@ -import {Box, ButtonLink, Caption, Icon, Mono, colorKeylineDefault} from '@dagster-io/ui-components'; import React from 'react'; import styled from 'styled-components'; +import {Box, ButtonLink, Caption, Icon, Mono, colorKeylineDefault} from '@dagster-io/ui-components'; + import {useStateWithStorage} from '../hooks/useStateWithStorage'; import {DagsterTag} from '../runs/RunTag'; - import {AssetEventGroup} from './groupByPartition'; // There can be other keys in the event tags, but we want to show data and code version diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEvents.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEvents.tsx index d17e39469aa2e..49141c12ae2e3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEvents.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetEvents.tsx @@ -1,23 +1,23 @@ +import * as React from 'react'; + import { Box, + Button, ButtonGroup, - Spinner, - Subheading, - ErrorBoundary, Checkbox, - Popover, + ErrorBoundary, + Icon, Menu, MenuItem, - Button, - Icon, + Popover, + Spinner, + Subheading, colorBackgroundLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {LiveDataForNode, stepKeyForAsset} from '../asset-graph/Utils'; import {RepositorySelector} from '../graphql/types'; import {useStateWithStorage} from '../hooks/useStateWithStorage'; - import {AssetEventDetail, AssetEventDetailEmpty} from './AssetEventDetail'; import {AssetEventList} from './AssetEventList'; import {AssetPartitionDetail, AssetPartitionDetailEmpty} from './AssetPartitionDetail'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetGroupRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetGroupRoot.tsx index bf624c8a35d28..1268e419dae6f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetGroupRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetGroupRoot.tsx @@ -1,8 +1,9 @@ -import {gql, useQuery} from '@apollo/client'; -import {Page, PageHeader, Heading, Box, Tag, Tabs} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {useHistory, useParams} from 'react-router-dom'; +import {Box, Heading, Page, PageHeader, Tabs, Tag} from '@dagster-io/ui-components'; + import {useTrackPageView} from '../app/analytics'; import {AssetGraphExplorer} from '../asset-graph/AssetGraphExplorer'; import {AssetLocation} from '../asset-graph/useFindAssetLocation'; @@ -19,7 +20,6 @@ import {TabLink} from '../ui/TabLink'; import {ReloadAllButton} from '../workspace/ReloadAllButton'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {AssetGlobalLineageLink} from './AssetPageHeader'; import {AssetsCatalogTable} from './AssetsCatalogTable'; import {AutomaterializeDaemonStatusTag} from './AutomaterializeDaemonStatusTag'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetGroupSuggest.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetGroupSuggest.tsx index 319a4e8442245..2fdba4e318f7e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetGroupSuggest.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetGroupSuggest.tsx @@ -1,7 +1,8 @@ -import {Box, Checkbox, Icon, MenuItem, Suggest} from '@dagster-io/ui-components'; +import * as React from 'react'; import isEqual from 'lodash/isEqual'; import uniqBy from 'lodash/uniqBy'; -import * as React from 'react'; + +import {Box, Checkbox, Icon, MenuItem, Suggest} from '@dagster-io/ui-components'; import {AssetGroupSelector} from '../graphql/types'; import {ClearButton} from '../ui/ClearButton'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetLineageElements.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetLineageElements.tsx index 91b6a46782f98..09e46c1e4a565 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetLineageElements.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetLineageElements.tsx @@ -1,10 +1,10 @@ import {gql} from '@apollo/client'; -import {Box, ButtonLink, Tooltip} from '@dagster-io/ui-components'; import React from 'react'; import {Link} from 'react-router-dom'; -import {Timestamp} from '../app/time/Timestamp'; +import {Box, ButtonLink, Tooltip} from '@dagster-io/ui-components'; +import {Timestamp} from '../app/time/Timestamp'; import {assetDetailsPathForKey} from './assetDetailsPathForKey'; import {AssetLineageFragment} from './types/AssetLineageElements.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetLink.tsx index 5cb6d79460028..bf4090c14fa45 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetLink.tsx @@ -1,7 +1,8 @@ -import {Box, Icon, MiddleTruncate, colorAccentGray} from '@dagster-io/ui-components'; import * as React from 'react'; import {Link} from 'react-router-dom'; +import {Box, Icon, MiddleTruncate, colorAccentGray} from '@dagster-io/ui-components'; + import {assetDetailsPathForKey} from './assetDetailsPathForKey'; export const AssetLink = (props: { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMaterializationGraphs.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMaterializationGraphs.tsx index 49091eb32a3e1..a18267b153ce8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMaterializationGraphs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMaterializationGraphs.tsx @@ -1,14 +1,15 @@ +import * as React from 'react'; +import flatMap from 'lodash/flatMap'; +import uniq from 'lodash/uniq'; + import { Box, - NonIdealState, Caption, - Subheading, ExternalAnchorButton, + NonIdealState, + Subheading, colorTextLight, } from '@dagster-io/ui-components'; -import flatMap from 'lodash/flatMap'; -import uniq from 'lodash/uniq'; -import * as React from 'react'; import {AssetValueGraph, AssetValueGraphData} from './AssetValueGraph'; import {AssetEventGroup} from './groupByPartition'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMaterializationUpstreamData.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMaterializationUpstreamData.tsx index 1efe1cfff2f8b..31dd6dcceb7bb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMaterializationUpstreamData.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMaterializationUpstreamData.tsx @@ -1,4 +1,10 @@ import {gql, useQuery} from '@apollo/client'; +import dayjs from 'dayjs'; +import relativeTime from 'dayjs/plugin/relativeTime'; +import React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Caption, @@ -8,21 +14,15 @@ import { colorTextLight, colorTextRed, } from '@dagster-io/ui-components'; -import dayjs from 'dayjs'; -import relativeTime from 'dayjs/plugin/relativeTime'; -import React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {Timestamp} from '../app/time/Timestamp'; import {displayNameForAssetKey} from '../asset-graph/Utils'; import {AssetKeyInput} from '../graphql/types'; - import {assetDetailsPathForKey} from './assetDetailsPathForKey'; import { - AssetMaterializationUpstreamTableFragment, AssetMaterializationUpstreamQuery, AssetMaterializationUpstreamQueryVariables, + AssetMaterializationUpstreamTableFragment, MaterializationUpstreamDataVersionFragment, } from './types/AssetMaterializationUpstreamData.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMetadata.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMetadata.tsx index 732a70d2c4e97..7adb9fdc15948 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMetadata.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetMetadata.tsx @@ -1,12 +1,12 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; + import {Box, MetadataTable} from '@dagster-io/ui-components'; -import * as React from 'react'; import {DAGSTER_TYPE_FRAGMENT} from '../dagstertype/DagsterType'; import {DagsterTypeFragment} from '../dagstertype/types/DagsterType.types'; -import {MetadataEntry, METADATA_ENTRY_FRAGMENT} from '../metadata/MetadataEntry'; +import {METADATA_ENTRY_FRAGMENT, MetadataEntry} from '../metadata/MetadataEntry'; import {MetadataEntryFragment} from '../metadata/types/MetadataEntry.types'; - import {AssetNodeOpMetadataFragment} from './types/AssetMetadata.types'; export const metadataForAssetNode = ( diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeDefinition.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeDefinition.tsx index cb666786bd461..9c6786b3d82fc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeDefinition.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeDefinition.tsx @@ -1,4 +1,7 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; +import {Link} from 'react-router-dom'; + import { Body, Box, @@ -10,8 +13,6 @@ import { colorAccentGray, colorLinkDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; import {COMMON_COLLATOR} from '../app/Util'; import {ASSET_NODE_FRAGMENT} from '../asset-graph/AssetNode'; @@ -24,18 +25,17 @@ import {ResourceContainer, ResourceHeader} from '../pipelines/SidebarOpHelpers'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {ASSET_NODE_CONFIG_FRAGMENT} from './AssetConfig'; import {AssetDefinedInMultipleReposNotice} from './AssetDefinedInMultipleReposNotice'; import { - AssetMetadataTable, ASSET_NODE_OP_METADATA_FRAGMENT, + AssetMetadataTable, metadataForAssetNode, } from './AssetMetadata'; import {AssetNodeList} from './AssetNodeList'; import { - automaterializePolicyDescription, AutomaterializePolicyTag, + automaterializePolicyDescription, } from './AutomaterializePolicyTag'; import {DependsOnSelfBanner} from './DependsOnSelfBanner'; import {OverdueTag, freshnessPolicyDescription} from './OverdueTag'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeInstigatorTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeInstigatorTag.tsx index 2235f61a8e18c..b3928cd761ad1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeInstigatorTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeInstigatorTag.tsx @@ -7,7 +7,6 @@ import {ScheduleSwitchFragment} from '../schedules/types/ScheduleSwitch.types'; import {SENSOR_SWITCH_FRAGMENT} from '../sensors/SensorSwitch'; import {SensorSwitchFragment} from '../sensors/types/SensorSwitch.types'; import {RepoAddress} from '../workspace/types'; - import {AssetNodeInstigatorsFragment} from './types/AssetNodeInstigatorTag.types'; export const AssetNodeInstigatorTag = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeLineage.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeLineage.tsx index 9004acd889d43..3511be237280b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeLineage.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeLineage.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, Button, @@ -9,13 +12,10 @@ import { colorBorderDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {GraphData} from '../asset-graph/Utils'; import {AssetGraphQueryItem, calculateGraphDistances} from '../asset-graph/useAssetGraphData'; import {AssetKeyInput} from '../graphql/types'; - import {AssetNodeLineageGraph} from './AssetNodeLineageGraph'; import {LaunchAssetExecutionButton} from './LaunchAssetExecutionButton'; import {AssetLineageScope, AssetViewParams} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeLineageGraph.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeLineageGraph.tsx index f211b1c9368a5..a098d157d2450 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeLineageGraph.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeLineageGraph.tsx @@ -1,11 +1,12 @@ -import {Box, Spinner} from '@dagster-io/ui-components'; import React from 'react'; import {useHistory} from 'react-router-dom'; import styled from 'styled-components'; +import {Box, Spinner} from '@dagster-io/ui-components'; + import {AssetEdges} from '../asset-graph/AssetEdges'; import {MINIMAL_SCALE} from '../asset-graph/AssetGraphExplorer'; -import {AssetNodeMinimal, AssetNode, AssetNodeContextMenuWrapper} from '../asset-graph/AssetNode'; +import {AssetNode, AssetNodeContextMenuWrapper, AssetNodeMinimal} from '../asset-graph/AssetNode'; import {ExpandedGroupNode} from '../asset-graph/ExpandedGroupNode'; import {AssetNodeLink} from '../asset-graph/ForeignNode'; import {GraphData, GraphNode, groupIdForNode, toGraphId} from '../asset-graph/Utils'; @@ -14,7 +15,6 @@ import {useAssetLayout} from '../graph/asyncGraphLayout'; import {isNodeOffscreen} from '../graph/common'; import {AssetKeyInput} from '../graphql/types'; import {getJSONForKey} from '../hooks/useStateWithStorage'; - import {assetDetailsPathForKey} from './assetDetailsPathForKey'; import {AssetKey, AssetViewParams} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeList.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeList.tsx index a898295713d8d..0793678a7c0ff 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeList.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodeList.tsx @@ -1,11 +1,11 @@ -import {Box, Spinner} from '@dagster-io/ui-components'; import React from 'react'; import {useHistory} from 'react-router-dom'; import styled from 'styled-components'; +import {Box, Spinner} from '@dagster-io/ui-components'; + import {AssetNode} from '../asset-graph/AssetNode'; import {AssetNodeForGraphQueryFragment} from '../asset-graph/types/useAssetGraphData.types'; - import {assetDetailsPathForKey} from './assetDetailsPathForKey'; export const AssetNodeList = ({items}: {items: AssetNodeForGraphQueryFragment[] | null}) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodePartitionCounts.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodePartitionCounts.tsx index 0be118083f2a1..43e073d541cc3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodePartitionCounts.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetNodePartitionCounts.tsx @@ -1,25 +1,26 @@ +import React from 'react'; +import styled from 'styled-components'; + import { - Icon, Box, - Tooltip, + Icon, IconName, - colorBackgroundRed, - colorTextRed, - colorAccentRed, - colorBackgroundGreen, - colorTextGreen, - colorAccentGreen, + Tooltip, colorAccentBlue, colorAccentGray, + colorAccentGreen, + colorAccentRed, colorBackgroundBlue, colorBackgroundGray, + colorBackgroundGreen, + colorBackgroundRed, colorTextBlue, - colorTextLight, colorTextDefault, + colorTextGreen, + colorTextLight, colorTextLighter, + colorTextRed, } from '@dagster-io/ui-components'; -import React from 'react'; -import styled from 'styled-components'; import {LiveDataForNode} from '../asset-graph/Utils'; import {AssetNodeFragment} from '../asset-graph/types/AssetNode.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPageHeader.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPageHeader.tsx index fd454f9587956..a5fec1996d58b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPageHeader.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPageHeader.tsx @@ -1,21 +1,22 @@ // eslint-disable-next-line no-restricted-imports import {BreadcrumbProps, Breadcrumbs} from '@blueprintjs/core'; +import React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, - PageHeader, Heading, Icon, - Tooltip, IconWrapper, - colorLinkDefault, - colorTextLight, + PageHeader, + Tooltip, colorAccentGray, colorAccentGrayHover, + colorLinkDefault, + colorTextLight, colorTextLighter, } from '@dagster-io/ui-components'; -import React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {showSharedToaster} from '../app/DomUtils'; import {useCopyToClipboard} from '../app/browser'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionDetail.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionDetail.tsx index ddac869b50369..f33cf09b2bfee 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionDetail.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionDetail.tsx @@ -1,4 +1,7 @@ import {gql, useQuery} from '@apollo/client'; +import React from 'react'; +import {Link} from 'react-router-dom'; + import { Alert, Box, @@ -16,18 +19,15 @@ import { colorTextDefault, colorTextLight, } from '@dagster-io/ui-components'; -import React from 'react'; -import {Link} from 'react-router-dom'; import {Timestamp} from '../app/time/Timestamp'; import {LiveDataForNode, isHiddenAssetGroupJob, stepKeyForAsset} from '../asset-graph/Utils'; import {RunStatus, StaleStatus} from '../graphql/types'; import {PipelineReference} from '../pipelines/PipelineReference'; import {RunStatusWithStats} from '../runs/RunStatusDots'; -import {titleForRun, linkToRunEvent} from '../runs/RunUtils'; +import {linkToRunEvent, titleForRun} from '../runs/RunUtils'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; - import {AllIndividualEventsButton} from './AllIndividualEventsButton'; import {AssetEventMetadataEntriesTable} from './AssetEventMetadataEntriesTable'; import {AssetEventSystemTags} from './AssetEventSystemTags'; @@ -37,9 +37,9 @@ import {StaleReasonsTags} from './Stale'; import {AssetEventGroup} from './groupByPartition'; import {AssetKey} from './types'; import { - AssetPartitionLatestRunFragment, AssetPartitionDetailQuery, AssetPartitionDetailQueryVariables, + AssetPartitionLatestRunFragment, AssetPartitionStaleQuery, AssetPartitionStaleQueryVariables, } from './types/AssetPartitionDetail.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionList.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionList.tsx index 01f5b04152295..c9ca937544f13 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionList.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionList.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; + import { Box, MiddleTruncate, @@ -5,12 +8,9 @@ import { colorBorderDefault, colorTextDefault, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import * as React from 'react'; import {Inner} from '../ui/VirtualizedTable'; - -import {AssetListRow, AssetListContainer} from './AssetEventList'; +import {AssetListContainer, AssetListRow} from './AssetEventList'; import {AssetPartitionStatus, assetPartitionStatusesToStyle} from './AssetPartitionStatus'; export interface AssetPartitionListProps { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionStatus.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionStatus.tsx index 4c39379a6dfdc..ae492a78ddf7b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionStatus.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionStatus.tsx @@ -1,4 +1,5 @@ // Same as PartitionRangeStatus but we need a "MISSING" value +import {CSSProperties} from 'react'; import { colorAccentBlue, @@ -7,7 +8,6 @@ import { colorAccentRed, colorBackgroundLight, } from '@dagster-io/ui-components'; -import {CSSProperties} from 'react'; import {assertUnreachable} from '../app/Util'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionStatusCheckboxes.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionStatusCheckboxes.tsx index 44de9d131958a..9227a3d051f19 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionStatusCheckboxes.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitionStatusCheckboxes.tsx @@ -1,8 +1,8 @@ -import {Box, Checkbox} from '@dagster-io/ui-components'; import * as React from 'react'; -import {testId} from '../testing/testId'; +import {Box, Checkbox} from '@dagster-io/ui-components'; +import {testId} from '../testing/testId'; import {AssetPartitionStatus, assetPartitionStatusToText} from './AssetPartitionStatus'; export const AssetPartitionStatusCheckboxes = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitions.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitions.tsx index 31c189d2311c3..411c3817dc019 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitions.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPartitions.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import isEqual from 'lodash/isEqual'; +import uniq from 'lodash/uniq'; + import { Box, Icon, @@ -11,9 +15,6 @@ import { colorBackgroundDefault, colorBackgroundLight, } from '@dagster-io/ui-components'; -import isEqual from 'lodash/isEqual'; -import uniq from 'lodash/uniq'; -import * as React from 'react'; import {LiveDataForNode} from '../asset-graph/Utils'; import {PartitionDefinitionType, RepositorySelector} from '../graphql/types'; @@ -21,20 +22,19 @@ import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; import {SortButton} from '../launchpad/ConfigEditorConfigPicker'; import {DimensionRangeWizard} from '../partitions/DimensionRangeWizard'; import {testId} from '../testing/testId'; - import {AssetPartitionDetailEmpty, AssetPartitionDetailLoader} from './AssetPartitionDetail'; import {AssetPartitionList} from './AssetPartitionList'; import {AssetPartitionStatus} from './AssetPartitionStatus'; import {AssetPartitionStatusCheckboxes} from './AssetPartitionStatusCheckboxes'; import {isTimeseriesDimension} from './MultipartitioningSupport'; -import {AssetViewParams, AssetKey} from './types'; +import {AssetKey, AssetViewParams} from './types'; import {usePartitionDimensionSelections} from './usePartitionDimensionSelections'; import { - usePartitionHealthData, - rangesClippedToSelection, keyCountByStateInSelection, partitionStatusAtIndex, + rangesClippedToSelection, selectionRangeWithSingleKey, + usePartitionHealthData, } from './usePartitionHealthData'; import {usePartitionKeyInParams} from './usePartitionKeyInParams'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPlots.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPlots.tsx index a2054160a32b2..81665bc859912 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPlots.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetPlots.tsx @@ -1,9 +1,10 @@ -import {Box, ButtonGroup, Spinner, Subheading} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, ButtonGroup, Spinner, Subheading} from '@dagster-io/ui-components'; + import {AssetMaterializationGraphs} from './AssetMaterializationGraphs'; import {useGroupedEvents} from './groupByPartition'; -import {AssetViewParams, AssetKey} from './types'; +import {AssetKey, AssetViewParams} from './types'; import {useRecentAssetEvents} from './useRecentAssetEvents'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetSidebarActivitySummary.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetSidebarActivitySummary.tsx index c78e3aa316f0d..18e5b350f5889 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetSidebarActivitySummary.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetSidebarActivitySummary.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; + import { Body, Box, @@ -8,13 +11,10 @@ import { colorLinkDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; import {LiveDataForNode} from '../asset-graph/Utils'; import {SidebarAssetFragment} from '../asset-graph/types/SidebarAssetInfo.types'; import {SidebarSection} from '../pipelines/SidebarComponents'; - import {AssetEventSystemTags} from './AssetEventSystemTags'; import {AssetMaterializationGraphs} from './AssetMaterializationGraphs'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTable.tsx index bb27dda06bf20..ca2a8ed0e508e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTable.tsx @@ -1,4 +1,7 @@ +import * as React from 'react'; import {RefetchQueriesFunction} from '@apollo/client'; +import groupBy from 'lodash/groupBy'; + import { Box, Button, @@ -13,8 +16,6 @@ import { colorBackgroundDefault, colorTextDisabled, } from '@dagster-io/ui-components'; -import groupBy from 'lodash/groupBy'; -import * as React from 'react'; import {useUnscopedPermissions} from '../app/Permissions'; import {QueryRefreshCountdown, QueryRefreshState} from '../app/QueryRefresh'; @@ -22,7 +23,6 @@ import {AssetGroupSelector, AssetKeyInput} from '../graphql/types'; import {useSelectionReducer} from '../hooks/useSelectionReducer'; import {testId} from '../testing/testId'; import {VirtualizedAssetTable} from '../workspace/VirtualizedAssetTable'; - import {AssetWipeDialog} from './AssetWipeDialog'; import {LaunchAssetExecutionButton} from './LaunchAssetExecutionButton'; import {AssetTableFragment} from './types/AssetTableFragment.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTabs.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTabs.tsx index 70af69f533f5b..9eab405921656 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTabs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetTabs.tsx @@ -1,9 +1,9 @@ -import {Tab, Tabs} from '@dagster-io/ui-components'; -import qs from 'qs'; import * as React from 'react'; +import qs from 'qs'; -import {TabLink} from '../ui/TabLink'; +import {Tab, Tabs} from '@dagster-io/ui-components'; +import {TabLink} from '../ui/TabLink'; import {AssetViewParams} from './types'; import {AssetViewDefinitionNodeFragment} from './types/AssetView.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetValueGraph.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetValueGraph.tsx index fa01bca2a6c77..aa4732978686a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetValueGraph.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetValueGraph.tsx @@ -1,9 +1,10 @@ -import {colorAccentBlue, colorBackgroundBlue} from '@dagster-io/ui-components'; +import * as React from 'react'; import {ActiveElement, ChartEvent} from 'chart.js'; import 'chartjs-adapter-date-fns'; -import * as React from 'react'; import {Line} from 'react-chartjs-2'; +import {colorAccentBlue, colorBackgroundBlue} from '@dagster-io/ui-components'; + export interface AssetValueGraphData { minY: number; maxY: number; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetView.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetView.tsx index de5afb8e6185d..a2356504075dc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetView.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetView.tsx @@ -1,8 +1,9 @@ -import {gql, useQuery} from '@apollo/client'; -import {Alert, Box, NonIdealState, Spinner, Tag, ErrorBoundary} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {Link, useLocation} from 'react-router-dom'; +import {Alert, Box, ErrorBoundary, NonIdealState, Spinner, Tag} from '@dagster-io/ui-components'; + import {Timestamp} from '../app/time/Timestamp'; import {AssetLiveDataRefresh, useAssetLiveData} from '../asset-data/AssetLiveDataProvider'; import { @@ -20,11 +21,10 @@ import {RepositoryLink} from '../nav/RepositoryLink'; import {useStartTrace} from '../performance'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {AssetEvents} from './AssetEvents'; import {AssetFeatureContext} from './AssetFeatureContext'; -import {AssetNodeDefinition, ASSET_NODE_DEFINITION_FRAGMENT} from './AssetNodeDefinition'; -import {AssetNodeInstigatorTag, ASSET_NODE_INSTIGATORS_FRAGMENT} from './AssetNodeInstigatorTag'; +import {ASSET_NODE_DEFINITION_FRAGMENT, AssetNodeDefinition} from './AssetNodeDefinition'; +import {ASSET_NODE_INSTIGATORS_FRAGMENT, AssetNodeInstigatorTag} from './AssetNodeInstigatorTag'; import {AssetNodeLineage} from './AssetNodeLineage'; import {AssetPageHeader} from './AssetPageHeader'; import {AssetPartitions} from './AssetPartitions'; @@ -40,9 +40,9 @@ import {UNDERLYING_OPS_ASSET_NODE_FRAGMENT} from './UnderlyingOpsOrGraph'; import {AssetChecks} from './asset-checks/AssetChecks'; import {AssetKey, AssetViewParams} from './types'; import { + AssetViewDefinitionNodeFragment, AssetViewDefinitionQuery, AssetViewDefinitionQueryVariables, - AssetViewDefinitionNodeFragment, } from './types/AssetView.types'; import {healthRefreshHintFromLiveData} from './usePartitionHealthData'; import {useReportEventsModal} from './useReportEventsModal'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetWipeDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetWipeDialog.tsx index e213b24d77184..489f193167739 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetWipeDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetWipeDialog.tsx @@ -1,10 +1,10 @@ -import {gql, RefetchQueriesFunction, useMutation} from '@apollo/client'; -import {Button, DialogBody, DialogFooter, Dialog, Group} from '@dagster-io/ui-components'; import * as React from 'react'; +import {RefetchQueriesFunction, gql, useMutation} from '@apollo/client'; + +import {Button, Dialog, DialogBody, DialogFooter, Group} from '@dagster-io/ui-components'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {displayNameForAssetKey} from '../asset-graph/Utils'; - import {asAssetKeyInput} from './asInput'; import {AssetWipeMutation, AssetWipeMutationVariables} from './types/AssetWipeDialog.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogRoot.tsx index bb5af12fcaa47..297e67cf76fdd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogRoot.tsx @@ -1,14 +1,14 @@ -import {gql, useQuery} from '@apollo/client'; -import {Box, Page, Spinner, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {useHistory, useParams} from 'react-router-dom'; +import {Box, Page, Spinner, colorTextLight} from '@dagster-io/ui-components'; + import {useTrackPageView} from '../app/analytics'; import {displayNameForAssetKey} from '../asset-graph/Utils'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {useStartTrace} from '../performance'; import {ReloadAllButton} from '../workspace/ReloadAllButton'; - import {AssetGlobalLineageLink, AssetPageHeader} from './AssetPageHeader'; import {AssetView} from './AssetView'; import {AssetsCatalogTable} from './AssetsCatalogTable'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogTable.tsx index d8eee686000d1..0a93951c18b21 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsCatalogTable.tsx @@ -1,7 +1,8 @@ -import {gql, QueryResult, useQuery} from '@apollo/client'; -import {Box, TextInput, ButtonGroup} from '@dagster-io/ui-components'; -import isEqual from 'lodash/isEqual'; import * as React from 'react'; +import {QueryResult, gql, useQuery} from '@apollo/client'; +import isEqual from 'lodash/isEqual'; + +import {Box, ButtonGroup, TextInput} from '@dagster-io/ui-components'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; @@ -11,7 +12,6 @@ import {AssetGroupSelector} from '../graphql/types'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; import {useStartTrace} from '../performance'; import {LoadingSpinner} from '../ui/Loading'; - import { AssetGroupSuggest, buildAssetGroupSelector, @@ -22,11 +22,11 @@ import {ASSET_TABLE_DEFINITION_FRAGMENT, ASSET_TABLE_FRAGMENT} from './AssetTabl import {AssetsEmptyState} from './AssetsEmptyState'; import {AssetTableFragment} from './types/AssetTableFragment.types'; import { - AssetCatalogTableQuery, - AssetCatalogTableQueryVariables, - AssetCatalogGroupTableQuery, AssetCatalogGroupTableNodeFragment, + AssetCatalogGroupTableQuery, AssetCatalogGroupTableQueryVariables, + AssetCatalogTableQuery, + AssetCatalogTableQueryVariables, } from './types/AssetsCatalogTable.types'; import {useAssetSearch} from './useAssetSearch'; import {AssetViewType, useAssetView} from './useAssetView'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsEmptyState.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsEmptyState.tsx index 4ee8537e41a56..3dfdcc9d2baf2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsEmptyState.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AssetsEmptyState.tsx @@ -1,6 +1,7 @@ -import {NonIdealState} from '@dagster-io/ui-components'; import * as React from 'react'; +import {NonIdealState} from '@dagster-io/ui-components'; + export const AssetsEmptyState = ({prefixPath}: {prefixPath: string[]}) => ( { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/PolicyEvaluationTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/PolicyEvaluationTable.tsx index 145b3e762eebb..3425895274776 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/PolicyEvaluationTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/PolicyEvaluationTable.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled, {css} from 'styled-components'; + import { Box, Table, @@ -6,12 +9,9 @@ import { colorBackgroundLightHover, colorKeylineDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled, {css} from 'styled-components'; import {assertUnreachable} from '../../app/Util'; import {TimeElapsed} from '../../runs/TimeElapsed'; - import {PartitionSegmentWithPopover} from './PartitionSegmentWithPopover'; import {PolicyEvaluationCondition} from './PolicyEvaluationCondition'; import {PolicyEvaluationStatusTag} from './PolicyEvaluationStatusTag'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/RuleEvaluationOutcomes.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/RuleEvaluationOutcomes.tsx index feb048d9230ca..2f9cb3553610e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/RuleEvaluationOutcomes.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/RuleEvaluationOutcomes.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import groupBy from 'lodash/groupBy'; + import { Box, Icon, @@ -6,8 +9,6 @@ import { colorTextLight, colorTextLighter, } from '@dagster-io/ui-components'; -import groupBy from 'lodash/groupBy'; -import * as React from 'react'; import {assertUnreachable} from '../../app/Util'; import { @@ -15,7 +16,6 @@ import { AutoMaterializeRule, AutoMaterializeRuleEvaluation, } from '../../graphql/types'; - import {AutomaterializeRequestedPartitionsLink} from './AutomaterializeRequestedPartitionsLink'; import {CollapsibleSection} from './CollapsibleSection'; import {ParentUpdatedLink} from './ParentUpdatedLink'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/VirtualizedAssetPartitionListForDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/VirtualizedAssetPartitionListForDialog.tsx index 8299b10bc0fb0..e32b914502bf9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/VirtualizedAssetPartitionListForDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/VirtualizedAssetPartitionListForDialog.tsx @@ -1,8 +1,9 @@ -import {Box, Icon} from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; import styled from 'styled-components'; +import {Box, Icon} from '@dagster-io/ui-components'; + import {COMMON_COLLATOR} from '../../app/Util'; import {Container, Inner, Row} from '../../ui/VirtualizedTable'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/WaitingOnAssetKeysLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/WaitingOnAssetKeysLink.tsx index 042998280035f..3a3eff61138b1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/WaitingOnAssetKeysLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/WaitingOnAssetKeysLink.tsx @@ -1,10 +1,10 @@ -import {ButtonLink} from '@dagster-io/ui-components'; import * as React from 'react'; +import {ButtonLink} from '@dagster-io/ui-components'; + import {VirtualizedItemListForDialog} from '../../ui/VirtualizedItemListForDialog'; import {AssetLink} from '../AssetLink'; import {AssetKey} from '../types'; - import {AssetKeysDialog, AssetKeysDialogEmptyState, AssetKeysDialogHeader} from './AssetKeysDialog'; import {useFilterAssetKeys} from './assetFilters'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/WaitingOnAssetKeysPartitionLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/WaitingOnAssetKeysPartitionLink.tsx index 867ade8c6e266..10a11ef5677bf 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/WaitingOnAssetKeysPartitionLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/WaitingOnAssetKeysPartitionLink.tsx @@ -1,10 +1,10 @@ -import {ButtonLink, Box, Tag, Caption} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, ButtonLink, Caption, Tag} from '@dagster-io/ui-components'; + import {sortAssetKeys} from '../../asset-graph/Utils'; import {AssetLink} from '../AssetLink'; import {AssetKey} from '../types'; - import {AssetKeysDialog, AssetKeysDialogEmptyState, AssetKeysDialogHeader} from './AssetKeysDialog'; import {VirtualizedAssetPartitionListForDialog} from './VirtualizedAssetPartitionListForDialog'; import {useFilterPartitionNames} from './assetFilters'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutoMaterializePolicyPage.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutoMaterializePolicyPage.stories.tsx index 7931a431f6dd4..10188c8ee15b2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutoMaterializePolicyPage.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutoMaterializePolicyPage.stories.tsx @@ -1,7 +1,8 @@ import {MockedProvider} from '@apollo/client/testing'; -import {Box, ButtonGroup, Checkbox, JoinedButtons} from '@dagster-io/ui-components'; import React from 'react'; +import {Box, ButtonGroup, Checkbox, JoinedButtons} from '@dagster-io/ui-components'; + import {AutoMaterializePolicyType} from '../../../graphql/types'; import {AssetAutomaterializePolicyPage} from '../AssetAutomaterializePolicyPage'; import {Evaluations, Policies} from '../__fixtures__/AutoMaterializePolicyPage.fixtures'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutomaterializeMiddlePanel.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutomaterializeMiddlePanel.stories.tsx index 806e531338f96..d0252cd806a24 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutomaterializeMiddlePanel.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutomaterializeMiddlePanel.stories.tsx @@ -1,5 +1,5 @@ -import {MockedProvider} from '@apollo/client/testing'; import * as React from 'react'; +import {MockedProvider} from '@apollo/client/testing'; import {RunStatus} from '../../../graphql/types'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutomaterializeRequestedPartitionsLink.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutomaterializeRequestedPartitionsLink.stories.tsx index e3bb8292a4916..8047c86e76935 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutomaterializeRequestedPartitionsLink.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/AutomaterializeRequestedPartitionsLink.stories.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import faker from 'faker'; -import * as React from 'react'; import {AutomaterializeRequestedPartitionsLink} from '../AutomaterializeRequestedPartitionsLink'; import {buildRunStatusAndPartitionKeyQuery} from '../__fixtures__/AutomaterializeRequestedPartitionsLink.fixtures'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/PartitionSegmentWithPopover.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/PartitionSegmentWithPopover.stories.tsx index eda22c37b78b3..4ae1f068b0c94 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/PartitionSegmentWithPopover.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/PartitionSegmentWithPopover.stories.tsx @@ -1,6 +1,7 @@ -import {Box} from '@dagster-io/ui-components'; -import faker from 'faker'; import * as React from 'react'; +import faker from 'faker'; + +import {Box} from '@dagster-io/ui-components'; import {PartitionSegmentWithPopover} from '../PartitionSegmentWithPopover'; import {AssetConditionEvaluationStatus, AssetSubset} from '../types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/PolicyEvaluationCondition.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/PolicyEvaluationCondition.stories.tsx index e9905d8c3f4c0..7b4daec6201f0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/PolicyEvaluationCondition.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/__stories__/PolicyEvaluationCondition.stories.tsx @@ -1,6 +1,7 @@ -import {Table} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Table} from '@dagster-io/ui-components'; + import {PolicyEvaluationCondition} from '../PolicyEvaluationCondition'; // eslint-disable-next-line import/no-default-export diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types.tsx index 38a105f1dce4b..d5ae3c9b6dd63 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types.tsx @@ -1,6 +1,5 @@ import {PartitionKeyRange} from '../../graphql/types'; import {AssetKey} from '../types'; - import {AutoMaterializeEvaluationRecordItemFragment} from './types/GetEvaluationsQuery.types'; export type NoConditionsMetEvaluation = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRequestedPartitionsLink.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRequestedPartitionsLink.types.ts index ee441dd774a59..8fa07a96a686a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRequestedPartitionsLink.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRequestedPartitionsLink.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type RunStatusAndPartitionKeyQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRightPanel.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRightPanel.types.ts index 18d58a6b68c98..a4d1b41662dad 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRightPanel.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRightPanel.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type GetPolicyInfoQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRunTag.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRunTag.types.ts index 8f37485fe08ad..e4446d2a7a5c4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRunTag.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/AutomaterializeRunTag.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type RunStatusOnlyQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/GetEvaluationsQuery.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/GetEvaluationsQuery.types.ts index 5041a1fd939ed..3e10e43ab830b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/GetEvaluationsQuery.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/types/GetEvaluationsQuery.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type GetEvaluationsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/useEvaluationsQueryResult.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/useEvaluationsQueryResult.tsx index 5ea54aab18cf2..fa07207f33bf7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/useEvaluationsQueryResult.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPage/useEvaluationsQueryResult.tsx @@ -1,6 +1,5 @@ import {useCursorPaginatedQuery} from '../../runs/useCursorPaginatedQuery'; import {AssetKey} from '../types'; - import {GET_EVALUATIONS_QUERY} from './GetEvaluationsQuery'; import {GetEvaluationsQuery, GetEvaluationsQueryVariables} from './types/GetEvaluationsQuery.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AssetAutomaterializePolicyPage.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AssetAutomaterializePolicyPage.tsx index 769ee58be99bc..81ffa39024370 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AssetAutomaterializePolicyPage.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AssetAutomaterializePolicyPage.tsx @@ -1,11 +1,11 @@ -import {Box, Subheading, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {Box, Subheading, colorTextLight} from '@dagster-io/ui-components'; + import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../../app/QueryRefresh'; import {useQueryPersistedState} from '../../hooks/useQueryPersistedState'; import {AssetKey} from '../types'; - import {AutoMaterializeExperimentalBanner} from './AutoMaterializeExperimentalBanner'; import {AutomaterializeLeftPanel} from './AutomaterializeLeftPanel'; import {AutomaterializeMiddlePanel} from './AutomaterializeMiddlePanel'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AssetKeysDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AssetKeysDialog.tsx index 723c8bb7ae9be..64211473f7db5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AssetKeysDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AssetKeysDialog.tsx @@ -1,3 +1,5 @@ +import * as React from 'react'; + import { Box, Button, @@ -6,7 +8,6 @@ import { NonIdealState, TextInput, } from '@dagster-io/ui-components'; -import * as React from 'react'; interface Props { isOpen: boolean; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutoMaterializeExperimentalBanner.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutoMaterializeExperimentalBanner.tsx index 48dead31abf6a..3a43217235b79 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutoMaterializeExperimentalBanner.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutoMaterializeExperimentalBanner.tsx @@ -1,6 +1,7 @@ -import {Alert, Icon, Tag, Tooltip, colorAccentBlue} from '@dagster-io/ui-components'; import React from 'react'; +import {Alert, Icon, Tag, Tooltip, colorAccentBlue} from '@dagster-io/ui-components'; + const LearnMoreLink = 'https://docs.dagster.io/concepts/assets/asset-auto-execution#auto-materializing-assets-'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeLeftPanel.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeLeftPanel.tsx index 69119e4c945eb..31b0650d0e69b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeLeftPanel.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeLeftPanel.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, Caption, @@ -11,11 +14,8 @@ import { colorTextBlue, colorTextDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {TimestampDisplay} from '../../schedules/TimestampDisplay'; - import {EvaluationCounts} from './EvaluationCounts'; import {AutoMaterializeEvaluationRecordItemFragment} from './types/GetEvaluationsQuery.types'; import {useEvaluationsQueryResult} from './useEvaluationsQueryResult'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeMiddlePanel.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeMiddlePanel.tsx index 326d63038c36a..8b7b2e72cc425 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeMiddlePanel.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeMiddlePanel.tsx @@ -1,21 +1,21 @@ +import * as React from 'react'; import {useQuery} from '@apollo/client'; + import {Box, NonIdealState, Subheading} from '@dagster-io/ui-components'; -import * as React from 'react'; import {ErrorWrapper} from '../../app/PythonErrorInfo'; import {AutoMaterializeDecisionType, AutoMaterializeRule} from '../../graphql/types'; import {AssetKey} from '../types'; - import {AutomaterializeRequestedPartitionsLink} from './AutomaterializeRequestedPartitionsLink'; import {AutomaterializeRunTag} from './AutomaterializeRunTag'; import {GET_EVALUATIONS_QUERY} from './GetEvaluationsQuery'; import {RuleEvaluationOutcomes} from './RuleEvaluationOutcomes'; import {EvaluationOrEmpty, NoConditionsMetEvaluation} from './types'; import { + AutoMaterializeEvaluationRecordItemFragment, OldGetEvaluationsQuery, OldGetEvaluationsQueryVariables, RuleWithEvaluationsFragment, - AutoMaterializeEvaluationRecordItemFragment, } from './types/GetEvaluationsQuery.types'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRequestedPartitionsLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRequestedPartitionsLink.tsx index 269cbdbb111bd..2045de447485e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRequestedPartitionsLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRequestedPartitionsLink.tsx @@ -1,20 +1,21 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import {useVirtualizer} from '@tanstack/react-virtual'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Button, ButtonLink, + Caption, Dialog, DialogFooter, NonIdealState, Spinner, Tag, TextInput, - Caption, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {showCustomAlert} from '../../app/CustomAlertProvider'; import {PYTHON_ERROR_FRAGMENT} from '../../app/PythonErrorFragment'; @@ -22,7 +23,6 @@ import {PythonErrorInfo} from '../../app/PythonErrorInfo'; import {RunStatusTagWithID} from '../../runs/RunStatusTag'; import {DagsterTag} from '../../runs/RunTag'; import {Container, Inner, Row} from '../../ui/VirtualizedTable'; - import { OldRunStatusAndPartitionKeyQuery, OldRunStatusAndPartitionKeyQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRightPanel.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRightPanel.tsx index cd4ee682e328f..fb092affc3158 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRightPanel.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRightPanel.tsx @@ -1,23 +1,23 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import {Link, Redirect} from 'react-router-dom'; + import { - Box, - Subheading, Body, + Box, ExternalAnchorButton, Icon, + Mono, NonIdealState, Spinner, - Mono, + Subheading, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link, Redirect} from 'react-router-dom'; import {ErrorWrapper} from '../../app/PythonErrorInfo'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../../app/QueryRefresh'; import {AutomaterializePolicyTag} from '../AutomaterializePolicyTag'; import {assetDetailsPathForKey} from '../assetDetailsPathForKey'; import {AssetKey} from '../types'; - import { OldGetPolicyInfoQuery, OldGetPolicyInfoQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRunTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRunTag.tsx index b82251991f784..e5c8c44a5d760 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRunTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/AutomaterializeRunTag.tsx @@ -1,10 +1,10 @@ -import {gql, useQuery} from '@apollo/client'; -import {Tag} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {Link} from 'react-router-dom'; -import {RunStatusTagWithID} from '../../runs/RunStatusTag'; +import {Tag} from '@dagster-io/ui-components'; +import {RunStatusTagWithID} from '../../runs/RunStatusTag'; import { OldRunStatusOnlyQuery, OldRunStatusOnlyQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/CollapsibleSection.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/CollapsibleSection.tsx index 14f4229ca1d11..0f9b89a5c80d8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/CollapsibleSection.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/CollapsibleSection.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, Icon, @@ -6,8 +9,6 @@ import { colorAccentGray, colorBackgroundLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; interface Props { header: React.ReactNode; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/EvaluationCounts.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/EvaluationCounts.tsx index a057d025b87bd..76ceec7efeb79 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/EvaluationCounts.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/EvaluationCounts.tsx @@ -1,3 +1,5 @@ +import * as React from 'react'; + import { Box, Caption, @@ -8,7 +10,6 @@ import { colorTextRed, colorTextYellow, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {compactNumber} from '../../ui/formatters'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/ParentUpdatedLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/ParentUpdatedLink.tsx index ac2d653b6b09f..109b4a6d71a33 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/ParentUpdatedLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/ParentUpdatedLink.tsx @@ -1,11 +1,11 @@ -import {ButtonLink, Box} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, ButtonLink} from '@dagster-io/ui-components'; + import {sortAssetKeys} from '../../asset-graph/Utils'; import {VirtualizedItemListForDialog} from '../../ui/VirtualizedItemListForDialog'; import {AssetLink} from '../AssetLink'; import {AssetKey} from '../types'; - import {AssetKeysDialog, AssetKeysDialogEmptyState, AssetKeysDialogHeader} from './AssetKeysDialog'; import {AssetDetailType, detailTypeToLabel} from './assetDetailUtils'; import {useFilterAssetKeys} from './assetFilters'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/ParentUpdatedPartitionLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/ParentUpdatedPartitionLink.tsx index ed4e51412dcc6..56c8ef6c7c55d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/ParentUpdatedPartitionLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/ParentUpdatedPartitionLink.tsx @@ -1,10 +1,10 @@ -import {ButtonLink, Box, Tag, Caption} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, ButtonLink, Caption, Tag} from '@dagster-io/ui-components'; + import {sortAssetKeys} from '../../asset-graph/Utils'; import {AssetLink} from '../AssetLink'; import {AssetKey} from '../types'; - import {AssetKeysDialog, AssetKeysDialogEmptyState, AssetKeysDialogHeader} from './AssetKeysDialog'; import {VirtualizedAssetPartitionListForDialog} from './VirtualizedAssetPartitionListForDialog'; import {AssetDetailType, detailTypeToLabel} from './assetDetailUtils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PartitionSegmentWithPopover.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PartitionSegmentWithPopover.tsx index d2711e81bbe12..66d7dbdc90f49 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PartitionSegmentWithPopover.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PartitionSegmentWithPopover.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; +import styled from 'styled-components'; + import { Box, MiddleTruncate, @@ -11,13 +15,9 @@ import { colorAccentYellow, colorAccentYellowHover, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import * as React from 'react'; -import styled from 'styled-components'; import {assertUnreachable} from '../../app/Util'; import {Container, Inner, Row} from '../../ui/VirtualizedTable'; - import {PolicyEvaluationStatusTag} from './PolicyEvaluationStatusTag'; import {AssetConditionEvaluationStatus, AssetSubset} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationCondition.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationCondition.tsx index 3d2af2ebd5241..6f994dfeefb46 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationCondition.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationCondition.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, Icon, @@ -7,8 +10,6 @@ import { colorTextDefault, colorTextDisabled, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; export type ConditionType = 'group' | 'leaf'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationStatusTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationStatusTag.tsx index 81a69c23cc865..e6dad87b75fc4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationStatusTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationStatusTag.tsx @@ -1,8 +1,8 @@ -import {Tag} from '@dagster-io/ui-components'; import * as React from 'react'; -import {assertUnreachable} from '../../app/Util'; +import {Tag} from '@dagster-io/ui-components'; +import {assertUnreachable} from '../../app/Util'; import {AssetConditionEvaluationStatus} from './types'; export const PolicyEvaluationStatusTag = ({status}: {status: AssetConditionEvaluationStatus}) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationTable.tsx index b636a41b4a789..517432ef51a98 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/PolicyEvaluationTable.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled, {css} from 'styled-components'; + import { Box, Table, @@ -6,11 +9,8 @@ import { colorBackgroundLightHover, colorKeylineDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled, {css} from 'styled-components'; import {TimeElapsed} from '../../runs/TimeElapsed'; - import {PartitionSegmentWithPopover} from './PartitionSegmentWithPopover'; import {PolicyEvaluationCondition} from './PolicyEvaluationCondition'; import {PolicyEvaluationStatusTag} from './PolicyEvaluationStatusTag'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/RuleEvaluationOutcomes.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/RuleEvaluationOutcomes.tsx index feb048d9230ca..2f9cb3553610e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/RuleEvaluationOutcomes.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/RuleEvaluationOutcomes.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import groupBy from 'lodash/groupBy'; + import { Box, Icon, @@ -6,8 +9,6 @@ import { colorTextLight, colorTextLighter, } from '@dagster-io/ui-components'; -import groupBy from 'lodash/groupBy'; -import * as React from 'react'; import {assertUnreachable} from '../../app/Util'; import { @@ -15,7 +16,6 @@ import { AutoMaterializeRule, AutoMaterializeRuleEvaluation, } from '../../graphql/types'; - import {AutomaterializeRequestedPartitionsLink} from './AutomaterializeRequestedPartitionsLink'; import {CollapsibleSection} from './CollapsibleSection'; import {ParentUpdatedLink} from './ParentUpdatedLink'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/VirtualizedAssetPartitionListForDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/VirtualizedAssetPartitionListForDialog.tsx index 8299b10bc0fb0..e32b914502bf9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/VirtualizedAssetPartitionListForDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/VirtualizedAssetPartitionListForDialog.tsx @@ -1,8 +1,9 @@ -import {Box, Icon} from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; import styled from 'styled-components'; +import {Box, Icon} from '@dagster-io/ui-components'; + import {COMMON_COLLATOR} from '../../app/Util'; import {Container, Inner, Row} from '../../ui/VirtualizedTable'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/WaitingOnAssetKeysLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/WaitingOnAssetKeysLink.tsx index 042998280035f..3a3eff61138b1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/WaitingOnAssetKeysLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/WaitingOnAssetKeysLink.tsx @@ -1,10 +1,10 @@ -import {ButtonLink} from '@dagster-io/ui-components'; import * as React from 'react'; +import {ButtonLink} from '@dagster-io/ui-components'; + import {VirtualizedItemListForDialog} from '../../ui/VirtualizedItemListForDialog'; import {AssetLink} from '../AssetLink'; import {AssetKey} from '../types'; - import {AssetKeysDialog, AssetKeysDialogEmptyState, AssetKeysDialogHeader} from './AssetKeysDialog'; import {useFilterAssetKeys} from './assetFilters'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/WaitingOnAssetKeysPartitionLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/WaitingOnAssetKeysPartitionLink.tsx index 867ade8c6e266..10a11ef5677bf 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/WaitingOnAssetKeysPartitionLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/WaitingOnAssetKeysPartitionLink.tsx @@ -1,10 +1,10 @@ -import {ButtonLink, Box, Tag, Caption} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, ButtonLink, Caption, Tag} from '@dagster-io/ui-components'; + import {sortAssetKeys} from '../../asset-graph/Utils'; import {AssetLink} from '../AssetLink'; import {AssetKey} from '../types'; - import {AssetKeysDialog, AssetKeysDialogEmptyState, AssetKeysDialogHeader} from './AssetKeysDialog'; import {VirtualizedAssetPartitionListForDialog} from './VirtualizedAssetPartitionListForDialog'; import {useFilterPartitionNames} from './assetFilters'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types.tsx index 814a7b011581d..12f06be377d92 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types.tsx @@ -1,6 +1,5 @@ import {PartitionKeyRange} from '../../graphql/types'; import {AssetKey} from '../types'; - import {AutoMaterializeEvaluationRecordItemFragment} from './types/GetEvaluationsQuery.types'; export type NoConditionsMetEvaluation = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRequestedPartitionsLink.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRequestedPartitionsLink.types.ts index 674e6aa354bc6..89b462468fb37 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRequestedPartitionsLink.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRequestedPartitionsLink.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type OldRunStatusAndPartitionKeyQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRightPanel.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRightPanel.types.ts index b5248ced58c1b..236493d05dfe0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRightPanel.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRightPanel.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type OldGetPolicyInfoQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRunTag.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRunTag.types.ts index ea98e3257a1ab..6b5f2fe134e8f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRunTag.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/AutomaterializeRunTag.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type OldRunStatusOnlyQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/GetEvaluationsQuery.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/GetEvaluationsQuery.types.ts index cb3af23cd5204..4a7e2fa9c1047 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/GetEvaluationsQuery.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/types/GetEvaluationsQuery.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type OldGetEvaluationsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/useEvaluationsQueryResult.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/useEvaluationsQueryResult.tsx index d32474ca07f39..7b8d03ecdbacd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/useEvaluationsQueryResult.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutoMaterializePolicyPageOld/useEvaluationsQueryResult.tsx @@ -1,6 +1,5 @@ import {useCursorPaginatedQuery} from '../../runs/useCursorPaginatedQuery'; import {AssetKey} from '../types'; - import {GET_EVALUATIONS_QUERY} from './GetEvaluationsQuery'; import { OldGetEvaluationsQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializeDaemonStatusTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializeDaemonStatusTag.tsx index 1708dbe40eedf..d943160af3a70 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializeDaemonStatusTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializeDaemonStatusTag.tsx @@ -1,7 +1,8 @@ -import {Tag, Tooltip} from '@dagster-io/ui-components'; import * as React from 'react'; import {Link} from 'react-router-dom'; +import {Tag, Tooltip} from '@dagster-io/ui-components'; + import {useAutomaterializeDaemonStatus} from './useAutomaterializeDaemonStatus'; export const AutomaterializeDaemonStatusTag = () => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializePolicyTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializePolicyTag.tsx index eb42e3eeaf38d..7694c65949513 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializePolicyTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializePolicyTag.tsx @@ -1,7 +1,8 @@ -import {Box, Tag} from '@dagster-io/ui-components'; import groupBy from 'lodash/groupBy'; import React from 'react'; +import {Box, Tag} from '@dagster-io/ui-components'; + import {AutoMaterializePolicyType, AutoMaterializeRule} from '../graphql/types'; export const AutomaterializePolicyTag = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializeTagWithEvaluation.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializeTagWithEvaluation.tsx index 8ff8f45587123..905204288567d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializeTagWithEvaluation.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/AutomaterializeTagWithEvaluation.tsx @@ -1,7 +1,8 @@ -import {Box, Icon, MiddleTruncate, Popover, Tag} from '@dagster-io/ui-components'; import * as React from 'react'; import {Link} from 'react-router-dom'; +import {Box, Icon, MiddleTruncate, Popover, Tag} from '@dagster-io/ui-components'; + import {assetDetailsPathForKey} from './assetDetailsPathForKey'; import {AssetKey} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/BackfillPreviewModal.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/BackfillPreviewModal.tsx index 8de66d1a30048..4ef240da9b5d3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/BackfillPreviewModal.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/BackfillPreviewModal.tsx @@ -1,4 +1,8 @@ import {gql, useQuery} from '@apollo/client'; +import {useVirtualizer} from '@tanstack/react-virtual'; +import React from 'react'; +import styled from 'styled-components'; + import { Box, Button, @@ -8,15 +12,11 @@ import { colorTextDefault, colorTextLight, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import React from 'react'; -import styled from 'styled-components'; import {tokenForAssetKey} from '../asset-graph/Utils'; import {TargetPartitionsDisplay} from '../instance/backfill/TargetPartitionsDisplay'; import {testId} from '../testing/testId'; import {Container, HeaderCell, Inner, Row, RowCell} from '../ui/VirtualizedTable'; - import {AssetLink} from './AssetLink'; import {asAssetKeyInput} from './asInput'; import {AssetKey} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/CalculateChangedAndMissingDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/CalculateChangedAndMissingDialog.tsx index dbbf27bf4dc25..bcd72cfb62a56 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/CalculateChangedAndMissingDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/CalculateChangedAndMissingDialog.tsx @@ -1,28 +1,28 @@ -import {useQuery, gql} from '@apollo/client'; +import {gql, useQuery} from '@apollo/client'; +import {useVirtualizer} from '@tanstack/react-virtual'; +import React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { - Spinner, + Box, + Button, + Checkbox, Dialog, DialogBody, DialogFooter, - Button, - Box, Icon, - Checkbox, MiddleTruncate, + Spinner, + colorAccentGreen, colorLinkDefault, colorTextLight, - colorAccentGreen, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {displayNameForAssetKey} from '../asset-graph/Utils'; import {Container, Inner, Row} from '../ui/VirtualizedTable'; - -import {isAssetStale, isAssetMissing} from './Stale'; +import {isAssetMissing, isAssetStale} from './Stale'; import {asAssetKeyInput} from './asInput'; import {assetDetailsPathForKey} from './assetDetailsPathForKey'; import {AssetKey} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/CurrentRunsBanner.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/CurrentRunsBanner.tsx index 9117a59722475..7dbb714001ba3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/CurrentRunsBanner.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/CurrentRunsBanner.tsx @@ -1,8 +1,9 @@ -import {Alert, Box, Spinner} from '@dagster-io/ui-components'; -import {BorderSide, BorderSetting} from '@dagster-io/ui-components/src/components/types'; import React from 'react'; import {Link} from 'react-router-dom'; +import {Alert, Box, Spinner} from '@dagster-io/ui-components'; +import {BorderSetting, BorderSide} from '@dagster-io/ui-components/src/components/types'; + import {LiveDataForNode} from '../asset-graph/Utils'; import {titleForRun} from '../runs/RunUtils'; import {useStepLogs} from '../runs/StepLogsDialog'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/DependsOnSelfBanner.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/DependsOnSelfBanner.tsx index 454deb00a936c..ac5ccd8ce6e2d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/DependsOnSelfBanner.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/DependsOnSelfBanner.tsx @@ -1,6 +1,7 @@ -import {Alert, Box, Icon, colorAccentBlue} from '@dagster-io/ui-components'; import React from 'react'; +import {Alert, Box, Icon, colorAccentBlue} from '@dagster-io/ui-components'; + export const DependsOnSelfBanner = () => { return ( diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/FailedRunSinceMaterializationBanner.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/FailedRunSinceMaterializationBanner.tsx index e75d9fab4bd89..1a94d67261edf 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/FailedRunSinceMaterializationBanner.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/FailedRunSinceMaterializationBanner.tsx @@ -1,11 +1,12 @@ +import React from 'react'; +import {Link} from 'react-router-dom'; + import {Alert, Box} from '@dagster-io/ui-components'; import { - BorderSide, BorderSetting, + BorderSide, DirectionalSpacing, } from '@dagster-io/ui-components/src/components/types'; -import React from 'react'; -import {Link} from 'react-router-dom'; import {AssetLatestInfoRunFragment} from '../asset-data/types/AssetLiveDataProvider.types'; import {titleForRun} from '../runs/RunUtils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/LastMaterializationMetadata.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/LastMaterializationMetadata.tsx index 308b777e9fb08..e6523cbca81c8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/LastMaterializationMetadata.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/LastMaterializationMetadata.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Group, @@ -8,12 +12,9 @@ import { colorAccentGray, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {Timestamp} from '../app/time/Timestamp'; -import {isHiddenAssetGroupJob, LiveDataForNode} from '../asset-graph/Utils'; +import {LiveDataForNode, isHiddenAssetGroupJob} from '../asset-graph/Utils'; import {AssetKeyInput} from '../graphql/types'; import {MetadataEntry} from '../metadata/MetadataEntry'; import {Description} from '../pipelines/Description'; @@ -22,13 +23,12 @@ import {linkToRunEvent, titleForRun} from '../runs/RunUtils'; import {useStepLogs} from '../runs/StepLogsDialog'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; - import {AssetLineageElements} from './AssetLineageElements'; import {StaleReasonsTags} from './Stale'; import {isRunlessEvent} from './isRunlessEvent'; import { - AssetObservationFragment, AssetMaterializationFragment, + AssetObservationFragment, } from './types/useRecentAssetEvents.types'; export const LatestMaterializationMetadata = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetChoosePartitionsDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetChoosePartitionsDialog.tsx index 9c3026a17721d..d8dc953bb80da 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetChoosePartitionsDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetChoosePartitionsDialog.tsx @@ -1,6 +1,10 @@ import {gql, useApolloClient, useQuery} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {Radio} from '@blueprintjs/core'; +import reject from 'lodash/reject'; +import React from 'react'; +import {useHistory} from 'react-router-dom'; + import { Alert, Box, @@ -18,9 +22,6 @@ import { colorBackgroundYellow, colorTextYellow, } from '@dagster-io/ui-components'; -import reject from 'lodash/reject'; -import React from 'react'; -import {useHistory} from 'react-router-dom'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {PipelineRunTag} from '../app/ExecutionSessionStorage'; @@ -60,7 +61,6 @@ import {testId} from '../testing/testId'; import {ToggleableSection} from '../ui/ToggleableSection'; import {useFeatureFlagForCodeLocation} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; - import {partitionCountString} from './AssetNodePartitionCounts'; import {AssetPartitionStatus} from './AssetPartitionStatus'; import {BackfillPreviewModal} from './BackfillPreviewModal'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetExecutionButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetExecutionButton.tsx index 31f0060a3bb85..983bd49e26fcb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetExecutionButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetExecutionButton.tsx @@ -1,4 +1,8 @@ import {ApolloClient, gql, useApolloClient} from '@apollo/client'; +import pick from 'lodash/pick'; +import uniq from 'lodash/uniq'; +import React from 'react'; + import { Box, Button, @@ -9,9 +13,6 @@ import { Spinner, Tooltip, } from '@dagster-io/ui-components'; -import pick from 'lodash/pick'; -import uniq from 'lodash/uniq'; -import React from 'react'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {useConfirmation} from '../app/CustomConfirmationProvider'; @@ -31,7 +32,6 @@ import {CONFIG_TYPE_SCHEMA_FRAGMENT} from '../typeexplorer/ConfigTypeSchema'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {ASSET_NODE_CONFIG_FRAGMENT} from './AssetConfig'; import {MULTIPLE_DEFINITIONS_WARNING} from './AssetDefinedInMultipleReposNotice'; import {CalculateChangedAndMissingDialog} from './CalculateChangedAndMissingDialog'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetObservationButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetObservationButton.tsx index 8e036241fe161..cec0f62b57901 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetObservationButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/LaunchAssetObservationButton.tsx @@ -1,19 +1,19 @@ import {ApolloClient, useApolloClient} from '@apollo/client'; -import {Button, Spinner, Tooltip, Icon} from '@dagster-io/ui-components'; import React from 'react'; +import {Button, Icon, Spinner, Tooltip} from '@dagster-io/ui-components'; + import {showCustomAlert} from '../app/CustomAlertProvider'; import {useLaunchPadHooks} from '../launchpad/LaunchpadHooksContext'; import {LaunchPipelineExecutionMutationVariables} from '../runs/types/RunUtils.types'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; - import { AssetsInScope, + LAUNCH_ASSET_LOADER_QUERY, buildAssetCollisionsAlert, executionParamsForAssetJob, getCommonJob, - LAUNCH_ASSET_LOADER_QUERY, } from './LaunchAssetExecutionButton'; import {asAssetKeyInput} from './asInput'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/MultipartitioningSupport.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/MultipartitioningSupport.tsx index a82363a7b0f7d..0a7021fdd6b01 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/MultipartitioningSupport.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/MultipartitioningSupport.tsx @@ -2,14 +2,13 @@ import isEqual from 'lodash/isEqual'; import uniq from 'lodash/uniq'; import {PartitionDefinitionType} from '../graphql/types'; - import {AssetPartitionStatus, emptyAssetPartitionStatusCounts} from './AssetPartitionStatus'; import { + PartitionDimensionSelection, PartitionHealthData, + PartitionHealthDataMerged, PartitionHealthDimension, - PartitionDimensionSelection, Range, - PartitionHealthDataMerged, } from './usePartitionHealthData'; export function isTimeseriesDimension(dimension: PartitionHealthDimension) { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/OverdueTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/OverdueTag.tsx index 680ce04facc01..1a39e35a7d2b0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/OverdueTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/OverdueTag.tsx @@ -1,10 +1,11 @@ import {gql, useQuery} from '@apollo/client'; -import {Tooltip, Tag, Popover, Box} from '@dagster-io/ui-components'; import dayjs from 'dayjs'; import duration from 'dayjs/plugin/duration'; import relativeTime from 'dayjs/plugin/relativeTime'; import React from 'react'; +import {Box, Popover, Tag, Tooltip} from '@dagster-io/ui-components'; + import {Timestamp} from '../app/time/Timestamp'; import {timestampToString} from '../app/time/timestampToString'; import {useAssetLiveData} from '../asset-data/AssetLiveDataProvider'; @@ -12,7 +13,6 @@ import {LiveDataForNode} from '../asset-graph/Utils'; import {AssetKeyInput, FreshnessPolicy} from '../graphql/types'; import {humanCronString} from '../schedules/humanCronString'; import {LoadingSpinner} from '../ui/Loading'; - import { ASSET_MATERIALIZATION_UPSTREAM_TABLE_FRAGMENT, AssetMaterializationUpstreamTable, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/PartitionHealthSummary.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/PartitionHealthSummary.tsx index cfb8e16a93798..8f54741706ce5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/PartitionHealthSummary.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/PartitionHealthSummary.tsx @@ -1,13 +1,13 @@ -import {Spinner, Box, Caption} from '@dagster-io/ui-components'; import React from 'react'; +import {Box, Caption, Spinner} from '@dagster-io/ui-components'; + import {displayNameForAssetKey} from '../asset-graph/Utils'; import {PartitionStatus} from '../partitions/PartitionStatus'; - import {AssetPartitionStatus} from './AssetPartitionStatus'; import {isTimeseriesDimension} from './MultipartitioningSupport'; import {AssetKey} from './types'; -import {PartitionHealthData, PartitionDimensionSelection} from './usePartitionHealthData'; +import {PartitionDimensionSelection, PartitionHealthData} from './usePartitionHealthData'; interface Props { assetKey: AssetKey; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/RunlessEventTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/RunlessEventTag.tsx index aba0fe5545b33..d8e932138d7e4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/RunlessEventTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/RunlessEventTag.tsx @@ -1,6 +1,7 @@ -import {Tag} from '@dagster-io/ui-components'; import React from 'react'; +import {Tag} from '@dagster-io/ui-components'; + import {DagsterTag} from '../runs/RunTag'; export const RunlessEventTag = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/RunningBackfillsNotice.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/RunningBackfillsNotice.tsx index fc228e29b1a24..30484488e743a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/RunningBackfillsNotice.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/RunningBackfillsNotice.tsx @@ -1,8 +1,9 @@ import {gql, useQuery} from '@apollo/client'; -import {Box, Icon, colorLinkDefault, colorTextLight} from '@dagster-io/ui-components'; import React from 'react'; import {Link} from 'react-router-dom'; +import {Box, Icon, colorLinkDefault, colorTextLight} from '@dagster-io/ui-components'; + import { RunningBackfillsNoticeQuery, RunningBackfillsNoticeQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/Stale.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/Stale.tsx index b81f6df19a35b..77545cc9f3596 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/Stale.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/Stale.tsx @@ -1,3 +1,8 @@ +import groupBy from 'lodash/groupBy'; +import isEqual from 'lodash/isEqual'; +import React from 'react'; +import {Link} from 'react-router-dom'; + import { BaseTag, Body, @@ -10,15 +15,10 @@ import { colorBackgroundYellow, colorTextYellow, } from '@dagster-io/ui-components'; -import groupBy from 'lodash/groupBy'; -import isEqual from 'lodash/isEqual'; -import React from 'react'; -import {Link} from 'react-router-dom'; -import {displayNameForAssetKey, LiveDataForNode} from '../asset-graph/Utils'; +import {LiveDataForNode, displayNameForAssetKey} from '../asset-graph/Utils'; import {AssetNodeKeyFragment} from '../asset-graph/types/AssetNode.types'; import {AssetKeyInput, StaleCauseCategory, StaleStatus} from '../graphql/types'; - import {assetDetailsPathForKey} from './assetDetailsPathForKey'; type StaleDataForNode = Pick; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/UnderlyingOpsOrGraph.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/UnderlyingOpsOrGraph.tsx index 914690889fbca..c1b8c305e7231 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/UnderlyingOpsOrGraph.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/UnderlyingOpsOrGraph.tsx @@ -1,12 +1,12 @@ import {gql} from '@apollo/client'; -import {Box, Icon, Mono} from '@dagster-io/ui-components'; import React from 'react'; import {Link} from 'react-router-dom'; +import {Box, Icon, Mono} from '@dagster-io/ui-components'; + import {displayNameForAssetKey} from '../asset-graph/Utils'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {UnderlyingOpsAssetNodeFragment} from './types/UnderlyingOpsOrGraph.types'; export const UnderlyingOpsOrGraph = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/Version.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/Version.tsx index b52d356b4bd58..f4a22bfd80fb2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/Version.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/Version.tsx @@ -1,6 +1,7 @@ -import {FontFamily} from '@dagster-io/ui-components'; import styled from 'styled-components'; +import {FontFamily} from '@dagster-io/ui-components'; + export const Version = styled.div` font-family: ${FontFamily.monospace}; font-size: 16px; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/AssetTables.fixtures.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/AssetTables.fixtures.ts index c9d5f0ac6ce0e..3891b4281bfa6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/AssetTables.fixtures.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/AssetTables.fixtures.ts @@ -4,15 +4,15 @@ import {ASSETS_GRAPH_LIVE_QUERY} from '../../asset-data/AssetLiveDataProvider'; import {AssetGraphLiveQuery} from '../../asset-data/types/AssetLiveDataProvider.types'; import {MockStaleReasonData} from '../../asset-graph/__fixtures__/AssetNode.fixtures'; import { - StaleStatus, RunStatus, - buildAssetNode, - buildRepositoryLocation, - buildRepository, + StaleStatus, + buildAssetChecks, buildAssetKey, - buildPartitionDefinition, + buildAssetNode, buildFreshnessPolicy, - buildAssetChecks, + buildPartitionDefinition, + buildRepository, + buildRepositoryLocation, } from '../../graphql/types'; import {SINGLE_NON_SDA_ASSET_QUERY} from '../../workspace/VirtualizedAssetRow'; import {SingleNonSdaAssetQuery} from '../../workspace/types/VirtualizedAssetRow.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/BackfillPreviewQuery.fixtures.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/BackfillPreviewQuery.fixtures.tsx index f65ebfbbf9de5..43cd43021b39c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/BackfillPreviewQuery.fixtures.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/BackfillPreviewQuery.fixtures.tsx @@ -1,11 +1,11 @@ import {MockedResponse} from '@apollo/client/testing'; import { - buildQuery, - buildAssetPartitions, - buildAssetKey, buildAssetBackfillTargetPartitions, + buildAssetKey, + buildAssetPartitions, buildPartitionKeyRange, + buildQuery, } from '../../graphql/types'; import {BACKFILL_PREVIEW_QUERY} from '../BackfillPreviewModal'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/LaunchAssetExecutionButton.fixtures.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/LaunchAssetExecutionButton.fixtures.ts index 3d5936a4b11ec..5d5b596600d3c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/LaunchAssetExecutionButton.fixtures.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__fixtures__/LaunchAssetExecutionButton.fixtures.ts @@ -40,7 +40,6 @@ import { } from '../types/LaunchAssetExecutionButton.types'; import {PartitionHealthQuery} from '../types/usePartitionHealthData.types'; import {PARTITION_HEALTH_QUERY} from '../usePartitionHealthData'; - import {generateDailyTimePartitions} from './PartitionHealthSummary.fixtures'; export const UNPARTITIONED_ASSET: AssetNodeForGraphQueryFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetEventDetail.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetEventDetail.stories.tsx index 4d24c5ce4b0d0..74784a3107c4f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetEventDetail.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetEventDetail.stories.tsx @@ -1,7 +1,8 @@ import {MockedProvider} from '@apollo/client/testing'; -import {Box} from '@dagster-io/ui-components'; import React from 'react'; +import {Box} from '@dagster-io/ui-components'; + import {createAppCache} from '../../app/AppCache'; import {StorybookProvider} from '../../testing/StorybookProvider'; import {WorkspaceProvider} from '../../workspace/WorkspaceContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetLineageElements.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetLineageElements.stories.tsx index 3342d63290100..fe113a5ffd001 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetLineageElements.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetLineageElements.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {AssetLineageElements} from '../AssetLineageElements'; import {AssetLineageFragment} from '../types/AssetLineageElements.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetNodeDefinition.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetNodeDefinition.stories.tsx index f23e6ed0bdcc9..156f2c204b300 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetNodeDefinition.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetNodeDefinition.stories.tsx @@ -1,8 +1,9 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {Meta} from '@storybook/react'; -import * as React from 'react'; import { + buildAssetKey, buildAssetNode, buildAutoMaterializePolicy, buildCompositeConfigType, @@ -13,7 +14,6 @@ import { buildIntMetadataEntry, buildPathMetadataEntry, buildResourceRequirement, - buildAssetKey, } from '../../graphql/types'; import {AssetNodeDefinition} from '../AssetNodeDefinition'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetPartitionDetail.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetPartitionDetail.stories.tsx index 9134e7e126092..ec7da668b22de 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetPartitionDetail.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetPartitionDetail.stories.tsx @@ -1,7 +1,8 @@ import {MockedProvider} from '@apollo/client/testing'; -import {Box} from '@dagster-io/ui-components'; import React from 'react'; +import {Box} from '@dagster-io/ui-components'; + import {createAppCache} from '../../app/AppCache'; import {RunStatus, buildStaleCause} from '../../graphql/types'; import {WorkspaceProvider} from '../../workspace/WorkspaceContext'; @@ -11,9 +12,9 @@ import { AssetPartitionDetailLoader, } from '../AssetPartitionDetail'; import { + MaterializationUpstreamDataFullMock, buildAssetPartitionDetailMock, buildAssetPartitionStaleMock, - MaterializationUpstreamDataFullMock, } from '../__fixtures__/AssetEventDetail.fixtures'; // eslint-disable-next-line import/no-default-export diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetTables.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetTables.stories.tsx index 0e69a6747af25..3e2a2ad367f93 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetTables.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/AssetTables.stories.tsx @@ -1,7 +1,8 @@ import {MockedProvider} from '@apollo/client/testing'; -import {Box} from '@dagster-io/ui-components'; import React from 'react'; +import {Box} from '@dagster-io/ui-components'; + import {StorybookProvider} from '../../testing/StorybookProvider'; import {VirtualizedRepoAssetTable} from '../../workspace/VirtualizedRepoAssetTable'; import {RepoAssetTableFragment} from '../../workspace/types/VirtualizedRepoAssetTable.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/LaunchAssetChoosePartitionsDialog.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/LaunchAssetChoosePartitionsDialog.stories.tsx index 13571a1a8c5db..ce1aa636f935a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/LaunchAssetChoosePartitionsDialog.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/LaunchAssetChoosePartitionsDialog.stories.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {Meta} from '@storybook/react'; -import * as React from 'react'; import {LaunchAssetChoosePartitionsDialog} from '../LaunchAssetChoosePartitionsDialog'; import {ReleasesJobProps} from '../__fixtures__/LaunchAssetChoosePartitionsDialog.fixtures'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/OverdueTag.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/OverdueTag.stories.tsx index f2ffbd94cd087..9ffdacef5c434 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/OverdueTag.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/OverdueTag.stories.tsx @@ -1,7 +1,8 @@ import {MockedProvider, MockedResponse} from '@apollo/client/testing'; -import {Box} from '@dagster-io/ui-components'; import React from 'react'; +import {Box} from '@dagster-io/ui-components'; + import {createAppCache} from '../../app/AppCache'; import { AssetFreshnessInfo, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/PartitionHealthSummary.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/PartitionHealthSummary.stories.tsx index 1957ea3b58748..2d9013a84aed4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/PartitionHealthSummary.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__stories__/PartitionHealthSummary.stories.tsx @@ -1,7 +1,8 @@ import {MockedProvider} from '@apollo/client/testing'; -import {Box} from '@dagster-io/ui-components'; import React from 'react'; +import {Box} from '@dagster-io/ui-components'; + import {PartitionHealthSummary} from '../PartitionHealthSummary'; import { MultiDimensionStaticPartitionHealthQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetGroupTags.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetGroupTags.test.tsx index 812110e153cdd..d0f70d31d32a6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetGroupTags.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetGroupTags.test.tsx @@ -1,12 +1,12 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen} from '@testing-library/react'; -import * as React from 'react'; import {MemoryRouter} from 'react-router-dom'; +import * as AutomationPolicySensorFlag from '../AutomationPolicySensorFlag'; import {AssetGroupSelector} from '../../graphql/types'; import {DUNDER_REPO_NAME, buildRepoAddress} from '../../workspace/buildRepoAddress'; import {AssetGroupTags} from '../AssetGroupRoot'; -import * as AutomationPolicySensorFlag from '../AutomationPolicySensorFlag'; import { GROUP_NAME, LOCATION_NAME, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetPartitions.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetPartitions.test.tsx index 71801b1dad1c8..402edac0af089 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetPartitions.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetPartitions.test.tsx @@ -9,9 +9,9 @@ import {AssetPartitionListProps} from '../AssetPartitionList'; import {AssetPartitionStatus} from '../AssetPartitionStatus'; import {AssetPartitions} from '../AssetPartitions'; import { + MultiDimensionTimeFirstPartitionHealthQuery, SingleDimensionStaticPartitionHealthQuery, SingleDimensionTimePartitionHealthQuery, - MultiDimensionTimeFirstPartitionHealthQuery, } from '../__fixtures__/PartitionHealthSummary.fixtures'; import {AssetViewParams} from '../types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetView.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetView.test.tsx index 14a686a1c361e..f3db1b769bc06 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetView.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/AssetView.test.tsx @@ -1,16 +1,16 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {act, render, screen, waitFor} from '@testing-library/react'; -import * as React from 'react'; import {MemoryRouter} from 'react-router-dom'; import {AssetKeyInput} from '../../graphql/types'; import {AssetView} from '../AssetView'; import { - AssetViewDefinitionSourceAsset, + AssetGraphEmpty, AssetViewDefinitionNonSDA, - LatestMaterializationTimestamp, AssetViewDefinitionSDA, - AssetGraphEmpty, + AssetViewDefinitionSourceAsset, + LatestMaterializationTimestamp, } from '../__fixtures__/AssetViewDefinition.fixtures'; // This file must be mocked because Jest can't handle `import.meta.url`. diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/LaunchAssetExecutionButton.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/LaunchAssetExecutionButton.test.tsx index f54f80ced7eae..ba703e1a851b2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/LaunchAssetExecutionButton.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/LaunchAssetExecutionButton.test.tsx @@ -4,11 +4,11 @@ import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import React from 'react'; +import * as WorkspaceContext from '../../workspace/WorkspaceContext'; import {CustomAlertProvider} from '../../app/CustomAlertProvider'; import {LaunchPartitionBackfillMutation} from '../../instance/backfill/types/BackfillUtils.types'; import {LaunchPipelineExecutionMutation} from '../../runs/types/RunUtils.types'; import {TestProvider} from '../../testing/TestProvider'; -import * as WorkspaceContext from '../../workspace/WorkspaceContext'; import { AssetsInScope, ERROR_INVALID_ASSET_SELECTION, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/globalAssetGraphPathToString.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/globalAssetGraphPathToString.test.tsx index 5e7e5d6449758..78f3d54025aaa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/globalAssetGraphPathToString.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/globalAssetGraphPathToString.test.tsx @@ -1,6 +1,6 @@ import { - globalAssetGraphPathToString, globalAssetGraphPathForAssetsAndDescendants, + globalAssetGraphPathToString, } from '../globalAssetGraphPathToString'; // This file must be mocked because Jest can't handle `import.meta.url`. diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/usePartitionHealthData.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/usePartitionHealthData.test.tsx index 93a1ba1a637d9..ab2b47547a40a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/usePartitionHealthData.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/usePartitionHealthData.test.tsx @@ -2,17 +2,17 @@ import {PartitionDefinitionType, PartitionRangeStatus} from '../../graphql/types import {AssetPartitionStatus, emptyAssetPartitionStatusCounts} from '../AssetPartitionStatus'; import {PartitionHealthQuery} from '../types/usePartitionHealthData.types'; import { + PartitionDimensionSelection, + PartitionDimensionSelectionRange, + PartitionHealthDimension, Range, buildPartitionHealthData, - PartitionDimensionSelectionRange, + keyCountByStateInSelection, + keyCountInRanges, + partitionStatusAtIndex, partitionStatusGivenRanges, rangeClippedToSelection, rangesForKeys, - partitionStatusAtIndex, - keyCountByStateInSelection, - PartitionHealthDimension, - PartitionDimensionSelection, - keyCountInRanges, } from '../usePartitionHealthData'; const {MATERIALIZED, FAILED, MISSING} = AssetPartitionStatus; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/usePartitionKeyInParams.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/usePartitionKeyInParams.test.tsx index 2722cb58e3fce..4e7badbf72cca 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/usePartitionKeyInParams.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/__tests__/usePartitionKeyInParams.test.tsx @@ -1,4 +1,4 @@ -import {render, waitFor, screen} from '@testing-library/react'; +import {render, screen, waitFor} from '@testing-library/react'; import React from 'react'; import {usePartitionKeyInParams} from '../usePartitionKeyInParams'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/asInput.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/asInput.ts index e3698af70a63b..134f5cdd12ace 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/asInput.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/asInput.ts @@ -1,5 +1,4 @@ import {AssetCheckHandleInput} from '../graphql/types'; - import {LaunchAssetExecutionAssetNodeFragment} from './types/LaunchAssetExecutionButton.types'; export function getAssetCheckHandleInputs( diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetCheckDetailModal.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetCheckDetailModal.tsx index e4ea1e7c6c8ee..944fe5b3fa92c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetCheckDetailModal.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetCheckDetailModal.tsx @@ -1,4 +1,7 @@ import {gql} from '@apollo/client'; +import React from 'react'; +import {Link} from 'react-router-dom'; + import { Body2, Box, @@ -13,8 +16,6 @@ import { Table, colorTextLight, } from '@dagster-io/ui-components'; -import React from 'react'; -import {Link} from 'react-router-dom'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../../app/QueryRefresh'; import {useTrackPageView} from '../../app/analytics'; @@ -25,7 +26,6 @@ import {MetadataEntryFragment} from '../../metadata/types/MetadataEntry.types'; import {linkToRunEvent} from '../../runs/RunUtils'; import {useCursorPaginatedQuery} from '../../runs/useCursorPaginatedQuery'; import {TimestampDisplay} from '../../schedules/TimestampDisplay'; - import {AssetCheckStatusTag} from './AssetCheckStatusTag'; import { AssetCheckDetailsQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetCheckStatusTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetCheckStatusTag.tsx index c6155c01b30f7..a3ef171ad4bfa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetCheckStatusTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetCheckStatusTag.tsx @@ -1,3 +1,5 @@ +import * as React from 'react'; + import { BaseTag, Box, @@ -8,7 +10,6 @@ import { colorBackgroundLight, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {assertUnreachable} from '../../app/Util'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetChecks.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetChecks.tsx index e366d51ab3f5c..53165d1f93fd2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetChecks.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetChecks.tsx @@ -1,8 +1,9 @@ import {gql, useQuery} from '@apollo/client'; -import {Body2, Box, Tag} from '@dagster-io/ui-components'; import React, {useContext} from 'react'; import {Link} from 'react-router-dom'; +import {Body2, Box, Tag} from '@dagster-io/ui-components'; + import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../../app/QueryRefresh'; import {Timestamp} from '../../app/time/Timestamp'; import {useQueryPersistedState} from '../../hooks/useQueryPersistedState'; @@ -10,12 +11,11 @@ import {LoadingSpinner} from '../../ui/Loading'; import {AssetFeatureContext} from '../AssetFeatureContext'; import {assetDetailsPathForKey} from '../assetDetailsPathForKey'; import {AssetKey} from '../types'; - import { + AgentUpgradeRequired, AssetCheckDetailModal, MigrationRequired, NeedsUserCodeUpgrade, - AgentUpgradeRequired, NoChecks, } from './AssetCheckDetailModal'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetChecksBanner.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetChecksBanner.tsx index 149d5e1a92b52..5cfc84215f147 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetChecksBanner.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/asset-checks/AssetChecksBanner.tsx @@ -1,6 +1,7 @@ -import {Alert, Icon, colorAccentBlue} from '@dagster-io/ui-components'; import React from 'react'; +import {Alert, Icon, colorAccentBlue} from '@dagster-io/ui-components'; + export const AssetChecksBanner = () => { return ( ; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/AutomationPolicySensorFlag.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/AutomationPolicySensorFlag.types.ts index e6ea935147c80..70a620cc2093a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/AutomationPolicySensorFlag.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/AutomationPolicySensorFlag.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AutomationPolicySensorFlagQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/BackfillPreviewModal.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/BackfillPreviewModal.types.ts index 22541e8727a91..779c1aacd517e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/BackfillPreviewModal.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/BackfillPreviewModal.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type BackfillPreviewQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/CalculateChangedAndMissingDialog.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/CalculateChangedAndMissingDialog.types.ts index 863281aa236a0..80ccac157bcf8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/CalculateChangedAndMissingDialog.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/CalculateChangedAndMissingDialog.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AssetStaleStatusQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/LaunchAssetChoosePartitionsDialog.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/LaunchAssetChoosePartitionsDialog.types.ts index 82ef10da16113..6c86b1b305343 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/LaunchAssetChoosePartitionsDialog.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/LaunchAssetChoosePartitionsDialog.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type LaunchAssetWarningsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/LaunchAssetExecutionButton.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/LaunchAssetExecutionButton.types.ts index 7b8edd19be8c5..91b4887bb3055 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/LaunchAssetExecutionButton.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/LaunchAssetExecutionButton.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PartitionDefinitionForLaunchAssetFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/OverdueTag.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/OverdueTag.types.ts index e5e95eaefbd1f..dee6699c17ea9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/OverdueTag.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/OverdueTag.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OverduePopoverQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/RunningBackfillsNotice.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/RunningBackfillsNotice.types.ts index c0f01d715a94c..a63667c6975c4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/RunningBackfillsNotice.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/RunningBackfillsNotice.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunningBackfillsNoticeQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/UnderlyingOpsOrGraph.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/UnderlyingOpsOrGraph.types.ts index 29c3a8d19149d..269107ae6fe51 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/UnderlyingOpsOrGraph.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/UnderlyingOpsOrGraph.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type UnderlyingOpsAssetNodeFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/useAutomaterializeDaemonStatus.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/useAutomaterializeDaemonStatus.types.ts index 6653cb7b39f0e..f5972da3978d5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/useAutomaterializeDaemonStatus.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/useAutomaterializeDaemonStatus.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type GetAutoMaterializePausedQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/usePartitionHealthData.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/usePartitionHealthData.types.ts index 57b22898a6984..eb0107e48409e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/usePartitionHealthData.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/usePartitionHealthData.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PartitionHealthQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/usePartitionNameForPipeline.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/usePartitionNameForPipeline.types.ts index b407e118e5e1c..bdc102d35d2fd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/usePartitionNameForPipeline.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/usePartitionNameForPipeline.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AssetJobPartitionSetsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/useRecentAssetEvents.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/useRecentAssetEvents.types.ts index edddec2d67a41..dac798f6b998d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/useRecentAssetEvents.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/useRecentAssetEvents.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AssetMaterializationFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/types/useReportEventsModal.types.ts b/js_modules/dagster-ui/packages/ui-core/src/assets/types/useReportEventsModal.types.ts index 565511aeb7beb..383991266d34d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/types/useReportEventsModal.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/types/useReportEventsModal.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ReportEventMutationVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/useAutomaterializeDaemonStatus.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/useAutomaterializeDaemonStatus.tsx index c9d23256e0969..05db6502bfa04 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/useAutomaterializeDaemonStatus.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/useAutomaterializeDaemonStatus.tsx @@ -1,5 +1,5 @@ -import {useQuery, useMutation, gql} from '@apollo/client'; import * as React from 'react'; +import {gql, useMutation, useQuery} from '@apollo/client'; import { GetAutoMaterializePausedQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionDimensionSelections.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionDimensionSelections.tsx index b1b12617028ad..765d072dc20aa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionDimensionSelections.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionDimensionSelections.tsx @@ -4,14 +4,13 @@ import {showCustomAlert} from '../app/CustomAlertProvider'; import {QueryPersistedStateConfig, useQueryPersistedState} from '../hooks/useQueryPersistedState'; import {useSetStateUpdateCallback} from '../hooks/useSetStateUpdateCallback'; import { + allPartitionsRange, allPartitionsSpan, partitionsToText, - allPartitionsRange, spanTextToSelectionsOrError, } from '../partitions/SpanRepresentation'; - import {placeholderDimensionSelection} from './MultipartitioningSupport'; -import {PartitionHealthData, PartitionDimensionSelection} from './usePartitionHealthData'; +import {PartitionDimensionSelection, PartitionHealthData} from './usePartitionHealthData'; type DimensionQueryState = { name: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionHealthData.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionHealthData.tsx index 9ec71a2d582ee..86d1931c3288c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionHealthData.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionHealthData.tsx @@ -7,9 +7,8 @@ import {assertUnreachable} from '../app/Util'; import {LiveDataForNode} from '../asset-graph/Utils'; import {PartitionDefinitionType, PartitionRangeStatus} from '../graphql/types'; import {assembleIntoSpans} from '../partitions/SpanRepresentation'; - import {AssetPartitionStatus, emptyAssetPartitionStatusCounts} from './AssetPartitionStatus'; -import {assembleRangesFromTransitions, Transition} from './MultipartitioningSupport'; +import {Transition, assembleRangesFromTransitions} from './MultipartitioningSupport'; import {usePartitionDataSubscriber} from './PartitionSubscribers'; import {AssetKey} from './types'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionNameForPipeline.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionNameForPipeline.tsx index fdfb4d0046b19..a545b62ed5e2c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionNameForPipeline.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/usePartitionNameForPipeline.tsx @@ -3,7 +3,6 @@ import React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {RepoAddress} from '../workspace/types'; - import { AssetJobPartitionSetsQuery, AssetJobPartitionSetsQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/useRecentAssetEvents.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/useRecentAssetEvents.tsx index 4d0360121bbfb..130ddc4130bec 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/useRecentAssetEvents.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/useRecentAssetEvents.tsx @@ -1,11 +1,10 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; import uniq from 'lodash/uniq'; -import * as React from 'react'; import {METADATA_ENTRY_FRAGMENT} from '../metadata/MetadataEntry'; - import {ASSET_LINEAGE_FRAGMENT} from './AssetLineageElements'; -import {AssetViewParams, AssetKey} from './types'; +import {AssetKey, AssetViewParams} from './types'; import {AssetEventsQuery, AssetEventsQueryVariables} from './types/useRecentAssetEvents.types'; /** diff --git a/js_modules/dagster-ui/packages/ui-core/src/assets/useReportEventsModal.tsx b/js_modules/dagster-ui/packages/ui-core/src/assets/useReportEventsModal.tsx index ada1506680012..3a4656b70a1f3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/assets/useReportEventsModal.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/assets/useReportEventsModal.tsx @@ -1,4 +1,6 @@ import {gql, useMutation} from '@apollo/client'; +import React from 'react'; + import { Body2, Box, @@ -12,7 +14,6 @@ import { TextInput, Tooltip, } from '@dagster-io/ui-components'; -import React from 'react'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {showSharedToaster} from '../app/DomUtils'; @@ -24,7 +25,6 @@ import {DimensionRangeWizard} from '../partitions/DimensionRangeWizard'; import {ToggleableSection} from '../ui/ToggleableSection'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {RepoAddress} from '../workspace/types'; - import {partitionCountString} from './AssetNodePartitionCounts'; import { explodePartitionKeysInSelectionMatching, diff --git a/js_modules/dagster-ui/packages/ui-core/src/configeditor/ConfigEditorUtils.tsx b/js_modules/dagster-ui/packages/ui-core/src/configeditor/ConfigEditorUtils.tsx index d2ab00dc3ed41..4b6089167ba8e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/configeditor/ConfigEditorUtils.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/configeditor/ConfigEditorUtils.tsx @@ -1,7 +1,8 @@ import {gql} from '@apollo/client'; -import {YamlModeValidationResult} from '@dagster-io/ui-components'; import yaml from 'yaml'; +import {YamlModeValidationResult} from '@dagster-io/ui-components'; + import {ConfigEditorValidationFragment} from './types/ConfigEditorUtils.types'; export const CONFIG_EDITOR_RUN_CONFIG_SCHEMA_FRAGMENT = gql` diff --git a/js_modules/dagster-ui/packages/ui-core/src/configeditor/types/ConfigEditorUtils.types.ts b/js_modules/dagster-ui/packages/ui-core/src/configeditor/types/ConfigEditorUtils.types.ts index 4ce66971a62c2..a482b76f2d0b2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/configeditor/types/ConfigEditorUtils.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/configeditor/types/ConfigEditorUtils.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ConfigEditorRunConfigSchemaFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/dagstertype/DagsterType.tsx b/js_modules/dagster-ui/packages/ui-core/src/dagstertype/DagsterType.tsx index 6bc157b7401b5..b2ac5549f8c01 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/dagstertype/DagsterType.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/dagstertype/DagsterType.tsx @@ -1,8 +1,9 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; +import styled from 'styled-components'; + import {Box, FontFamily} from '@dagster-io/ui-components'; import {Spacing} from '@dagster-io/ui-components/src/components/types'; -import * as React from 'react'; -import styled from 'styled-components'; import {gqlTypePredicate} from '../app/Util'; import {METADATA_ENTRY_FRAGMENT} from '../metadata/MetadataEntry'; @@ -10,7 +11,6 @@ import {TableSchema} from '../metadata/TableSchema'; import {MetadataEntryFragment} from '../metadata/types/MetadataEntry.types'; import {Description} from '../pipelines/Description'; import {CONFIG_TYPE_SCHEMA_FRAGMENT} from '../typeexplorer/ConfigTypeSchema'; - import {DagsterTypeFragment} from './types/DagsterType.types'; export const dagsterTypeKind = (type: {metadataEntries: MetadataEntryFragment[]}) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/dagstertype/types/DagsterType.types.ts b/js_modules/dagster-ui/packages/ui-core/src/dagstertype/types/DagsterType.types.ts index 4d503439d5865..86f6335afc072 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/dagstertype/types/DagsterType.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/dagstertype/types/DagsterType.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type DagsterTypeFragment_ListDagsterType_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChart.tsx b/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChart.tsx index 14875e20e8b7a..a862b5a3ea08a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChart.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChart.tsx @@ -1,6 +1,18 @@ +import * as React from 'react'; +import isEqual from 'lodash/isEqual'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Checkbox, + FontFamily, + Group, + Icon, + NonIdealState, + Spinner, + SpinnerWrapper, + SplitPanelContainer, colorAccentCyan, colorAccentGray, colorAccentGrayHover, @@ -12,22 +24,11 @@ import { colorBackgroundYellow, colorFocusRing, colorTextYellow, - FontFamily, - Group, - Icon, - NonIdealState, - Spinner, - SpinnerWrapper, - SplitPanelContainer, useViewport, } from '@dagster-io/ui-components'; -import isEqual from 'lodash/isEqual'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {AppContext} from '../app/AppContext'; -import {filterByQuery, GraphQueryItem} from '../app/GraphQueryImpl'; +import {GraphQueryItem, filterByQuery} from '../app/GraphQueryImpl'; import {withMiddleTruncation} from '../app/Util'; import {WebSocketContext} from '../app/WebSocketProvider'; import {CancelRunButton} from '../runs/RunActionButtons'; @@ -41,7 +42,6 @@ import {runsPathWithFilters} from '../runs/RunsFilterInput'; import {StepSelection} from '../runs/StepSelection'; import {RunFragment} from '../runs/types/RunFragments.types'; import {GraphQueryInput} from '../ui/GraphQueryInput'; - import { BOTTOM_INSET, BOX_DOT_MARGIN_Y, @@ -66,10 +66,10 @@ import { } from './Constants'; import {isDynamicStep} from './DynamicStepSupport'; import { + BuildLayoutParams, adjustLayoutWithRunMetadata, boxStyleFor, buildLayout, - BuildLayoutParams, interestingQueriesFor, } from './GanttChartLayout'; import {GanttChartModeControl} from './GanttChartModeControl'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartLayout.ts b/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartLayout.ts index 0b32957823c29..05d9eea32e237 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartLayout.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartLayout.ts @@ -14,7 +14,6 @@ import { } from '@dagster-io/ui-components'; import {IRunMetadataDict, IStepAttempt, IStepState} from '../runs/RunMetadataProvider'; - import { BOX_DOT_WIDTH_CUTOFF, BOX_SPACING_X, @@ -28,7 +27,7 @@ import { IGanttNode, LEFT_INSET, } from './Constants'; -import {isDynamicStep, isPlannedDynamicStep, dynamicKeyWithoutIndex} from './DynamicStepSupport'; +import {dynamicKeyWithoutIndex, isDynamicStep, isPlannedDynamicStep} from './DynamicStepSupport'; export interface BuildLayoutParams { nodes: IGanttNode[]; diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartModeControl.tsx b/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartModeControl.tsx index 4d5a5ca5ee2f1..542ce00c5800d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartModeControl.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartModeControl.tsx @@ -1,6 +1,7 @@ -import {ButtonGroup, ButtonGroupItem} from '@dagster-io/ui-components'; import * as React from 'react'; +import {ButtonGroup, ButtonGroupItem} from '@dagster-io/ui-components'; + import {GanttChartMode} from './Constants'; export const GanttChartModeControl = React.memo( diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartTimescale.tsx b/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartTimescale.tsx index c9af89e524844..92031cd1af0db 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartTimescale.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttChartTimescale.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { FontFamily, colorAccentPrimary, @@ -8,11 +11,8 @@ import { colorShadowDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {formatElapsedTimeWithoutMsec} from '../app/Util'; - import {CSS_DURATION, GanttViewport, LEFT_INSET} from './Constants'; const ONE_MIN = 60 * 1000; diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttStatusPanel.tsx b/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttStatusPanel.tsx index 19eb26a68c9f0..b8983a1a7d02d 100755 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttStatusPanel.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/GanttStatusPanel.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Spinner, Tooltip, @@ -6,15 +9,12 @@ import { colorKeylineDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {GraphQueryItem} from '../app/GraphQueryImpl'; import {formatElapsedTimeWithoutMsec} from '../app/Util'; import {SidebarSection} from '../pipelines/SidebarComponents'; import {IRunMetadataDict, IStepState} from '../runs/RunMetadataProvider'; import {StepSelection} from '../runs/StepSelection'; - import {GanttChartMode} from './Constants'; import {isPlannedDynamicStep} from './DynamicStepSupport'; import {boxStyleFor} from './GanttChartLayout'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/RunGroupPanel.tsx b/js_modules/dagster-ui/packages/ui-core/src/gantt/RunGroupPanel.tsx index bfde936e81b7e..11877e95081bf 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/RunGroupPanel.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/RunGroupPanel.tsx @@ -1,25 +1,26 @@ import {gql, useQuery} from '@apollo/client'; +import React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, ButtonLink, + FontFamily, Group, Icon, - FontFamily, + colorAccentPrimary, + colorAccentReversed, colorAccentYellow, - colorLinkDefault, - colorTextLight, - colorBackgroundLight, colorBackgroundDefault, - colorBackgroundLightHover, colorBackgroundDefaultHover, + colorBackgroundLight, + colorBackgroundLightHover, colorBorderDefault, + colorLinkDefault, colorTextDefault, - colorAccentReversed, - colorAccentPrimary, + colorTextLight, } from '@dagster-io/ui-components'; -import React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -27,8 +28,7 @@ import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {SidebarSection} from '../pipelines/SidebarComponents'; import {RunStatusIndicator} from '../runs/RunStatusDots'; import {DagsterTag} from '../runs/RunTag'; -import {RunStateSummary, RunTime, RUN_TIME_FRAGMENT} from '../runs/RunUtils'; - +import {RUN_TIME_FRAGMENT, RunStateSummary, RunTime} from '../runs/RunUtils'; import { RunGroupPanelQuery, RunGroupPanelQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/VizComponents.tsx b/js_modules/dagster-ui/packages/ui-core/src/gantt/VizComponents.tsx index 1c9111111341f..c989bd6109e21 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/VizComponents.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/VizComponents.tsx @@ -1,9 +1,10 @@ +import styled from 'styled-components'; + import { CursorControlsContainer, colorBackgroundDefault, colorKeylineDefault, } from '@dagster-io/ui-components'; -import styled from 'styled-components'; export const OptionsContainer = styled.div` min-height: 56px; diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/ZoomSlider.tsx b/js_modules/dagster-ui/packages/ui-core/src/gantt/ZoomSlider.tsx index 002b4d56a2253..37e0d6ab09190 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/ZoomSlider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/ZoomSlider.tsx @@ -1,7 +1,8 @@ -import {SliderStyles, colorAccentGray} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {SliderStyles, colorAccentGray} from '@dagster-io/ui-components'; + /** * Renders a horizontal slider that lets you adjust the graph's relative zoom from 1-100. * It uses Blueprint CSS but not the Slider component, because that renders twice and diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/__stories__/GanttChart.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/gantt/__stories__/GanttChart.stories.tsx index ec1fa02831cf7..31cb27f40184f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/__stories__/GanttChart.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/__stories__/GanttChart.stories.tsx @@ -1,8 +1,12 @@ import {MockedProvider, MockedResponse} from '@apollo/client/testing'; -import {Box, Button, CustomTooltipProvider} from '@dagster-io/ui-components'; import {Meta} from '@storybook/react'; import React, {useState} from 'react'; +import {Box, Button, CustomTooltipProvider} from '@dagster-io/ui-components'; + +import * as Dynamic from '../__fixtures__/dynamic'; +import * as Retry from '../__fixtures__/retry'; +import * as Simple from '../__fixtures__/simple'; import {GraphQueryItem} from '../../app/GraphQueryImpl'; import {RunStatus, buildRun, buildRunGroup, buildRunStatsSnapshot} from '../../graphql/types'; import {extractMetadataFromLogs} from '../../runs/RunMetadataProvider'; @@ -10,9 +14,6 @@ import {RunMetadataProviderMessageFragment} from '../../runs/types/RunMetadataPr import {WorkspaceProvider} from '../../workspace/WorkspaceContext'; import {GanttChart, GanttChartLoadingState} from '../GanttChart'; import {RUN_GROUP_PANEL_QUERY} from '../RunGroupPanel'; -import * as Dynamic from '../__fixtures__/dynamic'; -import * as Retry from '../__fixtures__/retry'; -import * as Simple from '../__fixtures__/simple'; import {RunGroupPanelQuery, RunGroupPanelQueryVariables} from '../types/RunGroupPanel.types'; const R1_START = 1619468000; diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/toGraphQueryItems.tsx b/js_modules/dagster-ui/packages/ui-core/src/gantt/toGraphQueryItems.tsx index 1dd1264bdb9dd..e8bdd8dbd9461 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/toGraphQueryItems.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/toGraphQueryItems.tsx @@ -3,7 +3,6 @@ import {gql} from '@apollo/client'; import {GraphQueryItem} from '../app/GraphQueryImpl'; import {StepKind} from '../graphql/types'; import {IStepMetadata, IStepState} from '../runs/RunMetadataProvider'; - import {invocationsOfPlannedDynamicStep, replacePlannedIndex} from './DynamicStepSupport'; import {ExecutionPlanToGraphFragment} from './types/toGraphQueryItems.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/types/RunGroupPanel.types.ts b/js_modules/dagster-ui/packages/ui-core/src/gantt/types/RunGroupPanel.types.ts index b80bc870be7c8..51074fa3afde7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/types/RunGroupPanel.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/types/RunGroupPanel.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunGroupPanelQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/types/toGraphQueryItems.types.ts b/js_modules/dagster-ui/packages/ui-core/src/gantt/types/toGraphQueryItems.types.ts index b8e2f7ccd6865..6561a81de44fe 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/types/toGraphQueryItems.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/types/toGraphQueryItems.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ExecutionPlanToGraphFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/gantt/useGanttChartMode.tsx b/js_modules/dagster-ui/packages/ui-core/src/gantt/useGanttChartMode.tsx index 7098f693ddeea..c3f52dcf200a7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/gantt/useGanttChartMode.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/gantt/useGanttChartMode.tsx @@ -1,5 +1,4 @@ import {useStateWithStorage} from '../hooks/useStateWithStorage'; - import {GanttChartMode} from './Constants'; const GANTT_CHART_MODE_KEY = 'GanttChartModePreference'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/ExternalConnectionNode.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/ExternalConnectionNode.tsx index 6a19fe37026ff..a914c0463990c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/ExternalConnectionNode.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/ExternalConnectionNode.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import {LinkVertical as Link} from '@vx/shape'; +import styled from 'styled-components'; + import { colorBackgroundDefault, colorBackgroundLightHover, @@ -5,9 +9,6 @@ import { colorLineageEdgeHighlighted, colorTextDefault, } from '@dagster-io/ui-components'; -import {LinkVertical as Link} from '@vx/shape'; -import * as React from 'react'; -import styled from 'styled-components'; import {Edge} from './OpEdges'; import {SVGMonospaceText} from './SVGComponents'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/MappingLine.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/MappingLine.tsx index 5b61d60e53c29..63783967210cb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/MappingLine.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/MappingLine.tsx @@ -1,9 +1,10 @@ +import * as React from 'react'; + import { colorBackgroundDefault, colorLineageEdge, colorLineageEdgeHighlighted, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {Edge} from './OpEdges'; import {IPoint, isHighlighted} from './common'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/OpEdges.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/OpEdges.tsx index 546ab221b9938..9dec7fcd48fa1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/OpEdges.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/OpEdges.tsx @@ -3,7 +3,6 @@ import styled from 'styled-components'; import {weakmapMemoize} from '../app/Util'; import {buildSVGPath} from '../asset-graph/Utils'; - import {OpGraphLayout, OpLayout, OpLayoutEdge} from './asyncGraphLayout'; import {OpLayoutEdgeSide, OpLayoutIO} from './layout'; import {OpGraphOpFragment} from './types/OpGraph.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/OpGraph.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/OpGraph.tsx index f8837fb2ce12f..90175bed0eeef 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/OpGraph.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/OpGraph.tsx @@ -1,17 +1,17 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; +import styled from 'styled-components'; + import { colorAccentBlue, colorBackgroundBlue, colorBackgroundBlueHover, colorLineageEdge, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {OpNameOrPath} from '../ops/OpNameOrPath'; - import {OpEdges} from './OpEdges'; -import {OpNode, OP_NODE_DEFINITION_FRAGMENT, OP_NODE_INVOCATION_FRAGMENT} from './OpNode'; +import {OP_NODE_DEFINITION_FRAGMENT, OP_NODE_INVOCATION_FRAGMENT, OpNode} from './OpNode'; import {ParentOpNode} from './ParentOpNode'; import {DEFAULT_MAX_ZOOM, DETAIL_ZOOM, SVGViewport, SVGViewportInteractor} from './SVGViewport'; import {OpGraphLayout} from './asyncGraphLayout'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/OpIOBox.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/OpIOBox.tsx index 046c612022eec..2bf28c3018261 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/OpIOBox.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/OpIOBox.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { FontFamily, colorAccentBlue, @@ -7,18 +10,15 @@ import { colorTextBlue, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {DEFAULT_RESULT_NAME, titleOfIO} from '../app/titleOfIO'; - import {Edge, isHighlighted, position} from './common'; import {OpLayoutIO} from './layout'; import { - OpNodeInputDefinitionFragment, - OpNodeOutputDefinitionFragment, OpNodeDefinitionFragment, + OpNodeInputDefinitionFragment, OpNodeInvocationFragment, + OpNodeOutputDefinitionFragment, } from './types/OpNode.types'; export const PARENT_IN = 'PARENT_IN'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/OpNode.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/OpNode.tsx index 485502328097c..633b9f35cf6b6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/OpNode.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/OpNode.tsx @@ -1,28 +1,28 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; +import styled from 'styled-components'; + import { - Icon, FontFamily, + Icon, colorAccentBlue, + colorAccentYellow, colorBackgroundBlue, colorBackgroundDefault, colorBackgroundLight, - colorAccentYellow, colorBackgroundLighter, colorKeylineDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {withMiddleTruncation} from '../app/Util'; import {displayNameForAssetKey} from '../asset-graph/Utils'; import {AssetKey} from '../assets/types'; import {testId} from '../testing/testId'; - import {OpIOBox, metadataForIO} from './OpIOBox'; -import {OpTags, IOpTag} from './OpTags'; +import {IOpTag, OpTags} from './OpTags'; import {OpLayout} from './asyncGraphLayout'; import {Edge, position} from './common'; -import {OpNodeInvocationFragment, OpNodeDefinitionFragment} from './types/OpNode.types'; +import {OpNodeDefinitionFragment, OpNodeInvocationFragment} from './types/OpNode.types'; interface IOpNodeProps { layout: OpLayout; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/OpTags.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/OpTags.tsx index b50c42b7158a3..d13901bba7639 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/OpTags.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/OpTags.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, FontFamily, @@ -6,8 +9,6 @@ import { colorBackgroundGray, colorLineageNodeBackground, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import airbyte from './optag-images/airbyte.svg'; import airflow from './optag-images/airflow.svg'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/ParentOpNode.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/ParentOpNode.tsx index 9839ba6adbceb..587353e55e52c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/ParentOpNode.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/ParentOpNode.tsx @@ -1,10 +1,10 @@ -import {colorBackgroundYellow, colorKeylineDefault} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {colorBackgroundYellow, colorKeylineDefault} from '@dagster-io/ui-components'; + import {titleOfIO} from '../app/titleOfIO'; import {OpNameOrPath} from '../ops/OpNameOrPath'; - import {ExternalConnectionNode} from './ExternalConnectionNode'; import {MappingLine} from './MappingLine'; import {OpIOBox, PARENT_IN, PARENT_OUT, metadataForCompositeParentIO} from './OpIOBox'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/SVGComponents.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/SVGComponents.tsx index e0b3a468f5c61..86c8f7189ed4c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/SVGComponents.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/SVGComponents.tsx @@ -1,6 +1,7 @@ -import {FontFamily} from '@dagster-io/ui-components'; import * as React from 'react'; +import {FontFamily} from '@dagster-io/ui-components'; + const PX_TO_UNITS = 0.53; interface ISize { diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/SVGViewport.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/SVGViewport.tsx index 75f771dd0fc68..9694ffc8614ce 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/SVGViewport.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/SVGViewport.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import animate from 'amator'; +import styled from 'styled-components'; + import { Box, Icon, @@ -9,9 +13,6 @@ import { colorBorderDefault, colorLineageDots, } from '@dagster-io/ui-components'; -import animate from 'amator'; -import * as React from 'react'; -import styled from 'styled-components'; import {IBounds} from './common'; import {makeSVGPortable} from './makeSVGPortable'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/__stories__/OpGraph.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/__stories__/OpGraph.stories.tsx index b84e89a4a4eb1..2321495d6cfb4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/__stories__/OpGraph.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/__stories__/OpGraph.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {OpNameOrPath} from '../../ops/OpNameOrPath'; import {OpGraph} from '../OpGraph'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/__tests__/OpGraph.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/graph/__tests__/OpGraph.test.tsx index 66e0720f3c5f2..725475c19a952 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/__tests__/OpGraph.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/__tests__/OpGraph.test.tsx @@ -1,6 +1,7 @@ import {render, screen} from '@testing-library/react'; import React from 'react'; +import * as Common from '../common'; import {OpGraph} from '../OpGraph'; import {SVGViewport} from '../SVGViewport'; import { @@ -11,7 +12,6 @@ import { buildTaggedDAG, } from '../__fixtures__/OpGraph.fixtures'; import {getFullOpLayout} from '../asyncGraphLayout'; -import * as Common from '../common'; describe('OpGraph', () => { beforeEach(() => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/asyncGraphLayout.ts b/js_modules/dagster-ui/packages/ui-core/src/graph/asyncGraphLayout.ts index a8b1ccdfc40ce..014652199e7ed 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/asyncGraphLayout.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/asyncGraphLayout.ts @@ -5,8 +5,7 @@ import {useFeatureFlags} from '../app/Flags'; import {asyncMemoize, indexedDBAsyncMemoize} from '../app/Util'; import {GraphData} from '../asset-graph/Utils'; import {AssetGraphLayout, LayoutAssetGraphOptions, layoutAssetGraph} from '../asset-graph/layout'; - -import {ILayoutOp, layoutOpGraph, LayoutOpGraphOptions, OpGraphLayout} from './layout'; +import {ILayoutOp, LayoutOpGraphOptions, OpGraphLayout, layoutOpGraph} from './layout'; const ASYNC_LAYOUT_SOLID_COUNT = 50; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/common.ts b/js_modules/dagster-ui/packages/ui-core/src/graph/common.ts index c3a346a8082bd..670b60e295f38 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/common.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/common.ts @@ -1,5 +1,4 @@ import {AssetGraphLayout, AssetLayout} from '../asset-graph/layout'; - import {OpGraphLayout, OpLayout} from './layout'; export type Edge = {a: string; b: string}; diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/layout.ts b/js_modules/dagster-ui/packages/ui-core/src/graph/layout.ts index eea88a415844d..f0a0e6114b9e9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/layout.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/layout.ts @@ -1,7 +1,6 @@ import * as dagre from 'dagre'; import {titleOfIO} from '../app/titleOfIO'; - import {IBounds, IPoint} from './common'; export type OpLayoutEdgeSide = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/types/OpGraph.types.ts b/js_modules/dagster-ui/packages/ui-core/src/graph/types/OpGraph.types.ts index 4837584319cff..ba4d5260987a2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/types/OpGraph.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/types/OpGraph.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OpGraphOpFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/graph/types/OpNode.types.ts b/js_modules/dagster-ui/packages/ui-core/src/graph/types/OpNode.types.ts index 9b8b2af82de83..325f57a0ec233 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graph/types/OpNode.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/graph/types/OpNode.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OpNodeInvocationFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/graphql/permissions.json b/js_modules/dagster-ui/packages/ui-core/src/graphql/permissions.json index 67183cb895eed..b4f76f238c410 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graphql/permissions.json +++ b/js_modules/dagster-ui/packages/ui-core/src/graphql/permissions.json @@ -1 +1,19 @@ -[{"permission":"launch_pipeline_execution"},{"permission":"launch_pipeline_reexecution"},{"permission":"start_schedule"},{"permission":"stop_running_schedule"},{"permission":"edit_sensor"},{"permission":"update_sensor_cursor"},{"permission":"terminate_pipeline_execution"},{"permission":"delete_pipeline_run"},{"permission":"reload_repository_location"},{"permission":"reload_workspace"},{"permission":"wipe_assets"},{"permission":"report_runless_asset_events"},{"permission":"launch_partition_backfill"},{"permission":"cancel_partition_backfill"},{"permission":"edit_dynamic_partitions"},{"permission":"toggle_auto_materialize"},{"permission":"edit_concurrency_limit"}] \ No newline at end of file +[ + {"permission": "launch_pipeline_execution"}, + {"permission": "launch_pipeline_reexecution"}, + {"permission": "start_schedule"}, + {"permission": "stop_running_schedule"}, + {"permission": "edit_sensor"}, + {"permission": "update_sensor_cursor"}, + {"permission": "terminate_pipeline_execution"}, + {"permission": "delete_pipeline_run"}, + {"permission": "reload_repository_location"}, + {"permission": "reload_workspace"}, + {"permission": "wipe_assets"}, + {"permission": "report_runless_asset_events"}, + {"permission": "launch_partition_backfill"}, + {"permission": "cancel_partition_backfill"}, + {"permission": "edit_dynamic_partitions"}, + {"permission": "toggle_auto_materialize"}, + {"permission": "edit_concurrency_limit"} +] diff --git a/js_modules/dagster-ui/packages/ui-core/src/graphql/possibleTypes.generated.json b/js_modules/dagster-ui/packages/ui-core/src/graphql/possibleTypes.generated.json index 173b10b2c0b9f..a2874bc928a0d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/graphql/possibleTypes.generated.json +++ b/js_modules/dagster-ui/packages/ui-core/src/graphql/possibleTypes.generated.json @@ -1 +1,460 @@ -{"DisplayableEvent":["EngineEvent","ExecutionStepOutputEvent","ExpectationResult","FailureMetadata","HandledOutputEvent","LoadedInputEvent","ObjectStoreOperationResult","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","MaterializationEvent","ObservationEvent","TypeCheck"],"MarkerEvent":["EngineEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","StepWorkerStartedEvent","StepWorkerStartingEvent"],"ErrorEvent":["EngineEvent","ExecutionStepFailureEvent","ExecutionStepUpForRetryEvent","HookErroredEvent","RunFailureEvent","ResourceInitFailureEvent"],"MessageEvent":["EngineEvent","ExecutionStepFailureEvent","ExecutionStepInputEvent","ExecutionStepOutputEvent","ExecutionStepRestartEvent","ExecutionStepSkippedEvent","ExecutionStepStartEvent","ExecutionStepSuccessEvent","ExecutionStepUpForRetryEvent","HandledOutputEvent","HookCompletedEvent","HookErroredEvent","HookSkippedEvent","LoadedInputEvent","LogMessageEvent","ObjectStoreOperationEvent","RunCanceledEvent","RunCancelingEvent","RunDequeuedEvent","RunEnqueuedEvent","RunFailureEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","RunStartEvent","RunStartingEvent","RunSuccessEvent","StepExpectationResultEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","MaterializationEvent","ObservationEvent","AssetMaterializationPlannedEvent","LogsCapturedEvent","AlertStartEvent","AlertSuccessEvent","AlertFailureEvent","AssetCheckEvaluationPlannedEvent","AssetCheckEvaluationEvent"],"RunEvent":["RunCanceledEvent","RunCancelingEvent","RunDequeuedEvent","RunEnqueuedEvent","RunFailureEvent","RunStartEvent","RunStartingEvent","RunSuccessEvent","AssetMaterializationPlannedEvent","AlertStartEvent","AlertSuccessEvent","AlertFailureEvent"],"PipelineRunStepStats":["RunStepStats"],"StepEvent":["EngineEvent","ExecutionStepFailureEvent","ExecutionStepInputEvent","ExecutionStepOutputEvent","ExecutionStepRestartEvent","ExecutionStepSkippedEvent","ExecutionStepStartEvent","ExecutionStepSuccessEvent","ExecutionStepUpForRetryEvent","HandledOutputEvent","HookCompletedEvent","HookErroredEvent","HookSkippedEvent","LoadedInputEvent","ObjectStoreOperationEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","StepExpectationResultEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","MaterializationEvent","ObservationEvent","AssetCheckEvaluationPlannedEvent","AssetCheckEvaluationEvent"],"AssetPartitionStatuses":["DefaultPartitionStatuses","MultiPartitionStatuses","TimePartitionStatuses"],"PartitionStatus1D":["TimePartitionStatuses","DefaultPartitionStatuses"],"AssetChecksOrError":["AssetChecks","AssetCheckNeedsMigrationError","AssetCheckNeedsUserCodeUpgrade","AssetCheckNeedsAgentUpgradeError"],"Instigator":["Schedule","Sensor"],"EvaluationStackEntry":["EvaluationStackListItemEntry","EvaluationStackPathEntry","EvaluationStackMapKeyEntry","EvaluationStackMapValueEntry"],"IPipelineSnapshot":["Pipeline","PipelineSnapshot","Job"],"PipelineConfigValidationError":["FieldNotDefinedConfigError","FieldsNotDefinedConfigError","MissingFieldConfigError","MissingFieldsConfigError","RuntimeMismatchConfigError","SelectorTypeConfigError"],"PipelineConfigValidationInvalid":["RunConfigValidationInvalid"],"PipelineConfigValidationResult":["InvalidSubsetError","PipelineConfigValidationValid","RunConfigValidationInvalid","PipelineNotFoundError","PythonError"],"PipelineReference":["PipelineSnapshot","UnknownPipeline"],"PipelineRun":["Run"],"DagsterRunEvent":["ExecutionStepFailureEvent","ExecutionStepInputEvent","ExecutionStepOutputEvent","ExecutionStepSkippedEvent","ExecutionStepStartEvent","ExecutionStepSuccessEvent","ExecutionStepUpForRetryEvent","ExecutionStepRestartEvent","LogMessageEvent","ResourceInitFailureEvent","ResourceInitStartedEvent","ResourceInitSuccessEvent","RunFailureEvent","RunStartEvent","RunEnqueuedEvent","RunDequeuedEvent","RunStartingEvent","RunCancelingEvent","RunCanceledEvent","RunSuccessEvent","StepWorkerStartedEvent","StepWorkerStartingEvent","HandledOutputEvent","LoadedInputEvent","LogsCapturedEvent","ObjectStoreOperationEvent","StepExpectationResultEvent","MaterializationEvent","ObservationEvent","EngineEvent","HookCompletedEvent","HookSkippedEvent","HookErroredEvent","AlertStartEvent","AlertSuccessEvent","AlertFailureEvent","AssetMaterializationPlannedEvent","AssetCheckEvaluationPlannedEvent","AssetCheckEvaluationEvent"],"PipelineRunLogsSubscriptionPayload":["PipelineRunLogsSubscriptionSuccess","PipelineRunLogsSubscriptionFailure"],"RunOrError":["Run","RunNotFoundError","PythonError"],"PipelineRunStatsSnapshot":["RunStatsSnapshot"],"RunStatsSnapshotOrError":["RunStatsSnapshot","PythonError"],"PipelineSnapshotOrError":["PipelineNotFoundError","PipelineSnapshot","PipelineSnapshotNotFoundError","PythonError"],"AssetOrError":["Asset","AssetNotFoundError"],"AssetsOrError":["AssetConnection","PythonError"],"DeletePipelineRunResult":["DeletePipelineRunSuccess","UnauthorizedError","PythonError","RunNotFoundError"],"ExecutionPlanOrError":["ExecutionPlan","RunConfigValidationInvalid","PipelineNotFoundError","InvalidSubsetError","PythonError"],"PipelineOrError":["Pipeline","PipelineNotFoundError","InvalidSubsetError","PythonError"],"ReloadRepositoryLocationMutationResult":["WorkspaceLocationEntry","ReloadNotSupported","RepositoryLocationNotFound","UnauthorizedError","PythonError"],"RepositoryLocationOrLoadError":["RepositoryLocation","PythonError"],"ReloadWorkspaceMutationResult":["Workspace","UnauthorizedError","PythonError"],"ShutdownRepositoryLocationMutationResult":["ShutdownRepositoryLocationSuccess","RepositoryLocationNotFound","UnauthorizedError","PythonError"],"TerminatePipelineExecutionFailure":["TerminateRunFailure"],"TerminatePipelineExecutionSuccess":["TerminateRunSuccess"],"TerminateRunResult":["TerminateRunSuccess","TerminateRunFailure","RunNotFoundError","UnauthorizedError","PythonError"],"ScheduleMutationResult":["PythonError","UnauthorizedError","ScheduleStateResult"],"ScheduleOrError":["Schedule","ScheduleNotFoundError","PythonError"],"SchedulerOrError":["Scheduler","SchedulerNotDefinedError","PythonError"],"SchedulesOrError":["Schedules","RepositoryNotFoundError","PythonError"],"ScheduleTickSpecificData":["ScheduleTickSuccessData","ScheduleTickFailureData"],"LaunchBackfillResult":["LaunchBackfillSuccess","PartitionSetNotFoundError","InvalidStepError","InvalidOutputError","RunConfigValidationInvalid","PipelineNotFoundError","RunConflict","UnauthorizedError","PythonError","InvalidSubsetError","PresetNotFoundError","ConflictingExecutionParamsError","NoModeProvidedError"],"ConfigTypeOrError":["EnumConfigType","CompositeConfigType","RegularConfigType","PipelineNotFoundError","ConfigTypeNotFoundError","PythonError"],"ConfigType":["ArrayConfigType","CompositeConfigType","EnumConfigType","NullableConfigType","RegularConfigType","ScalarUnionConfigType","MapConfigType"],"WrappingConfigType":["ArrayConfigType","NullableConfigType"],"DagsterType":["ListDagsterType","NullableDagsterType","RegularDagsterType"],"DagsterTypeOrError":["RegularDagsterType","PipelineNotFoundError","DagsterTypeNotFoundError","PythonError"],"WrappingDagsterType":["ListDagsterType","NullableDagsterType"],"Error":["AssetCheckNeedsMigrationError","AssetCheckNeedsUserCodeUpgrade","AssetCheckNeedsAgentUpgradeError","AssetNotFoundError","ConflictingExecutionParamsError","ConfigTypeNotFoundError","DagsterTypeNotFoundError","InvalidPipelineRunsFilterError","InvalidSubsetError","ModeNotFoundError","NoModeProvidedError","PartitionSetNotFoundError","PipelineNotFoundError","RunConflict","PipelineSnapshotNotFoundError","PresetNotFoundError","PythonError","ErrorChainLink","UnauthorizedError","ReloadNotSupported","RepositoryLocationNotFound","RepositoryNotFoundError","ResourceNotFoundError","RunGroupNotFoundError","RunNotFoundError","ScheduleNotFoundError","SchedulerNotDefinedError","SensorNotFoundError","DuplicateDynamicPartitionError","InstigationStateNotFoundError","SolidStepStatusUnavailableError","GraphNotFoundError","BackfillNotFoundError","PartitionSubsetDeserializationError","AutoMaterializeAssetEvaluationNeedsMigrationError"],"PipelineRunConflict":["RunConflict"],"PipelineRunNotFoundError":["RunNotFoundError"],"RepositoriesOrError":["RepositoryConnection","RepositoryNotFoundError","PythonError"],"RepositoryOrError":["PythonError","Repository","RepositoryNotFoundError"],"InstigationTypeSpecificData":["SensorData","ScheduleData"],"InstigationStateOrError":["InstigationState","InstigationStateNotFoundError","PythonError"],"InstigationStatesOrError":["InstigationStates","PythonError"],"MetadataEntry":["TableSchemaMetadataEntry","TableMetadataEntry","FloatMetadataEntry","IntMetadataEntry","JsonMetadataEntry","BoolMetadataEntry","MarkdownMetadataEntry","PathMetadataEntry","NotebookMetadataEntry","PythonArtifactMetadataEntry","TextMetadataEntry","UrlMetadataEntry","PipelineRunMetadataEntry","AssetMetadataEntry","JobMetadataEntry","NullMetadataEntry"],"PartitionRunConfigOrError":["PartitionRunConfig","PythonError"],"AssetBackfillStatus":["AssetPartitionsStatusCounts","UnpartitionedAssetStatus"],"PartitionSetOrError":["PartitionSet","PartitionSetNotFoundError","PythonError"],"PartitionSetsOrError":["PartitionSets","PipelineNotFoundError","PythonError"],"PartitionsOrError":["Partitions","PythonError"],"PartitionStatusesOrError":["PartitionStatuses","PythonError"],"PartitionTagsOrError":["PartitionTags","PythonError"],"RunConfigSchemaOrError":["RunConfigSchema","PipelineNotFoundError","InvalidSubsetError","ModeNotFoundError","PythonError"],"LaunchRunResult":["LaunchRunSuccess","InvalidStepError","InvalidOutputError","RunConfigValidationInvalid","PipelineNotFoundError","RunConflict","UnauthorizedError","PythonError","InvalidSubsetError","PresetNotFoundError","ConflictingExecutionParamsError","NoModeProvidedError"],"LaunchRunReexecutionResult":["LaunchRunSuccess","InvalidStepError","InvalidOutputError","RunConfigValidationInvalid","PipelineNotFoundError","RunConflict","UnauthorizedError","PythonError","InvalidSubsetError","PresetNotFoundError","ConflictingExecutionParamsError","NoModeProvidedError"],"LaunchPipelineRunSuccess":["LaunchRunSuccess"],"RunsOrError":["Runs","InvalidPipelineRunsFilterError","PythonError"],"PipelineRuns":["Runs"],"RunGroupOrError":["RunGroup","RunGroupNotFoundError","PythonError"],"SensorOrError":["Sensor","SensorNotFoundError","UnauthorizedError","PythonError"],"SensorsOrError":["Sensors","RepositoryNotFoundError","PythonError"],"StopSensorMutationResultOrError":["StopSensorMutationResult","UnauthorizedError","PythonError"],"ISolidDefinition":["CompositeSolidDefinition","SolidDefinition"],"SolidContainer":["Pipeline","PipelineSnapshot","Job","CompositeSolidDefinition","Graph"],"SolidStepStatsOrError":["SolidStepStatsConnection","SolidStepStatusUnavailableError"],"WorkspaceOrError":["Workspace","PythonError"],"WorkspaceLocationStatusEntriesOrError":["WorkspaceLocationStatusEntries","PythonError"],"GraphOrError":["Graph","GraphNotFoundError","PythonError"],"ResourceDetailsOrError":["ResourceDetails","ResourceNotFoundError","PythonError"],"ResourcesOrError":["ResourceDetailsList","RepositoryNotFoundError","PythonError"],"EnvVarWithConsumersOrError":["EnvVarWithConsumersList","PythonError"],"RunTagKeysOrError":["PythonError","RunTagKeys"],"RunTagsOrError":["PythonError","RunTags"],"RunIdsOrError":["RunIds","InvalidPipelineRunsFilterError","PythonError"],"AssetNodeOrError":["AssetNode","AssetNotFoundError"],"PartitionBackfillOrError":["PartitionBackfill","BackfillNotFoundError","PythonError"],"PartitionBackfillsOrError":["PartitionBackfills","PythonError"],"EventConnectionOrError":["EventConnection","RunNotFoundError","PythonError"],"AutoMaterializeAssetEvaluationRecordsOrError":["AutoMaterializeAssetEvaluationRecords","AutoMaterializeAssetEvaluationNeedsMigrationError"],"PartitionKeysOrError":["PartitionKeys","PartitionSubsetDeserializationError"],"AutoMaterializeRuleEvaluationData":["TextRuleEvaluationData","ParentMaterializedRuleEvaluationData","WaitingOnKeysRuleEvaluationData"],"SensorDryRunResult":["PythonError","SensorNotFoundError","DryRunInstigationTick"],"ScheduleDryRunResult":["DryRunInstigationTick","PythonError","ScheduleNotFoundError"],"TerminateRunsResultOrError":["TerminateRunsResult","PythonError"],"AssetWipeMutationResult":["AssetNotFoundError","UnauthorizedError","PythonError","AssetWipeSuccess"],"ReportRunlessAssetEventsResult":["UnauthorizedError","PythonError","ReportRunlessAssetEventsSuccess"],"ResumeBackfillResult":["ResumeBackfillSuccess","UnauthorizedError","PythonError"],"CancelBackfillResult":["CancelBackfillSuccess","UnauthorizedError","PythonError"],"LogTelemetryMutationResult":["LogTelemetrySuccess","PythonError"],"AddDynamicPartitionResult":["AddDynamicPartitionSuccess","UnauthorizedError","PythonError","DuplicateDynamicPartitionError"]} \ No newline at end of file +{ + "DisplayableEvent": [ + "EngineEvent", + "ExecutionStepOutputEvent", + "ExpectationResult", + "FailureMetadata", + "HandledOutputEvent", + "LoadedInputEvent", + "ObjectStoreOperationResult", + "ResourceInitFailureEvent", + "ResourceInitStartedEvent", + "ResourceInitSuccessEvent", + "StepWorkerStartedEvent", + "StepWorkerStartingEvent", + "MaterializationEvent", + "ObservationEvent", + "TypeCheck" + ], + "MarkerEvent": [ + "EngineEvent", + "ResourceInitFailureEvent", + "ResourceInitStartedEvent", + "ResourceInitSuccessEvent", + "StepWorkerStartedEvent", + "StepWorkerStartingEvent" + ], + "ErrorEvent": [ + "EngineEvent", + "ExecutionStepFailureEvent", + "ExecutionStepUpForRetryEvent", + "HookErroredEvent", + "RunFailureEvent", + "ResourceInitFailureEvent" + ], + "MessageEvent": [ + "EngineEvent", + "ExecutionStepFailureEvent", + "ExecutionStepInputEvent", + "ExecutionStepOutputEvent", + "ExecutionStepRestartEvent", + "ExecutionStepSkippedEvent", + "ExecutionStepStartEvent", + "ExecutionStepSuccessEvent", + "ExecutionStepUpForRetryEvent", + "HandledOutputEvent", + "HookCompletedEvent", + "HookErroredEvent", + "HookSkippedEvent", + "LoadedInputEvent", + "LogMessageEvent", + "ObjectStoreOperationEvent", + "RunCanceledEvent", + "RunCancelingEvent", + "RunDequeuedEvent", + "RunEnqueuedEvent", + "RunFailureEvent", + "ResourceInitFailureEvent", + "ResourceInitStartedEvent", + "ResourceInitSuccessEvent", + "RunStartEvent", + "RunStartingEvent", + "RunSuccessEvent", + "StepExpectationResultEvent", + "StepWorkerStartedEvent", + "StepWorkerStartingEvent", + "MaterializationEvent", + "ObservationEvent", + "AssetMaterializationPlannedEvent", + "LogsCapturedEvent", + "AlertStartEvent", + "AlertSuccessEvent", + "AlertFailureEvent", + "AssetCheckEvaluationPlannedEvent", + "AssetCheckEvaluationEvent" + ], + "RunEvent": [ + "RunCanceledEvent", + "RunCancelingEvent", + "RunDequeuedEvent", + "RunEnqueuedEvent", + "RunFailureEvent", + "RunStartEvent", + "RunStartingEvent", + "RunSuccessEvent", + "AssetMaterializationPlannedEvent", + "AlertStartEvent", + "AlertSuccessEvent", + "AlertFailureEvent" + ], + "PipelineRunStepStats": ["RunStepStats"], + "StepEvent": [ + "EngineEvent", + "ExecutionStepFailureEvent", + "ExecutionStepInputEvent", + "ExecutionStepOutputEvent", + "ExecutionStepRestartEvent", + "ExecutionStepSkippedEvent", + "ExecutionStepStartEvent", + "ExecutionStepSuccessEvent", + "ExecutionStepUpForRetryEvent", + "HandledOutputEvent", + "HookCompletedEvent", + "HookErroredEvent", + "HookSkippedEvent", + "LoadedInputEvent", + "ObjectStoreOperationEvent", + "ResourceInitFailureEvent", + "ResourceInitStartedEvent", + "ResourceInitSuccessEvent", + "StepExpectationResultEvent", + "StepWorkerStartedEvent", + "StepWorkerStartingEvent", + "MaterializationEvent", + "ObservationEvent", + "AssetCheckEvaluationPlannedEvent", + "AssetCheckEvaluationEvent" + ], + "AssetPartitionStatuses": [ + "DefaultPartitionStatuses", + "MultiPartitionStatuses", + "TimePartitionStatuses" + ], + "PartitionStatus1D": ["TimePartitionStatuses", "DefaultPartitionStatuses"], + "AssetChecksOrError": [ + "AssetChecks", + "AssetCheckNeedsMigrationError", + "AssetCheckNeedsUserCodeUpgrade", + "AssetCheckNeedsAgentUpgradeError" + ], + "Instigator": ["Schedule", "Sensor"], + "EvaluationStackEntry": [ + "EvaluationStackListItemEntry", + "EvaluationStackPathEntry", + "EvaluationStackMapKeyEntry", + "EvaluationStackMapValueEntry" + ], + "IPipelineSnapshot": ["Pipeline", "PipelineSnapshot", "Job"], + "PipelineConfigValidationError": [ + "FieldNotDefinedConfigError", + "FieldsNotDefinedConfigError", + "MissingFieldConfigError", + "MissingFieldsConfigError", + "RuntimeMismatchConfigError", + "SelectorTypeConfigError" + ], + "PipelineConfigValidationInvalid": ["RunConfigValidationInvalid"], + "PipelineConfigValidationResult": [ + "InvalidSubsetError", + "PipelineConfigValidationValid", + "RunConfigValidationInvalid", + "PipelineNotFoundError", + "PythonError" + ], + "PipelineReference": ["PipelineSnapshot", "UnknownPipeline"], + "PipelineRun": ["Run"], + "DagsterRunEvent": [ + "ExecutionStepFailureEvent", + "ExecutionStepInputEvent", + "ExecutionStepOutputEvent", + "ExecutionStepSkippedEvent", + "ExecutionStepStartEvent", + "ExecutionStepSuccessEvent", + "ExecutionStepUpForRetryEvent", + "ExecutionStepRestartEvent", + "LogMessageEvent", + "ResourceInitFailureEvent", + "ResourceInitStartedEvent", + "ResourceInitSuccessEvent", + "RunFailureEvent", + "RunStartEvent", + "RunEnqueuedEvent", + "RunDequeuedEvent", + "RunStartingEvent", + "RunCancelingEvent", + "RunCanceledEvent", + "RunSuccessEvent", + "StepWorkerStartedEvent", + "StepWorkerStartingEvent", + "HandledOutputEvent", + "LoadedInputEvent", + "LogsCapturedEvent", + "ObjectStoreOperationEvent", + "StepExpectationResultEvent", + "MaterializationEvent", + "ObservationEvent", + "EngineEvent", + "HookCompletedEvent", + "HookSkippedEvent", + "HookErroredEvent", + "AlertStartEvent", + "AlertSuccessEvent", + "AlertFailureEvent", + "AssetMaterializationPlannedEvent", + "AssetCheckEvaluationPlannedEvent", + "AssetCheckEvaluationEvent" + ], + "PipelineRunLogsSubscriptionPayload": [ + "PipelineRunLogsSubscriptionSuccess", + "PipelineRunLogsSubscriptionFailure" + ], + "RunOrError": ["Run", "RunNotFoundError", "PythonError"], + "PipelineRunStatsSnapshot": ["RunStatsSnapshot"], + "RunStatsSnapshotOrError": ["RunStatsSnapshot", "PythonError"], + "PipelineSnapshotOrError": [ + "PipelineNotFoundError", + "PipelineSnapshot", + "PipelineSnapshotNotFoundError", + "PythonError" + ], + "AssetOrError": ["Asset", "AssetNotFoundError"], + "AssetsOrError": ["AssetConnection", "PythonError"], + "DeletePipelineRunResult": [ + "DeletePipelineRunSuccess", + "UnauthorizedError", + "PythonError", + "RunNotFoundError" + ], + "ExecutionPlanOrError": [ + "ExecutionPlan", + "RunConfigValidationInvalid", + "PipelineNotFoundError", + "InvalidSubsetError", + "PythonError" + ], + "PipelineOrError": ["Pipeline", "PipelineNotFoundError", "InvalidSubsetError", "PythonError"], + "ReloadRepositoryLocationMutationResult": [ + "WorkspaceLocationEntry", + "ReloadNotSupported", + "RepositoryLocationNotFound", + "UnauthorizedError", + "PythonError" + ], + "RepositoryLocationOrLoadError": ["RepositoryLocation", "PythonError"], + "ReloadWorkspaceMutationResult": ["Workspace", "UnauthorizedError", "PythonError"], + "ShutdownRepositoryLocationMutationResult": [ + "ShutdownRepositoryLocationSuccess", + "RepositoryLocationNotFound", + "UnauthorizedError", + "PythonError" + ], + "TerminatePipelineExecutionFailure": ["TerminateRunFailure"], + "TerminatePipelineExecutionSuccess": ["TerminateRunSuccess"], + "TerminateRunResult": [ + "TerminateRunSuccess", + "TerminateRunFailure", + "RunNotFoundError", + "UnauthorizedError", + "PythonError" + ], + "ScheduleMutationResult": ["PythonError", "UnauthorizedError", "ScheduleStateResult"], + "ScheduleOrError": ["Schedule", "ScheduleNotFoundError", "PythonError"], + "SchedulerOrError": ["Scheduler", "SchedulerNotDefinedError", "PythonError"], + "SchedulesOrError": ["Schedules", "RepositoryNotFoundError", "PythonError"], + "ScheduleTickSpecificData": ["ScheduleTickSuccessData", "ScheduleTickFailureData"], + "LaunchBackfillResult": [ + "LaunchBackfillSuccess", + "PartitionSetNotFoundError", + "InvalidStepError", + "InvalidOutputError", + "RunConfigValidationInvalid", + "PipelineNotFoundError", + "RunConflict", + "UnauthorizedError", + "PythonError", + "InvalidSubsetError", + "PresetNotFoundError", + "ConflictingExecutionParamsError", + "NoModeProvidedError" + ], + "ConfigTypeOrError": [ + "EnumConfigType", + "CompositeConfigType", + "RegularConfigType", + "PipelineNotFoundError", + "ConfigTypeNotFoundError", + "PythonError" + ], + "ConfigType": [ + "ArrayConfigType", + "CompositeConfigType", + "EnumConfigType", + "NullableConfigType", + "RegularConfigType", + "ScalarUnionConfigType", + "MapConfigType" + ], + "WrappingConfigType": ["ArrayConfigType", "NullableConfigType"], + "DagsterType": ["ListDagsterType", "NullableDagsterType", "RegularDagsterType"], + "DagsterTypeOrError": [ + "RegularDagsterType", + "PipelineNotFoundError", + "DagsterTypeNotFoundError", + "PythonError" + ], + "WrappingDagsterType": ["ListDagsterType", "NullableDagsterType"], + "Error": [ + "AssetCheckNeedsMigrationError", + "AssetCheckNeedsUserCodeUpgrade", + "AssetCheckNeedsAgentUpgradeError", + "AssetNotFoundError", + "ConflictingExecutionParamsError", + "ConfigTypeNotFoundError", + "DagsterTypeNotFoundError", + "InvalidPipelineRunsFilterError", + "InvalidSubsetError", + "ModeNotFoundError", + "NoModeProvidedError", + "PartitionSetNotFoundError", + "PipelineNotFoundError", + "RunConflict", + "PipelineSnapshotNotFoundError", + "PresetNotFoundError", + "PythonError", + "ErrorChainLink", + "UnauthorizedError", + "ReloadNotSupported", + "RepositoryLocationNotFound", + "RepositoryNotFoundError", + "ResourceNotFoundError", + "RunGroupNotFoundError", + "RunNotFoundError", + "ScheduleNotFoundError", + "SchedulerNotDefinedError", + "SensorNotFoundError", + "DuplicateDynamicPartitionError", + "InstigationStateNotFoundError", + "SolidStepStatusUnavailableError", + "GraphNotFoundError", + "BackfillNotFoundError", + "PartitionSubsetDeserializationError", + "AutoMaterializeAssetEvaluationNeedsMigrationError" + ], + "PipelineRunConflict": ["RunConflict"], + "PipelineRunNotFoundError": ["RunNotFoundError"], + "RepositoriesOrError": ["RepositoryConnection", "RepositoryNotFoundError", "PythonError"], + "RepositoryOrError": ["PythonError", "Repository", "RepositoryNotFoundError"], + "InstigationTypeSpecificData": ["SensorData", "ScheduleData"], + "InstigationStateOrError": ["InstigationState", "InstigationStateNotFoundError", "PythonError"], + "InstigationStatesOrError": ["InstigationStates", "PythonError"], + "MetadataEntry": [ + "TableSchemaMetadataEntry", + "TableMetadataEntry", + "FloatMetadataEntry", + "IntMetadataEntry", + "JsonMetadataEntry", + "BoolMetadataEntry", + "MarkdownMetadataEntry", + "PathMetadataEntry", + "NotebookMetadataEntry", + "PythonArtifactMetadataEntry", + "TextMetadataEntry", + "UrlMetadataEntry", + "PipelineRunMetadataEntry", + "AssetMetadataEntry", + "JobMetadataEntry", + "NullMetadataEntry" + ], + "PartitionRunConfigOrError": ["PartitionRunConfig", "PythonError"], + "AssetBackfillStatus": ["AssetPartitionsStatusCounts", "UnpartitionedAssetStatus"], + "PartitionSetOrError": ["PartitionSet", "PartitionSetNotFoundError", "PythonError"], + "PartitionSetsOrError": ["PartitionSets", "PipelineNotFoundError", "PythonError"], + "PartitionsOrError": ["Partitions", "PythonError"], + "PartitionStatusesOrError": ["PartitionStatuses", "PythonError"], + "PartitionTagsOrError": ["PartitionTags", "PythonError"], + "RunConfigSchemaOrError": [ + "RunConfigSchema", + "PipelineNotFoundError", + "InvalidSubsetError", + "ModeNotFoundError", + "PythonError" + ], + "LaunchRunResult": [ + "LaunchRunSuccess", + "InvalidStepError", + "InvalidOutputError", + "RunConfigValidationInvalid", + "PipelineNotFoundError", + "RunConflict", + "UnauthorizedError", + "PythonError", + "InvalidSubsetError", + "PresetNotFoundError", + "ConflictingExecutionParamsError", + "NoModeProvidedError" + ], + "LaunchRunReexecutionResult": [ + "LaunchRunSuccess", + "InvalidStepError", + "InvalidOutputError", + "RunConfigValidationInvalid", + "PipelineNotFoundError", + "RunConflict", + "UnauthorizedError", + "PythonError", + "InvalidSubsetError", + "PresetNotFoundError", + "ConflictingExecutionParamsError", + "NoModeProvidedError" + ], + "LaunchPipelineRunSuccess": ["LaunchRunSuccess"], + "RunsOrError": ["Runs", "InvalidPipelineRunsFilterError", "PythonError"], + "PipelineRuns": ["Runs"], + "RunGroupOrError": ["RunGroup", "RunGroupNotFoundError", "PythonError"], + "SensorOrError": ["Sensor", "SensorNotFoundError", "UnauthorizedError", "PythonError"], + "SensorsOrError": ["Sensors", "RepositoryNotFoundError", "PythonError"], + "StopSensorMutationResultOrError": [ + "StopSensorMutationResult", + "UnauthorizedError", + "PythonError" + ], + "ISolidDefinition": ["CompositeSolidDefinition", "SolidDefinition"], + "SolidContainer": ["Pipeline", "PipelineSnapshot", "Job", "CompositeSolidDefinition", "Graph"], + "SolidStepStatsOrError": ["SolidStepStatsConnection", "SolidStepStatusUnavailableError"], + "WorkspaceOrError": ["Workspace", "PythonError"], + "WorkspaceLocationStatusEntriesOrError": ["WorkspaceLocationStatusEntries", "PythonError"], + "GraphOrError": ["Graph", "GraphNotFoundError", "PythonError"], + "ResourceDetailsOrError": ["ResourceDetails", "ResourceNotFoundError", "PythonError"], + "ResourcesOrError": ["ResourceDetailsList", "RepositoryNotFoundError", "PythonError"], + "EnvVarWithConsumersOrError": ["EnvVarWithConsumersList", "PythonError"], + "RunTagKeysOrError": ["PythonError", "RunTagKeys"], + "RunTagsOrError": ["PythonError", "RunTags"], + "RunIdsOrError": ["RunIds", "InvalidPipelineRunsFilterError", "PythonError"], + "AssetNodeOrError": ["AssetNode", "AssetNotFoundError"], + "PartitionBackfillOrError": ["PartitionBackfill", "BackfillNotFoundError", "PythonError"], + "PartitionBackfillsOrError": ["PartitionBackfills", "PythonError"], + "EventConnectionOrError": ["EventConnection", "RunNotFoundError", "PythonError"], + "AutoMaterializeAssetEvaluationRecordsOrError": [ + "AutoMaterializeAssetEvaluationRecords", + "AutoMaterializeAssetEvaluationNeedsMigrationError" + ], + "PartitionKeysOrError": ["PartitionKeys", "PartitionSubsetDeserializationError"], + "AutoMaterializeRuleEvaluationData": [ + "TextRuleEvaluationData", + "ParentMaterializedRuleEvaluationData", + "WaitingOnKeysRuleEvaluationData" + ], + "SensorDryRunResult": ["PythonError", "SensorNotFoundError", "DryRunInstigationTick"], + "ScheduleDryRunResult": ["DryRunInstigationTick", "PythonError", "ScheduleNotFoundError"], + "TerminateRunsResultOrError": ["TerminateRunsResult", "PythonError"], + "AssetWipeMutationResult": [ + "AssetNotFoundError", + "UnauthorizedError", + "PythonError", + "AssetWipeSuccess" + ], + "ReportRunlessAssetEventsResult": [ + "UnauthorizedError", + "PythonError", + "ReportRunlessAssetEventsSuccess" + ], + "ResumeBackfillResult": ["ResumeBackfillSuccess", "UnauthorizedError", "PythonError"], + "CancelBackfillResult": ["CancelBackfillSuccess", "UnauthorizedError", "PythonError"], + "LogTelemetryMutationResult": ["LogTelemetrySuccess", "PythonError"], + "AddDynamicPartitionResult": [ + "AddDynamicPartitionSuccess", + "UnauthorizedError", + "PythonError", + "DuplicateDynamicPartitionError" + ] +} diff --git a/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useDocumentTitle.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useDocumentTitle.test.tsx index fd987a1dde8a4..76d9fd0aa6553 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useDocumentTitle.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useDocumentTitle.test.tsx @@ -1,5 +1,5 @@ -import {render} from '@testing-library/react'; import * as React from 'react'; +import {render} from '@testing-library/react'; import {useDocumentTitle} from '../useDocumentTitle'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useQueryPersistedState.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useQueryPersistedState.test.tsx index 1ec8b67e94211..9ad4b24b21337 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useQueryPersistedState.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useQueryPersistedState.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {MemoryRouter, Route} from 'react-router-dom'; import {useQueryPersistedState} from '../useQueryPersistedState'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useSelectionReducer.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useSelectionReducer.test.tsx index df8374eec5a57..376e718a1055f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useSelectionReducer.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/hooks/__tests__/useSelectionReducer.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {useSelectionReducer} from '../useSelectionReducer'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/CodeLocationsPage.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/CodeLocationsPage.tsx index e33611bc11cac..70222685ed08b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/CodeLocationsPage.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/CodeLocationsPage.tsx @@ -1,12 +1,12 @@ -import {Box, Heading, PageHeader, Subheading, TextInput} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Heading, PageHeader, Subheading, TextInput} from '@dagster-io/ui-components'; + import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {ReloadAllButton} from '../workspace/ReloadAllButton'; import {RepositoryLocationsList} from '../workspace/RepositoryLocationsList'; import {WorkspaceContext} from '../workspace/WorkspaceContext'; - import {InstancePageContext} from './InstancePageContext'; import {InstanceTabs} from './InstanceTabs'; import {flattenCodeLocationRows} from './flattenCodeLocationRows'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/DaemonHealth.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/DaemonHealth.tsx index 9f5bf786b1ca8..e2b5b1f83f0b7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/DaemonHealth.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/DaemonHealth.tsx @@ -1,16 +1,17 @@ +import * as React from 'react'; + import { Button, ButtonLink, + Dialog, DialogBody, DialogFooter, - Dialog, Group, Tag, Trace, colorLinkDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {DaemonStatusForListFragment} from './types/DaemonList.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/DaemonList.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/DaemonList.tsx index 1648cb1b44ceb..e8c5583e59786 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/DaemonList.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/DaemonList.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; + import {Box, Checkbox, Group, Spinner, Table, Tag} from '@dagster-io/ui-components'; -import * as React from 'react'; import {useConfirmation} from '../app/CustomConfirmationProvider'; import {useUnscopedPermissions} from '../app/Permissions'; @@ -9,7 +10,6 @@ import {Timestamp} from '../app/time/Timestamp'; import {AutoMaterializeExperimentalTag} from '../assets/AutoMaterializePolicyPage/AutoMaterializeExperimentalBanner'; import {useAutomaterializeDaemonStatus} from '../assets/useAutomaterializeDaemonStatus'; import {TimeFromNow} from '../ui/TimeFromNow'; - import {DaemonHealth} from './DaemonHealth'; import {DaemonStatusForListFragment} from './types/DaemonList.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/DeploymentStatusProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/DeploymentStatusProvider.tsx index 355c4a80edb9b..652a20de302c1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/DeploymentStatusProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/DeploymentStatusProvider.tsx @@ -1,7 +1,6 @@ import * as React from 'react'; import {useCodeLocationsStatus} from '../nav/useCodeLocationsStatus'; - import {StatusAndMessage} from './DeploymentStatusType'; import {useDaemonStatus} from './useDaemonStatus'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceBackfills.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceBackfills.tsx index e05bffd6a349f..e28a979d226e5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceBackfills.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceBackfills.tsx @@ -1,15 +1,16 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { Box, CursorPaginationControls, - NonIdealState, - PageHeader, Heading, + NonIdealState, Page, + PageHeader, Spinner, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; @@ -22,9 +23,8 @@ import {DaemonNotRunningAlertBody} from '../partitions/BackfillMessaging'; import {useCursorPaginatedQuery} from '../runs/useCursorPaginatedQuery'; import {useFilters} from '../ui/Filters'; import {useStaticSetFilter} from '../ui/Filters/useStaticSetFilter'; - import {INSTANCE_HEALTH_FRAGMENT} from './InstanceHealthFragment'; -import {BackfillTable, BACKFILL_TABLE_FRAGMENT} from './backfill/BackfillTable'; +import {BACKFILL_TABLE_FRAGMENT, BackfillTable} from './backfill/BackfillTable'; import { InstanceBackfillsQuery, InstanceBackfillsQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceConcurrency.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceConcurrency.tsx index 0a7875b201741..a782e59e8c1d1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceConcurrency.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceConcurrency.tsx @@ -1,37 +1,38 @@ -import {gql, useQuery, useMutation} from '@apollo/client'; +import * as React from 'react'; +import {gql, useMutation, useQuery} from '@apollo/client'; +import {Link} from 'react-router-dom'; + import { - Subheading, - MetadataTableWIP, - StyledRawCodeMirror, - PageHeader, - Heading, Box, + Button, + ButtonLink, Dialog, DialogBody, DialogFooter, + Heading, Icon, Menu, MenuItem, + MetadataTableWIP, Mono, + NonIdealState, + Page, + PageHeader, Popover, Spinner, - ButtonLink, + StyledRawCodeMirror, + Subheading, Table, Tag, TextInput, - Button, - NonIdealState, - Page, Tooltip, colorAccentGray, - colorTextLight, colorBackgroundYellow, + colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; import {showSharedToaster} from '../app/DomUtils'; -import {useQueryRefreshAtInterval, FIFTEEN_SECONDS} from '../app/QueryRefresh'; +import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {COMMON_COLLATOR} from '../app/Util'; import {useTrackPageView} from '../app/analytics'; import {RunStatus} from '../graphql/types'; @@ -40,7 +41,6 @@ import {RunStatusDot} from '../runs/RunStatusDots'; import {failedStatuses} from '../runs/RunStatuses'; import {titleForRun} from '../runs/RunUtils'; import {TimeElapsed} from '../runs/TimeElapsed'; - import {InstancePageContext} from './InstancePageContext'; import {InstanceTabs} from './InstanceTabs'; import { @@ -48,15 +48,15 @@ import { ConcurrencyKeyDetailsQueryVariables, ConcurrencyLimitFragment, ConcurrencyStepFragment, + DeleteConcurrencyLimitMutation, + DeleteConcurrencyLimitMutationVariables, FreeConcurrencySlotsMutation, FreeConcurrencySlotsMutationVariables, InstanceConcurrencyLimitsQuery, InstanceConcurrencyLimitsQueryVariables, + RunQueueConfigFragment, RunsForConcurrencyKeyQuery, RunsForConcurrencyKeyQueryVariables, - RunQueueConfigFragment, - DeleteConcurrencyLimitMutation, - DeleteConcurrencyLimitMutationVariables, SetConcurrencyLimitMutation, SetConcurrencyLimitMutationVariables, } from './types/InstanceConcurrency.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceConfig.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceConfig.tsx index f9f48d91e06b7..9baf6bdaf6de8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceConfig.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceConfig.tsx @@ -1,27 +1,26 @@ +import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; +import CodeMirror from 'codemirror'; import 'codemirror/addon/search/searchcursor'; +import {createGlobalStyle} from 'styled-components'; -import {gql, useQuery} from '@apollo/client'; import { Box, - PageHeader, - Spinner, Code, Heading, + PageHeader, + Spinner, StyledRawCodeMirror, Subheading, - colorKeylineDefault, colorBackgroundDefault, - colorTextDefault, colorBackgroundLime, + colorKeylineDefault, + colorTextDefault, } from '@dagster-io/ui-components'; -import CodeMirror from 'codemirror'; -import * as React from 'react'; -import {createGlobalStyle} from 'styled-components'; -import {useQueryRefreshAtInterval, FIFTEEN_SECONDS} from '../app/QueryRefresh'; +import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; - import {InstancePageContext} from './InstancePageContext'; import {InstanceTabs} from './InstanceTabs'; import {InstanceConfigQuery, InstanceConfigQueryVariables} from './types/InstanceConfig.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceHealthPage.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceHealthPage.tsx index b4450f793fede..f69b2d1b3e672 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceHealthPage.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceHealthPage.tsx @@ -1,11 +1,11 @@ -import {gql, useQuery} from '@apollo/client'; -import {Box, PageHeader, Heading, Subheading, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; + +import {Box, Heading, PageHeader, Subheading, colorTextLight} from '@dagster-io/ui-components'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; - import {DaemonList} from './DaemonList'; import {INSTANCE_HEALTH_FRAGMENT} from './InstanceHealthFragment'; import {InstancePageContext} from './InstancePageContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceTabs.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceTabs.tsx index 41d474b96f39b..c5bd4a928ea10 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceTabs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/InstanceTabs.tsx @@ -1,12 +1,12 @@ +import * as React from 'react'; import {QueryResult} from '@apollo/client'; + import {Box, Tabs} from '@dagster-io/ui-components'; -import * as React from 'react'; import {QueryRefreshCountdown, QueryRefreshState} from '../app/QueryRefresh'; import {InstanceWarningIcon} from '../nav/InstanceWarningIcon'; import {WorkspaceStatus} from '../nav/WorkspaceStatus'; import {TabLink} from '../ui/TabLink'; - import {InstancePageContext} from './InstancePageContext'; import {useCanSeeConfig} from './useCanSeeConfig'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/JobMenu.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/JobMenu.tsx index 72fff7d0c6781..c4e23da15a1e2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/JobMenu.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/JobMenu.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {gql, useLazyQuery} from '@apollo/client'; + import {Button, Icon, Menu, MenuItem, Popover, Spinner, Tooltip} from '@dagster-io/ui-components'; -import * as React from 'react'; import {usePermissionsForLocation} from '../app/Permissions'; import {useMaterializationAction} from '../assets/LaunchAssetExecutionButton'; @@ -12,7 +13,6 @@ import {useJobReexecution} from '../runs/useJobReExecution'; import {MenuLink} from '../ui/MenuLink'; import {RepoAddress} from '../workspace/types'; import {workspacePipelinePath} from '../workspace/workspacePath'; - import {RunReExecutionQuery, RunReExecutionQueryVariables} from './types/JobMenu.types'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/LastRunSummary.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/LastRunSummary.tsx index 5798083dc10bb..f0004b72e6e87 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/LastRunSummary.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/LastRunSummary.tsx @@ -1,6 +1,7 @@ -import {Box, Popover, Tag} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Popover, Tag} from '@dagster-io/ui-components'; + import {RunStatus} from '../graphql/types'; import {RunStatusIndicator} from '../runs/RunStatusDots'; import {RunStatusOverlay} from '../runs/RunStatusPez'; @@ -8,7 +9,6 @@ import {failedStatuses, inProgressStatuses} from '../runs/RunStatuses'; import {RunStateSummary, RunTime} from '../runs/RunUtils'; import {RunTimeFragment} from '../runs/types/RunUtils.types'; import {AnchorButton} from '../ui/AnchorButton'; - import {StepSummaryForRun} from './StepSummaryForRun'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/RepoFilterButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/RepoFilterButton.tsx index b9b7ca0f424c4..90d49af31426c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/RepoFilterButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/RepoFilterButton.tsx @@ -1,6 +1,7 @@ -import {Box, Button, DialogFooter, DialogHeader, Dialog, Icon} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Button, Dialog, DialogFooter, DialogHeader, Icon} from '@dagster-io/ui-components'; + import {RepoSelector} from '../nav/RepoSelector'; import {WorkspaceContext} from '../workspace/WorkspaceContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/StepSummaryForRun.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/StepSummaryForRun.tsx index 55226698c5ca8..2923944375a27 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/StepSummaryForRun.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/StepSummaryForRun.tsx @@ -1,12 +1,12 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; -import {Caption, colorTextLight} from '@dagster-io/ui-components'; import qs from 'qs'; -import * as React from 'react'; import {Link} from 'react-router-dom'; +import {Caption, colorTextLight} from '@dagster-io/ui-components'; + import {StepEventStatus} from '../graphql/types'; import {failedStatuses, inProgressStatuses} from '../runs/RunStatuses'; - import { StepSummaryForRunQuery, StepSummaryForRunQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/__tests__/DaemonList.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/__tests__/DaemonList.test.tsx index a3514cfa8ad37..948c445acf86a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/__tests__/DaemonList.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/__tests__/DaemonList.test.tsx @@ -1,4 +1,4 @@ -import {MockedResponse, MockedProvider} from '@apollo/client/testing'; +import {MockedProvider, MockedResponse} from '@apollo/client/testing'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import React from 'react'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillActionsMenu.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillActionsMenu.tsx index 6a04eb611168b..23abf41e35ff3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillActionsMenu.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillActionsMenu.tsx @@ -1,14 +1,14 @@ -import {gql, useMutation} from '@apollo/client'; -import {Button, Group, Icon, Menu, MenuItem, Popover} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useMutation} from '@apollo/client'; import {useHistory} from 'react-router-dom'; +import {Button, Group, Icon, Menu, MenuItem, Popover} from '@dagster-io/ui-components'; + import {showCustomAlert} from '../../app/CustomAlertProvider'; import {showSharedToaster} from '../../app/DomUtils'; import {PythonErrorInfo} from '../../app/PythonErrorInfo'; import {BulkActionStatus, RunStatus} from '../../graphql/types'; import {runsPathWithFilters} from '../../runs/RunsFilterInput'; - import { BACKFILL_STEP_STATUS_DIALOG_BACKFILL_FRAGMENT, BackfillStepStatusDialog, diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillPage.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillPage.tsx index a1029c6b0b70f..bd9fb95516a5c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillPage.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillPage.tsx @@ -1,4 +1,11 @@ import {gql, useApolloClient, useQuery} from '@apollo/client'; +import dayjs from 'dayjs'; +import duration from 'dayjs/plugin/duration'; +import relativeTime from 'dayjs/plugin/relativeTime'; +import React from 'react'; +import {Link, useHistory, useParams} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, ButtonLink, @@ -15,12 +22,6 @@ import { colorBackgroundLight, colorTextLight, } from '@dagster-io/ui-components'; -import dayjs from 'dayjs'; -import duration from 'dayjs/plugin/duration'; -import relativeTime from 'dayjs/plugin/relativeTime'; -import React from 'react'; -import {Link, useHistory, useParams} from 'react-router-dom'; -import styled from 'styled-components'; import {PYTHON_ERROR_FRAGMENT} from '../../app/PythonErrorFragment'; import {PythonErrorInfo} from '../../app/PythonErrorInfo'; @@ -35,7 +36,6 @@ import {AssetKey, BulkActionStatus, RunStatus} from '../../graphql/types'; import {useDocumentTitle} from '../../hooks/useDocumentTitle'; import {RunFilterToken, runsPathWithFilters} from '../../runs/RunsFilterInput'; import {testId} from '../../testing/testId'; - import {BACKFILL_ACTIONS_BACKFILL_FRAGMENT, BackfillActionsMenu} from './BackfillActionsMenu'; import {BackfillStatusTagForPage} from './BackfillStatusTagForPage'; import {TargetPartitionsDisplay} from './TargetPartitionsDisplay'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillPartitionsRequestedDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillPartitionsRequestedDialog.tsx index fc8b92cfcbf47..f4b080c43346d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillPartitionsRequestedDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillPartitionsRequestedDialog.tsx @@ -1,9 +1,9 @@ -import {Button, DialogFooter, Dialog, FontFamily} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Button, Dialog, DialogFooter, FontFamily} from '@dagster-io/ui-components'; + import {TruncatedTextWithFullTextOnHover} from '../../nav/getLeftNavItemsForOption'; import {VirtualizedItemListForDialog} from '../../ui/VirtualizedItemListForDialog'; - import {BackfillTableFragment} from './types/BackfillTable.types'; const COLLATOR = new Intl.Collator(navigator.language, {sensitivity: 'base', numeric: true}); diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillRow.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillRow.tsx index 4a200e119244e..cb223925194e2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillRow.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillRow.tsx @@ -1,10 +1,11 @@ -import {gql, QueryResult, useLazyQuery} from '@apollo/client'; -import {Box, colorTextLight, Icon, Mono, Tag} from '@dagster-io/ui-components'; -import countBy from 'lodash/countBy'; import * as React from 'react'; +import {QueryResult, gql, useLazyQuery} from '@apollo/client'; +import countBy from 'lodash/countBy'; import {Link, useHistory} from 'react-router-dom'; import styled from 'styled-components'; +import {Box, Icon, Mono, Tag, colorTextLight} from '@dagster-io/ui-components'; + import {showCustomAlert} from '../../app/CustomAlertProvider'; import {PythonErrorInfo} from '../../app/PythonErrorInfo'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../../app/QueryRefresh'; @@ -24,7 +25,6 @@ import {buildRepoAddress} from '../../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../../workspace/repoAddressAsString'; import {RepoAddress} from '../../workspace/types'; import {workspacePathFromAddress, workspacePipelinePath} from '../../workspace/workspacePath'; - import {BackfillActionsMenu, backfillCanCancelRuns} from './BackfillActionsMenu'; import {BackfillStatusTagForPage} from './BackfillStatusTagForPage'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillStatusTagForPage.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillStatusTagForPage.tsx index 35bad48420a37..ee6bffedfb2e9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillStatusTagForPage.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillStatusTagForPage.tsx @@ -1,7 +1,8 @@ -import {Box, Tag} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {Box, Tag} from '@dagster-io/ui-components'; + import {showCustomAlert} from '../../app/CustomAlertProvider'; import {PythonErrorInfo} from '../../app/PythonErrorInfo'; import {PythonErrorFragment} from '../../app/types/PythonErrorFragment.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillStepStatusDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillStepStatusDialog.tsx index 5d7900f33fc65..7855c8f0dcef6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillStepStatusDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillStepStatusDialog.tsx @@ -1,6 +1,7 @@ -import {gql} from '@apollo/client'; -import {Button, DialogFooter, Dialog} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql} from '@apollo/client'; + +import {Button, Dialog, DialogFooter} from '@dagster-io/ui-components'; import {PartitionPerOpStatus} from '../../partitions/PartitionStepStatus'; import {usePartitionStepQuery} from '../../partitions/usePartitionStepQuery'; @@ -9,7 +10,6 @@ import {RunFilterToken} from '../../runs/RunsFilterInput'; import {buildRepoAddress} from '../../workspace/buildRepoAddress'; import {repoAddressToSelector} from '../../workspace/repoAddressToSelector'; import {RepoAddress} from '../../workspace/types'; - import {BackfillStepStatusDialogBackfillFragment} from './types/BackfillStepStatusDialog.types'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillTable.tsx index 7aba27aca8a04..6042b2c8f0e98 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillTable.tsx @@ -1,9 +1,9 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; + import {Table} from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../../app/PythonErrorFragment'; - import {BACKFILL_ACTIONS_BACKFILL_FRAGMENT} from './BackfillActionsMenu'; import {BackfillPartitionsRequestedDialog} from './BackfillPartitionsRequestedDialog'; import {BackfillRow} from './BackfillRow'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillTerminationDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillTerminationDialog.tsx index 98d6baa544f0b..d73dc8c534cef 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillTerminationDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/BackfillTerminationDialog.tsx @@ -1,18 +1,18 @@ -import {gql, useMutation, useQuery} from '@apollo/client'; -import {Button, DialogBody, DialogFooter, Dialog} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useMutation, useQuery} from '@apollo/client'; + +import {Button, Dialog, DialogBody, DialogFooter} from '@dagster-io/ui-components'; import {PYTHON_ERROR_FRAGMENT} from '../../app/PythonErrorFragment'; import {BulkActionStatus} from '../../graphql/types'; import {cancelableStatuses} from '../../runs/RunStatuses'; import {TerminationDialog} from '../../runs/TerminationDialog'; - import {SINGLE_BACKFILL_STATUS_DETAILS_QUERY} from './BackfillRow'; import {SingleBackfillQuery, SingleBackfillQueryVariables} from './types/BackfillRow.types'; import { + BackfillTerminationDialogBackfillFragment, CancelBackfillMutation, CancelBackfillMutationVariables, - BackfillTerminationDialogBackfillFragment, } from './types/BackfillTerminationDialog.types'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/TargetPartitionsDisplay.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/TargetPartitionsDisplay.tsx index f0fd2a44e5aa7..d9b8bdec41cad 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/TargetPartitionsDisplay.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/TargetPartitionsDisplay.tsx @@ -1,6 +1,7 @@ -import {Box, Button, ButtonLink, Dialog, DialogFooter, Tag} from '@dagster-io/ui-components'; import React from 'react'; +import {Box, Button, ButtonLink, Dialog, DialogFooter, Tag} from '@dagster-io/ui-components'; + import {AssetBackfillTargetPartitions} from '../../graphql/types'; import {TruncatedTextWithFullTextOnHover} from '../../nav/getLeftNavItemsForOption'; import {VirtualizedItemListForDialog} from '../../ui/VirtualizedItemListForDialog'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/__stories__/BackfillPage.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/__stories__/BackfillPage.stories.tsx index eb8f0f75ac8bd..42a2ee393bd26 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/__stories__/BackfillPage.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/__stories__/BackfillPage.stories.tsx @@ -1,5 +1,5 @@ import {MockedProvider} from '@apollo/client/testing'; -import {Story, Meta} from '@storybook/react'; +import {Meta, Story} from '@storybook/react'; import React from 'react'; import {MemoryRouter, Route} from 'react-router-dom'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/__tests__/BackfillTable.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/__tests__/BackfillTable.test.tsx index d7d826b90a996..2291f008f0a82 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/__tests__/BackfillTable.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/__tests__/BackfillTable.test.tsx @@ -1,14 +1,14 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {MemoryRouter} from 'react-router-dom'; import * as Alerting from '../../../app/CustomAlertProvider'; import {BackfillTable} from '../BackfillTable'; import { - BackfillTableFragmentFailedErrorStatus, BackfillTableFragmentFailedError, + BackfillTableFragmentFailedErrorStatus, } from '../__fixtures__/BackfillTable.fixtures'; // This file must be mocked because Jest can't handle `import.meta.url`. diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillActionsMenu.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillActionsMenu.types.ts index 573f6a01f60ea..301b82d098520 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillActionsMenu.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillActionsMenu.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type BackfillActionsBackfillFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillPage.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillPage.types.ts index f5d4a242bdc2d..f054bc8b4b836 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillPage.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillPage.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type BackfillStatusesByAssetQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillRow.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillRow.types.ts index b7852813df925..2202a945c6e20 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillRow.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillRow.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type SingleBackfillCountsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillStepStatusDialog.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillStepStatusDialog.types.ts index c15f414b21d85..664c8655a2ae7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillStepStatusDialog.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillStepStatusDialog.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type BackfillStepStatusDialogBackfillFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillTable.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillTable.types.ts index 6c7583c68de96..2e63352b36494 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillTable.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillTable.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type BackfillTableFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillTerminationDialog.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillTerminationDialog.types.ts index b44363beb87b2..dbf1c7595a32b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillTerminationDialog.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillTerminationDialog.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type BackfillTerminationDialogBackfillFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillUtils.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillUtils.types.ts index 677d9ff481f54..a13cf49170fe0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillUtils.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/backfill/types/BackfillUtils.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type ResumeBackfillMutationVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/DaemonList.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/DaemonList.types.ts index bfdd9c5049283..7e7f03f000551 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/DaemonList.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/DaemonList.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type DaemonHealthFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceBackfills.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceBackfills.types.ts index f745bb194b5a3..aa3c07eb977fc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceBackfills.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceBackfills.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type InstanceHealthForBackfillsQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceConcurrency.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceConcurrency.types.ts index da205a5c6b371..7b14447f961e6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceConcurrency.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceConcurrency.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ConcurrencyStepFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceConfig.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceConfig.types.ts index a5762e5e4e1bb..979fba5e68ba8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceConfig.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceConfig.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type InstanceConfigQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceHealthFragment.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceHealthFragment.types.ts index 214d1c72a8a2c..6507a2134475c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceHealthFragment.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceHealthFragment.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type InstanceHealthFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceHealthPage.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceHealthPage.types.ts index 7f1bd5f0c783b..12fae5e7e704d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceHealthPage.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/InstanceHealthPage.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type InstanceHealthQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/JobMenu.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/JobMenu.types.ts index 08a5f43570754..91a2444b0318f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/JobMenu.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/JobMenu.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunReExecutionQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/NextTick.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/NextTick.types.ts index 68be242951ecf..cf80666641586 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/NextTick.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/NextTick.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ScheduleFutureTicksFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/StepSummaryForRun.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/StepSummaryForRun.types.ts index 8e90d557e1a52..1982a33ce7708 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/StepSummaryForRun.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/StepSummaryForRun.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type StepSummaryForRunQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/useCanSeeConfig.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/useCanSeeConfig.types.ts index 82f1708dc1e38..e79fb2967c641 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/useCanSeeConfig.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/useCanSeeConfig.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type InstanceConfigHasInfoQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/useDaemonStatus.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/useDaemonStatus.types.ts index 6c082ef0abe2e..64c0dd4ed4fa9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/useDaemonStatus.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/useDaemonStatus.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type InstanceWarningQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/types/useSupportsCapturedLogs.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instance/types/useSupportsCapturedLogs.types.ts index a5d9053401f85..5f4eb11530306 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/types/useSupportsCapturedLogs.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/types/useSupportsCapturedLogs.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type InstanceSupportsCapturedLogsQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instance/useDaemonStatus.tsx b/js_modules/dagster-ui/packages/ui-core/src/instance/useDaemonStatus.tsx index 8a1ff073e929a..87cba1a60e2aa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instance/useDaemonStatus.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instance/useDaemonStatus.tsx @@ -1,10 +1,9 @@ -import {gql, useQuery} from '@apollo/client'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {InstigationStatus} from '../graphql/types'; import {useRepositoryOptions} from '../workspace/WorkspaceContext'; - import {StatusAndMessage} from './DeploymentStatusType'; import {INSTANCE_HEALTH_FRAGMENT} from './InstanceHealthFragment'; import {InstanceWarningQuery, InstanceWarningQueryVariables} from './types/useDaemonStatus.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/InstigationTick.tsx b/js_modules/dagster-ui/packages/ui-core/src/instigation/InstigationTick.tsx index 9755e4d19eeb7..e88070acdf137 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/InstigationTick.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/InstigationTick.tsx @@ -1,20 +1,20 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { + Body, Box, Group, Icon, NonIdealState, Spinner, - Body, Tooltip, - colorTextLighter, colorTextLight, + colorTextLighter, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; -import {RunTable, RUN_TABLE_RUN_FRAGMENT} from '../runs/RunTable'; - +import {RUN_TABLE_RUN_FRAGMENT, RunTable} from '../runs/RunTable'; import {LaunchedRunListQuery, LaunchedRunListQueryVariables} from './types/InstigationTick.types'; export const RunList = ({runIds}: {runIds: string[]}) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/InstigationUtils.tsx b/js_modules/dagster-ui/packages/ui-core/src/instigation/InstigationUtils.tsx index 1938c8a13f74b..307391b06e971 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/InstigationUtils.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/InstigationUtils.tsx @@ -1,14 +1,14 @@ -import {gql} from '@apollo/client'; -import {Group, Mono, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql} from '@apollo/client'; import {Link} from 'react-router-dom'; import styled from 'styled-components'; +import {Group, Mono, colorTextLight} from '@dagster-io/ui-components'; + import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {LastRunSummary} from '../instance/LastRunSummary'; import {RunStatusIndicator} from '../runs/RunStatusDots'; import {RUN_TIME_FRAGMENT, titleForRun} from '../runs/RunUtils'; - import {TICK_TAG_FRAGMENT} from './InstigationTick'; import {InstigationStateFragment, RunStatusFragment} from './types/InstigationUtils.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/LiveTickTimeline2.tsx b/js_modules/dagster-ui/packages/ui-core/src/instigation/LiveTickTimeline2.tsx index 2712de890f6f9..4648e07a2dd0f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/LiveTickTimeline2.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/LiveTickTimeline2.tsx @@ -1,3 +1,9 @@ +import * as React from 'react'; +import dayjs from 'dayjs'; +import relativeTime from 'dayjs/plugin/relativeTime'; +import memoize from 'lodash/memoize'; +import styled from 'styled-components'; + import { Caption, Tooltip, @@ -17,17 +23,11 @@ import { ifPlural, useViewport, } from '@dagster-io/ui-components'; -import dayjs from 'dayjs'; -import relativeTime from 'dayjs/plugin/relativeTime'; -import memoize from 'lodash/memoize'; -import * as React from 'react'; -import styled from 'styled-components'; import {TimeContext} from '../app/time/TimeContext'; import {browserTimezone} from '../app/time/browserTimezone'; import {AssetDaemonTickFragment} from '../assets/auto-materialization/types/AssetDaemonTicksQuery.types'; import {InstigationTickStatus} from '../graphql/types'; - import {HistoryTickFragment} from './types/InstigationUtils.types'; import {isStuckStartedTick} from './util'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/TickDetailsDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/instigation/TickDetailsDialog.tsx index d31c2024a8328..f7401db0a301f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/TickDetailsDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/TickDetailsDialog.tsx @@ -1,21 +1,22 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; import 'chartjs-adapter-date-fns'; + import { + Box, Button, - DialogFooter, + ButtonLink, Dialog, - Box, - Subtitle2, - Table, - Spinner, + DialogFooter, DialogHeader, - ButtonLink, - Tag, MiddleTruncate, - Tabs, + Spinner, + Subtitle2, Tab, + Table, + Tabs, + Tag, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -31,7 +32,6 @@ import { } from '../graphql/types'; import {TimestampDisplay} from '../schedules/TimestampDisplay'; import {QueryfulTickLogsTable} from '../ticks/TickLogDialog'; - import {FailedRunList, RunList} from './InstigationTick'; import {HISTORY_TICK_FRAGMENT} from './InstigationUtils'; import {HistoryTickFragment} from './types/InstigationUtils.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/TickHistory.tsx b/js_modules/dagster-ui/packages/ui-core/src/instigation/TickHistory.tsx index 512fc3d74a89d..2721f9c0c63e0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/TickHistory.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/TickHistory.tsx @@ -1,28 +1,28 @@ +import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; +import {Chart} from 'chart.js'; import 'chartjs-adapter-date-fns'; +import zoomPlugin from 'chartjs-plugin-zoom'; +import styled from 'styled-components'; -import {gql, useQuery} from '@apollo/client'; import { Box, + ButtonLink, + Caption, Checkbox, CursorHistoryControls, - NonIdealState, - Spinner, - Table, - Subheading, FontFamily, Icon, IconWrapper, - ButtonLink, - ifPlural, - Caption, - colorLinkDefault, + NonIdealState, + Spinner, + Subheading, + Table, colorAccentGray, colorAccentGrayHover, + colorLinkDefault, + ifPlural, } from '@dagster-io/ui-components'; -import {Chart} from 'chart.js'; -import zoomPlugin from 'chartjs-plugin-zoom'; -import * as React from 'react'; -import styled from 'styled-components'; import {showSharedToaster} from '../app/DomUtils'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -43,9 +43,8 @@ import {TickLogDialog} from '../ticks/TickLogDialog'; import {TickStatusTag} from '../ticks/TickStatusTag'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import {TICK_TAG_FRAGMENT} from './InstigationTick'; -import {RunStatusLink, RUN_STATUS_FRAGMENT, HISTORY_TICK_FRAGMENT} from './InstigationUtils'; +import {HISTORY_TICK_FRAGMENT, RUN_STATUS_FRAGMENT, RunStatusLink} from './InstigationUtils'; import {LiveTickTimeline} from './LiveTickTimeline2'; import {TickDetailsDialog} from './TickDetailsDialog'; import {HistoryTickFragment} from './types/InstigationUtils.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/Unloadable.tsx b/js_modules/dagster-ui/packages/ui-core/src/instigation/Unloadable.tsx index 9f86efe8f73b7..b612effc3a1bb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/Unloadable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/Unloadable.tsx @@ -1,36 +1,36 @@ +import * as React from 'react'; import {useMutation} from '@apollo/client'; + import { Alert, Box, Checkbox, Group, - Table, Subheading, + Table, Tooltip, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {useConfirmation} from '../app/CustomConfirmationProvider'; import {DEFAULT_DISABLED_REASON} from '../app/Permissions'; import {InstigationStatus} from '../graphql/types'; import { - displayScheduleMutationErrors, STOP_SCHEDULE_MUTATION, + displayScheduleMutationErrors, } from '../schedules/ScheduleMutations'; import {humanCronString} from '../schedules/humanCronString'; import { StopScheduleMutation, StopScheduleMutationVariables, } from '../schedules/types/ScheduleMutations.types'; -import {displaySensorMutationErrors, STOP_SENSOR_MUTATION} from '../sensors/SensorMutations'; +import {STOP_SENSOR_MUTATION, displaySensorMutationErrors} from '../sensors/SensorMutations'; import { StopRunningSensorMutation, StopRunningSensorMutationVariables, } from '../sensors/types/SensorMutations.types'; import {TickStatusTag} from '../ticks/TickStatusTag'; import {InstigatorSelectorInformation} from '../workspace/RepositoryInformation'; - import {InstigatedRunStatus} from './InstigationUtils'; import {InstigationStateFragment} from './types/InstigationUtils.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/__tests__/InstigationTick.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/instigation/__tests__/InstigationTick.test.tsx index ed7dade1d7552..5213b6d4ba50c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/__tests__/InstigationTick.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/__tests__/InstigationTick.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {InstigationTickStatus} from '../../graphql/types'; import {TickStatusTag} from '../../ticks/TickStatusTag'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/__tests__/Unloadable.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/instigation/__tests__/Unloadable.test.tsx index 4eb3f6ac75899..20518ec8df66a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/__tests__/Unloadable.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/__tests__/Unloadable.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen} from '@testing-library/react'; -import * as React from 'react'; import {InstigationStatus} from '../../graphql/types'; import {UnloadableSensors} from '../Unloadable'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationTick.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationTick.types.ts index 17a30da92978f..2229b7b78486b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationTick.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationTick.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type TickTagFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationUtils.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationUtils.types.ts index 899e90a996c28..df5d0ce6a58dd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationUtils.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/types/InstigationUtils.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunStatusFragment = {__typename: 'Run'; id: string; status: Types.RunStatus}; diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/types/TickDetailsDialog.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instigation/types/TickDetailsDialog.types.ts index 92e76b0964b0a..d3c0dde303495 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/types/TickDetailsDialog.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/types/TickDetailsDialog.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SelectedTickQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/instigation/types/TickHistory.types.ts b/js_modules/dagster-ui/packages/ui-core/src/instigation/types/TickHistory.types.ts index 907a9c6d9bd8b..b332995ee5344 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/instigation/types/TickHistory.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/instigation/types/TickHistory.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type TickHistoryQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/ConfigEditorConfigPicker.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/ConfigEditorConfigPicker.tsx index 6b19a3529432e..4cf53411d1800 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/ConfigEditorConfigPicker.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/ConfigEditorConfigPicker.tsx @@ -1,24 +1,25 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {HTMLInputProps, InputGroupProps2, Intent} from '@blueprintjs/core'; +import styled from 'styled-components'; + import { Box, Button, Icon, IconWrapper, + Menu, MenuDivider, MenuItem, - Menu, Select, Spinner, Suggest, colorAccentGray, + colorBackgroundLight, colorBackgroundLighter, colorBackgroundLighterHover, - colorBackgroundLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {AppContext} from '../app/AppContext'; import {showCustomAlert} from '../app/CustomAlertProvider'; @@ -32,14 +33,13 @@ import {CreatePartitionDialog} from '../partitions/CreatePartitionDialog'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import { ConfigEditorGeneratorPipelineFragment, ConfigEditorPipelinePresetFragment, - PartitionSetForConfigEditorFragment, ConfigPartitionResultFragment, ConfigPartitionsQuery, ConfigPartitionsQueryVariables, + PartitionSetForConfigEditorFragment, } from './types/ConfigEditorConfigPicker.types'; type Pipeline = ConfigEditorGeneratorPipelineFragment; diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/ConfigEditorModePicker.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/ConfigEditorModePicker.tsx index f4947e38b6862..8ab66534f4741 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/ConfigEditorModePicker.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/ConfigEditorModePicker.tsx @@ -1,6 +1,7 @@ -import {Button, Icon, MenuItem, Select} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Button, Icon, MenuItem, Select} from '@dagster-io/ui-components'; + import {ModeNotFoundError} from './ModeNotFoundError'; interface Mode { diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchButton.tsx index 6470d6eae23c1..16bfdf669388f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchButton.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Button, Icon, @@ -10,8 +13,6 @@ import { colorAccentReversed, colorKeylineDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {useConfirmation} from '../app/CustomConfirmationProvider'; import {ShortcutHandler} from '../app/ShortcutHandler'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchRootExecutionButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchRootExecutionButton.tsx index 940ecbad03306..eb8401753e03d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchRootExecutionButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchRootExecutionButton.tsx @@ -3,7 +3,6 @@ import * as React from 'react'; import {IconName} from '../../../ui-components/src'; import {LaunchBehavior} from '../runs/RunUtils'; import {LaunchPipelineExecutionMutationVariables} from '../runs/types/RunUtils.types'; - import {LaunchButton} from './LaunchButton'; import {useLaunchPadHooks} from './LaunchpadHooksContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadAllowedRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadAllowedRoot.tsx index c604d410982a3..4fda20c54c1dc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadAllowedRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadAllowedRoot.tsx @@ -1,6 +1,6 @@ -import {gql, useQuery} from '@apollo/client'; import * as React from 'react'; import * as yaml from 'yaml'; +import {gql, useQuery} from '@apollo/client'; import {IExecutionSession} from '../app/ExecutionSessionStorage'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -8,9 +8,8 @@ import {useTrackPageView} from '../app/analytics'; import {useStartTrace} from '../performance'; import {explorerPathFromString, useStripSnapshotFromPath} from '../pipelines/PipelinePathUtils'; import {useJobTitle} from '../pipelines/useJobTitle'; -import {useRepository, isThisThingAJob} from '../workspace/WorkspaceContext'; +import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; - import { CONFIG_EDITOR_GENERATOR_PARTITION_SETS_FRAGMENT, CONFIG_EDITOR_GENERATOR_PIPELINE_FRAGMENT, diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadHooksContext.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadHooksContext.tsx index a0a9c7b38a64f..91195cb60d21a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadHooksContext.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadHooksContext.tsx @@ -1,11 +1,11 @@ -import {Button} from '@dagster-io/ui-components'; import React from 'react'; +import {Button} from '@dagster-io/ui-components'; + import {GenericError} from '../app/PythonErrorInfo'; import {PythonErrorFragment} from '../app/types/PythonErrorFragment.types'; import {UserDisplay} from '../runs/UserDisplay'; import {SetFilterValue} from '../ui/Filters/useStaticSetFilter'; - import {LaunchRootExecutionButton} from './LaunchRootExecutionButton'; import {useLaunchWithTelemetry} from './useLaunchWithTelemetry'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadRoot.tsx index a9dbb66a16868..3f73469f6c324 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadRoot.tsx @@ -1,12 +1,12 @@ -import {CodeMirrorInDialogStyle, Dialog, DialogHeader} from '@dagster-io/ui-components'; import * as React from 'react'; import {Redirect, useParams} from 'react-router-dom'; +import {CodeMirrorInDialogStyle, Dialog, DialogHeader} from '@dagster-io/ui-components'; + import {IExecutionSession} from '../app/ExecutionSessionStorage'; import {usePermissionsForLocation} from '../app/Permissions'; import {__ASSET_JOB_PREFIX} from '../asset-graph/Utils'; import {RepoAddress} from '../workspace/types'; - import {LaunchpadAllowedRoot} from './LaunchpadAllowedRoot'; // ######################## diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSession.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSession.tsx index a4acb4ec6c1be..60d7cb7c5db05 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSession.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSession.tsx @@ -1,4 +1,10 @@ +import * as React from 'react'; +import * as yaml from 'yaml'; import {gql, useApolloClient, useQuery} from '@apollo/client'; +import merge from 'deepmerge'; +import uniqBy from 'lodash/uniqBy'; +import styled from 'styled-components'; + import { Body, Box, @@ -21,11 +27,6 @@ import { colorTextDefault, isHelpContextEqual, } from '@dagster-io/ui-components'; -import merge from 'deepmerge'; -import uniqBy from 'lodash/uniqBy'; -import * as React from 'react'; -import styled from 'styled-components'; -import * as yaml from 'yaml'; import {showCustomAlert} from '../app/CustomAlertProvider'; import { @@ -38,7 +39,7 @@ import {usePermissionsForLocation} from '../app/Permissions'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; import {ShortcutHandler} from '../app/ShortcutHandler'; import {displayNameForAssetKey, tokenForAssetKey} from '../asset-graph/Utils'; -import {asAssetKeyInput, asAssetCheckHandleInput} from '../assets/asInput'; +import {asAssetCheckHandleInput, asAssetKeyInput} from '../assets/asInput'; import { CONFIG_EDITOR_RUN_CONFIG_SCHEMA_FRAGMENT, CONFIG_EDITOR_VALIDATION_FRAGMENT, @@ -55,7 +56,6 @@ import {VirtualizedItemListForDialog} from '../ui/VirtualizedItemListForDialog'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import { CONFIG_PARTITION_SELECTION_QUERY, ConfigEditorConfigPicker, diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSessionError.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSessionError.tsx index 3c906859518b2..89098c2a52636 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSessionError.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSessionError.tsx @@ -1,10 +1,11 @@ +import * as React from 'react'; + import { NonIdealState, NonIdealStateProps, Spinner, SplitPanelContainer, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {SessionSettingsBar} from './SessionSettingsBar'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSessionLoading.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSessionLoading.tsx index 30c17e2b3d88c..180ac0952f769 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSessionLoading.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSessionLoading.tsx @@ -1,6 +1,7 @@ -import {SplitPanelContainer} from '@dagster-io/ui-components'; import * as React from 'react'; +import {SplitPanelContainer} from '@dagster-io/ui-components'; + import {LoadingOverlay} from './LoadingOverlay'; import {SessionSettingsBar} from './SessionSettingsBar'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSetupFromRunRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSetupFromRunRoot.tsx index 10f72633c9165..113f88b44086b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSetupFromRunRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSetupFromRunRoot.tsx @@ -1,5 +1,5 @@ -import {gql, useQuery} from '@apollo/client'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {Redirect, useParams} from 'react-router-dom'; import { @@ -14,7 +14,6 @@ import {useJobTitle} from '../pipelines/useJobTitle'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {LaunchpadSessionError} from './LaunchpadSessionError'; import {LaunchpadSessionLoading} from './LaunchpadSessionLoading'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSetupRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSetupRoot.tsx index 1b6ee6c050d2e..7ae95f8db103e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSetupRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadSetupRoot.tsx @@ -1,5 +1,5 @@ -import qs from 'qs'; import * as React from 'react'; +import qs from 'qs'; import {Redirect, useParams} from 'react-router-dom'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadStoredSessionsContainer.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadStoredSessionsContainer.tsx index 710b9c02af574..d64b235dab727 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadStoredSessionsContainer.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadStoredSessionsContainer.tsx @@ -1,16 +1,15 @@ import * as React from 'react'; import { + IExecutionSessionChanges, applyChangesToSession, applyCreateSession, - IExecutionSessionChanges, useExecutionSessionStorage, useInitialDataForMode, } from '../app/ExecutionSessionStorage'; import {useFeatureFlags} from '../app/Flags'; import {useSetStateUpdateCallback} from '../hooks/useSetStateUpdateCallback'; import {RepoAddress} from '../workspace/types'; - import LaunchpadSession from './LaunchpadSession'; import {LaunchpadTabs} from './LaunchpadTabs'; import {LaunchpadType} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadTabs.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadTabs.tsx index 9bca6b27b2ce0..e0088ca0e76dd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadTabs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadTabs.tsx @@ -1,6 +1,11 @@ +import * as React from 'react'; +import styled, {css} from 'styled-components'; + import { Box, ButtonLink, + Icon, + IconWrapper, colorAccentGray, colorAccentPrimary, colorAccentPrimaryHover, @@ -10,18 +15,14 @@ import { colorTextLight, colorTextLighter, colorTextRed, - Icon, - IconWrapper, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled, {css} from 'styled-components'; import {useConfirmation} from '../app/CustomConfirmationProvider'; import { + IStorageData, applyChangesToSession, applyRemoveSession, applySelectSession, - IStorageData, } from '../app/ExecutionSessionStorage'; interface ExecutationTabProps { diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadTransientSessionContainer.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadTransientSessionContainer.tsx index 44f5c68b02daf..2f4d79d86dd68 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadTransientSessionContainer.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LaunchpadTransientSessionContainer.tsx @@ -1,15 +1,14 @@ import * as React from 'react'; import { - createSingleSession, IExecutionSession, IExecutionSessionChanges, + createSingleSession, useInitialDataForMode, } from '../app/ExecutionSessionStorage'; import {useFeatureFlags} from '../app/Flags'; import {useSetStateUpdateCallback} from '../hooks/useSetStateUpdateCallback'; import {RepoAddress} from '../workspace/types'; - import LaunchpadSession from './LaunchpadSession'; import {LaunchpadType} from './types'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LoadingOverlay.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LoadingOverlay.tsx index 96c4eb3827a6d..1b0d8aeaead0d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/LoadingOverlay.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/LoadingOverlay.tsx @@ -1,7 +1,8 @@ -import {Group, Spinner, colorBackgroundDefault} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {Group, Spinner, colorBackgroundDefault} from '@dagster-io/ui-components'; + export const LoadingOverlay = ({isLoading, message}: {isLoading: boolean; message: string}) => ( diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/OpSelector.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/OpSelector.tsx index 4cec360a9fa57..c59822ed3ac66 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/OpSelector.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/OpSelector.tsx @@ -1,4 +1,7 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import styled from 'styled-components'; + import { Box, Popover, @@ -6,8 +9,6 @@ import { colorBackgroundRed, colorTextRed, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {filterByQuery} from '../app/GraphQueryImpl'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -18,7 +19,6 @@ import {GraphQueryInput} from '../ui/GraphQueryInput'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import {OpSelectorQuery, OpSelectorQueryVariables} from './types/OpSelector.types'; interface IOpSelectorProps { diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/RunPreview.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/RunPreview.tsx index 324dc6725bbe5..f6024fb1dc3d3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/RunPreview.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/RunPreview.tsx @@ -1,25 +1,26 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {Intent} from '@blueprintjs/core'; +import styled from 'styled-components'; + import { Box, Button, ButtonLink, Checkbox, + Code, + FontFamily, Icon, SplitPanelContainer, Tag, - Code, Tooltip, - FontFamily, colorAccentGreen, - colorTextLight, colorAccentRed, - colorBackgroundLight, colorBackgroundDefault, + colorBackgroundLight, + colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {useConfirmation} from '../app/CustomConfirmationProvider'; @@ -30,7 +31,6 @@ import { CompositeConfigTypeForSchemaFragment, ConfigEditorRunConfigSchemaFragment, } from '../configeditor/types/ConfigEditorUtils.types'; - import {LaunchpadType} from './types'; import { RunPreviewValidationErrorsFragment, diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/SessionSettingsBar.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/SessionSettingsBar.tsx index e778e6421c7d5..fa4e7a8d0feca 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/SessionSettingsBar.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/SessionSettingsBar.tsx @@ -1,9 +1,10 @@ +import styled from 'styled-components'; + import { colorAccentReversed, colorBackgroundDefault, colorBorderDefault, } from '@dagster-io/ui-components'; -import styled from 'styled-components'; export const SessionSettingsBar = styled.div` color: ${colorAccentReversed()}; diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/TagEditor.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/TagEditor.tsx index 3faa8adec8c63..f29db12d0173f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/TagEditor.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/TagEditor.tsx @@ -1,16 +1,17 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, Button, + Dialog, DialogBody, DialogFooter, - Dialog, Group, Icon, TextInput, Tooltip, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {PipelineRunTag} from '../app/ExecutionSessionStorage'; import {ShortcutHandler} from '../app/ShortcutHandler'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/showLaunchError.tsx b/js_modules/dagster-ui/packages/ui-core/src/launchpad/showLaunchError.tsx index f84d05474149b..77108fab880ab 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/showLaunchError.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/showLaunchError.tsx @@ -1,6 +1,7 @@ -import {FontFamily} from '@dagster-io/ui-components'; import * as React from 'react'; +import {FontFamily} from '@dagster-io/ui-components'; + import {showCustomAlert} from '../app/CustomAlertProvider'; export const showLaunchError = (error: Error) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/ConfigEditorConfigPicker.types.ts b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/ConfigEditorConfigPicker.types.ts index 8656b5fa79ff7..c14832af61005 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/ConfigEditorConfigPicker.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/ConfigEditorConfigPicker.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ConfigPartitionsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadAllowedRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadAllowedRoot.types.ts index 26fb55ddde982..aa8b5295e8504 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadAllowedRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadAllowedRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type LaunchpadRootQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadSession.types.ts b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadSession.types.ts index f4262531dceae..73152a4d669d7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadSession.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadSession.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PreviewConfigQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadSetupFromRunRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadSetupFromRunRoot.types.ts index 53d8d1a467b75..aa2af7383f865 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadSetupFromRunRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/LaunchpadSetupFromRunRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ConfigForRunQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/OpSelector.types.ts b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/OpSelector.types.ts index 0fb53dabc9463..97ff22fb6cc18 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/OpSelector.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/OpSelector.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OpSelectorQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/RunPreview.types.ts b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/RunPreview.types.ts index 2da0c7d1bf467..44ec69f5da36c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/RunPreview.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/types/RunPreview.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunPreviewValidationFragment_InvalidSubsetError_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/launchpad/useLaunchWithTelemetry.ts b/js_modules/dagster-ui/packages/ui-core/src/launchpad/useLaunchWithTelemetry.ts index 1b446b7fd2e19..9115e89d2d741 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/launchpad/useLaunchWithTelemetry.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/launchpad/useLaunchWithTelemetry.ts @@ -1,18 +1,17 @@ -import {useMutation} from '@apollo/client'; import * as React from 'react'; +import {useMutation} from '@apollo/client'; import {useHistory} from 'react-router-dom'; import {TelemetryAction, useTelemetryAction} from '../app/Telemetry'; import { LAUNCH_PIPELINE_EXECUTION_MUTATION, - handleLaunchResult, LaunchBehavior, + handleLaunchResult, } from '../runs/RunUtils'; import { LaunchPipelineExecutionMutation, LaunchPipelineExecutionMutationVariables, } from '../runs/types/RunUtils.types'; - import {showLaunchError} from './showLaunchError'; export function useLaunchWithTelemetry() { diff --git a/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntry.tsx b/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntry.tsx index 7d3c4266f62f3..b22b33c149f00 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntry.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/metadata/MetadataEntry.tsx @@ -1,27 +1,28 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Button, - DialogFooter, + CaptionMono, Dialog, + DialogBody, + DialogFooter, + FontFamily, Group, Icon, - Tooltip, - FontFamily, - tryPrettyPrintJSON, Table, - DialogBody, - CaptionMono, - colorKeylineDefault, + Tooltip, colorAccentGray, - colorBackgroundLight, colorBackgroundDefault, - colorTextLight, + colorBackgroundLight, colorBackgroundLighter, + colorKeylineDefault, + colorTextLight, + tryPrettyPrintJSON, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {copyValue} from '../app/DomUtils'; import {assertUnreachable} from '../app/Util'; @@ -32,8 +33,7 @@ import {Markdown} from '../ui/Markdown'; import {NotebookButton} from '../ui/NotebookButton'; import {DUNDER_REPO_NAME, buildRepoAddress} from '../workspace/buildRepoAddress'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - -import {TableSchema, TABLE_SCHEMA_FRAGMENT} from './TableSchema'; +import {TABLE_SCHEMA_FRAGMENT, TableSchema} from './TableSchema'; import {MetadataEntryFragment} from './types/MetadataEntry.types'; export const LogRowStructuredContentTable = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/metadata/TableSchema.tsx b/js_modules/dagster-ui/packages/ui-core/src/metadata/TableSchema.tsx index c292b41494347..a231a4f036836 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/metadata/TableSchema.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/metadata/TableSchema.tsx @@ -1,10 +1,11 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; +import styled from 'styled-components'; + import {Box, Tag, Tooltip, colorKeylineDefault} from '@dagster-io/ui-components'; import {Spacing} from '@dagster-io/ui-components/src/components/types'; -import * as React from 'react'; -import styled from 'styled-components'; -import {TableSchemaFragment, ConstraintsForTableColumnFragment} from './types/TableSchema.types'; +import {ConstraintsForTableColumnFragment, TableSchemaFragment} from './types/TableSchema.types'; // export type ITableSchemaMetadataEntry = TableSchemaForMetadataEntryFragment; type ITableSchema = TableSchemaFragment; diff --git a/js_modules/dagster-ui/packages/ui-core/src/metadata/__stories__/MetadataEntry.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/metadata/__stories__/MetadataEntry.stories.tsx index 29b0d5066409c..0495d9d000f0d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/metadata/__stories__/MetadataEntry.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/metadata/__stories__/MetadataEntry.stories.tsx @@ -1,6 +1,7 @@ -import {Box, Checkbox} from '@dagster-io/ui-components'; import React from 'react'; +import {Box, Checkbox} from '@dagster-io/ui-components'; + import {assertUnreachable} from '../../app/Util'; import { BoolMetadataEntry, diff --git a/js_modules/dagster-ui/packages/ui-core/src/metadata/__tests__/TableMetadataEntryComponent.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/metadata/__tests__/TableMetadataEntryComponent.test.tsx index 49adc5b5efbe0..b7a3c43ecb1fd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/metadata/__tests__/TableMetadataEntryComponent.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/metadata/__tests__/TableMetadataEntryComponent.test.tsx @@ -1,5 +1,5 @@ -import {render, screen} from '@testing-library/react'; import * as React from 'react'; +import {render, screen} from '@testing-library/react'; import { buildTable, diff --git a/js_modules/dagster-ui/packages/ui-core/src/metadata/types/MetadataEntry.types.ts b/js_modules/dagster-ui/packages/ui-core/src/metadata/types/MetadataEntry.types.ts index 2eb5bfb834d72..641297696fbe8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/metadata/types/MetadataEntry.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/metadata/types/MetadataEntry.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type MetadataEntryFragment_AssetMetadataEntry_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/metadata/types/TableSchema.types.ts b/js_modules/dagster-ui/packages/ui-core/src/metadata/types/TableSchema.types.ts index 68fc0c056fb6c..41725eddad9b9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/metadata/types/TableSchema.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/metadata/types/TableSchema.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type TableSchemaFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/DeploymentStatusIcon.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/DeploymentStatusIcon.tsx index 2bd0555f0f1b3..1b78fb2425be3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/DeploymentStatusIcon.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/DeploymentStatusIcon.tsx @@ -1,3 +1,5 @@ +import * as React from 'react'; + import { Box, Icon, @@ -6,10 +8,8 @@ import { colorAccentGray, colorAccentYellow, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {DeploymentStatusContext} from '../instance/DeploymentStatusProvider'; - import {WarningTooltip} from './WarningTooltip'; export const DeploymentStatusIcon = React.memo(() => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/InstanceWarningIcon.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/InstanceWarningIcon.tsx index 8612373c1d005..7abab463eff94 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/InstanceWarningIcon.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/InstanceWarningIcon.tsx @@ -1,8 +1,8 @@ -import {Icon, colorAccentYellow} from '@dagster-io/ui-components'; import * as React from 'react'; -import {DeploymentStatusContext} from '../instance/DeploymentStatusProvider'; +import {Icon, colorAccentYellow} from '@dagster-io/ui-components'; +import {DeploymentStatusContext} from '../instance/DeploymentStatusProvider'; import {WarningTooltip} from './WarningTooltip'; export const InstanceWarningIcon = React.memo(() => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/JobMetadata.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/JobMetadata.tsx index 28650f3765936..ba6ae9729b1f7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/JobMetadata.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/JobMetadata.tsx @@ -1,16 +1,17 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import uniq from 'lodash/uniq'; +import {Link} from 'react-router-dom'; + import { Box, Button, ButtonLink, - DialogFooter, Dialog, + DialogFooter, Tag, colorLinkDefault, } from '@dagster-io/ui-components'; -import uniq from 'lodash/uniq'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; import {tokenForAssetKey} from '../asset-graph/Utils'; import {AutomaterializeDaemonStatusTag} from '../assets/AutomaterializeDaemonStatusTag'; @@ -20,7 +21,6 @@ import {SCHEDULE_SWITCH_FRAGMENT} from '../schedules/ScheduleSwitch'; import {SENSOR_SWITCH_FRAGMENT} from '../sensors/SensorSwitch'; import {repoAddressAsTag} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {LatestRunTag} from './LatestRunTag'; import {ScheduleOrSensorTag} from './ScheduleOrSensorTag'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/LatestRunTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/LatestRunTag.tsx index 4ca84a243e4ca..1845480ed04c2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/LatestRunTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/LatestRunTag.tsx @@ -1,18 +1,18 @@ import {gql, useQuery} from '@apollo/client'; -import {Box, StyledTable, Tag, Tooltip, colorTextLighter} from '@dagster-io/ui-components'; import React from 'react'; import {Link} from 'react-router-dom'; -import {useQueryRefreshAtInterval, FIFTEEN_SECONDS} from '../app/QueryRefresh'; +import {Box, StyledTable, Tag, Tooltip, colorTextLighter} from '@dagster-io/ui-components'; + +import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {RunStatus} from '../graphql/types'; import {RunStatusIndicator} from '../runs/RunStatusDots'; import {DagsterTag} from '../runs/RunTag'; import {timingStringForStatus} from '../runs/RunTimingDetails'; -import {RunTime, RUN_TIME_FRAGMENT} from '../runs/RunUtils'; +import {RUN_TIME_FRAGMENT, RunTime} from '../runs/RunUtils'; import {TimestampDisplay} from '../schedules/TimestampDisplay'; import {repoAddressAsTag} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {LatestRunTagQuery, LatestRunTagQueryVariables} from './types/LatestRunTag.types'; const TIME_FORMAT = {showSeconds: true, showTimezone: false}; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNav.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNav.tsx index 513c1d4ec7ef4..2a7bcbd70da15 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNav.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNav.tsx @@ -1,9 +1,9 @@ -import {colorBackgroundDefault, colorKeylineDefault} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; -import {LayoutContext} from '../app/LayoutProvider'; +import {colorBackgroundDefault, colorKeylineDefault} from '@dagster-io/ui-components'; +import {LayoutContext} from '../app/LayoutProvider'; import {LeftNavRepositorySection} from './LeftNavRepositorySection'; export const LeftNav = () => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNavItem.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNavItem.tsx index c24625c51722d..4060129b1cee0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNavItem.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNavItem.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Icon, Tooltip, @@ -6,14 +10,10 @@ import { colorAccentGreen, colorTextDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {InstigationStatus} from '../graphql/types'; import {humanCronString} from '../schedules/humanCronString'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {LeftNavItemType} from './LeftNavItemType'; import {Item} from './RepositoryContentList'; import {ScheduleAndSensorDialog} from './ScheduleAndSensorDialog'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNavRepositorySection.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNavRepositorySection.tsx index 3310f2015d8df..0fcc7fba38a49 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNavRepositorySection.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/LeftNavRepositorySection.tsx @@ -1,11 +1,11 @@ -import {Body, Box, colorBackgroundLight, colorTextLighter} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {Body, Box, colorBackgroundLight, colorTextLighter} from '@dagster-io/ui-components'; + import {SectionedLeftNav} from '../ui/SectionedLeftNav'; import {DagsterRepoOption, WorkspaceContext} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; - import {RepoNavItem} from './RepoNavItem'; import {RepositoryLocationStateObserver} from './RepositoryLocationStateObserver'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/PipelineNav.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/PipelineNav.tsx index 61c6af6a20b0a..ce4189af36c32 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/PipelineNav.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/PipelineNav.tsx @@ -1,14 +1,14 @@ -import {Box, PageHeader, Tag, Heading} from '@dagster-io/ui-components'; import React from 'react'; import {useRouteMatch} from 'react-router-dom'; +import {Box, Heading, PageHeader, Tag} from '@dagster-io/ui-components'; + import {usePermissionsForLocation} from '../app/Permissions'; import {JobFeatureContext} from '../pipelines/JobFeatureContext'; import {JobTabs} from '../pipelines/JobTabs'; import {explorerPathFromString} from '../pipelines/PipelinePathUtils'; import {useRepository} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; - import {JobMetadata} from './JobMetadata'; import {RepositoryLink} from './RepositoryLink'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/ReloadRepositoryLocationButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/ReloadRepositoryLocationButton.tsx index 528973b21df17..252a2008935b4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/ReloadRepositoryLocationButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/ReloadRepositoryLocationButton.tsx @@ -3,7 +3,6 @@ import * as React from 'react'; import {AppContext} from '../app/AppContext'; import {usePermissionsForLocation} from '../app/Permissions'; import {RepositoryLocationErrorDialog} from '../workspace/RepositoryLocationErrorDialog'; - import {buildReloadFnForLocation, useRepositoryLocationReload} from './useRepositoryLocationReload'; export type ChildProps = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/RepoNavItem.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/RepoNavItem.tsx index f9bf45925c49f..0e3a0f4356c87 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/RepoNavItem.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/RepoNavItem.tsx @@ -1,31 +1,31 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Button, + Dialog, DialogFooter, DialogHeader, - Dialog, Group, Icon, IconWrapper, Spinner, Tooltip, - colorTextLighter, + colorAccentBlue, colorBackgroundLighter, + colorTextDefault, colorTextDisabled, colorTextLight, - colorTextDefault, - colorAccentBlue, + colorTextLighter, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {ShortcutHandler} from '../app/ShortcutHandler'; -import {buildRepoAddress, DUNDER_REPO_NAME} from '../workspace/buildRepoAddress'; +import {DUNDER_REPO_NAME, buildRepoAddress} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import { NO_RELOAD_PERMISSION_TEXT, ReloadRepositoryLocationButton, diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/RepoSelector.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/RepoSelector.tsx index 6e93c0e1ce0f4..e4d67350eeb32 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/RepoSelector.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/RepoSelector.tsx @@ -1,28 +1,28 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, + Caption, Checkbox, Icon, IconWrapper, Spinner, Table, - Caption, Tooltip, - colorLinkDefault, - colorTextLight, - colorTextLighter, colorAccentGray, colorAccentGrayHover, + colorLinkDefault, colorTextDisabled, + colorTextLight, + colorTextLighter, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import { NO_RELOAD_PERMISSION_TEXT, ReloadRepositoryLocationButton, diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryContentList.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryContentList.tsx index f45eacfeddeb6..8d7e520d8eee4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryContentList.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryContentList.tsx @@ -1,3 +1,6 @@ +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { colorBackgroundBlue, colorBackgroundLighter, @@ -5,8 +8,6 @@ import { colorTextBlue, colorTextDefault, } from '@dagster-io/ui-components'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; export const Item = styled(Link)<{$active: boolean}>` background-color: ${({$active}) => ($active ? colorBackgroundBlue() : 'transparent')}; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryLink.tsx index f58bfb9647508..cd785f6ea425a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryLink.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Icon, @@ -9,14 +13,10 @@ import { colorAccentGray, colorAccentGrayHover, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import { NO_RELOAD_PERMISSION_TEXT, ReloadRepositoryLocationButton, diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryLocationStateObserver.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryLocationStateObserver.tsx index fd1a104ae4933..bffa67dbbea89 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryLocationStateObserver.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/RepositoryLocationStateObserver.tsx @@ -1,19 +1,19 @@ +import * as React from 'react'; import {gql, useApolloClient, useSubscription} from '@apollo/client'; + import { ButtonLink, + Caption, Group, Icon, - Caption, - colorBackgroundLight, colorAccentGray, + colorBackgroundLight, colorTextLight, colorTextLighter, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {LocationStateChangeEventType} from '../graphql/types'; import {WorkspaceContext} from '../workspace/WorkspaceContext'; - import { LocationStateChangeSubscription, LocationStateChangeSubscriptionVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/ScheduleAndSensorDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/ScheduleAndSensorDialog.tsx index 2d66059079f29..650174814ee80 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/ScheduleAndSensorDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/ScheduleAndSensorDialog.tsx @@ -1,7 +1,8 @@ -import {Box, Button, Dialog, DialogFooter, Subheading, Table} from '@dagster-io/ui-components'; import * as React from 'react'; import {Link} from 'react-router-dom'; +import {Box, Button, Dialog, DialogFooter, Subheading, Table} from '@dagster-io/ui-components'; + import {ScheduleSwitch} from '../schedules/ScheduleSwitch'; import {humanCronString} from '../schedules/humanCronString'; import {ScheduleSwitchFragment} from '../schedules/types/ScheduleSwitch.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/ScheduleOrSensorTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/ScheduleOrSensorTag.tsx index 9b76c0df7d298..e4b73078f31a3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/ScheduleOrSensorTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/ScheduleOrSensorTag.tsx @@ -1,14 +1,15 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; + import { Box, ButtonLink, - Tag, - Tooltip, FontFamily, MiddleTruncate, + Tag, + Tooltip, colorLinkDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; import {ScheduleSwitch} from '../schedules/ScheduleSwitch'; import {humanCronString} from '../schedules/humanCronString'; @@ -17,7 +18,6 @@ import {SensorSwitch} from '../sensors/SensorSwitch'; import {SensorSwitchFragment} from '../sensors/types/SensorSwitch.types'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {ScheduleAndSensorDialog} from './ScheduleAndSensorDialog'; export const ScheduleOrSensorTag = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/VersionNumber.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/VersionNumber.tsx index 3b44c48c3e88e..c06d3cc2fc445 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/VersionNumber.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/VersionNumber.tsx @@ -1,5 +1,5 @@ -import {gql, useQuery} from '@apollo/client'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import styled from 'styled-components'; import {VersionNumberQuery, VersionNumberQueryVariables} from './types/VersionNumber.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/WarningTooltip.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/WarningTooltip.tsx index dd4ffcb0f5a6d..8b5944bb19dcc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/WarningTooltip.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/WarningTooltip.tsx @@ -1,6 +1,7 @@ -import {Tooltip} from '@dagster-io/ui-components'; import styled from 'styled-components'; +import {Tooltip} from '@dagster-io/ui-components'; + export const WarningTooltip = styled(Tooltip)` display: block; outline: none; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/WorkspaceStatus.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/WorkspaceStatus.tsx index dcb849ea09723..f515fe6caec3e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/WorkspaceStatus.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/WorkspaceStatus.tsx @@ -1,14 +1,14 @@ +import * as React from 'react'; + import { Icon, - Tooltip, Spinner, + Tooltip, colorAccentGray, colorAccentYellow, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {DeploymentStatusContext} from '../instance/DeploymentStatusProvider'; - import {WarningTooltip} from './WarningTooltip'; export const WorkspaceStatus = React.memo(({placeholder}: {placeholder: boolean}) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__fixtures__/useDaemonStatus.fixtures.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__fixtures__/useDaemonStatus.fixtures.tsx index ab501878180ca..37fb0d1bbde44 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__fixtures__/useDaemonStatus.fixtures.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__fixtures__/useDaemonStatus.fixtures.tsx @@ -1,19 +1,19 @@ import {MockedResponse} from '@apollo/client/testing'; import { - buildWorkspace, - buildWorkspaceLocationEntry, - buildRepositoryLocation, - buildRepository, - buildSchedule, - buildInstigationState, InstigationStatus, - buildSensor, - buildInstance, buildDaemonHealth, buildDaemonStatus, - buildPartitionBackfills, + buildInstance, + buildInstigationState, buildPartitionBackfill, + buildPartitionBackfills, + buildRepository, + buildRepositoryLocation, + buildSchedule, + buildSensor, + buildWorkspace, + buildWorkspaceLocationEntry, } from '../../graphql/types'; import {InstanceWarningQuery} from '../../instance/types/useDaemonStatus.types'; import {INSTANCE_WARNING_QUERY} from '../../instance/useDaemonStatus'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__stories__/RepoNavItem.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__stories__/RepoNavItem.stories.tsx index ad9fedb7367f5..43ec5e5eb6039 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__stories__/RepoNavItem.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__stories__/RepoNavItem.stories.tsx @@ -1,7 +1,8 @@ -import {Box} from '@dagster-io/ui-components'; +import * as React from 'react'; import {Meta} from '@storybook/react'; import faker from 'faker'; -import * as React from 'react'; + +import {Box} from '@dagster-io/ui-components'; import {StorybookProvider} from '../../testing/StorybookProvider'; import {RepoAddress} from '../../workspace/types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__stories__/RepoSelector.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__stories__/RepoSelector.stories.tsx index ec8773b8fb9b6..dc131d23f0497 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__stories__/RepoSelector.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__stories__/RepoSelector.stories.tsx @@ -1,7 +1,8 @@ -import {Box, colorAccentPrimary} from '@dagster-io/ui-components'; +import * as React from 'react'; import {Meta} from '@storybook/react'; import faker from 'faker'; -import * as React from 'react'; + +import {Box, colorAccentPrimary} from '@dagster-io/ui-components'; import {RepoAddress} from '../../workspace/types'; import {RepoSelector, RepoSelectorOption} from '../RepoSelector'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/DeploymentStatusIcon.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/DeploymentStatusIcon.test.tsx index 9fefba658e497..1512fb7b0689e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/DeploymentStatusIcon.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/DeploymentStatusIcon.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {DeploymentStatus, DeploymentStatusContext} from '../../instance/DeploymentStatusProvider'; import {DeploymentStatusIcon} from '../DeploymentStatusIcon'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/JobMetadata.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/JobMetadata.test.tsx index 0d49033fa56e4..0654dcdec7c72 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/JobMetadata.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/JobMetadata.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {MockedProvider, MockedResponse} from '@apollo/client/testing'; import {render, screen} from '@testing-library/react'; -import * as React from 'react'; import {MemoryRouter} from 'react-router'; import {RunStatus, buildPipeline, buildRun, buildRuns, buildSchedule} from '../../graphql/types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/LeftNavRepositorySection.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/LeftNavRepositorySection.test.tsx index 3f32f9b45811c..c0b1b50566ee2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/LeftNavRepositorySection.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/LeftNavRepositorySection.test.tsx @@ -1,7 +1,7 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {act, render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {MemoryRouter} from 'react-router-dom'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/ReloadRepositoryLocationButton.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/ReloadRepositoryLocationButton.test.tsx index b4d66bb9d9d21..48da7d3f2272e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/ReloadRepositoryLocationButton.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/ReloadRepositoryLocationButton.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen, waitFor} from '@testing-library/react'; -import * as React from 'react'; import {PermissionsProvider, usePermissionsForLocation} from '../../app/Permissions'; import {ChildProps, ReloadRepositoryLocationButton} from '../ReloadRepositoryLocationButton'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/ScheduleOrSensorTag.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/ScheduleOrSensorTag.test.tsx index e15707834167c..b18ef8429f845 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/ScheduleOrSensorTag.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/ScheduleOrSensorTag.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {MemoryRouter} from 'react-router'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/VersionNumber.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/VersionNumber.test.tsx index e61b2772f5252..30e31916c5168 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/VersionNumber.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/VersionNumber.test.tsx @@ -1,7 +1,7 @@ +import * as React from 'react'; import {MockedProvider, MockedResponse} from '@apollo/client/testing'; import {screen} from '@testing-library/dom'; import {render} from '@testing-library/react'; -import * as React from 'react'; import {VERSION_NUMBER_QUERY, VersionNumber} from '../VersionNumber'; import {VersionNumberQuery} from '../types/VersionNumber.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/WorkspaceStatus.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/WorkspaceStatus.test.tsx index bc52f512dec39..0d0f4d070a8ea 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/WorkspaceStatus.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/WorkspaceStatus.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {waitFor} from '@testing-library/dom'; import {render, screen} from '@testing-library/react'; -import * as React from 'react'; import {DeploymentStatusContext} from '../../instance/DeploymentStatusProvider'; import {WorkspaceStatus} from '../WorkspaceStatus'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/useDaemonStatus.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/useDaemonStatus.test.tsx index d93b970707fef..20576de8a1ab5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/useDaemonStatus.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/useDaemonStatus.test.tsx @@ -1,7 +1,7 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen} from '@testing-library/react'; import {renderHook} from '@testing-library/react-hooks'; -import * as React from 'react'; import {InstigationStatus} from '../../graphql/types'; import {useDaemonStatus} from '../../instance/useDaemonStatus'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/useRepositoryLocationReload.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/useRepositoryLocationReload.test.tsx index 47ec8a6ed1603..c0ea0b585a1d6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/useRepositoryLocationReload.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/__tests__/useRepositoryLocationReload.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {TestProvider} from '../../testing/TestProvider'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/getLeftNavItemsForOption.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/getLeftNavItemsForOption.tsx index c6a9be2ee4a35..1676f5d52ab5f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/getLeftNavItemsForOption.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/getLeftNavItemsForOption.tsx @@ -1,13 +1,13 @@ -import {colorBackgroundLight, colorTextDefault} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {colorBackgroundLight, colorTextDefault} from '@dagster-io/ui-components'; + import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; import {LegacyPipelineTag} from '../pipelines/LegacyPipelineTag'; import {DagsterRepoOption} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {LeftNavItemType} from './LeftNavItemType'; export const getAssetGroupItemsForOption = (option: DagsterRepoOption) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/types/JobMetadata.types.ts b/js_modules/dagster-ui/packages/ui-core/src/nav/types/JobMetadata.types.ts index b76c09453dbcb..98078efd10140 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/types/JobMetadata.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/types/JobMetadata.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type JobMetadataQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/types/LatestRunTag.types.ts b/js_modules/dagster-ui/packages/ui-core/src/nav/types/LatestRunTag.types.ts index 342f69c195bd8..6848e35d18f7a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/types/LatestRunTag.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/types/LatestRunTag.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type LatestRunTagQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/types/RepositoryLocationStateObserver.types.ts b/js_modules/dagster-ui/packages/ui-core/src/nav/types/RepositoryLocationStateObserver.types.ts index 58dd217d5b53c..b8c4ae46a1d0e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/types/RepositoryLocationStateObserver.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/types/RepositoryLocationStateObserver.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type LocationStateChangeSubscriptionVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/types/VersionNumber.types.ts b/js_modules/dagster-ui/packages/ui-core/src/nav/types/VersionNumber.types.ts index ef1ab03540bdb..5a94a3f1988c8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/types/VersionNumber.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/types/VersionNumber.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type VersionNumberQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/types/useCodeLocationsStatus.types.ts b/js_modules/dagster-ui/packages/ui-core/src/nav/types/useCodeLocationsStatus.types.ts index 813e1d723b1a7..c89d758382b2d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/types/useCodeLocationsStatus.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/types/useCodeLocationsStatus.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type CodeLocationStatusQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/types/useRepositoryLocationReload.types.ts b/js_modules/dagster-ui/packages/ui-core/src/nav/types/useRepositoryLocationReload.types.ts index 3ae5feca1e713..60b0cab2ab3ed 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/types/useRepositoryLocationReload.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/types/useRepositoryLocationReload.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RepositoryLocationStatusQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/useCodeLocationsStatus.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/useCodeLocationsStatus.tsx index 0d6f538eccd1f..b01c94c7f31fe 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/useCodeLocationsStatus.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/useCodeLocationsStatus.tsx @@ -1,15 +1,15 @@ -import {gql, useQuery} from '@apollo/client'; -import {Box, ButtonLink, colorAccentWhite} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {useHistory} from 'react-router-dom'; import styled from 'styled-components'; +import {Box, ButtonLink, colorAccentWhite} from '@dagster-io/ui-components'; + import {showSharedToaster} from '../app/DomUtils'; import {useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {RepositoryLocationLoadStatus} from '../graphql/types'; import {StatusAndMessage} from '../instance/DeploymentStatusType'; import {WorkspaceContext} from '../workspace/WorkspaceContext'; - import { CodeLocationStatusQuery, CodeLocationStatusQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/nav/useRepositoryLocationReload.tsx b/js_modules/dagster-ui/packages/ui-core/src/nav/useRepositoryLocationReload.tsx index d45ecf2a49bc4..43857336cb1e6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/nav/useRepositoryLocationReload.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/nav/useRepositoryLocationReload.tsx @@ -1,7 +1,7 @@ +import * as React from 'react'; import {ApolloClient, ApolloError, gql, useApolloClient, useQuery} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {Intent} from '@blueprintjs/core'; -import * as React from 'react'; import {showSharedToaster} from '../app/DomUtils'; import {useInvalidateConfigsForRepo} from '../app/ExecutionSessionStorage'; @@ -9,14 +9,13 @@ import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {UNAUTHORIZED_ERROR_FRAGMENT} from '../app/PythonErrorInfo'; import {PythonErrorFragment} from '../app/types/PythonErrorFragment.types'; import {RepositoryLocationLoadStatus} from '../graphql/types'; - import { - RepositoryLocationStatusQuery, - RepositoryLocationStatusQueryVariables, + ReloadRepositoryLocationMutation, ReloadRepositoryLocationMutationVariables, - ReloadWorkspaceMutationVariables, ReloadWorkspaceMutation, - ReloadRepositoryLocationMutation, + ReloadWorkspaceMutationVariables, + RepositoryLocationStatusQuery, + RepositoryLocationStatusQueryVariables, } from './types/useRepositoryLocationReload.types'; type State = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ops/OpCard.tsx b/js_modules/dagster-ui/packages/ui-core/src/ops/OpCard.tsx index 5eff936eff84f..d4b2d2be80cd2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ops/OpCard.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ops/OpCard.tsx @@ -1,11 +1,11 @@ import {gql} from '@apollo/client'; -import {Box} from '@dagster-io/ui-components'; import React from 'react'; import styled from 'styled-components'; -import {OpNode, OP_NODE_DEFINITION_FRAGMENT} from '../graph/OpNode'; -import {layoutOp} from '../graph/asyncGraphLayout'; +import {Box} from '@dagster-io/ui-components'; +import {OP_NODE_DEFINITION_FRAGMENT, OpNode} from '../graph/OpNode'; +import {layoutOp} from '../graph/asyncGraphLayout'; import {OpCardSolidDefinitionFragment} from './types/OpCard.types'; interface OpCardProps { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ops/OpDetailsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/ops/OpDetailsRoot.tsx index f9595574bc984..b0b0630af957f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ops/OpDetailsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ops/OpDetailsRoot.tsx @@ -1,17 +1,16 @@ -import {gql, useQuery} from '@apollo/client'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import styled from 'styled-components'; import { - SidebarOpDefinition, SIDEBAR_OP_DEFINITION_FRAGMENT, + SidebarOpDefinition, } from '../pipelines/SidebarOpDefinition'; import {SidebarOpInvocationInfo} from '../pipelines/SidebarOpHelpers'; import {Loading} from '../ui/Loading'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - -import {OpCard, OP_CARD_SOLID_DEFINITION_FRAGMENT} from './OpCard'; +import {OP_CARD_SOLID_DEFINITION_FRAGMENT, OpCard} from './OpCard'; import {UsedSolidDetailsQuery, UsedSolidDetailsQueryVariables} from './types/OpDetailsRoot.types'; interface UsedSolidDetailsProps { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ops/OpTypeSignature.tsx b/js_modules/dagster-ui/packages/ui-core/src/ops/OpTypeSignature.tsx index 5f54f21ff86c1..a877abadd3861 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ops/OpTypeSignature.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ops/OpTypeSignature.tsx @@ -1,11 +1,11 @@ -import {gql} from '@apollo/client'; -import {Code} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql} from '@apollo/client'; import styled from 'styled-components'; +import {Code} from '@dagster-io/ui-components'; + import {breakOnUnderscores} from '../app/Util'; import {DAGSTER_TYPE_WITH_TOOLTIP_FRAGMENT, TypeWithTooltip} from '../typeexplorer/TypeWithTooltip'; - import {OpTypeSignatureFragment} from './types/OpTypeSignature.types'; interface IOpTypeSignature { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ops/OpsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/ops/OpsRoot.tsx index fd23a7e7f57f5..29c8af7e2ba65 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ops/OpsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ops/OpsRoot.tsx @@ -1,4 +1,15 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import qs from 'qs'; +import {useHistory, useLocation, useParams} from 'react-router-dom'; +import { + CellMeasurerCache, + AutoSizer as _AutoSizer, + CellMeasurer as _CellMeasurerer, + List as _List, +} from 'react-virtualized'; +import styled from 'styled-components'; + import { Box, NonIdealState, @@ -6,25 +17,15 @@ import { SuggestionProvider, TokenizingField, TokenizingFieldValue, - stringFromValue, - tokenizedValuesFromString, - colorKeylineDefault, - colorBackgroundDefault, colorAccentLime, - colorTextLight, - colorTextDefault, + colorBackgroundDefault, colorBackgroundLighter, + colorKeylineDefault, + colorTextDefault, + colorTextLight, + stringFromValue, + tokenizedValuesFromString, } from '@dagster-io/ui-components'; -import qs from 'qs'; -import * as React from 'react'; -import {useHistory, useLocation, useParams} from 'react-router-dom'; -import { - AutoSizer as _AutoSizer, - CellMeasurer as _CellMeasurerer, - CellMeasurerCache, - List as _List, -} from 'react-virtualized'; -import styled from 'styled-components'; import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; @@ -32,9 +33,8 @@ import {Loading} from '../ui/Loading'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {OpDetailScrollContainer, UsedSolidDetails} from './OpDetailsRoot'; -import {OpTypeSignature, OP_TYPE_SIGNATURE_FRAGMENT} from './OpTypeSignature'; +import {OP_TYPE_SIGNATURE_FRAGMENT, OpTypeSignature} from './OpTypeSignature'; import {OpsRootQuery, OpsRootQueryVariables, OpsRootUsedSolidFragment} from './types/OpsRoot.types'; const AutoSizer: any = _AutoSizer; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpCard.types.ts b/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpCard.types.ts index 71a55d7724db0..a9f3d3595335f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpCard.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpCard.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OpCardSolidDefinitionFragment_CompositeSolidDefinition_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpDetailsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpDetailsRoot.types.ts index 82f8da94e4f9a..a1009acdd7d91 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpDetailsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpDetailsRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type UsedSolidDetailsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpTypeSignature.types.ts b/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpTypeSignature.types.ts index fa4a6da325542..3bef10ef87582 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpTypeSignature.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpTypeSignature.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OpTypeSignatureFragment_CompositeSolidDefinition_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpsRoot.types.ts index 050bfeb05637d..fccd353b22df7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/ops/types/OpsRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OpsRootQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewActivityRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewActivityRoot.tsx index 91ad70c689397..29bdea0c6be0b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewActivityRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewActivityRoot.tsx @@ -1,12 +1,12 @@ -import {PageHeader, Heading, Box, JoinedButtons} from '@dagster-io/ui-components'; import * as React from 'react'; import {Redirect, Route, Switch} from 'react-router-dom'; +import {Box, Heading, JoinedButtons, PageHeader} from '@dagster-io/ui-components'; + import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {useStateWithStorage} from '../hooks/useStateWithStorage'; import {ActivatableButton} from '../runs/RunListTabs'; - import {OverviewAssetsRoot} from './OverviewAssetsRoot'; import {OverviewTabs} from './OverviewTabs'; import {OverviewTimelineRoot} from './OverviewTimelineRoot'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewAssetsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewAssetsRoot.tsx index 280e5bec70575..f09272ed74e43 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewAssetsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewAssetsRoot.tsx @@ -1,4 +1,9 @@ +import * as React from 'react'; import {useQuery} from '@apollo/client'; +import {useVirtualizer} from '@tanstack/react-virtual'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Caption, @@ -15,10 +20,6 @@ import { colorTextLight, useViewport, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewJobsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewJobsRoot.tsx index 8d13bd584c834..c1c056205af9f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewJobsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewJobsRoot.tsx @@ -1,4 +1,6 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { Box, Heading, @@ -8,7 +10,6 @@ import { TextInput, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; @@ -22,7 +23,6 @@ import {WorkspaceContext} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {OverviewJobsTable} from './OverviewJobsTable'; import {OverviewTabs} from './OverviewTabs'; import {sortRepoBuckets} from './sortRepoBuckets'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewJobsTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewJobsTable.tsx index 9f381b59a0252..fd3e945ade9c9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewJobsTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewJobsTable.tsx @@ -1,6 +1,7 @@ -import {Tag, Tooltip} from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; + +import {Tag, Tooltip} from '@dagster-io/ui-components'; import {Container, Inner} from '../ui/VirtualizedTable'; import {findDuplicateRepoNames} from '../ui/findDuplicateRepoNames'; @@ -9,7 +10,6 @@ import {VirtualizedJobHeader, VirtualizedJobRow} from '../workspace/VirtualizedJ import {RepoRow} from '../workspace/VirtualizedWorkspaceTable'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {OVERVIEW_COLLAPSED_KEY} from './OverviewExpansionKey'; type Repository = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewResourcesRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewResourcesRoot.tsx index f012a7d7da397..7301003dacfce 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewResourcesRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewResourcesRoot.tsx @@ -1,4 +1,6 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { Box, Heading, @@ -8,7 +10,6 @@ import { TextInput, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; @@ -23,7 +24,6 @@ import {WorkspaceContext} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {OverviewResourcesTable} from './OverviewResourcesTable'; import {OverviewTabs} from './OverviewTabs'; import {sortRepoBuckets} from './sortRepoBuckets'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewResourcesTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewResourcesTable.tsx index ab6d0950d3706..2950d2f8cb1e3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewResourcesTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewResourcesTable.tsx @@ -1,6 +1,7 @@ -import {Tag, Tooltip} from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; + +import {Tag, Tooltip} from '@dagster-io/ui-components'; import { VirtualizedResourceHeader, @@ -13,7 +14,6 @@ import {useRepoExpansionState} from '../ui/useRepoExpansionState'; import {RepoRow} from '../workspace/VirtualizedWorkspaceTable'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {OVERVIEW_COLLAPSED_KEY} from './OverviewExpansionKey'; type Repository = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewRoot.tsx index 0bb8bd9642974..2fba3b86f555b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewRoot.tsx @@ -4,7 +4,6 @@ import {Redirect, Route, Switch} from 'react-router-dom'; import {AutomaterializationRoot} from '../assets/auto-materialization/AutomaterializationRoot'; import {InstanceBackfills} from '../instance/InstanceBackfills'; import {BackfillPage} from '../instance/backfill/BackfillPage'; - import {OverviewActivityRoot} from './OverviewActivityRoot'; import {OverviewJobsRoot} from './OverviewJobsRoot'; import {OverviewResourcesRoot} from './OverviewResourcesRoot'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSchedulesRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSchedulesRoot.tsx index 6e4853263a8da..05a7a4a31fc25 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSchedulesRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSchedulesRoot.tsx @@ -1,4 +1,6 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { Alert, Box, @@ -13,11 +15,10 @@ import { Tooltip, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; -import {useQueryRefreshAtInterval, FIFTEEN_SECONDS} from '../app/QueryRefresh'; +import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; @@ -38,7 +39,6 @@ import {WorkspaceContext} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {BASIC_INSTIGATION_STATE_FRAGMENT} from './BasicInstigationStateFragment'; import {OverviewScheduleTable} from './OverviewSchedulesTable'; import {OverviewTabs} from './OverviewTabs'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSchedulesTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSchedulesTable.tsx index 37eadbb86fcad..487957afaeeaa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSchedulesTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSchedulesTable.tsx @@ -1,6 +1,7 @@ -import {Tag, Tooltip} from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; + +import {Tag, Tooltip} from '@dagster-io/ui-components'; import {makeScheduleKey} from '../schedules/makeScheduleKey'; import {Container, Inner} from '../ui/VirtualizedTable'; @@ -13,7 +14,6 @@ import { import {RepoRow} from '../workspace/VirtualizedWorkspaceTable'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {OVERVIEW_COLLAPSED_KEY} from './OverviewExpansionKey'; import {BasicInstigationStateFragment} from './types/BasicInstigationStateFragment.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSensorsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSensorsRoot.tsx index 6ad7df76ce683..688cbfe79e41a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSensorsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSensorsRoot.tsx @@ -1,4 +1,6 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { Alert, Box, @@ -13,11 +15,10 @@ import { Tooltip, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; -import {useQueryRefreshAtInterval, FIFTEEN_SECONDS} from '../app/QueryRefresh'; +import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; @@ -38,7 +39,6 @@ import {WorkspaceContext} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {BASIC_INSTIGATION_STATE_FRAGMENT} from './BasicInstigationStateFragment'; import {OverviewSensorTable} from './OverviewSensorsTable'; import {OverviewTabs} from './OverviewTabs'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSensorsTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSensorsTable.tsx index cc93c1349a732..6a6522e0331e8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSensorsTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewSensorsTable.tsx @@ -1,6 +1,7 @@ -import {Tag, Tooltip} from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; + +import {Tag, Tooltip} from '@dagster-io/ui-components'; import {makeSensorKey} from '../sensors/makeSensorKey'; import {Container, Inner} from '../ui/VirtualizedTable'; @@ -10,7 +11,6 @@ import {VirtualizedSensorHeader, VirtualizedSensorRow} from '../workspace/Virtua import {RepoRow} from '../workspace/VirtualizedWorkspaceTable'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {OVERVIEW_COLLAPSED_KEY} from './OverviewExpansionKey'; import {BasicInstigationStateFragment} from './types/BasicInstigationStateFragment.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewTabs.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewTabs.tsx index 86d9d846d4596..a914787c86a4d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewTabs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewTabs.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {QueryResult} from '@apollo/client'; + import {Box, Spinner, Tabs, colorAccentBlue, colorAccentGray} from '@dagster-io/ui-components'; -import * as React from 'react'; import {QueryRefreshCountdown, QueryRefreshState} from '../app/QueryRefresh'; import {useAutomationPolicySensorFlag} from '../assets/AutomationPolicySensorFlag'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewTimelineRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewTimelineRoot.tsx index 447493a48d167..dab1d91452239 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewTimelineRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/OverviewTimelineRoot.tsx @@ -1,6 +1,7 @@ -import {Box, TextInput, Button, ButtonGroup, ErrorBoundary} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Button, ButtonGroup, ErrorBoundary, TextInput} from '@dagster-io/ui-components'; + import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; @@ -8,10 +9,11 @@ import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; import {RepoFilterButton} from '../instance/RepoFilterButton'; import {useStartTrace} from '../performance'; import {RunTimeline} from '../runs/RunTimeline'; -import {useHourWindow, HourWindow} from '../runs/useHourWindow'; +import {HourWindow, useHourWindow} from '../runs/useHourWindow'; import {makeJobKey, useRunsForTimeline} from '../runs/useRunsForTimeline'; import {WorkspaceContext} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; + const LOOKAHEAD_HOURS = 1; const ONE_HOUR = 60 * 60 * 1000; const POLL_INTERVAL = 60 * 1000; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/__tests__/sortRepoBuckets.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/overview/__tests__/sortRepoBuckets.test.tsx index 302821096f5fe..7f5c385123e05 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/__tests__/sortRepoBuckets.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/__tests__/sortRepoBuckets.test.tsx @@ -1,4 +1,4 @@ -import {buildRepoAddress, DUNDER_REPO_NAME} from '../../workspace/buildRepoAddress'; +import {DUNDER_REPO_NAME, buildRepoAddress} from '../../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../../workspace/repoAddressAsString'; import {sortRepoBuckets} from '../sortRepoBuckets'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/types/BasicInstigationStateFragment.types.ts b/js_modules/dagster-ui/packages/ui-core/src/overview/types/BasicInstigationStateFragment.types.ts index 7dc5b33da75bd..8a973bc547b1f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/types/BasicInstigationStateFragment.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/types/BasicInstigationStateFragment.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type BasicInstigationStateFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewJobsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewJobsRoot.types.ts index 1065556ea13f6..7b24745a5a0af 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewJobsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewJobsRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OverviewJobsQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewResourcesRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewResourcesRoot.types.ts index a6fd40d4381a4..b024e5963e94c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewResourcesRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewResourcesRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OverviewResourcesQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewSchedulesRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewSchedulesRoot.types.ts index 610bf4f481d2b..e1625ff12b319 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewSchedulesRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewSchedulesRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OverviewSchedulesQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewSensorsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewSensorsRoot.types.ts index 6486087b9d036..4818339df6c5b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewSensorsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/overview/types/OverviewSensorsRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type OverviewSensorsQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/AssetJobPartitionsView.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/AssetJobPartitionsView.tsx index 62f10f3f53c8e..dbe2e8c7236f3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/AssetJobPartitionsView.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/AssetJobPartitionsView.tsx @@ -1,25 +1,25 @@ -import {Box, Button, Subheading, useViewport} from '@dagster-io/ui-components'; import React from 'react'; +import {Box, Button, Subheading, useViewport} from '@dagster-io/ui-components'; + import {useAssetGraphData} from '../asset-graph/useAssetGraphData'; import {AssetPartitionStatus} from '../assets/AssetPartitionStatus'; import {LaunchAssetExecutionButton} from '../assets/LaunchAssetExecutionButton'; import { - mergedAssetHealth, explodePartitionKeysInSelectionMatching, isTimeseriesDimension, + mergedAssetHealth, } from '../assets/MultipartitioningSupport'; import {keyCountInSelections, usePartitionHealthData} from '../assets/usePartitionHealthData'; import {RepositorySelector} from '../graphql/types'; import {DagsterTag} from '../runs/RunTag'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import {JobBackfillsTable} from './JobBackfillsTable'; import {CountBox, usePartitionDurations} from './OpJobPartitionsView'; import {PartitionGraph} from './PartitionGraph'; import {PartitionStatus} from './PartitionStatus'; -import {getVisibleItemCount, PartitionPerAssetStatus} from './PartitionStepStatus'; +import {PartitionPerAssetStatus, getVisibleItemCount} from './PartitionStepStatus'; import {GRID_FLOATING_CONTAINER_WIDTH} from './RunMatrixUtils'; import {allPartitionsRange} from './SpanRepresentation'; import {usePartitionStepQuery} from './usePartitionStepQuery'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillMessaging.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillMessaging.tsx index e712626ba6811..1a58cb79ff458 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillMessaging.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillMessaging.tsx @@ -1,14 +1,14 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; -import {Alert, ButtonLink, Group, Mono, colorAccentReversed} from '@dagster-io/ui-components'; import {History} from 'history'; -import * as React from 'react'; + +import {Alert, ButtonLink, Group, Mono, colorAccentReversed} from '@dagster-io/ui-components'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {showSharedToaster} from '../app/DomUtils'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; import {LaunchPartitionBackfillMutation} from '../instance/backfill/types/BackfillUtils.types'; import {runsPathWithFilters} from '../runs/RunsFilterInput'; - import { DaemonNotRunningAlertInstanceFragment, UsingDefaultLauncherAlertInstanceFragment, diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillSelector.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillSelector.tsx index 9de758af1be2f..cc0930834e903 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillSelector.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/BackfillSelector.tsx @@ -1,4 +1,7 @@ +import * as React from 'react'; import {gql, useMutation, useQuery} from '@apollo/client'; +import {useHistory} from 'react-router-dom'; + import { Box, Button, @@ -14,8 +17,6 @@ import { colorBorderDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {useHistory} from 'react-router-dom'; import {PipelineRunTag} from '../app/ExecutionSessionStorage'; import {filterByQuery} from '../app/GraphQueryImpl'; @@ -35,17 +36,16 @@ import {GRAPH_EXPLORER_SOLID_HANDLE_FRAGMENT} from '../pipelines/GraphExplorer'; import {GraphQueryInput} from '../ui/GraphQueryInput'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import { - DaemonNotRunningAlert, DAEMON_NOT_RUNNING_ALERT_INSTANCE_FRAGMENT, + DaemonNotRunningAlert, + USING_DEFAULT_LAUNCHER_ALERT_INSTANCE_FRAGMENT, + UsingDefaultLauncherAlert, showBackfillErrorToast, showBackfillSuccessToast, - UsingDefaultLauncherAlert, - USING_DEFAULT_LAUNCHER_ALERT_INSTANCE_FRAGMENT, } from './BackfillMessaging'; import {DimensionRangeWizard} from './DimensionRangeWizard'; -import {countsByState, PartitionRunStatusCheckboxes} from './PartitionRunStatusCheckboxes'; +import {PartitionRunStatusCheckboxes, countsByState} from './PartitionRunStatusCheckboxes'; import { BackfillSelectorQuery, BackfillSelectorQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/CreatePartitionDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/CreatePartitionDialog.tsx index 1fa4a89dde47d..f76cbe5f7946d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/CreatePartitionDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/CreatePartitionDialog.tsx @@ -1,4 +1,7 @@ +import * as React from 'react'; import {gql, useMutation} from '@apollo/client'; +import styled from 'styled-components'; + import { Box, Button, @@ -12,8 +15,6 @@ import { Tooltip, colorAccentRed, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; @@ -21,7 +22,6 @@ import {invalidatePartitions} from '../assets/PartitionSubscribers'; import {testId} from '../testing/testId'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import { AddDynamicPartitionMutation, AddDynamicPartitionMutationVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/DimensionRangeInput.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/DimensionRangeInput.tsx index c83e2bad56213..4fdb2d9e3bde1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/DimensionRangeInput.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/DimensionRangeInput.tsx @@ -1,10 +1,10 @@ -import {Icon, TextInput} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Icon, TextInput} from '@dagster-io/ui-components'; + import {showCustomAlert} from '../app/CustomAlertProvider'; import {testId} from '../testing/testId'; import {ClearButton} from '../ui/ClearButton'; - import {partitionsToText, spanTextToSelectionsOrError} from './SpanRepresentation'; export const DimensionRangeInput = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/DimensionRangeWizard.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/DimensionRangeWizard.tsx index acc0d64b2b161..d4be728864433 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/DimensionRangeWizard.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/DimensionRangeWizard.tsx @@ -1,23 +1,24 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, Button, Checkbox, - TagSelectorDropdownProps, Icon, Menu, MenuDivider, MenuItem, - TagSelectorWithSearch, - TagSelectorDropdownItemProps, MiddleTruncate, - colorLinkDefault, - colorTextLight, + TagSelectorDropdownItemProps, + TagSelectorDropdownProps, + TagSelectorWithSearch, colorBackgroundLight, colorBorderDefault, + colorLinkDefault, colorTextDefault, + colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {AssetPartitionStatusDot} from '../assets/AssetPartitionList'; import {partitionStatusAtIndex} from '../assets/usePartitionHealthData'; @@ -25,10 +26,9 @@ import {PartitionDefinitionType, RunStatus} from '../graphql/types'; import {RunStatusDot} from '../runs/RunStatusDots'; import {testId} from '../testing/testId'; import {RepoAddress} from '../workspace/types'; - import {CreatePartitionDialog} from './CreatePartitionDialog'; import {DimensionRangeInput} from './DimensionRangeInput'; -import {PartitionStatusHealthSource, PartitionStatus} from './PartitionStatus'; +import {PartitionStatus, PartitionStatusHealthSource} from './PartitionStatus'; export const DimensionRangeWizard = ({ selected, diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/JobBackfillsTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/JobBackfillsTable.tsx index 91b194dfa2b3d..942dcb7b73080 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/JobBackfillsTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/JobBackfillsTable.tsx @@ -1,16 +1,16 @@ import {gql, useQuery} from '@apollo/client'; +import React from 'react'; + import { Box, CursorPaginationControls, CursorPaginationProps, NonIdealState, } from '@dagster-io/ui-components'; -import React from 'react'; import {RepositorySelector} from '../graphql/types'; -import {BackfillTable, BACKFILL_TABLE_FRAGMENT} from '../instance/backfill/BackfillTable'; +import {BACKFILL_TABLE_FRAGMENT, BackfillTable} from '../instance/backfill/BackfillTable'; import {Loading} from '../ui/Loading'; - import {JobBackfillsQuery, JobBackfillsQueryVariables} from './types/JobBackfillsTable.types'; const BACKFILL_PAGE_SIZE = 10; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/OpJobPartitionsView.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/OpJobPartitionsView.tsx index 4683a661d2f33..56aa8ca39259f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/OpJobPartitionsView.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/OpJobPartitionsView.tsx @@ -1,16 +1,17 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { Box, Button, Dialog, Icon, - Tooltip, - Subheading, - useViewport, NonIdealState, Spinner, + Subheading, + Tooltip, + useViewport, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {usePermissionsForLocation} from '../app/Permissions'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -19,12 +20,11 @@ import {RunStatus} from '../graphql/types'; import {DagsterTag} from '../runs/RunTag'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import {BackfillPartitionSelector} from './BackfillSelector'; import {JobBackfillsTable} from './JobBackfillsTable'; import {PartitionGraph} from './PartitionGraph'; import {PartitionStatus} from './PartitionStatus'; -import {getVisibleItemCount, PartitionPerOpStatus} from './PartitionStepStatus'; +import {PartitionPerOpStatus, getVisibleItemCount} from './PartitionStepStatus'; import {GRID_FLOATING_CONTAINER_WIDTH} from './RunMatrixUtils'; import { OpJobPartitionSetFragment, diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionGraph.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionGraph.tsx index f825ab32d2ec6..590cb3b58eed9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionGraph.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionGraph.tsx @@ -1,8 +1,9 @@ -import {colorAccentPrimary, colorBorderDefault, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; import {Line} from 'react-chartjs-2'; import styled from 'styled-components'; +import {colorAccentPrimary, colorBorderDefault, colorTextLight} from '@dagster-io/ui-components'; + import {colorHash} from '../app/Util'; type PointValue = number | null | undefined; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionRunList.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionRunList.tsx index 502dda8b849a2..7c4d485b08d7c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionRunList.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionRunList.tsx @@ -1,11 +1,11 @@ import {gql, useQuery} from '@apollo/client'; -import {NonIdealState, Spinner} from '@dagster-io/ui-components'; import React from 'react'; +import {NonIdealState, Spinner} from '@dagster-io/ui-components'; + import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; -import {RunTable, RUN_TABLE_RUN_FRAGMENT} from '../runs/RunTable'; +import {RUN_TABLE_RUN_FRAGMENT, RunTable} from '../runs/RunTable'; import {DagsterTag} from '../runs/RunTag'; - import { PartitionRunListQuery, PartitionRunListQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionRunStatusCheckboxes.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionRunStatusCheckboxes.tsx index 519ec5ace5e7d..b10faaad668dc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionRunStatusCheckboxes.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionRunStatusCheckboxes.tsx @@ -1,6 +1,7 @@ -import {Box, Checkbox} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Checkbox} from '@dagster-io/ui-components'; + import {RunStatus} from '../graphql/types'; import {runStatusToBackfillStateString} from '../runs/RunStatusTag'; import {testId} from '../testing/testId'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionStatus.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionStatus.tsx index 5c0f34d369e2c..34d9adae4fe66 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionStatus.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionStatus.tsx @@ -1,18 +1,19 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, Tooltip, - useViewport, - colorKeylineDefault, - colorTextLight, + colorAccentBlue, colorAccentGray, colorAccentGrayHover, - colorAccentBlue, - colorBackgroundLighter, colorBackgroundDefault, + colorBackgroundLighter, colorBorderDefault, + colorKeylineDefault, + colorTextLight, + useViewport, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import { assetPartitionStatusToText, @@ -20,8 +21,7 @@ import { } from '../assets/AssetPartitionStatus'; import {Range} from '../assets/usePartitionHealthData'; import {RunStatus} from '../graphql/types'; -import {runStatusToBackfillStateString, RUN_STATUS_COLORS} from '../runs/RunStatusTag'; - +import {RUN_STATUS_COLORS, runStatusToBackfillStateString} from '../runs/RunStatusTag'; import {assembleIntoSpans} from './SpanRepresentation'; type SelectionRange = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionStepStatus.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionStepStatus.tsx index abdf623e67f21..a6bd8488ee7ba 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionStepStatus.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/PartitionStepStatus.tsx @@ -1,20 +1,21 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import styled from 'styled-components'; + import { Box, Button, - DialogFooter, Dialog, + DialogFooter, Icon, - MenuItem, Menu, + MenuItem, Popover, - useViewport, - colorKeylineDefault, colorBackgroundDefault, colorBackgroundDefaultHover, + colorKeylineDefault, + useViewport, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {GraphQueryItem} from '../app/GraphQueryImpl'; import {tokenForAssetKey} from '../asset-graph/Utils'; @@ -22,8 +23,8 @@ import {AssetPartitionStatus} from '../assets/AssetPartitionStatus'; import { PartitionHealthData, PartitionHealthDimension, - partitionStatusAtIndex, Range, + partitionStatusAtIndex, } from '../assets/usePartitionHealthData'; import {GanttChartMode} from '../gantt/Constants'; import {buildLayout} from '../gantt/GanttChartLayout'; @@ -33,7 +34,6 @@ import {RunFilterToken} from '../runs/RunsFilterInput'; import {MenuLink} from '../ui/MenuLink'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import {PartitionRunList} from './PartitionRunList'; import { BOX_SIZE, @@ -41,8 +41,8 @@ import { GridFloatingContainer, LeftLabel, TopLabel, - topLabelHeightForLabels, TopLabelTilted, + topLabelHeightForLabels, } from './RunMatrixUtils'; import { PartitionStepStatusPipelineQuery, @@ -50,12 +50,12 @@ import { } from './types/PartitionStepStatus.types'; import {PartitionMatrixStepRunFragment} from './types/useMatrixData.types'; import { - MatrixStep, - PartitionRuns, - useMatrixData, MatrixData, + MatrixStep, PARTITION_MATRIX_SOLID_HANDLE_FRAGMENT, + PartitionRuns, StatusSquareColor, + useMatrixData, } from './useMatrixData'; const BUFFER = 3; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/PipelinePartitionsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/PipelinePartitionsRoot.tsx index 0851e8f541772..b4f814f635f30 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/PipelinePartitionsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/PipelinePartitionsRoot.tsx @@ -1,14 +1,14 @@ -import {Box, NonIdealState} from '@dagster-io/ui-components'; import * as React from 'react'; import {useParams} from 'react-router-dom'; +import {Box, NonIdealState} from '@dagster-io/ui-components'; + import {usePartitionNameForPipeline} from '../assets/usePartitionNameForPipeline'; import {explorerPathFromString, useStripSnapshotFromPath} from '../pipelines/PipelinePathUtils'; import {useJobTitle} from '../pipelines/useJobTitle'; import {LoadingSpinner} from '../ui/Loading'; import {useRepository} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; - import {AssetJobPartitionsView} from './AssetJobPartitionsView'; import {OpJobPartitionsView} from './OpJobPartitionsView'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/RunMatrixUtils.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/RunMatrixUtils.tsx index 92f6d6749cbe9..09fa693ca86f9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/RunMatrixUtils.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/RunMatrixUtils.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { colorAccentBlue, colorAccentBlueHover, @@ -16,8 +19,6 @@ import { colorBorderDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; export const BOX_SIZE = 32; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/CreatePartitionDialog.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/CreatePartitionDialog.test.tsx index 035fc5cbbd868..c0fcb5c3b30cc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/CreatePartitionDialog.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/CreatePartitionDialog.test.tsx @@ -1,7 +1,7 @@ +import * as React from 'react'; import {MockedProvider, MockedResponse} from '@apollo/client/testing'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import * as CustomAlertProvider from '../../app/CustomAlertProvider'; import {buildUnauthorizedError} from '../../graphql/types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/OpJobPartitionsViewContent.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/OpJobPartitionsViewContent.test.tsx index 38c91ef33fbcd..d287b1844c559 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/OpJobPartitionsViewContent.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/OpJobPartitionsViewContent.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen} from '@testing-library/react'; -import * as React from 'react'; import {buildRepoAddress} from '../../workspace/buildRepoAddress'; import {OpJobPartitionsViewContent} from '../OpJobPartitionsView'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/SpanRepresentation.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/SpanRepresentation.test.tsx index 8ead178ca09e4..b335f326ec1db 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/SpanRepresentation.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/__tests__/SpanRepresentation.test.tsx @@ -2,8 +2,8 @@ import { allPartitionsSpan, assembleIntoSpans, partitionsToText, - stringForSpan, spanTextToSelectionsOrError, + stringForSpan, } from '../SpanRepresentation'; const MOCK_PARTITION_STATES = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/BackfillMessaging.types.ts b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/BackfillMessaging.types.ts index f85296a3a6e40..fe8b3944305fd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/BackfillMessaging.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/BackfillMessaging.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type DaemonNotRunningAlertInstanceFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/BackfillSelector.types.ts b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/BackfillSelector.types.ts index 4bfd205761ba8..00a8a74fc3f9c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/BackfillSelector.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/BackfillSelector.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type BackfillSelectorQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/CreatePartitionDialog.types.ts b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/CreatePartitionDialog.types.ts index b71fce46a380e..a490d37167308 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/CreatePartitionDialog.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/CreatePartitionDialog.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AddDynamicPartitionMutationVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/JobBackfillsTable.types.ts b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/JobBackfillsTable.types.ts index 6e5737b700e58..42f7d0859d07a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/JobBackfillsTable.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/JobBackfillsTable.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type JobBackfillsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/OpJobPartitionsView.types.ts b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/OpJobPartitionsView.types.ts index 68464671f716d..d5419a59fc5cc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/OpJobPartitionsView.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/OpJobPartitionsView.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PartitionsStatusQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionRunList.types.ts b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionRunList.types.ts index 4aef4b820de8e..92b0a222c3aed 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionRunList.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionRunList.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PartitionRunListQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionStepStatus.types.ts b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionStepStatus.types.ts index a972fa7d269ca..4d7a63216b0aa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionStepStatus.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/PartitionStepStatus.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PartitionStepStatusPipelineQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/useMatrixData.types.ts b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/useMatrixData.types.ts index cc2e4a8ca2f22..cf8bf27b269bb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/useMatrixData.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/useMatrixData.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PartitionMatrixStepRunFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/usePartitionStepQuery.types.ts b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/usePartitionStepQuery.types.ts index c78b950be2bb5..3c0ef89a4e2a9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/types/usePartitionStepQuery.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/types/usePartitionStepQuery.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PartitionStepLoaderQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/useMatrixData.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/useMatrixData.tsx index 56ffa11cd830f..70256773d2318 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/useMatrixData.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/useMatrixData.tsx @@ -9,10 +9,9 @@ import {buildLayout} from '../gantt/GanttChartLayout'; import {StepEventStatus} from '../graphql/types'; import {explodeCompositesInHandleGraph} from '../pipelines/CompositeSupport'; import {GRAPH_EXPLORER_SOLID_HANDLE_FRAGMENT} from '../pipelines/GraphExplorer'; - import { - PartitionMatrixStepRunFragment, PartitionMatrixSolidHandleFragment, + PartitionMatrixStepRunFragment, } from './types/useMatrixData.types'; export type StatusSquareColor = diff --git a/js_modules/dagster-ui/packages/ui-core/src/partitions/usePartitionStepQuery.tsx b/js_modules/dagster-ui/packages/ui-core/src/partitions/usePartitionStepQuery.tsx index 9cb7e797aaa1e..afedf6056d029 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/partitions/usePartitionStepQuery.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/partitions/usePartitionStepQuery.tsx @@ -1,18 +1,17 @@ -import {useApolloClient, ApolloClient, gql} from '@apollo/client'; import * as React from 'react'; +import {ApolloClient, gql, useApolloClient} from '@apollo/client'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorFragment} from '../app/types/PythonErrorFragment.types'; import {RepositorySelector, RunStatus} from '../graphql/types'; import {DagsterTag} from '../runs/RunTag'; import {RunFilterToken} from '../runs/RunsFilterInput'; - import {PartitionMatrixStepRunFragment} from './types/useMatrixData.types'; import { - PartitionStepLoaderQueryVariables, PartitionStepLoaderQuery, + PartitionStepLoaderQueryVariables, } from './types/usePartitionStepQuery.types'; -import {PartitionRuns, PARTITION_MATRIX_STEP_RUN_FRAGMENT} from './useMatrixData'; +import {PARTITION_MATRIX_STEP_RUN_FRAGMENT, PartitionRuns} from './useMatrixData'; interface DataState { runs: PartitionMatrixStepRunFragment[]; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/Description.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/Description.tsx index 344454726cf1e..271c54ceb79fa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/Description.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/Description.tsx @@ -1,7 +1,8 @@ -import {Button} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {Button} from '@dagster-io/ui-components'; + import {Markdown} from '../ui/Markdown'; interface IDescriptionProps { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/GraphExplorer.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/GraphExplorer.tsx index 74c0e6d0d459a..3ce6267473382 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/GraphExplorer.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/GraphExplorer.tsx @@ -1,27 +1,27 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {Breadcrumbs} from '@blueprintjs/core'; +import Color from 'color'; +import qs from 'qs'; +import {Route} from 'react-router-dom'; +import styled from 'styled-components'; + import { Checkbox, + ErrorBoundary, SplitPanelContainer, TextInput, - ErrorBoundary, colorBackgroundDefault, } from '@dagster-io/ui-components'; -import Color from 'color'; -import qs from 'qs'; -import * as React from 'react'; -import {Route} from 'react-router-dom'; -import styled from 'styled-components'; import {filterByQuery} from '../app/GraphQueryImpl'; import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; -import {OpGraph, OP_GRAPH_OP_FRAGMENT} from '../graph/OpGraph'; +import {OP_GRAPH_OP_FRAGMENT, OpGraph} from '../graph/OpGraph'; import {useOpLayout} from '../graph/asyncGraphLayout'; import {OpNameOrPath} from '../ops/OpNameOrPath'; import {GraphQueryInput} from '../ui/GraphQueryInput'; import {RepoAddress} from '../workspace/types'; - import {EmptyDAGNotice, EntirelyFilteredDAGNotice, LoadingNotice} from './GraphNotices'; import {ExplorerPath} from './PipelinePathUtils'; import {SIDEBAR_ROOT_CONTAINER_FRAGMENT} from './SidebarContainerOverview'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/GraphNotices.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/GraphNotices.tsx index 984421affb42e..ccd8149d13770 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/GraphNotices.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/GraphNotices.tsx @@ -1,8 +1,9 @@ -import {Box, NonIdealState, Spinner, colorBackgroundDefault} from '@dagster-io/ui-components'; -import capitalize from 'lodash/capitalize'; import * as React from 'react'; +import capitalize from 'lodash/capitalize'; import styled from 'styled-components'; +import {Box, NonIdealState, Spinner, colorBackgroundDefault} from '@dagster-io/ui-components'; + export const EmptyDAGNotice = ({ isGraph, nodeType, diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/JobFeatureContext.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/JobFeatureContext.tsx index eafdab40da9eb..2b8c997fd5234 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/JobFeatureContext.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/JobFeatureContext.tsx @@ -1,7 +1,6 @@ import * as React from 'react'; import {RepoAddress} from '../workspace/types'; - import {JobTabConfig, JobTabConfigInput, buildJobTabs} from './JobTabs'; import {PipelineOverviewRoot} from './PipelineOverviewRoot'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/JobTabs.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/JobTabs.tsx index 282c36308c1a2..96c5800746cae 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/JobTabs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/JobTabs.tsx @@ -1,11 +1,11 @@ -import {Tab, Tabs, Tooltip} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Tab, Tabs, Tooltip} from '@dagster-io/ui-components'; + import {PermissionResult, PermissionsState, permissionResultForKey} from '../app/Permissions'; import {TabLink} from '../ui/TabLink'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {ExplorerPath, explorerPathToString} from './PipelinePathUtils'; export const DEFAULT_JOB_TAB_ORDER = ['overview', 'playground', 'runs', 'partitions']; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/LegacyPipelineTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/LegacyPipelineTag.tsx index 02f05b31fd314..8268a47f199a9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/LegacyPipelineTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/LegacyPipelineTag.tsx @@ -1,7 +1,8 @@ -import {Tooltip, FontFamily, colorBackgroundLight, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {FontFamily, Tooltip, colorBackgroundLight, colorTextLight} from '@dagster-io/ui-components'; + export const LegacyPipelineTag = () => ( Legacy diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/NonIdealPipelineQueryResult.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/NonIdealPipelineQueryResult.tsx index a803783551c48..ffb19f65e1da6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/NonIdealPipelineQueryResult.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/NonIdealPipelineQueryResult.tsx @@ -1,6 +1,7 @@ -import {NonIdealState} from '@dagster-io/ui-components'; import React from 'react'; +import {NonIdealState} from '@dagster-io/ui-components'; + import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineExplorerRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineExplorerRoot.tsx index ee37a2792cf6f..fab372eef61a9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineExplorerRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineExplorerRoot.tsx @@ -1,5 +1,5 @@ -import {gql, useQuery} from '@apollo/client'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {useHistory, useParams} from 'react-router-dom'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -12,14 +12,13 @@ import {METADATA_ENTRY_FRAGMENT} from '../metadata/MetadataEntry'; import {Loading} from '../ui/Loading'; import {buildPipelineSelector} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; - import {explodeCompositesInHandleGraph} from './CompositeSupport'; import { - GraphExplorer, - GraphExplorerOptions, GRAPH_EXPLORER_ASSET_NODE_FRAGMENT, GRAPH_EXPLORER_FRAGMENT, GRAPH_EXPLORER_SOLID_HANDLE_FRAGMENT, + GraphExplorer, + GraphExplorerOptions, } from './GraphExplorer'; import {NonIdealPipelineQueryResult} from './NonIdealPipelineQueryResult'; import {ExplorerPath, explorerPathFromString, explorerPathToString} from './PipelinePathUtils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineOrJobDisambiguationRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineOrJobDisambiguationRoot.tsx index 6f4e26a9eca58..5f8672406553b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineOrJobDisambiguationRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineOrJobDisambiguationRoot.tsx @@ -3,7 +3,6 @@ import {Redirect, useLocation, useParams} from 'react-router-dom'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; - import {explorerPathFromString} from './PipelinePathUtils'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineOverviewRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineOverviewRoot.tsx index 08a7fe6d9bf65..1f8ddc13fe37f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineOverviewRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineOverviewRoot.tsx @@ -8,12 +8,11 @@ import {assetDetailsPathForKey} from '../assets/assetDetailsPathForKey'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {PipelineExplorerContainer} from './PipelineExplorerRoot'; import { + ExplorerPath, explorerPathFromString, explorerPathToString, - ExplorerPath, useStripSnapshotFromPath, } from './PipelinePathUtils'; import {useJobTitle} from './useJobTitle'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelinePathUtils.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelinePathUtils.tsx index 602e645c17a0a..6ba3b75c2b4bf 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelinePathUtils.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelinePathUtils.tsx @@ -1,7 +1,8 @@ -import {Mono} from '@dagster-io/ui-components'; import React from 'react'; import {Link, useHistory} from 'react-router-dom'; +import {Mono} from '@dagster-io/ui-components'; + import {__ASSET_JOB_PREFIX} from '../asset-graph/Utils'; export interface ExplorerPath { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineReference.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineReference.tsx index d5b859c267a74..803e70ae4bfeb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineReference.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineReference.tsx @@ -1,10 +1,10 @@ -import {Box, Icon, colorAccentGray} from '@dagster-io/ui-components'; import * as React from 'react'; import {Link} from 'react-router-dom'; +import {Box, Icon, colorAccentGray} from '@dagster-io/ui-components'; + import {RepoAddress} from '../workspace/types'; import {workspacePipelinePath, workspacePipelinePathGuessRepo} from '../workspace/workspacePath'; - import {PipelineSnapshotLink} from './PipelinePathUtils'; export interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineRoot.tsx index 7cdc8e84785bf..02bb14aabeed3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineRoot.tsx @@ -7,7 +7,6 @@ import {LaunchpadSetupRoot} from '../launchpad/LaunchpadSetupRoot'; import {PipelineNav} from '../nav/PipelineNav'; import {PipelinePartitionsRoot} from '../partitions/PipelinePartitionsRoot'; import {RepoAddress} from '../workspace/types'; - import {JobFeatureContext} from './JobFeatureContext'; import {PipelineOrJobDisambiguationRoot} from './PipelineOrJobDisambiguationRoot'; import {PipelineRunsRoot} from './PipelineRunsRoot'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineRunsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineRunsRoot.tsx index e0d8f09be1500..3515593c276b9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineRunsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/PipelineRunsRoot.tsx @@ -1,4 +1,7 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; +import {useParams} from 'react-router-dom'; + import { Box, ButtonLink, @@ -10,8 +13,6 @@ import { TokenizingFieldValue, tokenToString, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {useParams} from 'react-router-dom'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import { @@ -21,14 +22,14 @@ import { } from '../app/QueryRefresh'; import {useTrackPageView} from '../app/analytics'; import {useStartTrace} from '../performance'; -import {RunTable, RUN_TABLE_RUN_FRAGMENT} from '../runs/RunTable'; +import {RUN_TABLE_RUN_FRAGMENT, RunTable} from '../runs/RunTable'; import {DagsterTag} from '../runs/RunTag'; import {RunsQueryRefetchContext} from '../runs/RunUtils'; import { + RunFilterToken, RunFilterTokenType, runsFilterForSearchTokens, useQueryPersistedRunFilters, - RunFilterToken, useRunsFilterInput, } from '../runs/RunsFilterInput'; import {useCursorPaginatedQuery} from '../runs/useCursorPaginatedQuery'; @@ -39,7 +40,6 @@ import {isThisThingAJob, isThisThingAnAssetJob, useRepository} from '../workspac import {repoAddressAsTag} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {explorerPathFromString} from './PipelinePathUtils'; import { PipelineRunsRootQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarComponents.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarComponents.tsx index 8b5a6014ebd59..6f75599ade7ee 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarComponents.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarComponents.tsx @@ -1,15 +1,16 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import {Collapse} from '@blueprintjs/core'; +import styled from 'styled-components'; + import { - Icon, FontFamily, + Icon, + colorBackgroundLight, colorKeylineDefault, - colorTextLight, colorTextDefault, - colorBackgroundLight, + colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {useStateWithStorage} from '../hooks/useStateWithStorage'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarContainerOverview.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarContainerOverview.tsx index 25dfd641552df..e04c03880b4ff 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarContainerOverview.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarContainerOverview.tsx @@ -1,18 +1,18 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; + import {Box, MetadataTable} from '@dagster-io/ui-components'; -import * as React from 'react'; import {breakOnUnderscores} from '../app/Util'; -import {MetadataEntry, METADATA_ENTRY_FRAGMENT} from '../metadata/MetadataEntry'; -import {useRepositoryOptions, findRepositoryAmongOptions} from '../workspace/WorkspaceContext'; +import {METADATA_ENTRY_FRAGMENT, MetadataEntry} from '../metadata/MetadataEntry'; +import {findRepositoryAmongOptions, useRepositoryOptions} from '../workspace/WorkspaceContext'; import {repoContainsPipeline} from '../workspace/findRepoContainingPipeline'; import {RepoAddress} from '../workspace/types'; - import {Description} from './Description'; -import {SidebarSubhead, SidebarTitle, SidebarSection} from './SidebarComponents'; +import {SidebarSection, SidebarSubhead, SidebarTitle} from './SidebarComponents'; import { - SidebarResourcesSection, SIDEBAR_RESOURCES_SECTION_FRAGMENT, + SidebarResourcesSection, } from './SidebarResourcesSection'; import {SidebarRootContainerFragment} from './types/SidebarContainerOverview.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOp.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOp.tsx index dfff587de9622..0a46c8ae91c9f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOp.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOp.tsx @@ -1,15 +1,15 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import {Box, NonIdealState, colorTextLight} from '@dagster-io/ui-components'; -import * as React from 'react'; import {OpNameOrPath} from '../ops/OpNameOrPath'; import {LoadingSpinner} from '../ui/Loading'; import {RepoAddress} from '../workspace/types'; - import {ExplorerPath} from './PipelinePathUtils'; -import {SidebarOpDefinition, SIDEBAR_OP_DEFINITION_FRAGMENT} from './SidebarOpDefinition'; +import {SIDEBAR_OP_DEFINITION_FRAGMENT, SidebarOpDefinition} from './SidebarOpDefinition'; import {SidebarOpExecutionGraphs} from './SidebarOpExecutionGraphs'; -import {SidebarOpInvocation, SIDEBAR_OP_INVOCATION_FRAGMENT} from './SidebarOpInvocation'; +import {SIDEBAR_OP_INVOCATION_FRAGMENT, SidebarOpInvocation} from './SidebarOpInvocation'; import { SidebarGraphOpQuery, SidebarGraphOpQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpDefinition.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpDefinition.tsx index 88a17dfa6d91e..a9640438bf57d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpDefinition.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpDefinition.tsx @@ -1,4 +1,8 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, ConfigTypeSchema, @@ -8,20 +12,16 @@ import { colorBackgroundLight, colorKeylineDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {COMMON_COLLATOR, breakOnUnderscores} from '../app/Util'; import {displayNameForAssetKey, isHiddenAssetGroupJob} from '../asset-graph/Utils'; import {assetDetailsPathForKey} from '../assets/assetDetailsPathForKey'; -import {OpTypeSignature, OP_TYPE_SIGNATURE_FRAGMENT} from '../ops/OpTypeSignature'; +import {OP_TYPE_SIGNATURE_FRAGMENT, OpTypeSignature} from '../ops/OpTypeSignature'; import {pluginForMetadata} from '../plugins'; import {CONFIG_TYPE_SCHEMA_FRAGMENT} from '../typeexplorer/ConfigTypeSchema'; import {DAGSTER_TYPE_WITH_TOOLTIP_FRAGMENT, TypeWithTooltip} from '../typeexplorer/TypeWithTooltip'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {Description} from './Description'; import { SectionItemContainer, @@ -32,12 +32,12 @@ import { } from './SidebarComponents'; import { Invocation, + OpEdges, + OpMappingTable, ResourceContainer, ResourceHeader, ShowAllButton, SidebarOpInvocationInfo, - OpEdges, - OpMappingTable, TypeWrapper, } from './SidebarOpHelpers'; import {SidebarOpDefinitionFragment} from './types/SidebarOpDefinition.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpExecutionGraphs.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpExecutionGraphs.tsx index 0cb3c4eb12d3e..4407e97160682 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpExecutionGraphs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpExecutionGraphs.tsx @@ -1,4 +1,7 @@ import {gql, useQuery} from '@apollo/client'; +import React from 'react'; +import {Link} from 'react-router-dom'; + import { Box, Spinner, @@ -8,14 +11,11 @@ import { colorAccentGreen, colorAccentRed, } from '@dagster-io/ui-components'; -import React from 'react'; -import {Link} from 'react-router-dom'; import {AssetValueGraph, AssetValueGraphData} from '../assets/AssetValueGraph'; import {StepStatusDot} from '../gantt/GanttStatusPanel'; import {linkToRunEvent} from '../runs/RunUtils'; import {RepoAddress} from '../workspace/types'; - import {SidebarSection} from './SidebarComponents'; import { SidebarOpGraphsQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpHelpers.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpHelpers.tsx index a922765d1eb04..3be67b3d18f99 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpHelpers.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpHelpers.tsx @@ -1,25 +1,25 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import {Text} from '@blueprintjs/core'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { + Code, + FontFamily, Group, Icon, IconWrapper, - Code, - FontFamily, - colorKeylineDefault, colorAccentBlue, + colorAccentGray, + colorBackgroundLight, + colorKeylineDefault, colorTextBlue, colorTextLight, - colorBackgroundLight, - colorAccentGray, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {titleOfIO} from '../app/titleOfIO'; import {OpColumn, OpColumnContainer} from '../runs/LogsRowComponents'; - import {SectionHeader} from './SidebarComponents'; type OpLinkInfo = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpInvocation.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpInvocation.tsx index f1bb0ecb35d41..22bff20d34001 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpInvocation.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarOpInvocation.tsx @@ -1,11 +1,11 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; + import {Box, Button, Icon} from '@dagster-io/ui-components'; -import * as React from 'react'; import {breakOnUnderscores} from '../app/Util'; import {OpNameOrPath} from '../ops/OpNameOrPath'; import {DAGSTER_TYPE_WITH_TOOLTIP_FRAGMENT} from '../typeexplorer/TypeWithTooltip'; - import {SidebarSection, SidebarTitle} from './SidebarComponents'; import {DependencyHeaderRow, DependencyRow, DependencyTable} from './SidebarOpHelpers'; import {SidebarOpInvocationFragment} from './types/SidebarOpInvocation.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarResourcesSection.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarResourcesSection.tsx index 950434aac3d1a..6fcf940989569 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarResourcesSection.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarResourcesSection.tsx @@ -1,10 +1,10 @@ -import {gql} from '@apollo/client'; -import {ConfigTypeSchema, Icon, IconWrapper, Box, colorAccentGray} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql} from '@apollo/client'; import styled from 'styled-components'; -import {CONFIG_TYPE_SCHEMA_FRAGMENT} from '../typeexplorer/ConfigTypeSchema'; +import {Box, ConfigTypeSchema, Icon, IconWrapper, colorAccentGray} from '@dagster-io/ui-components'; +import {CONFIG_TYPE_SCHEMA_FRAGMENT} from '../typeexplorer/ConfigTypeSchema'; import {Description} from './Description'; import {SectionHeader, SectionItemContainer} from './SidebarComponents'; import {SidebarResourcesSectionFragment} from './types/SidebarResourcesSection.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarRoot.tsx index 4795a69e7f93d..bd045b47dc145 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/SidebarRoot.tsx @@ -1,12 +1,12 @@ -import {Box, Tabs, ErrorBoundary} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, ErrorBoundary, Tabs} from '@dagster-io/ui-components'; + import {OpNameOrPath} from '../ops/OpNameOrPath'; import {TypeExplorerContainer} from '../typeexplorer/TypeExplorerContainer'; import {TypeListContainer} from '../typeexplorer/TypeListContainer'; import {TabLink} from '../ui/TabLink'; import {RepoAddress} from '../workspace/types'; - import {RightInfoPanelContent} from './GraphExplorer'; import {ExplorerPath} from './PipelinePathUtils'; import {SidebarContainerOverview} from './SidebarContainerOverview'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineNav.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineNav.test.tsx index 4a7ea17c1d2ad..5ec595aef4274 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineNav.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineNav.test.tsx @@ -1,5 +1,5 @@ -import {render, screen} from '@testing-library/react'; import * as React from 'react'; +import {render, screen} from '@testing-library/react'; import {MemoryRouter} from 'react-router-dom'; import {PipelineNav} from '../../nav/PipelineNav'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineReference.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineReference.test.tsx index c3a879c447991..839aa96555d24 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineReference.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineReference.test.tsx @@ -1,5 +1,5 @@ -import {render, screen, waitFor} from '@testing-library/react'; import * as React from 'react'; +import {render, screen, waitFor} from '@testing-library/react'; import {MemoryRouter} from 'react-router-dom'; import {buildRepoAddress} from '../../workspace/buildRepoAddress'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineRoot.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineRoot.test.tsx index 3c0e17bcf49c7..8adeed9f104ab 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineRoot.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/__tests__/PipelineRoot.test.tsx @@ -1,5 +1,5 @@ -import {render, screen} from '@testing-library/react'; import * as React from 'react'; +import {render, screen} from '@testing-library/react'; import {MemoryRouter} from 'react-router-dom'; import {TestPermissionsProvider} from '../../testing/TestPermissions'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/GraphExplorer.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/GraphExplorer.types.ts index df786bfdf99d1..2088f96382c3f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/GraphExplorer.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/GraphExplorer.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type GraphExplorerFragment_CompositeSolidDefinition_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineExplorerRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineExplorerRoot.types.ts index 29ad717d77915..e297235c359ce 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineExplorerRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineExplorerRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PipelineExplorerRootQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineRunsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineRunsRoot.types.ts index 7e03e74cb0363..a7011ec2d47e9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineRunsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/PipelineRunsRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PipelineRunsRootQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarContainerOverview.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarContainerOverview.types.ts index a60bdb5eea3ed..81996feeaf922 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarContainerOverview.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarContainerOverview.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SidebarRootContainerFragment_CompositeSolidDefinition_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOp.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOp.types.ts index 9a98603cdd41e..666b3ad49f966 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOp.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOp.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SidebarOpFragment_CompositeSolidDefinition_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpDefinition.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpDefinition.types.ts index 7086965926e5d..3234ecc74856c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpDefinition.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpDefinition.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SidebarOpDefinitionFragment_CompositeSolidDefinition_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpExecutionGraphs.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpExecutionGraphs.types.ts index 6aaacb0fd9dfe..afab105e4a766 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpExecutionGraphs.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpExecutionGraphs.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SidebarOpGraphsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpInvocation.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpInvocation.types.ts index 72d1999a89668..fa147d6da8479 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpInvocation.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarOpInvocation.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SidebarOpInvocationFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarResourcesSection.types.ts b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarResourcesSection.types.ts index b4cbbdf5a3db1..982e6664f5c28 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarResourcesSection.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/types/SidebarResourcesSection.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SidebarResourcesSectionFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/pipelines/useJobTitle.tsx b/js_modules/dagster-ui/packages/ui-core/src/pipelines/useJobTitle.tsx index c5bf513e8400d..ddc585ea74cf2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/pipelines/useJobTitle.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/pipelines/useJobTitle.tsx @@ -1,7 +1,6 @@ import * as React from 'react'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; - import {ExplorerPath} from './PipelinePathUtils'; export const useJobTitle = (explorerPath: ExplorerPath, isJob: boolean) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/plugins/__stories__/sql.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/plugins/__stories__/sql.stories.tsx index 15ce0d92728ee..0dc3cd666c561 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/plugins/__stories__/sql.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/plugins/__stories__/sql.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {IPluginSidebarProps} from '../index'; import {SidebarComponent as SQLDialogComponent} from '../sql'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/plugins/generic.tsx b/js_modules/dagster-ui/packages/ui-core/src/plugins/generic.tsx index 1d86a78bd48f3..a7195302e7cbe 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/plugins/generic.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/plugins/generic.tsx @@ -1,6 +1,7 @@ -import {Button, DialogBody, DialogFooter, Dialog, Icon} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Button, Dialog, DialogBody, DialogFooter, Icon} from '@dagster-io/ui-components'; + import {IPluginSidebarProps} from '../plugins'; export const SidebarComponent = (props: IPluginSidebarProps) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/plugins/sql.tsx b/js_modules/dagster-ui/packages/ui-core/src/plugins/sql.tsx index c8d3414f443fb..b79aaa604c60b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/plugins/sql.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/plugins/sql.tsx @@ -1,6 +1,7 @@ -import {Button, DialogFooter, Dialog, Icon, StyledRawCodeMirror} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Button, Dialog, DialogFooter, Icon, StyledRawCodeMirror} from '@dagster-io/ui-components'; + import {IPluginSidebarProps} from '../plugins'; export const SidebarComponent = (props: IPluginSidebarProps) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/resources/ResourceRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/resources/ResourceRoot.tsx index fcaa8ac979e88..ac2ca95fb7db9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/resources/ResourceRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/resources/ResourceRoot.tsx @@ -1,4 +1,7 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import {Link, useParams, useRouteMatch} from 'react-router-dom'; + import { Alert, Box, @@ -23,8 +26,6 @@ import { colorLinkDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link, useParams, useRouteMatch} from 'react-router-dom'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -37,12 +38,11 @@ import {Markdown} from '../ui/Markdown'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {ResourceTabs} from './ResourceTabs'; import { + ResourceDetailsFragment, ResourceRootQuery, ResourceRootQueryVariables, - ResourceDetailsFragment, } from './types/ResourceRoot.types'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/resources/ResourceTabs.tsx b/js_modules/dagster-ui/packages/ui-core/src/resources/ResourceTabs.tsx index 297f8645dc3b2..fa6ed715c5bff 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/resources/ResourceTabs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/resources/ResourceTabs.tsx @@ -1,7 +1,8 @@ -import {Box, Tabs, Tag} from '@dagster-io/ui-components'; import * as React from 'react'; import {useRouteMatch} from 'react-router-dom'; +import {Box, Tabs, Tag} from '@dagster-io/ui-components'; + import {TabLink} from '../ui/TabLink'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/resources/VirtualizedResourceRow.tsx b/js_modules/dagster-ui/packages/ui-core/src/resources/VirtualizedResourceRow.tsx index a46827d514390..84d33bdaf4b26 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/resources/VirtualizedResourceRow.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/resources/VirtualizedResourceRow.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Caption, @@ -8,14 +12,10 @@ import { colorAccentGray, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {HeaderCell, Row, RowCell} from '../ui/VirtualizedTable'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {succinctType} from './ResourceRoot'; import {ResourceEntryFragment} from './types/WorkspaceResourcesRoot.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/resources/VirtualizedResourceTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/resources/VirtualizedResourceTable.tsx index e592168f1fbde..be3c897137518 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/resources/VirtualizedResourceTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/resources/VirtualizedResourceTable.tsx @@ -1,9 +1,8 @@ -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; import {Container, Inner} from '../ui/VirtualizedTable'; import {RepoAddress} from '../workspace/types'; - import {VirtualizedResourceHeader, VirtualizedResourceRow} from './VirtualizedResourceRow'; import {ResourceEntryFragment} from './types/WorkspaceResourcesRoot.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/resources/WorkspaceResourcesRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/resources/WorkspaceResourcesRoot.tsx index 25bdad03eabd1..40e777a1dd332 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/resources/WorkspaceResourcesRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/resources/WorkspaceResourcesRoot.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import {Box, NonIdealState, Spinner, TextInput, colorTextLight} from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; @@ -10,7 +11,6 @@ import {WorkspaceHeader} from '../workspace/WorkspaceHeader'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import {VirtualizedResourceTable} from './VirtualizedResourceTable'; import { WorkspaceResourcesQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/resources/types/ResourceRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/resources/types/ResourceRoot.types.ts index e51ceb790e9e3..ee245838f181e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/resources/types/ResourceRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/resources/types/ResourceRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ResourceDetailsFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/resources/types/WorkspaceResourcesRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/resources/types/WorkspaceResourcesRoot.types.ts index d9b989bfdb74f..7331129077709 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/resources/types/WorkspaceResourcesRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/resources/types/WorkspaceResourcesRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ResourceEntryFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/AssetTagCollections.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/AssetTagCollections.tsx index e8357bb05fe40..a690b74ec67eb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/AssetTagCollections.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/AssetTagCollections.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; + import { Box, Button, @@ -9,8 +12,6 @@ import { Tag, colorAccentGray, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; import {displayNameForAssetKey} from '../asset-graph/Utils'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/CapturedLogPanel.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/CapturedLogPanel.tsx index b125eb15391c4..b021c38c9de9c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/CapturedLogPanel.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/CapturedLogPanel.tsx @@ -1,10 +1,10 @@ +import * as React from 'react'; import {gql, useQuery, useSubscription} from '@apollo/client'; + import {Box, Icon, colorTooltipBackground, colorTooltipText} from '@dagster-io/ui-components'; -import * as React from 'react'; import {AppContext} from '../app/AppContext'; import {WebSocketContext} from '../app/WebSocketProvider'; - import {RawLogContent} from './RawLogContent'; import {ILogCaptureInfo} from './RunMetadataProvider'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/CellTruncationProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/CellTruncationProvider.tsx index c578773702ef0..5840ed6312d2f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/CellTruncationProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/CellTruncationProvider.tsx @@ -1,7 +1,8 @@ -import {Button, Icon} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {Button, Icon} from '@dagster-io/ui-components'; + import {showCustomAlert} from '../app/CustomAlertProvider'; const OverflowFade = styled.div` diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/ComputeLogPanel.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/ComputeLogPanel.tsx index aa23cc886f7ad..7d36917270172 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/ComputeLogPanel.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/ComputeLogPanel.tsx @@ -1,8 +1,8 @@ -import {Box, Spinner} from '@dagster-io/ui-components'; import * as React from 'react'; -import {AppContext} from '../app/AppContext'; +import {Box, Spinner} from '@dagster-io/ui-components'; +import {AppContext} from '../app/AppContext'; import {RawLogContent} from './RawLogContent'; import {useComputeLogs} from './useComputeLogs'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/CreatedByTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/CreatedByTag.tsx index cb2a091f04480..8fb91da2927ee 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/CreatedByTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/CreatedByTag.tsx @@ -1,12 +1,12 @@ -import {Box, Tag} from '@dagster-io/ui-components'; import React from 'react'; import {Link} from 'react-router-dom'; +import {Box, Tag} from '@dagster-io/ui-components'; + import {useLaunchPadHooks} from '../launchpad/LaunchpadHooksContext'; import {TagActionsPopover} from '../ui/TagActions'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {DagsterTag} from './RunTag'; import {RunFilterToken} from './RunsFilterInput'; import {RunTagsFragment} from './types/RunTable.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/DeletionDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/DeletionDialog.tsx index 6eb00433feb5f..16505c4ea2710 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/DeletionDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/DeletionDialog.tsx @@ -1,18 +1,19 @@ +import * as React from 'react'; import {useMutation} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {ProgressBar} from '@blueprintjs/core'; + import { Button, + Dialog, DialogBody, DialogFooter, - Dialog, Group, Icon, Mono, colorAccentGreen, colorAccentYellow, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {NavigationBlock} from './NavigationBlock'; import {DELETE_MUTATION} from './RunUtils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/ExecutionStateDot.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/ExecutionStateDot.tsx index 9ce3154536263..ab6baa3520176 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/ExecutionStateDot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/ExecutionStateDot.tsx @@ -1,3 +1,5 @@ +import styled from 'styled-components'; + import { colorAccentGray, colorAccentGrayHover, @@ -8,7 +10,6 @@ import { colorAccentYellow, colorAccentYellowHover, } from '@dagster-io/ui-components'; -import styled from 'styled-components'; import {IStepState} from './RunMetadataProvider'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/LogFilterSelect.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/LogFilterSelect.tsx index 12339af7dc83d..014c62a73408c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/LogFilterSelect.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/LogFilterSelect.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, Button, @@ -8,8 +11,6 @@ import { Popover, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {LogLevel} from '../graphql/types'; import {compactNumber} from '../ui/formatters'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsFilterInput.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsFilterInput.tsx index 196fe5ead48c4..2ce042a1e5a96 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsFilterInput.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsFilterInput.tsx @@ -1,17 +1,18 @@ +import * as React from 'react'; +import Fuse from 'fuse.js'; +import styled from 'styled-components'; + import { + Icon, Popover, - TextInput, SuggestionProvider, - useSuggestionsForString, - Icon, - colorBackgroundDefault, + TextInput, colorAccentPrimary, colorBackgroundBlue, + colorBackgroundDefault, colorBackgroundGray, + useSuggestionsForString, } from '@dagster-io/ui-components'; -import Fuse from 'fuse.js'; -import * as React from 'react'; -import styled from 'styled-components'; import {ClearButton} from '../ui/ClearButton'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsProvider.tsx index ab3e4c57f1d58..d11ddbf0a9dd2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsProvider.tsx @@ -1,28 +1,28 @@ +import * as React from 'react'; import { - gql, OnSubscriptionDataOptions, + gql, useApolloClient, useQuery, useSubscription, } from '@apollo/client'; -import {TokenizingFieldValue} from '@dagster-io/ui-components'; import throttle from 'lodash/throttle'; -import * as React from 'react'; + +import {TokenizingFieldValue} from '@dagster-io/ui-components'; import {WebSocketContext} from '../app/WebSocketProvider'; import {RunStatus} from '../graphql/types'; - import {LogLevelCounts} from './LogsToolbar'; import {RUN_DAGSTER_RUN_EVENT_FRAGMENT} from './RunFragments'; import {logNodeLevel} from './logNodeLevel'; import {LogNode} from './types'; import { - RunLogsSubscriptionSuccessFragment, + PipelineRunLogsSubscription, PipelineRunLogsSubscriptionStatusFragment, + PipelineRunLogsSubscriptionVariables, RunLogsQuery, - PipelineRunLogsSubscription, RunLogsQueryVariables, - PipelineRunLogsSubscriptionVariables, + RunLogsSubscriptionSuccessFragment, } from './types/LogsProvider.types'; import {RunDagsterRunEventFragment} from './types/RunFragments.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRow.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRow.tsx index 7876c7269bb52..bb8869dd02b1a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRow.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRow.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; + import {Box} from '@dagster-io/ui-components'; -import * as React from 'react'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -9,12 +10,11 @@ import {setHighlightedGanttChartTime} from '../gantt/GanttChart'; import {LogLevel} from '../graphql/types'; import {METADATA_ENTRY_FRAGMENT} from '../metadata/MetadataEntry'; import {autolinkTextContent} from '../ui/autolinking'; - import {CellTruncationProvider} from './CellTruncationProvider'; import { EventTypeColumn, - Row, OpColumn, + Row, StructuredContent, TimestampColumn, } from './LogsRowComponents'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRowComponents.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRowComponents.tsx index fadc581a569d3..94f334b3fee86 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRowComponents.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRowComponents.tsx @@ -1,28 +1,28 @@ +import * as React from 'react'; +import memoize from 'lodash/memoize'; +import qs from 'qs'; +import {Link, useLocation} from 'react-router-dom'; +import styled from 'styled-components'; + import { FontFamily, MetadataTable, Tooltip, colorBackgroundDefault, + colorBackgroundLightHover, colorBackgroundRed, colorBackgroundYellow, - colorBackgroundLightHover, colorKeylineDefault, colorTextDefault, colorTextLight, colorTextRed, colorTextYellow, } from '@dagster-io/ui-components'; -import memoize from 'lodash/memoize'; -import qs from 'qs'; -import * as React from 'react'; -import {Link, useLocation} from 'react-router-dom'; -import styled from 'styled-components'; import {formatElapsedTimeWithMsec} from '../app/Util'; import {HourCycle} from '../app/time/HourCycle'; import {TimeContext} from '../app/time/TimeContext'; import {browserHourCycle, browserTimezone} from '../app/time/browserTimezone'; - import {LogLevel} from './LogLevel'; import {ColumnWidthsContext} from './LogsScrollingTableHeader'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRowStructuredContent.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRowStructuredContent.tsx index a1b2383990665..523cd65c20d21 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRowStructuredContent.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsRowStructuredContent.tsx @@ -1,10 +1,11 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import {Intent} from '@blueprintjs/core'; -import {Box, Tag, colorTextRed} from '@dagster-io/ui-components'; import qs from 'qs'; -import * as React from 'react'; import {Link, useLocation} from 'react-router-dom'; +import {Box, Tag, colorTextRed} from '@dagster-io/ui-components'; + import {assertUnreachable} from '../app/Util'; import {PythonErrorFragment} from '../app/types/PythonErrorFragment.types'; import {displayNameForAssetKey} from '../asset-graph/Utils'; @@ -13,14 +14,13 @@ import { assetDetailsPathForKey, } from '../assets/assetDetailsPathForKey'; import {AssetKey} from '../assets/types'; -import {ErrorSource, DagsterEventType} from '../graphql/types'; +import {DagsterEventType, ErrorSource} from '../graphql/types'; import { LogRowStructuredContentTable, MetadataEntries, MetadataEntryLink, } from '../metadata/MetadataEntry'; import {MetadataEntryFragment} from '../metadata/types/MetadataEntry.types'; - import {EventTypeColumn} from './LogsRowComponents'; import {IRunMetadataDict} from './RunMetadataProvider'; import {eventTypeToDisplayType} from './getRunFilterProviders'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsScrollingTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsScrollingTable.tsx index 1e4c7faf70708..ed8bd274cfadf 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsScrollingTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsScrollingTable.tsx @@ -1,20 +1,21 @@ -import {gql} from '@apollo/client'; -import { - NonIdealState, - colorBackgroundDefault, - colorKeylineDefault, -} from '@dagster-io/ui-components'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; +import {gql} from '@apollo/client'; import { - CellMeasurer as _CellMeasurer, CellMeasurerCache, - List as _List, ListRowProps, ScrollParams, + CellMeasurer as _CellMeasurer, + List as _List, } from 'react-virtualized'; import styled from 'styled-components'; +import { + NonIdealState, + colorBackgroundDefault, + colorKeylineDefault, +} from '@dagster-io/ui-components'; + import {LogFilter, LogsProviderLogs} from './LogsProvider'; import { LOGS_ROW_STRUCTURED_FRAGMENT, diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsScrollingTableHeader.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsScrollingTableHeader.tsx index 17bb90512ecf0..b416c93e650a2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsScrollingTableHeader.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsScrollingTableHeader.tsx @@ -1,7 +1,8 @@ -import {colorAccentGray, colorKeylineDefault, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {colorAccentGray, colorKeylineDefault, colorTextLight} from '@dagster-io/ui-components'; + import {getJSONForKey} from '../hooks/useStateWithStorage'; const ColumnWidthsStorageKey = 'ColumnWidths'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsToolbar.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsToolbar.tsx index f595a46f3e6c7..ac151b6f40e07 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/LogsToolbar.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/LogsToolbar.tsx @@ -1,26 +1,26 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, + Button, ButtonGroup, Checkbox, - IconName, + ExternalAnchorButton, Icon, + IconName, MenuItem, - Tooltip, Suggest, - ExternalAnchorButton, - Button, + Tooltip, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {OptionsContainer, OptionsDivider} from '../gantt/VizComponents'; import {useStateWithStorage} from '../hooks/useStateWithStorage'; - import {FilterOption, LogFilterSelect} from './LogFilterSelect'; import {LogLevel} from './LogLevel'; import {LogsFilterInput} from './LogsFilterInput'; import {LogFilter, LogFilterValue} from './LogsProvider'; -import {extractLogCaptureStepsFromLegacySteps, IRunMetadataDict} from './RunMetadataProvider'; +import {IRunMetadataDict, extractLogCaptureStepsFromLegacySteps} from './RunMetadataProvider'; import {getRunFilterProviders} from './getRunFilterProviders'; import {EnabledRunLogLevelsKey, validateLogLevels} from './useQueryPersistedLogFilter'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/QueuedRunsBanners.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/QueuedRunsBanners.tsx index 09b6813afe99e..9278bb0a705cd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/QueuedRunsBanners.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/QueuedRunsBanners.tsx @@ -1,11 +1,11 @@ import {gql, useQuery} from '@apollo/client'; -import {Alert, Box} from '@dagster-io/ui-components'; import React from 'react'; import {Link} from 'react-router-dom'; +import {Alert, Box} from '@dagster-io/ui-components'; + import {InstancePageContext} from '../instance/InstancePageContext'; import {useCanSeeConfig} from '../instance/useCanSeeConfig'; - import { QueueDaemonStatusQuery, QueueDaemonStatusQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RawLogContent.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RawLogContent.tsx index 2dd7a25bfa2f4..15db67755dc7c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RawLogContent.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RawLogContent.tsx @@ -1,33 +1,34 @@ +import * as React from 'react'; +import Ansi from 'ansi-to-react'; +import styled, {createGlobalStyle} from 'styled-components'; + import { + FontFamily, Group, Icon, Spinner, - FontFamily, - colorAccentYellow, - colorBackgroundLight, - colorBackgroundLighter, - colorKeylineDefault, - colorBackgroundLightHover, - colorTextDefault, - colorTextLight, - colorBackgroundYellow, - colorTextLighter, colorAccentBlue, - colorTextBlue, - colorAccentGreen, - colorAccentRed, colorAccentCyan, colorAccentGray, + colorAccentGreen, colorAccentOlive, + colorAccentPrimary, + colorAccentRed, + colorAccentYellow, colorBackgroundDefault, + colorBackgroundLight, + colorBackgroundLightHover, + colorBackgroundLighter, colorBackgroundLighterHover, - colorAccentPrimary, + colorBackgroundYellow, colorBorderDefault, colorBorderHover, + colorKeylineDefault, + colorTextBlue, + colorTextDefault, + colorTextLight, + colorTextLighter, } from '@dagster-io/ui-components'; -import Ansi from 'ansi-to-react'; -import * as React from 'react'; -import styled, {createGlobalStyle} from 'styled-components'; const MAX_STREAMING_LOG_BYTES = 5242880; // 5 MB const TRUNCATE_PREFIX = '\u001b[33m...logs truncated...\u001b[39m\n'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/ReexecutionDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/ReexecutionDialog.tsx index 9856b74f5fed2..4f16e07f05bae 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/ReexecutionDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/ReexecutionDialog.tsx @@ -1,21 +1,21 @@ +import * as React from 'react'; import {useMutation} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {ProgressBar} from '@blueprintjs/core'; + import { Button, + Dialog, DialogBody, DialogFooter, - Dialog, Group, Icon, Mono, colorAccentGreen, colorAccentYellow, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {ReexecutionStrategy} from '../graphql/types'; - import {NavigationBlock} from './NavigationBlock'; import {LAUNCH_PIPELINE_REEXECUTION_MUTATION} from './RunUtils'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RepoSectionHeader.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RepoSectionHeader.tsx index 96b371e868869..8eff82b91237e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RepoSectionHeader.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RepoSectionHeader.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, Icon, @@ -9,8 +12,6 @@ import { colorTextLight, colorTextLighter, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {DUNDER_REPO_NAME} from '../workspace/buildRepoAddress'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/Run.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/Run.tsx index e66e34ebfc408..14028d8ffe8f7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/Run.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/Run.tsx @@ -1,15 +1,16 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, - NonIdealState, - SplitPanelContainer, - ErrorBoundary, Button, + ErrorBoundary, Icon, + NonIdealState, + SplitPanelContainer, Tooltip, colorBackgroundDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {filterByQuery} from '../app/GraphQueryImpl'; @@ -22,20 +23,19 @@ import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {useFavicon} from '../hooks/useFavicon'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; import {useSupportsCapturedLogs} from '../instance/useSupportsCapturedLogs'; - import {CapturedOrExternalLogPanel} from './CapturedLogPanel'; import {ComputeLogPanel} from './ComputeLogPanel'; import {LogFilter, LogsProvider, LogsProviderLogs} from './LogsProvider'; import {LogsScrollingTable} from './LogsScrollingTable'; -import {LogsToolbar, LogType} from './LogsToolbar'; +import {LogType, LogsToolbar} from './LogsToolbar'; import {RunActionButtons} from './RunActionButtons'; import {RunContext} from './RunContext'; import {IRunMetadataDict, RunMetadataProvider} from './RunMetadataProvider'; import {RunRootTrace} from './RunRootTrace'; import {RunDagsterRunEventFragment, RunPageFragment} from './types/RunFragments.types'; import { - useComputeLogFileKeyForSelection, matchingComputeLogKeyFromStepKey, + useComputeLogFileKeyForSelection, } from './useComputeLogFileKeyForSelection'; import {useQueryPersistedLogFilter} from './useQueryPersistedLogFilter'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionButtons.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionButtons.tsx index 997d34fc9837c..e059547810af6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionButtons.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionButtons.tsx @@ -1,13 +1,13 @@ -import {Box, Button, Group, Icon} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Button, Group, Icon} from '@dagster-io/ui-components'; + import {showSharedToaster} from '../app/DomUtils'; -import {filterByQuery, GraphQueryItem} from '../app/GraphQueryImpl'; +import {GraphQueryItem, filterByQuery} from '../app/GraphQueryImpl'; import {DEFAULT_DISABLED_REASON} from '../app/Permissions'; import {ReexecutionStrategy} from '../graphql/types'; import {LaunchButtonConfiguration, LaunchButtonDropdown} from '../launchpad/LaunchButton'; import {useRepositoryForRunWithParentSnapshot} from '../workspace/useRepositoryForRun'; - import {IRunMetadataDict, IStepState} from './RunMetadataProvider'; import {doneStatuses, failedStatuses} from './RunStatuses'; import {DagsterTag} from './RunTag'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionsMenu.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionsMenu.tsx index d241f3e096efa..c0ffd95a10927 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionsMenu.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunActionsMenu.tsx @@ -1,24 +1,25 @@ +import * as React from 'react'; import {gql, useLazyQuery} from '@apollo/client'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { + Box, Button, + Dialog, + DialogBody, + DialogFooter, Icon, + JoinedButtons, + Menu, MenuDivider, MenuExternalLink, MenuItem, - Menu, Popover, Tooltip, - DialogFooter, - Dialog, - JoinedButtons, - DialogBody, - Box, colorBackgroundLight, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {AppContext} from '../app/AppContext'; import {showSharedToaster} from '../app/DomUtils'; @@ -31,7 +32,6 @@ import {MenuLink} from '../ui/MenuLink'; import {isThisThingAJob} from '../workspace/WorkspaceContext'; import {useRepositoryForRunWithParentSnapshot} from '../workspace/useRepositoryForRun'; import {workspacePipelineLinkForRun} from '../workspace/workspacePath'; - import {DeletionDialog} from './DeletionDialog'; import {ReexecutionDialog} from './ReexecutionDialog'; import {RunConfigDialog} from './RunConfigDialog'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunConfigDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunConfigDialog.tsx index d90c7889b08d2..c09c2af5fbf24 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunConfigDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunConfigDialog.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import styled from 'styled-components'; + import { Box, Button, @@ -6,8 +9,6 @@ import { StyledRawCodeMirror, Subheading, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import styled from 'styled-components'; import {RunTags} from './RunTags'; import {RunTagsFragment} from './types/RunTable.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunFragments.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunFragments.tsx index 077b6956af888..b9d9382ba18ac 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunFragments.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunFragments.tsx @@ -1,7 +1,6 @@ import {gql} from '@apollo/client'; import {EXECUTION_PLAN_TO_GRAPH_FRAGMENT} from '../gantt/toGraphQueryItems'; - import {LOGS_SCROLLING_TABLE_MESSAGE_FRAGMENT} from './LogsScrollingTable'; import {RUN_METADATA_PROVIDER_MESSAGE_FRAGMENT} from './RunMetadataProvider'; import {RUN_TIMING_FRAGMENT} from './RunTimingDetails'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunHeaderActions.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunHeaderActions.tsx index 5a93f0200fafb..04bfecf11270b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunHeaderActions.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunHeaderActions.tsx @@ -1,8 +1,9 @@ -import {useMutation} from '@apollo/client'; -import {Button, Group, Icon, Menu, MenuItem, Popover, Tooltip} from '@dagster-io/ui-components'; import * as React from 'react'; +import {useMutation} from '@apollo/client'; import {useHistory} from 'react-router-dom'; +import {Button, Group, Icon, Menu, MenuItem, Popover, Tooltip} from '@dagster-io/ui-components'; + import {AppContext} from '../app/AppContext'; import {showSharedToaster} from '../app/DomUtils'; import {useCopyToClipboard} from '../app/browser'; @@ -13,7 +14,6 @@ import { } from '../instance/types/InstanceConcurrency.types'; import {AnchorButton} from '../ui/AnchorButton'; import {workspacePipelineLinkForRun, workspacePipelinePath} from '../workspace/workspacePath'; - import {DeletionDialog} from './DeletionDialog'; import {RunConfigDialog} from './RunConfigDialog'; import {doneStatuses} from './RunStatuses'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunListTabs.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunListTabs.tsx index 3b7973909702a..d8bd1492c745c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunListTabs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunListTabs.tsx @@ -1,21 +1,21 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import isEqual from 'lodash/isEqual'; +import {useLocation} from 'react-router-dom'; +import styled, {css} from 'styled-components'; + import { JoinedButtons, TokenizingFieldValue, + colorBackgroundDefault, colorBackgroundLighterHover, colorTextDefault, - colorBackgroundDefault, colorTextLight, } from '@dagster-io/ui-components'; -import isEqual from 'lodash/isEqual'; -import * as React from 'react'; -import {useLocation} from 'react-router-dom'; -import styled, {css} from 'styled-components'; import {RunStatus, RunsFilter} from '../graphql/types'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {AnchorButton} from '../ui/AnchorButton'; - import {failedStatuses, inProgressStatuses, queuedStatuses} from './RunStatuses'; import {runsPathWithFilters, useQueryPersistedRunFilters} from './RunsFilterInput'; import {RunTabsCountQuery, RunTabsCountQueryVariables} from './types/RunListTabs.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunMetadataProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunMetadataProvider.tsx index 1b66258d52c20..c3027feee9bca 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunMetadataProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunMetadataProvider.tsx @@ -1,9 +1,8 @@ -import {gql} from '@apollo/client'; import * as React from 'react'; +import {gql} from '@apollo/client'; import {StepEventStatus} from '../graphql/types'; import {METADATA_ENTRY_FRAGMENT} from '../metadata/MetadataEntry'; - import {LogsProviderLogs} from './LogsProvider'; import {RunContext} from './RunContext'; import {RunFragment} from './types/RunFragments.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunRoot.tsx index c329494ce1890..db3682c63fb0c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunRoot.tsx @@ -1,8 +1,9 @@ -import {gql, useQuery} from '@apollo/client'; -import {Box, FontFamily, Heading, NonIdealState, PageHeader, Tag} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {useParams} from 'react-router-dom'; +import {Box, FontFamily, Heading, NonIdealState, PageHeader, Tag} from '@dagster-io/ui-components'; + import {useTrackPageView} from '../app/analytics'; import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; import {AutomaterializeTagWithEvaluation} from '../assets/AutomaterializeTagWithEvaluation'; @@ -12,8 +13,7 @@ import {PipelineReference} from '../pipelines/PipelineReference'; import {isThisThingAJob} from '../workspace/WorkspaceContext'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {useRepositoryForRunWithParentSnapshot} from '../workspace/useRepositoryForRun'; - -import {AssetKeyTagCollection, AssetCheckTagCollection} from './AssetTagCollections'; +import {AssetCheckTagCollection, AssetKeyTagCollection} from './AssetTagCollections'; import {Run} from './Run'; import {RUN_PAGE_FRAGMENT} from './RunFragments'; import {RunHeaderActions} from './RunHeaderActions'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunRow.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunRow.tsx index 27e08b9a08211..64d13e2449c80 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunRow.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunRow.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Button, @@ -11,9 +15,6 @@ import { Tag, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {ShortcutHandler} from '../app/ShortcutHandler'; import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; @@ -22,7 +23,6 @@ import {PipelineReference} from '../pipelines/PipelineReference'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {RepoAddress} from '../workspace/types'; import {useRepositoryForRunWithoutSnapshot} from '../workspace/useRepositoryForRun'; - import {AssetCheckTagCollection, AssetKeyTagCollection} from './AssetTagCollections'; import {CreatedByTagCell} from './CreatedByTag'; import {RunActionsMenu} from './RunActionsMenu'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunStats.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunStats.tsx index c3db8e835f190..86513d17e2f83 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunStats.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunStats.tsx @@ -1,12 +1,12 @@ -import {gql, useQuery} from '@apollo/client'; -import {Box, Spinner} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {Link} from 'react-router-dom'; import styled from 'styled-components'; +import {Box, Spinner} from '@dagster-io/ui-components'; + import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; - import {RunStatsQuery, RunStatsQueryVariables} from './types/RunStats.types'; export const RunStats = ({runId}: {runId: string}) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusDots.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusDots.tsx index 90e18e9947ebe..db125025c5b14 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusDots.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusDots.tsx @@ -1,9 +1,9 @@ -import {Popover, Spinner} from '@dagster-io/ui-components'; import * as React from 'react'; import styled, {css, keyframes} from 'styled-components'; -import {RunStatus} from '../graphql/types'; +import {Popover, Spinner} from '@dagster-io/ui-components'; +import {RunStatus} from '../graphql/types'; import {RunStats} from './RunStats'; import {RUN_STATUS_COLORS} from './RunStatusTag'; import {inProgressStatuses, queuedStatuses} from './RunStatuses'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusPez.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusPez.tsx index 6f5b6e78b2b5b..8dde51d158a54 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusPez.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusPez.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, FontFamily, @@ -6,13 +10,9 @@ import { colorKeylineDefault, colorTextDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {RunStatus} from '../graphql/types'; import {StepSummaryForRun} from '../instance/StepSummaryForRun'; - import {RunStatusIndicator} from './RunStatusDots'; import {RUN_STATUS_COLORS} from './RunStatusTag'; import {failedStatuses, inProgressStatuses} from './RunStatuses'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusTag.tsx index 122bea781c8c5..01e2f7c530028 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunStatusTag.tsx @@ -1,3 +1,5 @@ +import * as React from 'react'; + import { Box, CaptionMono, @@ -9,11 +11,9 @@ import { colorAccentGreen, colorAccentRed, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {assertUnreachable} from '../app/Util'; import {RunStatus} from '../graphql/types'; - import {RunStats} from './RunStats'; import {RunStatusIndicator} from './RunStatusDots'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTable.tsx index 17e1a1f08a99e..2af49b5356659 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTable.tsx @@ -1,4 +1,6 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; + import { Box, Checkbox, @@ -8,13 +10,11 @@ import { ProductTourPosition, Table, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {RunsFilter} from '../graphql/types'; import {useSelectionReducer} from '../hooks/useSelectionReducer'; import {useStateWithStorage} from '../hooks/useStateWithStorage'; import {AnchorButton} from '../ui/AnchorButton'; - import {RunBulkActionsMenu} from './RunActionsMenu'; import {RunRow} from './RunRow'; import {RUN_TIME_FRAGMENT} from './RunUtils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTag.tsx index 13ff5ca909893..c9e3a2d630b7b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTag.tsx @@ -1,7 +1,8 @@ -import {IconName, Tag} from '@dagster-io/ui-components'; import * as React from 'react'; import {Link} from 'react-router-dom'; +import {IconName, Tag} from '@dagster-io/ui-components'; + import {TagAction, TagActionsPopover} from '../ui/TagActions'; export enum DagsterTag { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTags.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTags.tsx index 3b41409083426..14ae5ce6ea63d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTags.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTags.tsx @@ -1,11 +1,11 @@ -import {Box} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box} from '@dagster-io/ui-components'; + import {showSharedToaster} from '../app/DomUtils'; import {useCopyToClipboard} from '../app/browser'; import {__ASSET_JOB_PREFIX} from '../asset-graph/Utils'; import {TagAction} from '../ui/TagActions'; - import {DagsterTag, RunTag, TagType} from './RunTag'; import {RunFilterToken} from './RunsFilterInput'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimeline.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimeline.tsx index 3fbb847b5bbee..ce05cccb56283 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimeline.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimeline.tsx @@ -1,26 +1,27 @@ +import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, - Popover, - Mono, FontFamily, - Tooltip, - Tag, Icon, - Spinner, MiddleTruncate, - useViewport, - colorKeylineDefault, - colorTextLighter, + Mono, + Popover, + Spinner, + Tag, + Tooltip, + colorAccentPrimary, colorAccentReversed, - colorTextDefault, colorBackgroundDefault, colorBackgroundDefaultHover, - colorAccentPrimary, + colorKeylineDefault, + colorTextDefault, + colorTextLighter, + useViewport, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {RunStatus} from '../graphql/types'; import {OVERVIEW_COLLAPSED_KEY} from '../overview/OverviewExpansionKey'; @@ -34,12 +35,11 @@ import {RepoRow} from '../workspace/VirtualizedWorkspaceTable'; import {repoAddressAsURLString} from '../workspace/repoAddressAsString'; import {repoAddressFromPath} from '../workspace/repoAddressFromPath'; import {RepoAddress} from '../workspace/types'; - import {SECTION_HEADER_HEIGHT} from './RepoSectionHeader'; import {RunStatusDot} from './RunStatusDots'; import {failedStatuses, inProgressStatuses, successStatuses} from './RunStatuses'; import {TimeElapsed} from './TimeElapsed'; -import {batchRunsForTimeline, RunBatch} from './batchRunsForTimeline'; +import {RunBatch, batchRunsForTimeline} from './batchRunsForTimeline'; import {mergeStatusToBackground} from './mergeStatusToBackground'; const ROW_HEIGHT = 32; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimingDetails.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimingDetails.tsx index 14cc370a0d41e..3a40d1c8e59b8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimingDetails.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimingDetails.tsx @@ -1,10 +1,10 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; + import {MetadataTable, colorTextLight} from '@dagster-io/ui-components'; -import * as React from 'react'; import {RunStatus} from '../graphql/types'; import {TimestampDisplay} from '../schedules/TimestampDisplay'; - import {TimeElapsed} from './TimeElapsed'; import {RunTimingFragment} from './types/RunTimingDetails.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimingTags.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimingTags.tsx index 39c5c0eed5052..ce9ea4b4d8a49 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimingTags.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunTimingTags.tsx @@ -1,9 +1,9 @@ -import {Box, Popover, Tag} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Popover, Tag} from '@dagster-io/ui-components'; + import {formatElapsedTimeWithoutMsec} from '../app/Util'; import {TimestampDisplay} from '../schedules/TimestampDisplay'; - import {RunTimingDetails} from './RunTimingDetails'; import {RunTimingFragment} from './types/RunTimingDetails.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunUtils.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunUtils.tsx index d0cd69918b049..a84e7380ab973 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunUtils.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunUtils.tsx @@ -1,7 +1,7 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; import {History} from 'history'; import qs from 'qs'; -import * as React from 'react'; import {Mono} from '../../../ui-components/src'; import {showCustomAlert} from '../app/CustomAlertProvider'; @@ -9,10 +9,9 @@ import {showSharedToaster} from '../app/DomUtils'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; import {Timestamp} from '../app/time/Timestamp'; -import {asAssetKeyInput, asAssetCheckHandleInput} from '../assets/asInput'; +import {asAssetCheckHandleInput, asAssetKeyInput} from '../assets/asInput'; import {AssetKey} from '../assets/types'; import {ExecutionParams, RunStatus} from '../graphql/types'; - import {DagsterTag} from './RunTag'; import {StepSelection} from './StepSelection'; import {TimeElapsed} from './TimeElapsed'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunsFilterInput.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunsFilterInput.tsx index 12ab6025ab24f..31d201ea7253a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunsFilterInput.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunsFilterInput.tsx @@ -1,18 +1,19 @@ -import {gql, useLazyQuery, useApolloClient} from '@apollo/client'; +import * as React from 'react'; +import {gql, useApolloClient, useLazyQuery} from '@apollo/client'; +import memoize from 'lodash/memoize'; +import qs from 'qs'; + import { - TokenizingFieldValue, - tokensAsStringArray, - tokenizedValuesFromStringArray, Box, Icon, + TokenizingFieldValue, + tokenizedValuesFromStringArray, + tokensAsStringArray, } from '@dagster-io/ui-components'; -import memoize from 'lodash/memoize'; -import qs from 'qs'; -import * as React from 'react'; import {COMMON_COLLATOR} from '../app/Util'; import {__ASSET_JOB_PREFIX} from '../asset-graph/Utils'; -import {RunsFilter, RunStatus} from '../graphql/types'; +import {RunStatus, RunsFilter} from '../graphql/types'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; import {useLaunchPadHooks} from '../launchpad/LaunchpadHooksContext'; import {TruncatedTextWithFullTextOnHover} from '../nav/getLeftNavItemsForOption'; @@ -22,7 +23,6 @@ import {capitalizeFirstLetter, useStaticSetFilter} from '../ui/Filters/useStatic import {SuggestionFilterSuggestion, useSuggestionFilter} from '../ui/Filters/useSuggestionFilter'; import {TimeRangeState, useTimeRangeFilter} from '../ui/Filters/useTimeRangeFilter'; import {useRepositoryOptions} from '../workspace/WorkspaceContext'; - import {DagsterTag} from './RunTag'; import { RunTagKeysQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/RunsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/RunsRoot.tsx index d648cd1dc1a91..31c2d71c61436 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/RunsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/RunsRoot.tsx @@ -1,4 +1,7 @@ +import * as React from 'react'; import {ApolloError, gql} from '@apollo/client'; +import partition from 'lodash/partition'; + import { Box, ButtonLink, @@ -9,8 +12,6 @@ import { PageHeader, tokenToString, } from '@dagster-io/ui-components'; -import partition from 'lodash/partition'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import { @@ -24,7 +25,6 @@ import {usePortalSlot} from '../hooks/usePortalSlot'; import {useStartTrace} from '../performance'; import {Loading} from '../ui/Loading'; import {StickyTableContainer} from '../ui/StickyTableContainer'; - import {QueuedRunsBanners} from './QueuedRunsBanners'; import {useRunListTabs, useSelectedRunsTab} from './RunListTabs'; import {inProgressStatuses, queuedStatuses} from './RunStatuses'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/ScheduledRunListRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/ScheduledRunListRoot.tsx index 251a1fce2af08..d5dcd01b0f75d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/ScheduledRunListRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/ScheduledRunListRoot.tsx @@ -1,15 +1,16 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { - Page, Alert, + Box, ButtonLink, Group, - Box, - PageHeader, Heading, + Page, + PageHeader, colorLinkDefault, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -28,7 +29,6 @@ import { SchedulesNextTicks, } from '../schedules/SchedulesNextTicks'; import {Loading} from '../ui/Loading'; - import {useRunListTabs} from './RunListTabs'; import { ScheduledRunsListQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/StepLogsDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/StepLogsDialog.tsx index cf96488902784..6d6fc470c95ac 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/StepLogsDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/StepLogsDialog.tsx @@ -1,3 +1,7 @@ +import React, {useState} from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Button, @@ -9,13 +13,9 @@ import { colorBackgroundDefault, colorLinkDefault, } from '@dagster-io/ui-components'; -import React, {useState} from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {DagsterEventType} from '../graphql/types'; import {useSupportsCapturedLogs} from '../instance/useSupportsCapturedLogs'; - import {CapturedOrExternalLogPanel} from './CapturedLogPanel'; import {ComputeLogPanel} from './ComputeLogPanel'; import {DefaultLogLevels} from './LogLevel'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/TerminateAllRunsButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/TerminateAllRunsButton.tsx index df726248cb196..ba5926590b47d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/TerminateAllRunsButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/TerminateAllRunsButton.tsx @@ -1,10 +1,10 @@ import {gql, useApolloClient} from '@apollo/client'; -import {Button} from '@dagster-io/ui-components'; import isEqual from 'lodash/isEqual'; import React from 'react'; -import {RunsFilter} from '../graphql/types'; +import {Button} from '@dagster-io/ui-components'; +import {RunsFilter} from '../graphql/types'; import {queuedStatuses} from './RunStatuses'; import {TerminationDialog} from './TerminationDialog'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/TerminationDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/TerminationDialog.tsx index 858e7669088b8..447031de82d92 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/TerminationDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/TerminationDialog.tsx @@ -1,26 +1,26 @@ +import * as React from 'react'; import {useMutation} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {ProgressBar} from '@blueprintjs/core'; +import chunk from 'lodash/chunk'; + import { Box, Button, Checkbox, + Dialog, DialogBody, DialogFooter, - Dialog, Group, Icon, Mono, - colorAccentYellow, colorAccentGreen, + colorAccentYellow, } from '@dagster-io/ui-components'; -import chunk from 'lodash/chunk'; -import * as React from 'react'; import {getSharedToaster} from '../app/DomUtils'; import {TerminateRunPolicy} from '../graphql/types'; import {testId} from '../testing/testId'; - import {NavigationBlock} from './NavigationBlock'; import {TERMINATE_MUTATION} from './RunUtils'; import {TerminateMutation, TerminateMutationVariables} from './types/RunUtils.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/TickTagForRun.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/TickTagForRun.tsx index e7b6798eeed49..ec8ab1c3a99a1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/TickTagForRun.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/TickTagForRun.tsx @@ -1,9 +1,9 @@ -import {ButtonLink, MiddleTruncate, Tag} from '@dagster-io/ui-components'; import * as React from 'react'; +import {ButtonLink, MiddleTruncate, Tag} from '@dagster-io/ui-components'; + import {InstigationSelector} from '../graphql/types'; import {TickDetailsDialog} from '../instigation/TickDetailsDialog'; - import {DagsterTag} from './RunTag'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/TimeElapsed.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/TimeElapsed.tsx index 2584bfb2ae2e4..3ba24e633a6d2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/TimeElapsed.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/TimeElapsed.tsx @@ -1,6 +1,7 @@ -import {Group, Icon, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Group, Icon, colorTextLight} from '@dagster-io/ui-components'; + import {formatElapsedTimeWithMsec, formatElapsedTimeWithoutMsec} from '../app/Util'; export interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/UserDisplay.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/UserDisplay.tsx index 26012db7d7f97..25421a29e3ea6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/UserDisplay.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/UserDisplay.tsx @@ -1,6 +1,7 @@ -import {BaseTag, Box, SubwayDot} from '@dagster-io/ui-components'; import React from 'react'; +import {BaseTag, Box, SubwayDot} from '@dagster-io/ui-components'; + type Props = { email: string; isFilter?: boolean; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__fixtures__/RunsRoot.fixtures.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__fixtures__/RunsRoot.fixtures.tsx index 62a8605610d6b..799ed0b2b67bb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__fixtures__/RunsRoot.fixtures.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__fixtures__/RunsRoot.fixtures.tsx @@ -1,5 +1,5 @@ import {buildQueryMock} from '../../assets/AutoMaterializePolicyPage/__fixtures__/AutoMaterializePolicyPage.fixtures'; -import {buildRuns, buildRun, buildPipelineTag} from '../../graphql/types'; +import {buildPipelineTag, buildRun, buildRuns} from '../../graphql/types'; import {DagsterTag} from '../RunTag'; import {RUNS_ROOT_QUERY} from '../RunsRoot'; import {RunsRootQuery, RunsRootQueryVariables} from '../types/RunsRoot.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/CreatedByTag.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/CreatedByTag.stories.tsx index f3010619ebc59..ae2aa7e9ae973 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/CreatedByTag.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/CreatedByTag.stories.tsx @@ -1,6 +1,7 @@ -import {MetadataTableWIP} from '@dagster-io/ui-components'; -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; + +import {MetadataTableWIP} from '@dagster-io/ui-components'; import {buildPipelineTag} from '../../graphql/types'; import {CreatedByTag} from '../CreatedByTag'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/DeletionDialog.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/DeletionDialog.stories.tsx index ba7452699e82b..37e1e95f7c1ec 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/DeletionDialog.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/DeletionDialog.stories.tsx @@ -1,6 +1,6 @@ -import {Story, Meta} from '@storybook/react'; -import faker from 'faker'; import * as React from 'react'; +import {Meta, Story} from '@storybook/react'; +import faker from 'faker'; import {StorybookProvider} from '../../testing/StorybookProvider'; import {DeletionDialog, Props as DeletionDialogProps} from '../DeletionDialog'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/LogFilterSelect.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/LogFilterSelect.stories.tsx index 70a4404f89a98..29672ff5f635c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/LogFilterSelect.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/LogFilterSelect.stories.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {Meta} from '@storybook/react'; import faker from 'faker'; -import * as React from 'react'; import {FilterOption, LogFilterSelect} from '../LogFilterSelect'; import {LogLevel} from '../LogLevel'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunStatus.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunStatus.stories.tsx index 3c36645faa6a1..4d62df915f378 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunStatus.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunStatus.stories.tsx @@ -1,6 +1,7 @@ -import {Box, MetadataTable} from '@dagster-io/ui-components'; -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; + +import {Box, MetadataTable} from '@dagster-io/ui-components'; import {RunStatus} from '../../graphql/types'; import {RunStatusIndicator} from '../RunStatusDots'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunStatusPez.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunStatusPez.stories.tsx index 338710375036c..62436534d6a90 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunStatusPez.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunStatusPez.stories.tsx @@ -1,7 +1,8 @@ -import {Box, MetadataTable} from '@dagster-io/ui-components'; +import * as React from 'react'; import {Meta} from '@storybook/react'; import faker from 'faker'; -import * as React from 'react'; + +import {Box, MetadataTable} from '@dagster-io/ui-components'; import {RunStatus} from '../../graphql/types'; import {StorybookProvider} from '../../testing/StorybookProvider'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunTimeline.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunTimeline.stories.tsx index 8058bfa155908..88a63307059c5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunTimeline.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/RunTimeline.stories.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {Meta} from '@storybook/react'; import faker from 'faker'; -import * as React from 'react'; import {RunStatus} from '../../graphql/types'; import {RunTimeline, TimelineJob} from '../../runs/RunTimeline'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/TerminationDialog.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/TerminationDialog.stories.tsx index dadd08ccdf0f8..97c336d54ce7f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/TerminationDialog.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/TerminationDialog.stories.tsx @@ -1,6 +1,6 @@ -import {Story, Meta} from '@storybook/react'; -import faker from 'faker'; import * as React from 'react'; +import {Meta, Story} from '@storybook/react'; +import faker from 'faker'; import {StorybookProvider} from '../../testing/StorybookProvider'; import {TerminationDialog, Props as TerminationDialogProps} from '../TerminationDialog'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/TimeElapsed.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/TimeElapsed.stories.tsx index f52da2e521dc9..a96332bab5e33 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/TimeElapsed.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__stories__/TimeElapsed.stories.tsx @@ -1,7 +1,7 @@ -import {Story, Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta, Story} from '@storybook/react'; -import {TimeElapsed, Props} from '../TimeElapsed'; +import {Props, TimeElapsed} from '../TimeElapsed'; // eslint-disable-next-line import/no-default-export export default { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/AssetKeyTagCollection.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/AssetKeyTagCollection.test.tsx index 590ac7d5a34e8..ee74d28e2892a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/AssetKeyTagCollection.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/AssetKeyTagCollection.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {act, render, screen} from '@testing-library/react'; import faker from 'faker'; -import * as React from 'react'; import {MemoryRouter} from 'react-router-dom'; import {displayNameForAssetKey} from '../../asset-graph/Utils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/ReexecutionDialog.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/ReexecutionDialog.test.tsx index 951e5fe27c2eb..4a4c4b22734d4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/ReexecutionDialog.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/ReexecutionDialog.test.tsx @@ -1,7 +1,7 @@ +import * as React from 'react'; import {MockedProvider, MockedResponse} from '@apollo/client/testing'; import {render, screen, waitFor, within} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {MemoryRouter} from 'react-router-dom'; import {ReexecutionStrategy} from '../../graphql/types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunActionButtons.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunActionButtons.test.tsx index af519d251c9c3..ee4ee1567de52 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunActionButtons.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunActionButtons.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen} from '@testing-library/react'; -import * as React from 'react'; import {MemoryRouter} from 'react-router-dom'; import {RunStatus, buildRun} from '../../graphql/types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunActionsMenu.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunActionsMenu.test.tsx index c20540b544690..fc91466f0bd04 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunActionsMenu.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunActionsMenu.test.tsx @@ -1,7 +1,7 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {MemoryRouter} from 'react-router-dom'; import {WorkspaceProvider} from '../../workspace/WorkspaceContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunFilterInput.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunFilterInput.test.tsx index ac97988fe3b85..50596ed502d7c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunFilterInput.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunFilterInput.test.tsx @@ -1,4 +1,4 @@ -import {MockedResponse, MockedProvider} from '@apollo/client/testing'; +import {MockedProvider, MockedResponse} from '@apollo/client/testing'; import {act, render, waitFor} from '@testing-library/react'; import {renderHook} from '@testing-library/react-hooks'; import userEvent from '@testing-library/user-event'; @@ -16,12 +16,12 @@ import {calculateTimeRanges} from '../../ui/Filters/useTimeRangeFilter'; import {WorkspaceProvider} from '../../workspace/WorkspaceContext'; import {DagsterTag} from '../RunTag'; import { - RunsFilterInputProps, RUN_TAG_KEYS_QUERY, + RunFilterToken, + RunsFilterInputProps, tagSuggestionValueObject, tagValueToFilterObject, useRunsFilterInput, - RunFilterToken, useTagDataFilterValues, } from '../RunsFilterInput'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunTimingDetails.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunTimingDetails.test.tsx index d004708f33382..e34304306d2e9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunTimingDetails.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/RunTimingDetails.test.tsx @@ -1,5 +1,5 @@ -import {render, screen} from '@testing-library/react'; import * as React from 'react'; +import {render, screen} from '@testing-library/react'; import {TimeProvider} from '../../app/time/TimeContext'; import {RunStatus, buildRun} from '../../graphql/types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/TerminationDialog.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/TerminationDialog.test.tsx index 12fb40387bbe9..2bfb47ee12a63 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/TerminationDialog.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/TerminationDialog.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {MockedProvider, MockedResponse} from '@apollo/client/testing'; import {render, screen, waitFor} from '@testing-library/react'; -import * as React from 'react'; import {MemoryRouter} from 'react-router'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/batchRunsForTimeline.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/batchRunsForTimeline.test.tsx index be8c8646f097a..8635a9a53364a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/batchRunsForTimeline.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/batchRunsForTimeline.test.tsx @@ -1,4 +1,4 @@ -import {batchRunsForTimeline, RunWithTime} from '../batchRunsForTimeline'; +import {RunWithTime, batchRunsForTimeline} from '../batchRunsForTimeline'; describe('batchRunsForTimeline', () => { const start = 0; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/types/RunActionButtonsTestQuery.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/types/RunActionButtonsTestQuery.types.ts index 4e805d4313d76..1836ed449084c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/types/RunActionButtonsTestQuery.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/types/RunActionButtonsTestQuery.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../../graphql/types'; export type RunActionButtonsTestQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/useQueryPersistedLogFilter.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/useQueryPersistedLogFilter.test.tsx index de531d57d6985..786ff9499d78c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/useQueryPersistedLogFilter.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/__tests__/useQueryPersistedLogFilter.test.tsx @@ -1,13 +1,13 @@ -import {render} from '@testing-library/react'; import * as React from 'react'; +import {render} from '@testing-library/react'; import {useQueryPersistedState} from '../../hooks/useQueryPersistedState'; import { DefaultQuerystring, + EnabledRunLogLevelsKey, decodeRunPageFilters, encodeRunPageFilters, useQueryPersistedLogFilter, - EnabledRunLogLevelsKey, } from '../useQueryPersistedLogFilter'; jest.mock('../../hooks/useQueryPersistedState', () => ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/mergeStatusToBackground.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/mergeStatusToBackground.tsx index c3c9a803684c7..cc51d635c5c63 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/mergeStatusToBackground.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/mergeStatusToBackground.tsx @@ -5,7 +5,7 @@ import { colorBackgroundDisabled, } from '@dagster-io/ui-components'; -import {queuedStatuses, inProgressStatuses, failedStatuses, successStatuses} from './RunStatuses'; +import {failedStatuses, inProgressStatuses, queuedStatuses, successStatuses} from './RunStatuses'; import {TimelineRun} from './RunTimeline'; type BackgroundStatus = 'inProgress' | 'queued' | 'failed' | 'succeeded' | 'scheduled'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/CapturedLogPanel.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/CapturedLogPanel.types.ts index c00858ce9fdfb..2d625c6df2cc4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/CapturedLogPanel.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/CapturedLogPanel.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type CapturedLogsSubscriptionVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsProvider.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsProvider.types.ts index 5a514f28df68f..be0c5d02f9a7b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsProvider.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsProvider.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PipelineRunLogsSubscriptionVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsRow.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsRow.types.ts index 64a195015a766..bca17a11b9888 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsRow.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsRow.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type LogsRowStructuredFragment_AlertFailureEvent_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsScrollingTable.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsScrollingTable.types.ts index bd0bde4ad4698..4559cc48e1c2f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsScrollingTable.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/LogsScrollingTable.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type LogsScrollingTableMessageFragment_AlertFailureEvent_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/QueuedRunsBanners.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/QueuedRunsBanners.types.ts index b636ab4b31595..6289ae828bec7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/QueuedRunsBanners.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/QueuedRunsBanners.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type QueueDaemonStatusQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunActionsMenu.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunActionsMenu.types.ts index fcaf0c3814a0d..6bae08ea8c6be 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunActionsMenu.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunActionsMenu.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PipelineEnvironmentQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunFragments.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunFragments.types.ts index 535bd9095cba3..b8396e1fbb3c5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunFragments.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunFragments.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunListTabs.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunListTabs.types.ts index ae62969222cc7..c074eba69e1be 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunListTabs.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunListTabs.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunTabsCountQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunMetadataProvider.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunMetadataProvider.types.ts index c3c6add201ac4..c51f19b66a6d5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunMetadataProvider.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunMetadataProvider.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunMetadataProviderMessageFragment_AlertFailureEvent_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunRoot.types.ts index 1eb5cfea5bea0..af4936b5b5830 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunRootQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunStats.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunStats.types.ts index 5d0be14bbc088..9350b1b1887c2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunStats.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunStats.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunStatsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTable.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTable.types.ts index ca2975cacf205..f54ec05863d93 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTable.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTable.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunTagsFragment = {__typename: 'PipelineTag'; key: string; value: string}; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTimingDetails.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTimingDetails.types.ts index 38fb1b89144fc..5f7b524af6739 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTimingDetails.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunTimingDetails.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunTimingFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunUtils.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunUtils.types.ts index 0ed5591c9e09d..6105977bfdaac 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunUtils.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunUtils.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type LaunchPipelineExecutionMutationVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFilterInput.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFilterInput.types.ts index aba311283d2fa..dc97aec44e32d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFilterInput.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsFilterInput.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunTagKeysQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsRoot.types.ts index 5b2746223d21b..5c1960656d01f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/RunsRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunsRootQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/ScheduledRunListRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/ScheduledRunListRoot.types.ts index d575cc22eb13a..faf6ea1465896 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/ScheduledRunListRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/ScheduledRunListRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ScheduledRunsListQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/TerminateAllRunsButton.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/TerminateAllRunsButton.types.ts index 0f22efce5f7df..020a0539ca072 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/TerminateAllRunsButton.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/TerminateAllRunsButton.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type TerminateRunIdsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/useComputeLogs.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/useComputeLogs.types.ts index da9b6910c6477..1658291f96c81 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/useComputeLogs.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/useComputeLogs.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ComputeLogsSubscriptionVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/types/useRunsForTimeline.types.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/types/useRunsForTimeline.types.ts index b8d361d6716a9..0821fac4fc4de 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/types/useRunsForTimeline.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/types/useRunsForTimeline.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunTimelineQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/useComputeLogFileKeyForSelection.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/useComputeLogFileKeyForSelection.tsx index 64e0db284d804..67731ceacbe76 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/useComputeLogFileKeyForSelection.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/useComputeLogFileKeyForSelection.tsx @@ -1,8 +1,7 @@ import React from 'react'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; - -import {IRunMetadataDict, ILogCaptureInfo} from './RunMetadataProvider'; +import {ILogCaptureInfo, IRunMetadataDict} from './RunMetadataProvider'; export const matchingComputeLogKeyFromStepKey = ( logCaptureSteps: {[fileKey: string]: ILogCaptureInfo} | undefined, diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/useComputeLogs.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/useComputeLogs.tsx index c486d59036533..0967ca4e3ce9a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/useComputeLogs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/useComputeLogs.tsx @@ -1,8 +1,7 @@ -import {gql, useSubscription} from '@apollo/client'; import * as React from 'react'; +import {gql, useSubscription} from '@apollo/client'; import {ComputeIoType} from '../graphql/types'; - import { ComputeLogForSubscriptionFragment, ComputeLogsSubscription, diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/useCursorPaginatedQuery.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/useCursorPaginatedQuery.tsx index dac8c2741d71e..ef64b9e4f1e2e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/useCursorPaginatedQuery.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/useCursorPaginatedQuery.tsx @@ -1,7 +1,8 @@ +import * as React from 'react'; import {useQuery} from '@apollo/client'; -import {CursorPaginationProps} from '@dagster-io/ui-components'; import {DocumentNode} from 'graphql'; -import * as React from 'react'; + +import {CursorPaginationProps} from '@dagster-io/ui-components'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/useJobAvailabilityErrorForRun.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/useJobAvailabilityErrorForRun.tsx index a738b296ee2ef..95773c791d595 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/useJobAvailabilityErrorForRun.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/useJobAvailabilityErrorForRun.tsx @@ -1,6 +1,7 @@ -import {Group, IconName} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Group, IconName} from '@dagster-io/ui-components'; + import {buildRepoAddress, buildRepoPathForHuman} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/useJobReExecution.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/useJobReExecution.tsx index 26abce449145e..4c96908e835c4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/useJobReExecution.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/useJobReExecution.tsx @@ -1,11 +1,10 @@ -import {useMutation} from '@apollo/client'; import * as React from 'react'; +import {useMutation} from '@apollo/client'; import {useHistory} from 'react-router-dom'; import {ExecutionParams, ReexecutionStrategy} from '../graphql/types'; import {showLaunchError} from '../launchpad/showLaunchError'; - -import {handleLaunchResult, LAUNCH_PIPELINE_REEXECUTION_MUTATION} from './RunUtils'; +import {LAUNCH_PIPELINE_REEXECUTION_MUTATION, handleLaunchResult} from './RunUtils'; import { LaunchPipelineReexecutionMutation, LaunchPipelineReexecutionMutationVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/useQueryPersistedLogFilter.ts b/js_modules/dagster-ui/packages/ui-core/src/runs/useQueryPersistedLogFilter.ts index 5ec9862d6abe8..5364463094ba9 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/useQueryPersistedLogFilter.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/useQueryPersistedLogFilter.ts @@ -1,9 +1,9 @@ -import {tokenizedValueFromString} from '@dagster-io/ui-components'; import * as React from 'react'; +import {tokenizedValueFromString} from '@dagster-io/ui-components'; + import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; import {useStateWithStorage} from '../hooks/useStateWithStorage'; - import {DefaultLogLevels, LogLevel} from './LogLevel'; import {LogFilter} from './LogsProvider'; import {getRunFilterProviders} from './getRunFilterProviders'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/useRunsForTimeline.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/useRunsForTimeline.tsx index c491028db0815..f35698c429e83 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/useRunsForTimeline.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/useRunsForTimeline.tsx @@ -1,14 +1,13 @@ -import {gql, useQuery} from '@apollo/client'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; -import {isHiddenAssetGroupJob, __ASSET_JOB_PREFIX} from '../asset-graph/Utils'; -import {InstigationStatus, RunsFilter, RunStatus} from '../graphql/types'; +import {__ASSET_JOB_PREFIX, isHiddenAssetGroupJob} from '../asset-graph/Utils'; +import {InstigationStatus, RunStatus, RunsFilter} from '../graphql/types'; import {SCHEDULE_FUTURE_TICKS_FRAGMENT} from '../instance/NextTick'; import {buildRepoAddress} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; import {workspacePipelinePath} from '../workspace/workspacePath'; - import {doneStatuses} from './RunStatuses'; import {TimelineJob, TimelineRun} from './RunTimeline'; import {RUN_TIME_FRAGMENT} from './RunUtils'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/runs/useTagPinning.tsx b/js_modules/dagster-ui/packages/ui-core/src/runs/useTagPinning.tsx index 68ca9368a5386..8339d8ac5970a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/runs/useTagPinning.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/runs/useTagPinning.tsx @@ -1,7 +1,6 @@ import React from 'react'; import {useStateWithStorage} from '../hooks/useStateWithStorage'; - import {DagsterTag} from './RunTag'; export function useTagPinning() { diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleBulkActionMenu.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleBulkActionMenu.tsx index 145c679b80895..690e83c16f9ff 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleBulkActionMenu.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleBulkActionMenu.tsx @@ -1,9 +1,9 @@ -import {Button, Icon, Menu, MenuItem, Popover} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Button, Icon, Menu, MenuItem, Popover} from '@dagster-io/ui-components'; + import {instigationStateSummary} from '../instigation/instigationStateSummary'; import {OpenWithIntent} from '../instigation/useInstigationStateReducer'; - import {ScheduleInfo, ScheduleStateChangeDialog} from './ScheduleStateChangeDialog'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleDetails.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleDetails.tsx index c2ed238a9c354..78cce146b4ad0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleDetails.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleDetails.tsx @@ -1,19 +1,20 @@ +import * as React from 'react'; + import { Box, + Button, ButtonLink, + Code, Group, + Heading, MetadataTableWIP, + Mono, PageHeader, Tag, - Code, - Heading, - Mono, Tooltip, - Button, - colorTextLight, colorTextDefault, + colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {QueryRefreshCountdown, QueryRefreshState} from '../app/QueryRefresh'; import {useCopyToClipboard} from '../app/browser'; @@ -24,7 +25,6 @@ import {EvaluateScheduleDialog} from '../ticks/EvaluateScheduleDialog'; import {TickStatusTag} from '../ticks/TickStatusTag'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; - import {SchedulePartitionStatus} from './SchedulePartitionStatus'; import {ScheduleSwitch} from './ScheduleSwitch'; import {TimestampDisplay} from './TimestampDisplay'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleMutations.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleMutations.tsx index d23d418037b67..577ccd323a201 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleMutations.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleMutations.tsx @@ -1,10 +1,9 @@ -import {gql} from '@apollo/client'; import * as React from 'react'; +import {gql} from '@apollo/client'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; - import {StartThisScheduleMutation, StopScheduleMutation} from './types/ScheduleMutations.types'; export const START_SCHEDULE_MUTATION = gql` diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulePartitionStatus.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulePartitionStatus.tsx index 42fb720d6ff68..b4e5e29edd780 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulePartitionStatus.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulePartitionStatus.tsx @@ -1,15 +1,16 @@ +import * as React from 'react'; import {gql, useLazyQuery} from '@apollo/client'; +import qs from 'qs'; +import {Link} from 'react-router-dom'; + import { ButtonLink, - Group, Caption, - colorTextLight, + Group, colorTextDefault, + colorTextLight, colorTextRed, } from '@dagster-io/ui-components'; -import qs from 'qs'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; import {assertUnreachable} from '../app/Util'; import {RunStatus} from '../graphql/types'; @@ -17,7 +18,6 @@ import {StatusTable} from '../instigation/InstigationUtils'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import { SchedulePartitionStatusFragment, SchedulePartitionStatusQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleRoot.tsx index 5090ea1a299aa..17a6cb7661b85 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleRoot.tsx @@ -1,21 +1,21 @@ -import {gql, useQuery} from '@apollo/client'; -import {Tabs, Tab, Page, NonIdealState} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {useParams} from 'react-router-dom'; +import {NonIdealState, Page, Tab, Tabs} from '@dagster-io/ui-components'; + import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {INSTANCE_HEALTH_FRAGMENT} from '../instance/InstanceHealthFragment'; import {TicksTable} from '../instigation/TickHistory'; -import {RunTable, RUN_TABLE_RUN_FRAGMENT} from '../runs/RunTable'; +import {RUN_TABLE_RUN_FRAGMENT, RunTable} from '../runs/RunTable'; import {DagsterTag} from '../runs/RunTag'; import {Loading} from '../ui/Loading'; import {repoAddressAsTag} from '../workspace/repoAddressAsString'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import {ScheduleDetails} from './ScheduleDetails'; import {SCHEDULE_FRAGMENT} from './ScheduleUtils'; import {SchedulerInfo} from './SchedulerInfo'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleStateChangeDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleStateChangeDialog.tsx index 9dd9534dd24bc..be4129d464463 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleStateChangeDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleStateChangeDialog.tsx @@ -1,17 +1,18 @@ +import * as React from 'react'; import {useMutation} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {ProgressBar} from '@blueprintjs/core'; + import { Button, + Dialog, DialogBody, DialogFooter, - Dialog, Group, Icon, colorAccentGreen, colorAccentYellow, } from '@dagster-io/ui-components'; -import * as React from 'react'; import { OpenWithIntent, @@ -20,7 +21,6 @@ import { import {BasicInstigationStateFragment} from '../overview/types/BasicInstigationStateFragment.types'; import {NavigationBlock} from '../runs/NavigationBlock'; import {RepoAddress} from '../workspace/types'; - import {START_SCHEDULE_MUTATION, STOP_SCHEDULE_MUTATION} from './ScheduleMutations'; import { StartThisScheduleMutation, diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleSwitch.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleSwitch.tsx index 1f20549e49965..0099d72d19914 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleSwitch.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/ScheduleSwitch.tsx @@ -1,16 +1,16 @@ +import * as React from 'react'; import {gql, useMutation} from '@apollo/client'; + import {Checkbox, Tooltip} from '@dagster-io/ui-components'; -import * as React from 'react'; import {usePermissionsForLocation} from '../app/Permissions'; import {InstigationStatus} from '../graphql/types'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import { - displayScheduleMutationErrors, START_SCHEDULE_MUTATION, STOP_SCHEDULE_MUTATION, + displayScheduleMutationErrors, } from './ScheduleMutations'; import { StartThisScheduleMutation, diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulerInfo.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulerInfo.tsx index d3d02ed578b7a..a410eae12fa21 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulerInfo.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulerInfo.tsx @@ -1,6 +1,7 @@ -import {Alert, Box} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Alert, Box} from '@dagster-io/ui-components'; + import {DaemonHealthFragment} from '../instance/types/DaemonList.types'; type Props = React.ComponentPropsWithRef & { diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulesNextTicks.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulesNextTicks.tsx index 926f448e315ad..cd709f75fc3e0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulesNextTicks.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulesNextTicks.tsx @@ -1,30 +1,31 @@ +import * as React from 'react'; import {gql, useLazyQuery} from '@apollo/client'; +import qs from 'qs'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Button, ButtonLink, + Dialog, DialogBody, DialogFooter, - Dialog, + ExternalAnchorButton, Group, Icon, - MenuItem, Menu, + MenuItem, NonIdealState, Popover, Spinner, - Table, - Subheading, - ExternalAnchorButton, StyledRawCodeMirror, - colorTextLight, + Subheading, + Table, colorAccentYellow, colorBackgroundYellow, + colorTextLight, } from '@dagster-io/ui-components'; -import qs from 'qs'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {showSharedToaster} from '../app/DomUtils'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; @@ -43,7 +44,6 @@ import { import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {TimestampDisplay} from './TimestampDisplay'; import { RepositoryForNextTicksFragment, diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulesTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulesTable.tsx index 7280f5bf9a567..aefd68a0d2c7d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulesTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/SchedulesTable.tsx @@ -1,6 +1,7 @@ -import {Box, Popover, Tag} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Popover, Tag} from '@dagster-io/ui-components'; + import {InstigationStatus} from '../graphql/types'; export const errorDisplay = (status: InstigationStatus, runningScheduleCount: number) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/TimestampDisplay.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/TimestampDisplay.tsx index 646c86fac78b9..970fef761c297 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/TimestampDisplay.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/TimestampDisplay.tsx @@ -1,7 +1,8 @@ -import {Icon, Tooltip, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {Icon, Tooltip, colorTextLight} from '@dagster-io/ui-components'; + import {TimeContext} from '../app/time/TimeContext'; import {DEFAULT_TIME_FORMAT, TimeFormat} from '../app/time/TimestampFormat'; import {timestampToString} from '../app/time/timestampToString'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/__tests__/ScheduleBulkActionMenu.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/__tests__/ScheduleBulkActionMenu.test.tsx index ab52c62dde436..052d43255595d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/__tests__/ScheduleBulkActionMenu.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/__tests__/ScheduleBulkActionMenu.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {ScheduleBulkActionMenu} from '../ScheduleBulkActionMenu'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/__tests__/ScheduleStateChangeDialog.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/schedules/__tests__/ScheduleStateChangeDialog.test.tsx index b49ab4d8378ac..8f84f51944f84 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/__tests__/ScheduleStateChangeDialog.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/__tests__/ScheduleStateChangeDialog.test.tsx @@ -1,16 +1,16 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {ScheduleStateChangeDialog} from '../ScheduleStateChangeDialog'; import { - buildStopDelawareSuccess, - buildStopHawaiiError, - buildStopHawaiiSuccess, buildStartAlaskaSuccess, buildStartColoradoError, buildStartColoradoSuccess, + buildStopDelawareSuccess, + buildStopHawaiiError, + buildStopHawaiiSuccess, scheduleAlaskaCurrentlyStopped, scheduleColoradoCurrentlyStopped, scheduleDelawareCurrentlyRunning, diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleMutations.types.ts b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleMutations.types.ts index befeb8419c8ae..d0ebfd7b18230 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleMutations.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleMutations.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type StartThisScheduleMutationVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/SchedulePartitionStatus.types.ts b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/SchedulePartitionStatus.types.ts index 75393e33d221f..fe1e246f09e24 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/SchedulePartitionStatus.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/SchedulePartitionStatus.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SchedulePartitionStatusQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleRoot.types.ts index 43a4edacbf282..e57376adb5505 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ScheduleRootQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleSwitch.types.ts b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleSwitch.types.ts index 15492e04cc34e..f589b91a65f55 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleSwitch.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleSwitch.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ScheduleSwitchFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleUtils.types.ts b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleUtils.types.ts index 634bf86f9f05b..bbe6b16e87a50 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleUtils.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/ScheduleUtils.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ScheduleFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/SchedulesNextTicks.types.ts b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/SchedulesNextTicks.types.ts index 542bb65049738..b84aed72be896 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/schedules/types/SchedulesNextTicks.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/schedules/types/SchedulesNextTicks.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ScheduleNextFiveTicksFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/scripts/DownloadMocks.ts b/js_modules/dagster-ui/packages/ui-core/src/scripts/DownloadMocks.ts index 5a776d73e231d..ea565528d8136 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/scripts/DownloadMocks.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/scripts/DownloadMocks.ts @@ -1,9 +1,8 @@ +import {addTypenameToDocument} from '@apollo/client/utilities'; import {execSync} from 'child_process'; import fs from 'fs'; -import path from 'path'; - -import {addTypenameToDocument} from '@apollo/client/utilities'; import {print} from 'graphql/language/printer'; +import path from 'path'; /** * Why is this script structured as a Jest test? Jest goes to great lengths to @@ -12,7 +11,6 @@ import {print} from 'graphql/language/printer'; * the query objects), etc. We could set all this up (new tsconfig, jsdom, etc.) but * leveraging Jest is easiest. */ - // collect mocks from various tests in the codebase import {MOCKS as SVGMocks} from '../testing/SVGMocks'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/scripts/generateGraphQLTypes.ts b/js_modules/dagster-ui/packages/ui-core/src/scripts/generateGraphQLTypes.ts index 497b3dccd9c84..048000d9ee355 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/scripts/generateGraphQLTypes.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/scripts/generateGraphQLTypes.ts @@ -1,6 +1,5 @@ import {execSync} from 'child_process'; import {writeFileSync} from 'fs'; - import {buildClientSchema, getIntrospectionQuery, printSchema} from 'graphql'; console.log('Downloading schema…'); diff --git a/js_modules/dagster-ui/packages/ui-core/src/search/SearchDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/search/SearchDialog.tsx index de40de34a992b..50c8fb5582aec 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/search/SearchDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/search/SearchDialog.tsx @@ -1,31 +1,31 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import {Overlay} from '@blueprintjs/core'; +import Fuse from 'fuse.js'; +import debounce from 'lodash/debounce'; +import {useHistory, useLocation} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, + FontFamily, Icon, Spinner, - FontFamily, colorAccentGray, - colorTextLight, - colorTextLighter, colorBackgroundDefault, - colorKeylineDefault, colorDialogBackground, + colorFocusRing, + colorKeylineDefault, colorNavButton, colorNavButtonHover, - colorShadowDefault, colorNavTextHover, - colorFocusRing, + colorShadowDefault, + colorTextLight, + colorTextLighter, } from '@dagster-io/ui-components'; -import Fuse from 'fuse.js'; -import debounce from 'lodash/debounce'; -import * as React from 'react'; -import {useHistory, useLocation} from 'react-router-dom'; -import styled from 'styled-components'; import {ShortcutHandler} from '../app/ShortcutHandler'; import {useTrackEvent} from '../app/analytics'; - import {SearchResults} from './SearchResults'; import {SearchResult} from './types'; import {useGlobalSearch} from './useGlobalSearch'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/search/SearchResults.tsx b/js_modules/dagster-ui/packages/ui-core/src/search/SearchResults.tsx index 1513eae8ee5bf..3ac66f4ab2b98 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/search/SearchResults.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/search/SearchResults.tsx @@ -1,16 +1,17 @@ +import * as React from 'react'; +import Fuse from 'fuse.js'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { - IconName, Icon, - colorTextLight, - colorTextDefault, - colorBackgroundLight, + IconName, colorAccentLime, + colorBackgroundLight, + colorTextDefault, + colorTextLight, colorTextLighter, } from '@dagster-io/ui-components'; -import Fuse from 'fuse.js'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {SearchResult, SearchResultType} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/search/__stories__/SearchDialog.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/search/__stories__/SearchDialog.stories.tsx index da56bbb7a8f12..fd3d80501b2ab 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/search/__stories__/SearchDialog.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/search/__stories__/SearchDialog.stories.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {Meta} from '@storybook/react'; -import * as React from 'react'; import {AnalyticsContext, dummyAnalytics} from '../../app/analytics'; import {SearchDialog} from '../SearchDialog'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/search/types/useGlobalSearch.types.ts b/js_modules/dagster-ui/packages/ui-core/src/search/types/useGlobalSearch.types.ts index 1ec0e9b76496e..5b381391690a4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/search/types/useGlobalSearch.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/search/types/useGlobalSearch.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SearchPrimaryQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/search/useGlobalSearch.tsx b/js_modules/dagster-ui/packages/ui-core/src/search/useGlobalSearch.tsx index 765d3640ed226..5f3e3e05f6276 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/search/useGlobalSearch.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/search/useGlobalSearch.tsx @@ -1,12 +1,11 @@ -import {gql, useLazyQuery} from '@apollo/client'; import * as React from 'react'; +import {gql, useLazyQuery} from '@apollo/client'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {displayNameForAssetKey, isHiddenAssetGroupJob} from '../asset-graph/Utils'; import {assetDetailsPathForKey} from '../assets/assetDetailsPathForKey'; import {buildRepoPathForHuman} from '../workspace/buildRepoAddress'; import {workspacePath} from '../workspace/workspacePath'; - import {WorkerSearchResult, createSearchWorker} from './createSearchWorker'; import {SearchResult, SearchResultType} from './types'; import {SearchPrimaryQuery, SearchSecondaryQuery} from './types/useGlobalSearch.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/EditCursorDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/EditCursorDialog.tsx index 5f9ae97804ca9..6bc4d1a67891f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/EditCursorDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/EditCursorDialog.tsx @@ -1,24 +1,23 @@ +import * as React from 'react'; import {gql, useMutation} from '@apollo/client'; +import 'chartjs-adapter-date-fns'; + import { - ButtonLink, Button, + ButtonLink, + Dialog, DialogBody, DialogFooter, - Dialog, Group, TextArea, colorAccentReversed, } from '@dagster-io/ui-components'; -import * as React from 'react'; - -import 'chartjs-adapter-date-fns'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {showSharedToaster} from '../app/DomUtils'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; import {SensorSelector} from '../graphql/types'; - import { SetSensorCursorMutation, SetSensorCursorMutationVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorBulkActionMenu.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorBulkActionMenu.tsx index a8f60c8a3c0da..7279f9e8cc571 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorBulkActionMenu.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorBulkActionMenu.tsx @@ -1,9 +1,9 @@ -import {Button, Icon, Menu, MenuItem, Popover} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Button, Icon, Menu, MenuItem, Popover} from '@dagster-io/ui-components'; + import {instigationStateSummary} from '../instigation/instigationStateSummary'; import {OpenWithIntent} from '../instigation/useInstigationStateReducer'; - import {SensorInfo, SensorStateChangeDialog} from './SensorStateChangeDialog'; interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorDetails.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorDetails.tsx index bb27f21d65b37..b16cd81717822 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorDetails.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorDetails.tsx @@ -1,14 +1,15 @@ +import * as React from 'react'; + import { Box, Button, + FontFamily, + Heading, + Icon, MetadataTableWIP, PageHeader, Tag, - Heading, - FontFamily, - Icon, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {QueryRefreshCountdown, QueryRefreshState} from '../app/QueryRefresh'; import {InstigationStatus, SensorType} from '../graphql/types'; @@ -17,7 +18,6 @@ import {TimestampDisplay} from '../schedules/TimestampDisplay'; import {SensorDryRunDialog} from '../ticks/SensorDryRunDialog'; import {TickStatusTag} from '../ticks/TickStatusTag'; import {RepoAddress} from '../workspace/types'; - import {EditCursorDialog} from './EditCursorDialog'; import {SensorMonitoredAssets} from './SensorMonitoredAssets'; import {SensorSwitch} from './SensorSwitch'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorInfo.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorInfo.tsx index 2f237aece6c7a..896eb48b0f475 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorInfo.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorInfo.tsx @@ -1,6 +1,7 @@ -import {Alert, Box} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Alert, Box} from '@dagster-io/ui-components'; + export type DaemonStatusForWarning = { healthy: boolean | null; required: boolean | null; diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorMonitoredAssets.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorMonitoredAssets.tsx index 465db78f0e510..60ee8eef8b267 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorMonitoredAssets.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorMonitoredAssets.tsx @@ -1,6 +1,7 @@ -import {Box} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box} from '@dagster-io/ui-components'; + import {AssetLink} from '../assets/AssetLink'; import {SensorMetadata} from '../graphql/types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorMutations.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorMutations.tsx index 15fc0e092ddc0..7ec13e107160e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorMutations.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorMutations.tsx @@ -1,10 +1,9 @@ -import {gql} from '@apollo/client'; import * as React from 'react'; +import {gql} from '@apollo/client'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; - import {StartSensorMutation, StopRunningSensorMutation} from './types/SensorMutations.types'; export const START_SENSOR_MUTATION = gql` diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorPageAutomaterialize.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorPageAutomaterialize.tsx index 20f267886233b..65466330023e2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorPageAutomaterialize.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorPageAutomaterialize.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {useLazyQuery} from '@apollo/client'; + import {Alert, Box, Spinner, Subtitle2, colorTextLight} from '@dagster-io/ui-components'; -import * as React from 'react'; import {useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {AutomaterializationTickDetailDialog} from '../assets/auto-materialization/AutomaterializationTickDetailDialog'; @@ -14,7 +15,6 @@ import {isStuckStartedTick} from '../instigation/util'; import {DagsterTag} from '../runs/RunTag'; import {repoAddressAsTag} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {ASSET_SENSOR_TICKS_QUERY} from './AssetSensorTicksQuery'; import {DaemonStatusForWarning, SensorInfo} from './SensorInfo'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorPreviousRuns.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorPreviousRuns.tsx index a2e45b7c93b87..ae92b74afef1c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorPreviousRuns.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorPreviousRuns.tsx @@ -1,14 +1,14 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; + import {CursorHistoryControls} from '@dagster-io/ui-components'; -import * as React from 'react'; import {useQueryRefreshAtInterval} from '../app/QueryRefresh'; -import {RunTable, RUN_TABLE_RUN_FRAGMENT} from '../runs/RunTable'; +import {RUN_TABLE_RUN_FRAGMENT, RunTable} from '../runs/RunTable'; import {DagsterTag} from '../runs/RunTag'; import {useCursorPaginatedQuery} from '../runs/useCursorPaginatedQuery'; import {repoAddressAsTag} from '../workspace/repoAddressAsString'; import {RepoAddress} from '../workspace/types'; - import {SensorFragment} from './types/SensorFragment.types'; import { PreviousRunsForSensorQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorRoot.tsx index 02f31efb5124a..31f453611ee17 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorRoot.tsx @@ -1,14 +1,15 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import {Redirect, useParams} from 'react-router-dom'; + import { Box, - Page, - NonIdealState, ButtonGroup, - colorTextLight, + NonIdealState, + Page, Spinner, + colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Redirect, useParams} from 'react-router-dom'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; @@ -18,10 +19,9 @@ import {InstigationTickStatus, SensorType} from '../graphql/types'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; import {INSTANCE_HEALTH_FRAGMENT} from '../instance/InstanceHealthFragment'; -import {TicksTable, TickHistoryTimeline} from '../instigation/TickHistory'; +import {TickHistoryTimeline, TicksTable} from '../instigation/TickHistory'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import {SensorDetails} from './SensorDetails'; import {SENSOR_FRAGMENT} from './SensorFragment'; import {SensorInfo} from './SensorInfo'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorStateChangeDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorStateChangeDialog.tsx index d7e1f166fbbe4..cd3878ac055f6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorStateChangeDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorStateChangeDialog.tsx @@ -1,17 +1,18 @@ +import * as React from 'react'; import {useMutation} from '@apollo/client'; // eslint-disable-next-line no-restricted-imports import {ProgressBar} from '@blueprintjs/core'; + import { Button, + Dialog, DialogBody, DialogFooter, - Dialog, Group, Icon, colorAccentGreen, colorAccentYellow, } from '@dagster-io/ui-components'; -import * as React from 'react'; import { OpenWithIntent, @@ -20,7 +21,6 @@ import { import {BasicInstigationStateFragment} from '../overview/types/BasicInstigationStateFragment.types'; import {NavigationBlock} from '../runs/NavigationBlock'; import {RepoAddress} from '../workspace/types'; - import {START_SENSOR_MUTATION, STOP_SENSOR_MUTATION} from './SensorMutations'; import { StartSensorMutation, diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorSwitch.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorSwitch.tsx index 6492cfc0203c8..18222081b9312 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorSwitch.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorSwitch.tsx @@ -1,16 +1,16 @@ +import * as React from 'react'; import {gql, useMutation} from '@apollo/client'; + import {Checkbox, Tooltip} from '@dagster-io/ui-components'; -import * as React from 'react'; import {usePermissionsForLocation} from '../app/Permissions'; import {InstigationStatus} from '../graphql/types'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import { - displaySensorMutationErrors, START_SENSOR_MUTATION, STOP_SENSOR_MUTATION, + displaySensorMutationErrors, } from './SensorMutations'; import { StartSensorMutation, diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorTargetList.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorTargetList.tsx index 291eb9d7712f6..42a79f280256a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorTargetList.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorTargetList.tsx @@ -1,6 +1,7 @@ -import {Box} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box} from '@dagster-io/ui-components'; + import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; import {PipelineReference} from '../pipelines/PipelineReference'; import {isThisThingAJob, useRepository} from '../workspace/WorkspaceContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/__stories__/SensorStateChangeDialog.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/__stories__/SensorStateChangeDialog.stories.tsx index 8970586711bb9..4beaab68f9935 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/__stories__/SensorStateChangeDialog.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/__stories__/SensorStateChangeDialog.stories.tsx @@ -1,7 +1,8 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; -import {Button} from '@dagster-io/ui-components'; import {Meta} from '@storybook/react'; -import * as React from 'react'; + +import {Button} from '@dagster-io/ui-components'; import {OpenWithIntent} from '../../instigation/useInstigationStateReducer'; import {SensorStateChangeDialog} from '../SensorStateChangeDialog'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/__tests__/SensorStateChangeDialog.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/__tests__/SensorStateChangeDialog.test.tsx index 4e7449392d84a..d933a6aecad51 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/__tests__/SensorStateChangeDialog.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/__tests__/SensorStateChangeDialog.test.tsx @@ -1,16 +1,16 @@ +import * as React from 'react'; import {MockedProvider} from '@apollo/client/testing'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {SensorStateChangeDialog} from '../SensorStateChangeDialog'; import { - buildStopMinnesotaSuccess, - buildStopOregonError, - buildStopOregonSuccess, buildStartKansasSuccess, buildStartLouisianaError, buildStartLouisianaSuccess, + buildStopMinnesotaSuccess, + buildStopOregonError, + buildStopOregonSuccess, sensorKansasCurrentlyStopped, sensorLouisianaCurrentlyStopped, sensorMinnesotaCurrentlyRunning, diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/AssetSensorTicksQuery.types.ts b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/AssetSensorTicksQuery.types.ts index b58d56114c32b..a94e5c225babc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/AssetSensorTicksQuery.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/AssetSensorTicksQuery.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type AssetSensorTicksQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/EditCursorDialog.types.ts b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/EditCursorDialog.types.ts index f8838da506ed3..7ff6fd0fed947 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/EditCursorDialog.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/EditCursorDialog.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SetSensorCursorMutationVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorFragment.types.ts b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorFragment.types.ts index 5e0d8cef4d0db..5b09bd3921b61 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorFragment.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorFragment.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SensorFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorMutations.types.ts b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorMutations.types.ts index 1e1fbb79970c5..be9744e1badc3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorMutations.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorMutations.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type StartSensorMutationVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorPreviousRuns.types.ts b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorPreviousRuns.types.ts index fcb33a8bb8a53..544cafb54d8ad 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorPreviousRuns.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorPreviousRuns.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type PreviousRunsForSensorQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorRoot.types.ts index 2eace1c1d3e2c..b128435f92029 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SensorRootQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorSwitch.types.ts b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorSwitch.types.ts index 8156160ac3c3d..5394ebfc2a073 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorSwitch.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorSwitch.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SensorSwitchFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/snapshots/SnapshotNav.tsx b/js_modules/dagster-ui/packages/ui-core/src/snapshots/SnapshotNav.tsx index 81c30faccb4de..2234aecdbdd59 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/snapshots/SnapshotNav.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/snapshots/SnapshotNav.tsx @@ -1,13 +1,13 @@ -import {gql, useQuery} from '@apollo/client'; -import {PageHeader, Tabs, Tag, Heading, FontFamily} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {Link} from 'react-router-dom'; -import {explorerPathToString, ExplorerPath} from '../pipelines/PipelinePathUtils'; +import {FontFamily, Heading, PageHeader, Tabs, Tag} from '@dagster-io/ui-components'; + +import {ExplorerPath, explorerPathToString} from '../pipelines/PipelinePathUtils'; import {TabLink} from '../ui/TabLink'; import {useActivePipelineForName} from '../workspace/WorkspaceContext'; import {workspacePipelinePathGuessRepo} from '../workspace/workspacePath'; - import {SnapshotQuery, SnapshotQueryVariables} from './types/SnapshotNav.types'; const SNAPSHOT_PARENT_QUERY = gql` diff --git a/js_modules/dagster-ui/packages/ui-core/src/snapshots/SnapshotRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/snapshots/SnapshotRoot.tsx index 4972f696db13b..e51cd8cc21366 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/snapshots/SnapshotRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/snapshots/SnapshotRoot.tsx @@ -4,7 +4,6 @@ import {Route, Switch, useParams} from 'react-router-dom'; import {PipelineExplorerSnapshotRoot} from '../pipelines/PipelineExplorerRoot'; import {explorerPathFromString} from '../pipelines/PipelinePathUtils'; import {PipelineRunsRoot} from '../pipelines/PipelineRunsRoot'; - import {SnapshotNav} from './SnapshotNav'; export const SnapshotRoot = () => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/snapshots/types/SnapshotNav.types.ts b/js_modules/dagster-ui/packages/ui-core/src/snapshots/types/SnapshotNav.types.ts index edca5578d5c03..41799a0e58efa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/snapshots/types/SnapshotNav.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/snapshots/types/SnapshotNav.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SnapshotQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/testing/ApolloTestProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/testing/ApolloTestProvider.tsx index bf3c7b377f13a..ffa554614fcd7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/testing/ApolloTestProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/testing/ApolloTestProvider.tsx @@ -1,12 +1,11 @@ +import * as React from 'react'; import {ApolloClient, ApolloProvider, DocumentNode} from '@apollo/client'; import {SchemaLink} from '@apollo/client/link/schema'; import {mergeResolvers} from '@graphql-tools/merge'; import {addMocksToSchema} from '@graphql-tools/mock'; import {makeExecutableSchema} from '@graphql-tools/schema'; -import * as React from 'react'; import {createAppCache} from '../app/AppCache'; - import {defaultMocks} from './defaultMocks'; export interface ApolloTestProps { diff --git a/js_modules/dagster-ui/packages/ui-core/src/testing/SVGMocks.ts b/js_modules/dagster-ui/packages/ui-core/src/testing/SVGMocks.ts index 56af28c86ab7d..43aae38f5d7cb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/testing/SVGMocks.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/testing/SVGMocks.ts @@ -2,7 +2,6 @@ import path from 'path'; import {PIPELINE_EXPLORER_ROOT_QUERY} from '../pipelines/PipelineExplorerRoot'; import {PipelineExplorerRootQueryVariables} from '../pipelines/types/PipelineExplorerRoot.types'; - import {CachedGraphQLRequest} from './MockedApolloLinks'; const dataDir = path.join(__dirname, '..', 'graph', '__data__'); diff --git a/js_modules/dagster-ui/packages/ui-core/src/testing/StorybookProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/testing/StorybookProvider.tsx index 25db7830168e1..2999877d40149 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/testing/StorybookProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/testing/StorybookProvider.tsx @@ -1,10 +1,9 @@ -import {loader} from 'graphql.macro'; import * as React from 'react'; +import {loader} from 'graphql.macro'; import {MemoryRouter, MemoryRouterProps} from 'react-router-dom'; import {CustomAlertProvider} from '../app/CustomAlertProvider'; import {WorkspaceProvider} from '../workspace/WorkspaceContext'; - import {ApolloTestProps, ApolloTestProvider} from './ApolloTestProvider'; const typeDefs = loader('../graphql/schema.graphql'); diff --git a/js_modules/dagster-ui/packages/ui-core/src/testing/TestProvider.tsx b/js_modules/dagster-ui/packages/ui-core/src/testing/TestProvider.tsx index 807d9d53a8dd3..ed84dfa20f42c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/testing/TestProvider.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/testing/TestProvider.tsx @@ -1,14 +1,13 @@ -import {loader} from 'graphql.macro'; import * as React from 'react'; +import {loader} from 'graphql.macro'; import {MemoryRouter, MemoryRouterProps} from 'react-router-dom'; import {AppContext, AppContextValue} from '../app/AppContext'; -import {extractPermissions, PermissionsContext, PermissionsFromJSON} from '../app/Permissions'; +import {PermissionsContext, PermissionsFromJSON, extractPermissions} from '../app/Permissions'; import {WebSocketContext, WebSocketContextType} from '../app/WebSocketProvider'; import {AnalyticsContext} from '../app/analytics'; import {PermissionFragment} from '../app/types/Permissions.types'; import {WorkspaceProvider} from '../workspace/WorkspaceContext'; - import {ApolloTestProps, ApolloTestProvider} from './ApolloTestProvider'; const typeDefs = loader('../graphql/schema.graphql'); diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/DryRunRequestTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/DryRunRequestTable.tsx index 8c242a318dc28..6d9025eaafed8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/DryRunRequestTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/DryRunRequestTable.tsx @@ -1,14 +1,14 @@ -import {Box, Icon, Table, Tag, colorKeylineDefault} from '@dagster-io/ui-components'; import qs from 'qs'; import React from 'react'; +import {Box, Icon, Table, Tag, colorKeylineDefault} from '@dagster-io/ui-components'; + import {PipelineReference} from '../pipelines/PipelineReference'; import {testId} from '../testing/testId'; import {AnchorButton} from '../ui/AnchorButton'; import {useRepository} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {RunRequestFragment} from './types/RunRequestFragment.types'; type Props = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/DynamicPartitionRequests.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/DynamicPartitionRequests.tsx index b035543cd2085..6b46be464c9a2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/DynamicPartitionRequests.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/DynamicPartitionRequests.tsx @@ -1,8 +1,8 @@ -import {Box, Icon, Subheading, Table, Tag, colorKeylineDefault} from '@dagster-io/ui-components'; import React from 'react'; -import {DynamicPartitionsRequestType} from '../graphql/types'; +import {Box, Icon, Subheading, Table, Tag, colorKeylineDefault} from '@dagster-io/ui-components'; +import {DynamicPartitionsRequestType} from '../graphql/types'; import {DynamicPartitionRequestFragment} from './types/SensorDryRunDialog.types'; export function DynamicPartitionRequests({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/EvaluateScheduleDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/EvaluateScheduleDialog.tsx index b31d6831ed600..c52e5f4cfac3f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/EvaluateScheduleDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/EvaluateScheduleDialog.tsx @@ -1,4 +1,7 @@ import {gql, useMutation, useQuery} from '@apollo/client'; +import React from 'react'; +import styled from 'styled-components'; + import { Box, Button, @@ -17,8 +20,6 @@ import { colorKeylineDefault, useViewport, } from '@dagster-io/ui-components'; -import React from 'react'; -import styled from 'styled-components'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; @@ -27,7 +28,6 @@ import {timestampToString} from '../app/time/timestampToString'; import {testId} from '../testing/testId'; import {repoAddressToSelector} from '../workspace/repoAddressToSelector'; import {RepoAddress} from '../workspace/types'; - import {RunRequestTable} from './DryRunRequestTable'; import {RUN_REQUEST_FRAGMENT} from './RunRequestFragment'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/SensorDryRunDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/SensorDryRunDialog.tsx index 66272e644d17e..880855f5b54ad 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/SensorDryRunDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/SensorDryRunDialog.tsx @@ -1,4 +1,7 @@ import {gql, useMutation} from '@apollo/client'; +import React from 'react'; +import styled from 'styled-components'; + import { Box, Button, @@ -17,8 +20,6 @@ import { colorAccentReversed, colorKeylineDefault, } from '@dagster-io/ui-components'; -import React from 'react'; -import styled from 'styled-components'; import {showCustomAlert} from '../app/CustomAlertProvider'; import {showSharedToaster} from '../app/DomUtils'; @@ -33,7 +34,6 @@ import { } from '../sensors/types/EditCursorDialog.types'; import {testId} from '../testing/testId'; import {RepoAddress} from '../workspace/types'; - import {RunRequestTable} from './DryRunRequestTable'; import {DynamicPartitionRequests} from './DynamicPartitionRequests'; import {RUN_REQUEST_FRAGMENT} from './RunRequestFragment'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/TickLogDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/TickLogDialog.tsx index 06c2b0df93743..5d720189c5b96 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/TickLogDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/TickLogDialog.tsx @@ -1,33 +1,33 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { Box, Button, - DialogFooter, Dialog, DialogBody, - colorTextLight, - NonIdealState, + DialogFooter, ExternalAnchorButton, Icon, + NonIdealState, + colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {InstigationSelector} from '../graphql/types'; import {HistoryTickFragment} from '../instigation/types/InstigationUtils.types'; -import {EventTypeColumn, TimestampColumn, Row} from '../runs/LogsRowComponents'; +import {EventTypeColumn, Row, TimestampColumn} from '../runs/LogsRowComponents'; import { - ColumnWidthsProvider, ColumnWidthsContext, - HeadersContainer, - HeaderContainer, + ColumnWidthsProvider, Header, + HeaderContainer, + HeadersContainer, } from '../runs/LogsScrollingTableHeader'; import {TimestampDisplay} from '../schedules/TimestampDisplay'; - import { + TickLogEventFragment, TickLogEventsQuery, TickLogEventsQueryVariables, - TickLogEventFragment, } from './types/TickLogDialog.types'; export const TickLogDialog = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/TickStatusTag.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/TickStatusTag.tsx index 40de07fae8b50..6cc291a6686d2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/TickStatusTag.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/TickStatusTag.tsx @@ -1,17 +1,18 @@ +import React from 'react'; + import { - Tag, - Dialog, - DialogBody, - DialogFooter, - Button, BaseTag, Box, + Button, ButtonLink, + Dialog, + DialogBody, + DialogFooter, + Tag, Tooltip, - ifPlural, colorBackgroundLighter, + ifPlural, } from '@dagster-io/ui-components'; -import React from 'react'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; import {AssetDaemonTickFragment} from '../assets/auto-materialization/types/AssetDaemonTicksQuery.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/__fixtures__/DryRunRequestTable.fixtures.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/__fixtures__/DryRunRequestTable.fixtures.tsx index d80f5d4478948..73765e60b7767 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/__fixtures__/DryRunRequestTable.fixtures.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/__fixtures__/DryRunRequestTable.fixtures.tsx @@ -1,4 +1,4 @@ -import {buildRepositoryLocation, buildRepository} from '../../graphql/types'; +import {buildRepository, buildRepositoryLocation} from '../../graphql/types'; export const mockRepository = { repository: buildRepository({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/DryRunRequestTable.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/DryRunRequestTable.test.tsx index 1789c1648050f..26b4a5ebe7311 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/DryRunRequestTable.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/DryRunRequestTable.test.tsx @@ -1,5 +1,5 @@ -import {render, screen} from '@testing-library/react'; import * as React from 'react'; +import {render, screen} from '@testing-library/react'; import {BrowserRouter} from 'react-router-dom'; import {RunRequestTable} from '../DryRunRequestTable'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/EvaluateScheduleDialog.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/EvaluateScheduleDialog.test.tsx index 3b71b87c694f0..ad3a95f12d1e7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/EvaluateScheduleDialog.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/EvaluateScheduleDialog.test.tsx @@ -1,8 +1,8 @@ +import * as React from 'react'; import {Resolvers} from '@apollo/client'; import {MockedProvider, MockedResponse} from '@apollo/client/testing'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {EvaluateScheduleDialog} from '../EvaluateScheduleDialog'; import { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/SensorDryRunDialog.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/SensorDryRunDialog.test.tsx index e0b9cd6011265..afae19e5565b3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/SensorDryRunDialog.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/__tests__/SensorDryRunDialog.test.tsx @@ -1,11 +1,11 @@ +import * as React from 'react'; import {Resolvers} from '@apollo/client'; import {MockedProvider, MockedResponse} from '@apollo/client/testing'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; -import {SensorDryRunDialog} from '../SensorDryRunDialog'; import * as Mocks from '../__fixtures__/SensorDryRunDialog.fixtures'; +import {SensorDryRunDialog} from '../SensorDryRunDialog'; // This component is unit tested separately so mocking it out jest.mock('../DryRunRequestTable', () => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/types/EvaluateScheduleDialog.types.ts b/js_modules/dagster-ui/packages/ui-core/src/ticks/types/EvaluateScheduleDialog.types.ts index 4951337aa20e6..cea5df237cfa8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/types/EvaluateScheduleDialog.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/types/EvaluateScheduleDialog.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type GetScheduleQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/types/RunRequestFragment.types.ts b/js_modules/dagster-ui/packages/ui-core/src/ticks/types/RunRequestFragment.types.ts index 02b727d481c26..bf66d583b004e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/types/RunRequestFragment.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/types/RunRequestFragment.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RunRequestFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/types/SensorDryRunDialog.types.ts b/js_modules/dagster-ui/packages/ui-core/src/ticks/types/SensorDryRunDialog.types.ts index 67a2125a63074..6b57e617670a7 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/types/SensorDryRunDialog.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/types/SensorDryRunDialog.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SensorDryRunMutationVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/ticks/types/TickLogDialog.types.ts b/js_modules/dagster-ui/packages/ui-core/src/ticks/types/TickLogDialog.types.ts index ad0dd63a7baac..281033cab7fd0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ticks/types/TickLogDialog.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/ticks/types/TickLogDialog.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type TickLogEventsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeExplorer.tsx b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeExplorer.tsx index 26fde214b78ee..72b148c89da0f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeExplorer.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeExplorer.tsx @@ -1,15 +1,15 @@ -import {gql} from '@apollo/client'; -import {Box, ConfigTypeSchema} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql} from '@apollo/client'; import {Link} from 'react-router-dom'; +import {Box, ConfigTypeSchema} from '@dagster-io/ui-components'; + import {gqlTypePredicate} from '../app/Util'; import {dagsterTypeKind} from '../dagstertype/DagsterType'; import {METADATA_ENTRY_FRAGMENT} from '../metadata/MetadataEntry'; import {TableSchema} from '../metadata/TableSchema'; import {Description} from '../pipelines/Description'; import {SidebarSection, SidebarSubhead, SidebarTitle} from '../pipelines/SidebarComponents'; - import {CONFIG_TYPE_SCHEMA_FRAGMENT} from './ConfigTypeSchema'; import {TypeExplorerFragment} from './types/TypeExplorer.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeExplorerContainer.tsx b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeExplorerContainer.tsx index 2c7494ef7e2b5..778a25bc7a9a8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeExplorerContainer.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeExplorerContainer.tsx @@ -1,12 +1,11 @@ -import {gql, useQuery} from '@apollo/client'; import * as React from 'react'; +import {gql, useQuery} from '@apollo/client'; import {ExplorerPath} from '../pipelines/PipelinePathUtils'; import {Loading} from '../ui/Loading'; import {buildPipelineSelector} from '../workspace/WorkspaceContext'; import {RepoAddress} from '../workspace/types'; - -import {TypeExplorer, TYPE_EXPLORER_FRAGMENT} from './TypeExplorer'; +import {TYPE_EXPLORER_FRAGMENT, TypeExplorer} from './TypeExplorer'; import { TypeExplorerContainerQuery, TypeExplorerContainerQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeList.tsx b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeList.tsx index 9398e4b146f8b..9c09696535942 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeList.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeList.tsx @@ -1,10 +1,10 @@ -import {gql} from '@apollo/client'; -import {Box, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql} from '@apollo/client'; import styled from 'styled-components'; -import {SidebarSection, SidebarSubhead, SidebarTitle} from '../pipelines/SidebarComponents'; +import {Box, colorTextLight} from '@dagster-io/ui-components'; +import {SidebarSection, SidebarSubhead, SidebarTitle} from '../pipelines/SidebarComponents'; import {DAGSTER_TYPE_WITH_TOOLTIP_FRAGMENT, TypeWithTooltip} from './TypeWithTooltip'; import {TypeListFragment} from './types/TypeList.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeListContainer.tsx b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeListContainer.tsx index 4559ce45f7fbf..5a1f1bc0ca130 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeListContainer.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeListContainer.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import {Box, NonIdealState} from '@dagster-io/ui-components'; -import * as React from 'react'; import {ExplorerPath} from '../pipelines/PipelinePathUtils'; import {Loading} from '../ui/Loading'; @@ -11,8 +12,7 @@ import { } from '../workspace/WorkspaceContext'; import {findRepoContainingPipeline} from '../workspace/findRepoContainingPipeline'; import {RepoAddress} from '../workspace/types'; - -import {TypeList, TYPE_LIST_FRAGMENT} from './TypeList'; +import {TYPE_LIST_FRAGMENT, TypeList} from './TypeList'; import { TypeListContainerQuery, TypeListContainerQueryVariables, diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeWithTooltip.tsx b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeWithTooltip.tsx index c43722d47a53b..849469f46699f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeWithTooltip.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/TypeWithTooltip.tsx @@ -1,9 +1,10 @@ -import {gql} from '@apollo/client'; -import {colorAccentBlue, colorBackgroundBlue} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql} from '@apollo/client'; import {Link} from 'react-router-dom'; import styled from 'styled-components'; +import {colorAccentBlue, colorBackgroundBlue} from '@dagster-io/ui-components'; + interface ITypeWithTooltipProps { type: { name: string | null; diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/ConfigTypeSchema.types.ts b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/ConfigTypeSchema.types.ts index 15faa54595826..e74ef0e88eaad 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/ConfigTypeSchema.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/ConfigTypeSchema.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type ConfigTypeSchemaFragment_ArrayConfigType_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorer.types.ts b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorer.types.ts index e35cd2ffb03ca..c69a8f3ca8566 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorer.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorer.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type TypeExplorerFragment_ListDagsterType_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorerContainer.types.ts b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorerContainer.types.ts index 064600ef13986..b19657266dfb2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorerContainer.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeExplorerContainer.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type TypeExplorerContainerQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeList.types.ts b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeList.types.ts index 4113b9bdf9957..2a0a7db35cd35 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeList.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeList.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type TypeListFragment_ListDagsterType_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeListContainer.types.ts b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeListContainer.types.ts index 796584992e414..2954cd315904f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeListContainer.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeListContainer.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type TypeListContainerQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeWithTooltip.types.ts b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeWithTooltip.types.ts index 9ad602140ba80..f029be048f9aa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeWithTooltip.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/typeexplorer/types/TypeWithTooltip.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type DagsterTypeWithTooltipFragment_ListDagsterType_ = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/AnchorButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/AnchorButton.tsx index 2a16c9035bb60..92246c08fc965 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/AnchorButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/AnchorButton.tsx @@ -1,9 +1,10 @@ // eslint-disable-next-line no-restricted-imports -import {AnchorButton as BlueprintAnchorButton} from '@blueprintjs/core'; -import {buildColorSet, StyledButton, StyledButtonText} from '@dagster-io/ui-components'; import * as React from 'react'; +import {AnchorButton as BlueprintAnchorButton} from '@blueprintjs/core'; import {Link, LinkProps} from 'react-router-dom'; +import {StyledButton, StyledButtonText, buildColorSet} from '@dagster-io/ui-components'; + type AnchorButtonProps = Omit< React.ComponentProps, 'loading' | 'onClick' | 'onFocus' | 'type' diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/CheckAllBox.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/CheckAllBox.tsx index 4e2228eeb780d..9fa7a4247110b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/CheckAllBox.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/CheckAllBox.tsx @@ -1,6 +1,7 @@ -import {Checkbox, Tooltip} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Checkbox, Tooltip} from '@dagster-io/ui-components'; + interface Props { checkedCount: number; totalCount: number; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/ClearButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/ClearButton.tsx index 74738cc65383e..3c49d39f06d5d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/ClearButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/ClearButton.tsx @@ -1,10 +1,11 @@ +import styled from 'styled-components'; + import { IconWrapper, colorAccentGray, colorAccentGrayHover, colorTextDefault, } from '@dagster-io/ui-components'; -import styled from 'styled-components'; export const ClearButton = styled.button` background: transparent; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/DateRangePickerWrapper.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/DateRangePickerWrapper.tsx index dbc49f1f3bb06..689024e950b90 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/DateRangePickerWrapper.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/DateRangePickerWrapper.tsx @@ -1,3 +1,9 @@ +import * as React from 'react'; +import {DateRangePicker} from 'react-dates'; +import 'react-dates/initialize'; +import 'react-dates/lib/css/_datepicker.css'; +import styled from 'styled-components'; + import { colorAccentBlue, colorBackgroundBlue, @@ -11,12 +17,6 @@ import { colorTextLight, colorTextLighter, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {DateRangePicker} from 'react-dates'; -import styled from 'styled-components'; - -import 'react-dates/initialize'; -import 'react-dates/lib/css/_datepicker.css'; export const DateRangePickerWrapper = (props: React.ComponentProps) => { return ( diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/FilterDropdown.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/FilterDropdown.tsx index 0cdbaadcb93a3..8b24fd7af3139 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/FilterDropdown.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/FilterDropdown.tsx @@ -1,3 +1,8 @@ +import {useVirtualizer} from '@tanstack/react-virtual'; +import React, {useRef, useState} from 'react'; +import styled, {createGlobalStyle} from 'styled-components'; +import {v4 as uuidv4} from 'uuid'; + import { Box, Button, @@ -12,16 +17,11 @@ import { colorPopoverBackground, colorTextLight, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import React, {useState, useRef} from 'react'; -import styled, {createGlobalStyle} from 'styled-components'; -import {v4 as uuidv4} from 'uuid'; import {ShortcutHandler} from '../../app/ShortcutHandler'; import {useSetStateUpdateCallback} from '../../hooks/useSetStateUpdateCallback'; import {useUpdatingRef} from '../../hooks/useUpdatingRef'; import {Container, Inner, Row} from '../../ui/VirtualizedTable'; - import {FilterObject} from './useFilter'; interface FilterDropdownProps { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__stories__/useFilters.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__stories__/useFilters.stories.tsx index ea96d8c56e434..bf826559849db 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__stories__/useFilters.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__stories__/useFilters.stories.tsx @@ -1,7 +1,8 @@ -import {Box, CustomTooltipProvider} from '@dagster-io/ui-components'; import {Meta} from '@storybook/react'; import React from 'react'; +import {Box, CustomTooltipProvider} from '@dagster-io/ui-components'; + import {TruncatedTextWithFullTextOnHover} from '../../../nav/getLeftNavItemsForOption'; import {FilterDropdown} from '../FilterDropdown'; import {useFilters} from '../useFilters'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useStaticSetFilter.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useStaticSetFilter.test.tsx index 2902611fbb5be..a7eb2d8fafd44 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useStaticSetFilter.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useStaticSetFilter.test.tsx @@ -1,8 +1,9 @@ -import {IconName} from '@dagster-io/ui-components'; import {render} from '@testing-library/react'; import {act, renderHook} from '@testing-library/react-hooks'; import React from 'react'; +import {IconName} from '@dagster-io/ui-components'; + import {useStaticSetFilter} from '../useStaticSetFilter'; describe('useStaticSetFilter', () => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useSuggestionFilter.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useSuggestionFilter.test.tsx index 7226e74b73900..3a521b4916e75 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useSuggestionFilter.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useSuggestionFilter.test.tsx @@ -1,5 +1,5 @@ import {waitFor} from '@testing-library/dom'; -import {renderHook, act} from '@testing-library/react-hooks'; +import {act, renderHook} from '@testing-library/react-hooks'; import React from 'react'; import {useSuggestionFilter} from '../useSuggestionFilter'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useTimeRangeFilter.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useTimeRangeFilter.test.tsx index 698fed178240e..4190987bfbabc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useTimeRangeFilter.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/__tests__/useTimeRangeFilter.test.tsx @@ -1,17 +1,18 @@ -import {IconName} from '@dagster-io/ui-components'; -import {render, act, waitFor} from '@testing-library/react'; +import {act, render, waitFor} from '@testing-library/react'; import {renderHook} from '@testing-library/react-hooks'; import userEvent from '@testing-library/user-event'; // eslint-disable-next-line no-restricted-imports import moment from 'moment-timezone'; import React from 'react'; +import {IconName} from '@dagster-io/ui-components'; + import { - calculateTimeRanges, - useTimeRangeFilter, + ActiveFilterState, CustomTimeRangeFilterDialog, TimeRangeState, - ActiveFilterState, + calculateTimeRanges, + useTimeRangeFilter, } from '../useTimeRangeFilter'; let mockReactDates = jest.fn((_props) =>
); diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useCodeLocationFilter.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useCodeLocationFilter.tsx index 84afc68c9ecec..6c4331306c105 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useCodeLocationFilter.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useCodeLocationFilter.tsx @@ -5,7 +5,6 @@ import {WorkspaceContext} from '../../workspace/WorkspaceContext'; import {buildRepoAddress} from '../../workspace/buildRepoAddress'; import {repoAddressAsHumanString} from '../../workspace/repoAddressAsString'; import {RepoAddress} from '../../workspace/types'; - import {useStaticSetFilter} from './useStaticSetFilter'; export const useCodeLocationFilter = () => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useFilter.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useFilter.tsx index ba48de3a20546..ac603625d8f64 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useFilter.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useFilter.tsx @@ -1,3 +1,6 @@ +import React from 'react'; +import styled from 'styled-components'; + import { BaseTag, Icon, @@ -8,8 +11,6 @@ import { colorTooltipBackground, colorTooltipText, } from '@dagster-io/ui-components'; -import React from 'react'; -import styled from 'styled-components'; import {TruncatedTextWithFullTextOnHover} from '../../nav/getLeftNavItemsForOption'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useInstigationStatusFilter.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useInstigationStatusFilter.tsx index 0358e0d89cf74..1cee5ba79486a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useInstigationStatusFilter.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useInstigationStatusFilter.tsx @@ -1,7 +1,6 @@ import * as React from 'react'; import {InstigationStatus} from '../../graphql/types'; - import {useStaticSetFilter} from './useStaticSetFilter'; export const useInstigationStatusFilter = () => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useStaticSetFilter.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useStaticSetFilter.tsx index ebe3f8f66649a..72b9d1aa46fca 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useStaticSetFilter.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useStaticSetFilter.tsx @@ -1,9 +1,9 @@ -import {Box, Checkbox, IconName, Popover} from '@dagster-io/ui-components'; import React from 'react'; +import {Box, Checkbox, IconName, Popover} from '@dagster-io/ui-components'; + import {useUpdatingRef} from '../../hooks/useUpdatingRef'; import {LaunchpadHooksContext} from '../../launchpad/LaunchpadHooksContext'; - import {FilterObject, FilterTag, FilterTagHighlightedText} from './useFilter'; export type SetFilterValue = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useSuggestionFilter.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useSuggestionFilter.tsx index 46e1965e3a405..7b5ffb1cb90bf 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useSuggestionFilter.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useSuggestionFilter.tsx @@ -1,8 +1,8 @@ -import {Box, IconName} from '@dagster-io/ui-components'; import React from 'react'; -import {useUpdatingRef} from '../../hooks/useUpdatingRef'; +import {Box, IconName} from '@dagster-io/ui-components'; +import {useUpdatingRef} from '../../hooks/useUpdatingRef'; import {FilterObject} from './useFilter'; import {SetFilterActiveState} from './useStaticSetFilter'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useTimeRangeFilter.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useTimeRangeFilter.tsx index 9c2f411ab9355..7a8e13239709d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useTimeRangeFilter.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Filters/useTimeRangeFilter.tsx @@ -1,27 +1,27 @@ +import dayjs from 'dayjs'; +import timezone from 'dayjs/plugin/timezone'; +import utc from 'dayjs/plugin/utc'; +import isEqual from 'lodash/isEqual'; +import React from 'react'; +import styled from 'styled-components'; + import { - IconName, Box, - Icon, - Dialog, Button, + Dialog, DialogFooter, + Icon, + IconName, colorAccentPrimary, colorBackgroundBlue, - colorTextBlue, colorBackgroundBlueHover, colorBorderDefault, + colorTextBlue, } from '@dagster-io/ui-components'; -import dayjs from 'dayjs'; -import timezone from 'dayjs/plugin/timezone'; -import utc from 'dayjs/plugin/utc'; -import isEqual from 'lodash/isEqual'; -import React from 'react'; -import styled from 'styled-components'; import {TimeContext} from '../../app/time/TimeContext'; import {browserTimezone} from '../../app/time/browserTimezone'; import {useUpdatingRef} from '../../hooks/useUpdatingRef'; - import {FilterObject, FilterTag, FilterTagHighlightedText} from './useFilter'; const DateRangePicker = React.lazy(() => import('./DateRangePickerWrapper')); diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/GraphQueryInput.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/GraphQueryInput.tsx index e11e92befa1dc..101a7561ccfee 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/GraphQueryInput.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/GraphQueryInput.tsx @@ -1,38 +1,39 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; import {Intent, PopoverPosition} from '@blueprintjs/core'; +import isEqual from 'lodash/isEqual'; +import uniq from 'lodash/uniq'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Button, Checkbox, + Dialog, + DialogBody, + DialogFooter, Icon, - MenuItem, Menu, + MenuItem, Popover, - TextInput, - Tooltip, - Dialog, - DialogFooter, - DialogBody, Table, Tag, - colorKeylineDefault, - colorLinkDefault, + TextInput, + Tooltip, + colorAccentGray, colorAccentGreen, colorAccentRed, colorAccentYellow, colorBackgroundDefault, - colorTextLight, colorBorderDefault, - colorAccentGray, + colorKeylineDefault, + colorLinkDefault, colorShadowDefault, + colorTextLight, } from '@dagster-io/ui-components'; -import isEqual from 'lodash/isEqual'; -import uniq from 'lodash/uniq'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; -import {filterByQuery, GraphQueryItem} from '../app/GraphQueryImpl'; +import {GraphQueryItem, filterByQuery} from '../app/GraphQueryImpl'; import {dynamicKeyWithoutIndex, isDynamicStep} from '../gantt/DynamicStepSupport'; import {GraphExplorerSolidFragment} from '../pipelines/types/GraphExplorer.types'; import {workspacePipelinePath} from '../workspace/workspacePath'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Loading.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Loading.tsx index a8982b5a874c8..148e33611932c 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Loading.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Loading.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {ApolloError, QueryResult} from '@apollo/client'; + import {Box, NonIdealState, Spinner} from '@dagster-io/ui-components'; -import * as React from 'react'; import {ERROR_CODES_TO_SURFACE, errorCodeToMessage} from '../app/HTTPErrorCodes'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/Markdown.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/Markdown.tsx index 57ca2d28acc8c..82f868018f271 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/Markdown.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/Markdown.tsx @@ -1,7 +1,8 @@ -import {FontFamily, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {FontFamily, colorTextLight} from '@dagster-io/ui-components'; + const MarkdownWithPlugins = React.lazy(() => import('./MarkdownWithPlugins')); interface Props { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/MarkdownWithPlugins.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/MarkdownWithPlugins.tsx index ee36ce7cfab9e..a708d54e13a10 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/MarkdownWithPlugins.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/MarkdownWithPlugins.tsx @@ -1,11 +1,10 @@ import * as React from 'react'; +import 'highlight.js/styles/github.css'; import ReactMarkdown from 'react-markdown'; import rehypeHighlight from 'rehype-highlight'; import rehypeSanitize, {defaultSchema} from 'rehype-sanitize'; import gfm from 'remark-gfm'; -import 'highlight.js/styles/github.css'; - const sanitizeConfig = { ...defaultSchema, protocols: { diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/MenuLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/MenuLink.tsx index 02ca470b41c76..e5b192cab23bb 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/MenuLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/MenuLink.tsx @@ -1,16 +1,17 @@ // eslint-disable-next-line no-restricted-imports +import * as React from 'react'; +import {Link, LinkProps} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, CommonMenuItemProps, IconWrapper, - iconWithColor, MenuItem, - colorTextDefault, colorBackgroundLighter, + colorTextDefault, + iconWithColor, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link, LinkProps} from 'react-router-dom'; -import styled from 'styled-components'; interface MenuLinkProps extends CommonMenuItemProps, diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/NotebookButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/NotebookButton.tsx index 190546da62bad..e07397ca53f5e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/NotebookButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/NotebookButton.tsx @@ -1,12 +1,13 @@ +import * as React from 'react'; + import { Button, + Dialog, DialogBody, DialogFooter, - Dialog, - Icon, ExternalAnchorButton, + Icon, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {AppContext} from '../app/AppContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/SearchInputSpinner.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/SearchInputSpinner.tsx index 699ac9c95abf9..f53fb4656f35b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/SearchInputSpinner.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/SearchInputSpinner.tsx @@ -1,6 +1,7 @@ -import {Box, Spinner, Tooltip, useDelayedState} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Spinner, Tooltip, useDelayedState} from '@dagster-io/ui-components'; + interface Props { tooltipContent: string | React.ReactElement | null; } diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/SectionedLeftNav.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/SectionedLeftNav.tsx index 0f1f020952f60..223968d610b67 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/SectionedLeftNav.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/SectionedLeftNav.tsx @@ -1,3 +1,8 @@ +import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; +import {useRouteMatch} from 'react-router-dom'; +import styled from 'styled-components'; + import { BaseTag, Box, @@ -14,10 +19,6 @@ import { colorTextDisabled, colorTextLighter, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import * as React from 'react'; -import {useRouteMatch} from 'react-router-dom'; -import styled from 'styled-components'; import {AppContext} from '../app/AppContext'; import {useFeatureFlags} from '../app/Flags'; @@ -32,11 +33,10 @@ import { } from '../nav/getLeftNavItemsForOption'; import {explorerPathFromString} from '../pipelines/PipelinePathUtils'; import {WorkspaceContext} from '../workspace/WorkspaceContext'; -import {buildRepoAddress, DUNDER_REPO_NAME} from '../workspace/buildRepoAddress'; +import {DUNDER_REPO_NAME, buildRepoAddress} from '../workspace/buildRepoAddress'; import {repoAddressAsHumanString, repoAddressAsURLString} from '../workspace/repoAddressAsString'; import {repoAddressFromPath} from '../workspace/repoAddressFromPath'; import {RepoAddress} from '../workspace/types'; - import {Inner, Row} from './VirtualizedTable'; const validateExpandedKeys = (parsed: unknown) => (Array.isArray(parsed) ? parsed : []); diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/StickyTableContainer.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/StickyTableContainer.tsx index 5a4e25c4e3778..8447e35b26d43 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/StickyTableContainer.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/StickyTableContainer.tsx @@ -1,6 +1,7 @@ -import {colorBackgroundDefault, colorKeylineDefault} from '@dagster-io/ui-components'; import styled from 'styled-components'; +import {colorBackgroundDefault, colorKeylineDefault} from '@dagster-io/ui-components'; + interface Props { $top?: number; } diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/TabLink.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/TabLink.tsx index e77d71071cb22..3bf38a72fe64e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/TabLink.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/TabLink.tsx @@ -1,8 +1,9 @@ -import {TabStyleProps, getTabA11yProps, getTabContent, tabCSS} from '@dagster-io/ui-components'; import * as React from 'react'; import {Link, LinkProps} from 'react-router-dom'; import styled from 'styled-components'; +import {TabStyleProps, getTabA11yProps, getTabContent, tabCSS} from '@dagster-io/ui-components'; + interface TabLinkProps extends TabStyleProps, Omit { title?: React.ReactNode; } diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/TagActions.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/TagActions.tsx index 6b686a6126d7f..88c9b380196ec 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/TagActions.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/TagActions.tsx @@ -1,14 +1,15 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Caption, Popover, + colorBorderHover, colorTooltipBackground, colorTooltipText, - colorBorderHover, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {TagType} from '../runs/RunTag'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/TimeFromNow.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/TimeFromNow.tsx index 8edaaf9e489cd..f13ce35925306 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/TimeFromNow.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/TimeFromNow.tsx @@ -1,7 +1,8 @@ -import {Tooltip} from '@dagster-io/ui-components'; +import * as React from 'react'; import dayjs from 'dayjs'; import relativeTime from 'dayjs/plugin/relativeTime'; -import * as React from 'react'; + +import {Tooltip} from '@dagster-io/ui-components'; import {Timestamp} from '../app/time/Timestamp'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/ToggleableSection.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/ToggleableSection.tsx index f111805f5e361..5e678ea05e38b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/ToggleableSection.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/ToggleableSection.tsx @@ -1,7 +1,8 @@ -import {Box, Icon, colorBackgroundLight} from '@dagster-io/ui-components'; import React from 'react'; import styled from 'styled-components'; +import {Box, Icon, colorBackgroundLight} from '@dagster-io/ui-components'; + export const ToggleableSection = ({ isInitiallyOpen, title, diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/VirtualizedItemListForDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/VirtualizedItemListForDialog.tsx index 442cbc560dfd9..81cf7018535ff 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/VirtualizedItemListForDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/VirtualizedItemListForDialog.tsx @@ -1,6 +1,7 @@ -import {Box} from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; + +import {Box} from '@dagster-io/ui-components'; import {Container, Inner, Row} from './VirtualizedTable'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/VirtualizedTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/VirtualizedTable.tsx index 34e32a74c7c8d..6a76c1a090751 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/VirtualizedTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/VirtualizedTable.tsx @@ -1,7 +1,8 @@ -import {Box} from '@dagster-io/ui-components'; import * as React from 'react'; import styled from 'styled-components'; +import {Box} from '@dagster-io/ui-components'; + export const HeaderCell = ({ children, style, diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/AnchorButton.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/AnchorButton.stories.tsx index 142e81364e566..05121c7e517b8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/AnchorButton.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/AnchorButton.stories.tsx @@ -1,6 +1,7 @@ -import {ExternalAnchorButton, Group, Icon} from '@dagster-io/ui-components'; -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; + +import {ExternalAnchorButton, Group, Icon} from '@dagster-io/ui-components'; import {AnchorButton} from '../AnchorButton'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/Markdown.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/Markdown.stories.tsx index 8d8716048afc3..89005d7c9be13 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/Markdown.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/Markdown.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {Markdown} from '../Markdown'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/SectionedLeftNav.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/SectionedLeftNav.stories.tsx index 3c4c674f9be3e..0dbac744862f4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/SectionedLeftNav.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/__stories__/SectionedLeftNav.stories.tsx @@ -1,5 +1,5 @@ -import {Meta} from '@storybook/react'; import * as React from 'react'; +import {Meta} from '@storybook/react'; import {LEFT_NAV_WIDTH} from '../../nav/LeftNav'; import {StorybookProvider} from '../../testing/StorybookProvider'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/__tests__/useFormatDateTime.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/__tests__/useFormatDateTime.test.tsx index f6ef710414c6b..621da00b1c4fa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/__tests__/useFormatDateTime.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/__tests__/useFormatDateTime.test.tsx @@ -1,5 +1,5 @@ -import {render, screen} from '@testing-library/react'; import * as React from 'react'; +import {render, screen} from '@testing-library/react'; import {HourCycleKey, TimeProvider, TimezoneStorageKey} from '../../app/time/TimeContext'; import {useFormatDateTime} from '../useFormatDateTime'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/ui/__tests__/useRepoExpansionState.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/ui/__tests__/useRepoExpansionState.test.tsx index 9b317499ea235..e3feb9124fcbd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/ui/__tests__/useRepoExpansionState.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/ui/__tests__/useRepoExpansionState.test.tsx @@ -1,6 +1,6 @@ +import * as React from 'react'; import {render, screen, waitFor} from '@testing-library/react'; import userEvent from '@testing-library/user-event'; -import * as React from 'react'; import {repoAddressFromPath} from '../../workspace/repoAddressFromPath'; import {buildStorageKey, useRepoExpansionState} from '../useRepoExpansionState'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workers/dagre_layout.worker.ts b/js_modules/dagster-ui/packages/ui-core/src/workers/dagre_layout.worker.ts index 54a73a5fc9425..a38fb2839bb38 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workers/dagre_layout.worker.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workers/dagre_layout.worker.ts @@ -1,5 +1,4 @@ /* eslint-disable no-restricted-globals */ - import {layoutAssetGraph} from '../asset-graph/layout'; import {layoutOpGraph} from '../graph/layout'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workers/fuseSearch.worker.ts b/js_modules/dagster-ui/packages/ui-core/src/workers/fuseSearch.worker.ts index 0c0c7d2968b90..0ee2ee944f5c4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workers/fuseSearch.worker.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workers/fuseSearch.worker.ts @@ -1,7 +1,6 @@ /** * A Web Worker that creates and queries a Fuse object. */ - import {Fuse} from '../search/fuse'; let fuseObject: any = null; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationMenu.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationMenu.tsx index 9b982818fc0d0..c6e1ac15d77f1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationMenu.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationMenu.tsx @@ -1,3 +1,6 @@ +import * as React from 'react'; +import * as yaml from 'yaml'; + import { Button, Dialog, @@ -9,8 +12,6 @@ import { StyledRawCodeMirror, Table, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import * as yaml from 'yaml'; import {WorkspaceRepositoryLocationNode} from './WorkspaceContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationRowSet.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationRowSet.tsx index 94e9bce43dbfa..f976873722c7a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationRowSet.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationRowSet.tsx @@ -1,3 +1,7 @@ +import * as React from 'react'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Button, @@ -10,9 +14,6 @@ import { colorBackgroundDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {showSharedToaster} from '../app/DomUtils'; import {useCopyToClipboard} from '../app/browser'; @@ -25,7 +26,6 @@ import { useRepositoryLocationReload, } from '../nav/useRepositoryLocationReload'; import {TimeFromNow} from '../ui/TimeFromNow'; - import {CodeLocationMenu} from './CodeLocationMenu'; import {RepositoryCountTags} from './RepositoryCountTags'; import {RepositoryLocationNonBlockingErrorDialog} from './RepositoryLocationErrorDialog'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationSource.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationSource.tsx index 0cec40afbafe2..b54937dc3bb03 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationSource.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/CodeLocationSource.tsx @@ -1,6 +1,7 @@ -import {Box, Icon, colorLinkDefault, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Icon, colorLinkDefault, colorTextLight} from '@dagster-io/ui-components'; + interface Metadata { key: string; value: string; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/GraphRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/GraphRoot.tsx index 254f45db425fa..683a6edfc6e76 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/GraphRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/GraphRoot.tsx @@ -1,23 +1,23 @@ import {gql, useQuery} from '@apollo/client'; -import {Box, NonIdealState, PageHeader, Tag, Heading} from '@dagster-io/ui-components'; import React from 'react'; import {useHistory, useParams} from 'react-router-dom'; +import {Box, Heading, NonIdealState, PageHeader, Tag} from '@dagster-io/ui-components'; + import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {RepositoryLink} from '../nav/RepositoryLink'; import {explodeCompositesInHandleGraph} from '../pipelines/CompositeSupport'; import { - GraphExplorer, - GraphExplorerOptions, GRAPH_EXPLORER_FRAGMENT, GRAPH_EXPLORER_SOLID_HANDLE_FRAGMENT, + GraphExplorer, + GraphExplorerOptions, } from '../pipelines/GraphExplorer'; import {explorerPathFromString, explorerPathToString} from '../pipelines/PipelinePathUtils'; import {Loading} from '../ui/Loading'; import {workspacePathFromAddress} from '../workspace/workspacePath'; - import {RepoAddress} from './types'; import {GraphExplorerRootQuery, GraphExplorerRootQueryVariables} from './types/GraphRoot.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/GuessJobLocationRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/GuessJobLocationRoot.tsx index bf5b89fe162e7..9959c0731fbfa 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/GuessJobLocationRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/GuessJobLocationRoot.tsx @@ -1,19 +1,19 @@ +import * as React from 'react'; +import {Link, Redirect, useLocation, useParams, useRouteMatch} from 'react-router-dom'; + import { Alert, Box, + Heading, NonIdealState, Page, PageHeader, Table, - Heading, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link, Redirect, useLocation, useParams, useRouteMatch} from 'react-router-dom'; import {useTrackPageView} from '../app/analytics'; import {explorerPathFromString} from '../pipelines/PipelinePathUtils'; import {LoadingSpinner} from '../ui/Loading'; - import {isThisThingAJob, optionToRepoAddress, useRepositoryOptions} from './WorkspaceContext'; import {buildRepoPathForHuman} from './buildRepoAddress'; import {findRepoContainingPipeline} from './findRepoContainingPipeline'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/ReloadAllButton.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/ReloadAllButton.tsx index f9a974ddb96c7..809c31dba7663 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/ReloadAllButton.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/ReloadAllButton.tsx @@ -1,13 +1,13 @@ -import {Button, Dialog, DialogBody, DialogFooter, Icon, Tooltip} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Button, Dialog, DialogBody, DialogFooter, Icon, Tooltip} from '@dagster-io/ui-components'; + import {useUnscopedPermissions} from '../app/Permissions'; import {PythonErrorInfo} from '../app/PythonErrorInfo'; import { reloadFnForWorkspace, useRepositoryLocationReload, } from '../nav/useRepositoryLocationReload'; - import {RepositoryLocationErrorDialog} from './RepositoryLocationErrorDialog'; export const ReloadAllButton = ({label = 'Reload all'}: {label?: string}) => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryCountTags.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryCountTags.tsx index b6af28f6e3ac7..9b42aa6f3541b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryCountTags.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryCountTags.tsx @@ -1,10 +1,10 @@ -import {Box, Tag, Tooltip} from '@dagster-io/ui-components'; import * as React from 'react'; import {Link} from 'react-router-dom'; import styled from 'styled-components'; -import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; +import {Box, Tag, Tooltip} from '@dagster-io/ui-components'; +import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; import {DagsterRepoOption} from './WorkspaceContext'; import {RepoAddress} from './types'; import {workspacePathFromAddress} from './workspacePath'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryInformation.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryInformation.tsx index 50cc2a67a826b..cf293f17fdc90 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryInformation.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryInformation.tsx @@ -1,5 +1,5 @@ -import {gql} from '@apollo/client'; import * as React from 'react'; +import {gql} from '@apollo/client'; import {InstigationStateFragment} from '../instigation/types/InstigationUtils.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryLocationErrorDialog.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryLocationErrorDialog.tsx index 2d398af4d9bc4..9eb21ba7f6119 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryLocationErrorDialog.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryLocationErrorDialog.tsx @@ -1,6 +1,7 @@ -import {Box, Button, DialogBody, DialogFooter, Dialog} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box, Button, Dialog, DialogBody, DialogFooter} from '@dagster-io/ui-components'; + import {PythonErrorInfo} from '../app/PythonErrorInfo'; import {PythonErrorFragment} from '../app/types/PythonErrorFragment.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryLocationsList.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryLocationsList.tsx index 25a7c969f3c1f..2800871ddf964 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryLocationsList.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/RepositoryLocationsList.tsx @@ -1,9 +1,9 @@ -import {Box, NonIdealState, Spinner} from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; -import {Container, DynamicRowContainer, Inner} from '../ui/VirtualizedTable'; +import {Box, NonIdealState, Spinner} from '@dagster-io/ui-components'; +import {Container, DynamicRowContainer, Inner} from '../ui/VirtualizedTable'; import { CodeLocationRowType, VirtualizedCodeLocationErrorRow, diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedAssetRow.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedAssetRow.tsx index 578ce300d32a5..685003db66238 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedAssetRow.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedAssetRow.tsx @@ -1,4 +1,8 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Caption, @@ -8,9 +12,6 @@ import { colorBackgroundDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {useAssetsLiveData} from '../asset-data/AssetLiveDataProvider'; import {buildAssetNodeStatusContent} from '../asset-graph/AssetNodeStatusContent'; @@ -29,7 +30,6 @@ import {RepositoryLink} from '../nav/RepositoryLink'; import {TimestampDisplay} from '../schedules/TimestampDisplay'; import {testId} from '../testing/testId'; import {HeaderCell, Row, RowCell} from '../ui/VirtualizedTable'; - import {RepoAddress} from './types'; import { SingleNonSdaAssetQuery, diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedAssetTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedAssetTable.tsx index 826f0981846a5..7ce1a614010e5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedAssetTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedAssetTable.tsx @@ -1,11 +1,10 @@ -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; import {AssetTableFragment} from '../assets/types/AssetTableFragment.types'; import {AssetViewType} from '../assets/useAssetView'; import {AssetKeyInput} from '../graphql/types'; import {Container, Inner} from '../ui/VirtualizedTable'; - import {VirtualizedAssetCatalogHeader, VirtualizedAssetRow} from './VirtualizedAssetRow'; import {buildRepoAddress} from './buildRepoAddress'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedCodeLocationRow.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedCodeLocationRow.tsx index c94cf3055e50f..cc54424ea99ca 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedCodeLocationRow.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedCodeLocationRow.tsx @@ -1,11 +1,11 @@ -import {Box, JoinedButtons, MiddleTruncate, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; import {Link} from 'react-router-dom'; import styled from 'styled-components'; +import {Box, JoinedButtons, MiddleTruncate, colorTextLight} from '@dagster-io/ui-components'; + import {TimeFromNow} from '../ui/TimeFromNow'; import {HeaderCell, RowCell} from '../ui/VirtualizedTable'; - import {CodeLocationMenu} from './CodeLocationMenu'; import {ImageName, LocationStatus, ModuleOrPackageOrFile, ReloadButton} from './CodeLocationRowSet'; import {RepositoryCountTags} from './RepositoryCountTags'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedGraphTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedGraphTable.tsx index d463b1e0b98b8..6cbe19453db5b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedGraphTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedGraphTable.tsx @@ -1,12 +1,12 @@ +import * as React from 'react'; import {gql, useLazyQuery} from '@apollo/client'; -import {Box, Caption, colorTextLight} from '@dagster-io/ui-components'; import {useVirtualizer} from '@tanstack/react-virtual'; -import * as React from 'react'; import {Link} from 'react-router-dom'; import styled from 'styled-components'; -import {Container, HeaderCell, Inner, Row, RowCell} from '../ui/VirtualizedTable'; +import {Box, Caption, colorTextLight} from '@dagster-io/ui-components'; +import {Container, HeaderCell, Inner, Row, RowCell} from '../ui/VirtualizedTable'; import {useDelayedRowQuery} from './VirtualizedWorkspaceTable'; import {RepoAddress} from './types'; import {SingleGraphQuery, SingleGraphQueryVariables} from './types/VirtualizedGraphTable.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedJobRow.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedJobRow.tsx index b9ee338ccddf7..9ed686109b3fd 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedJobRow.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedJobRow.tsx @@ -1,10 +1,11 @@ -import {gql, useLazyQuery} from '@apollo/client'; -import {Box, MiddleTruncate, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; +import {gql, useLazyQuery} from '@apollo/client'; import {Link} from 'react-router-dom'; import styled from 'styled-components'; -import {useQueryRefreshAtInterval, FIFTEEN_SECONDS} from '../app/QueryRefresh'; +import {Box, MiddleTruncate, colorTextLight} from '@dagster-io/ui-components'; + +import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {JobMenu} from '../instance/JobMenu'; import {LastRunSummary} from '../instance/LastRunSummary'; import {ScheduleOrSensorTag} from '../nav/ScheduleOrSensorTag'; @@ -13,7 +14,6 @@ import {RUN_TIME_FRAGMENT} from '../runs/RunUtils'; import {SCHEDULE_SWITCH_FRAGMENT} from '../schedules/ScheduleSwitch'; import {SENSOR_SWITCH_FRAGMENT} from '../sensors/SensorSwitch'; import {HeaderCell, Row, RowCell} from '../ui/VirtualizedTable'; - import {CaptionText, LoadingOrNone, useDelayedRowQuery} from './VirtualizedWorkspaceTable'; import {buildPipelineSelector} from './WorkspaceContext'; import {RepoAddress} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedJobTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedJobTable.tsx index 781522599ee47..35dc67c304b46 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedJobTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedJobTable.tsx @@ -1,8 +1,7 @@ -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; import {Container, Inner} from '../ui/VirtualizedTable'; - import {VirtualizedJobHeader, VirtualizedJobRow} from './VirtualizedJobRow'; import {RepoAddress} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedRepoAssetTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedRepoAssetTable.tsx index 15804cdc6a085..c44bf90d2aaf6 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedRepoAssetTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedRepoAssetTable.tsx @@ -1,4 +1,9 @@ +import * as React from 'react'; import {gql} from '@apollo/client'; +import {useVirtualizer} from '@tanstack/react-virtual'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Icon, @@ -7,16 +12,11 @@ import { colorBackgroundLight, colorLinkDefault, } from '@dagster-io/ui-components'; -import {useVirtualizer} from '@tanstack/react-virtual'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; import {AppContext} from '../app/AppContext'; import {ASSET_TABLE_DEFINITION_FRAGMENT} from '../assets/AssetTableFragment'; import {useStateWithStorage} from '../hooks/useStateWithStorage'; import {Container, Inner, Row} from '../ui/VirtualizedTable'; - import {VirtualizedAssetHeader, VirtualizedAssetRow} from './VirtualizedAssetRow'; import {repoAddressAsHumanString} from './repoAddressAsString'; import {RepoAddress} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedScheduleRow.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedScheduleRow.tsx index c6e997d2e1c6b..21fb3163db510 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedScheduleRow.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedScheduleRow.tsx @@ -1,4 +1,8 @@ +import * as React from 'react'; import {gql, useLazyQuery} from '@apollo/client'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Button, @@ -12,25 +16,21 @@ import { colorTextDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; -import {useQueryRefreshAtInterval, FIFTEEN_SECONDS} from '../app/QueryRefresh'; +import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {InstigationStatus} from '../graphql/types'; import {LastRunSummary} from '../instance/LastRunSummary'; import {TICK_TAG_FRAGMENT} from '../instigation/InstigationTick'; import {BasicInstigationStateFragment} from '../overview/types/BasicInstigationStateFragment.types'; import {PipelineReference} from '../pipelines/PipelineReference'; import {RUN_TIME_FRAGMENT} from '../runs/RunUtils'; -import {ScheduleSwitch, SCHEDULE_SWITCH_FRAGMENT} from '../schedules/ScheduleSwitch'; +import {SCHEDULE_SWITCH_FRAGMENT, ScheduleSwitch} from '../schedules/ScheduleSwitch'; import {errorDisplay} from '../schedules/SchedulesTable'; import {TimestampDisplay} from '../schedules/TimestampDisplay'; import {humanCronString} from '../schedules/humanCronString'; import {TickStatusTag} from '../ticks/TickStatusTag'; import {MenuLink} from '../ui/MenuLink'; import {HeaderCell, Row, RowCell} from '../ui/VirtualizedTable'; - import {LoadingOrNone, useDelayedRowQuery} from './VirtualizedWorkspaceTable'; import {isThisThingAJob, useRepository} from './WorkspaceContext'; import {RepoAddress} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedScheduleTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedScheduleTable.tsx index 8f9983c921763..5c45416357d5f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedScheduleTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedScheduleTable.tsx @@ -1,10 +1,9 @@ -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; import {BasicInstigationStateFragment} from '../overview/types/BasicInstigationStateFragment.types'; import {makeScheduleKey} from '../schedules/makeScheduleKey'; import {Container, Inner} from '../ui/VirtualizedTable'; - import {VirtualizedScheduleHeader, VirtualizedScheduleRow} from './VirtualizedScheduleRow'; import {RepoAddress} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedSensorRow.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedSensorRow.tsx index e3fe4a471c5d7..0b86d0071e11d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedSensorRow.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedSensorRow.tsx @@ -1,4 +1,8 @@ +import * as React from 'react'; import {gql, useLazyQuery} from '@apollo/client'; +import {Link} from 'react-router-dom'; +import styled from 'styled-components'; + import { Box, Caption, @@ -8,22 +12,18 @@ import { colorTextDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; -import styled from 'styled-components'; -import {useQueryRefreshAtInterval, FIFTEEN_SECONDS} from '../app/QueryRefresh'; +import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; import {InstigationStatus} from '../graphql/types'; import {LastRunSummary} from '../instance/LastRunSummary'; import {TICK_TAG_FRAGMENT} from '../instigation/InstigationTick'; import {BasicInstigationStateFragment} from '../overview/types/BasicInstigationStateFragment.types'; import {RUN_TIME_FRAGMENT} from '../runs/RunUtils'; import {humanizeSensorInterval} from '../sensors/SensorDetails'; -import {SensorSwitch, SENSOR_SWITCH_FRAGMENT} from '../sensors/SensorSwitch'; +import {SENSOR_SWITCH_FRAGMENT, SensorSwitch} from '../sensors/SensorSwitch'; import {SensorTargetList} from '../sensors/SensorTargetList'; import {TickStatusTag} from '../ticks/TickStatusTag'; import {HeaderCell, Row, RowCell} from '../ui/VirtualizedTable'; - import {LoadingOrNone, useDelayedRowQuery} from './VirtualizedWorkspaceTable'; import {RepoAddress} from './types'; import {SingleSensorQuery, SingleSensorQueryVariables} from './types/VirtualizedSensorRow.types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedSensorTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedSensorTable.tsx index cd6525b3bf84e..08b62f90984d0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedSensorTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedSensorTable.tsx @@ -1,10 +1,9 @@ -import {useVirtualizer} from '@tanstack/react-virtual'; import * as React from 'react'; +import {useVirtualizer} from '@tanstack/react-virtual'; import {BasicInstigationStateFragment} from '../overview/types/BasicInstigationStateFragment.types'; import {makeSensorKey} from '../sensors/makeSensorKey'; import {Container, Inner} from '../ui/VirtualizedTable'; - import {VirtualizedSensorHeader, VirtualizedSensorRow} from './VirtualizedSensorRow'; import {RepoAddress} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedWorkspaceTable.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedWorkspaceTable.tsx index fab82d6da84b0..49aae4a0f4bcf 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedWorkspaceTable.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/VirtualizedWorkspaceTable.tsx @@ -1,11 +1,11 @@ -import {LazyQueryExecFunction, QueryResult} from '@apollo/client'; -import {Caption, colorTextLight} from '@dagster-io/ui-components'; import * as React from 'react'; +import {LazyQueryExecFunction, QueryResult} from '@apollo/client'; import styled from 'styled-components'; +import {Caption, colorTextLight} from '@dagster-io/ui-components'; + import {RepoSectionHeader} from '../runs/RepoSectionHeader'; import {Row} from '../ui/VirtualizedTable'; - import {RepoAddress} from './types'; export const RepoRow = ({ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceAssetsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceAssetsRoot.tsx index 95ffe549312ad..7781cd879c4c1 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceAssetsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceAssetsRoot.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import {Box, NonIdealState, Spinner, TextInput, colorTextLight} from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; @@ -8,7 +9,6 @@ import {useTrackPageView} from '../app/analytics'; import {useAssetNodeSearch} from '../assets/useAssetSearch'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; - import {REPO_ASSET_TABLE_FRAGMENT, VirtualizedRepoAssetTable} from './VirtualizedRepoAssetTable'; import {WorkspaceHeader} from './WorkspaceHeader'; import {repoAddressAsHumanString} from './repoAddressAsString'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceContext.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceContext.tsx index 50ea1b947a737..560d560b5657f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceContext.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceContext.tsx @@ -1,13 +1,12 @@ +import * as React from 'react'; import {ApolloQueryResult, gql, useQuery} from '@apollo/client'; import sortBy from 'lodash/sortBy'; -import * as React from 'react'; import {AppContext} from '../app/AppContext'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {PythonErrorFragment} from '../app/types/PythonErrorFragment.types'; import {PipelineSelector} from '../graphql/types'; import {useStateWithStorage} from '../hooks/useStateWithStorage'; - import {REPOSITORY_INFO_FRAGMENT} from './RepositoryInformation'; import {buildRepoAddress} from './buildRepoAddress'; import {findRepoContainingPipeline} from './findRepoContainingPipeline'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceGraphsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceGraphsRoot.tsx index 327007108dfee..2dbd9fc975a9b 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceGraphsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceGraphsRoot.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import {Box, NonIdealState, Spinner, TextInput, colorTextLight} from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; @@ -8,7 +9,6 @@ import {useTrackPageView} from '../app/analytics'; import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; - import {Graph, VirtualizedGraphTable} from './VirtualizedGraphTable'; import {WorkspaceHeader} from './WorkspaceHeader'; import {repoAddressAsHumanString} from './repoAddressAsString'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceHeader.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceHeader.tsx index 926522b1cb0d2..09aaea7713ef5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceHeader.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceHeader.tsx @@ -1,23 +1,23 @@ +import * as React from 'react'; import {QueryResult} from '@apollo/client'; +import {Link} from 'react-router-dom'; + import { - PageHeader, Box, - Heading, Button, + Heading, Icon, + PageHeader, Tooltip, colorTextDefault, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; -import {Link} from 'react-router-dom'; import {QueryRefreshState} from '../app/QueryRefresh'; import { NO_RELOAD_PERMISSION_TEXT, ReloadRepositoryLocationButton, } from '../nav/ReloadRepositoryLocationButton'; - import {WorkspaceTabs} from './WorkspaceTabs'; import {repoAddressAsHumanString} from './repoAddressAsString'; import {RepoAddress} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceJobsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceJobsRoot.tsx index 019d09d5585b9..a7b16e2945446 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceJobsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceJobsRoot.tsx @@ -1,6 +1,7 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import {Box, NonIdealState, Spinner, TextInput, colorTextLight} from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; @@ -9,7 +10,6 @@ import {isHiddenAssetGroupJob} from '../asset-graph/Utils'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {useQueryPersistedState} from '../hooks/useQueryPersistedState'; import {useStartTrace} from '../performance'; - import {VirtualizedJobTable} from './VirtualizedJobTable'; import {WorkspaceHeader} from './WorkspaceHeader'; import {repoAddressAsHumanString} from './repoAddressAsString'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceOpsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceOpsRoot.tsx index 3761fb199cc27..44d6e4436075a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceOpsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceOpsRoot.tsx @@ -1,10 +1,10 @@ -import {Box} from '@dagster-io/ui-components'; import * as React from 'react'; +import {Box} from '@dagster-io/ui-components'; + import {useTrackPageView} from '../app/analytics'; import {useDocumentTitle} from '../hooks/useDocumentTitle'; import {OpsRoot} from '../ops/OpsRoot'; - import {WorkspaceHeader} from './WorkspaceHeader'; import {repoAddressAsHumanString} from './repoAddressAsString'; import {RepoAddress} from './types'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceRoot.tsx index 52e576c7ab443..ccfe18df4909e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceRoot.tsx @@ -1,14 +1,14 @@ -import {Box, MainContent, NonIdealState} from '@dagster-io/ui-components'; import * as React from 'react'; import {Redirect, Route, Switch, useParams} from 'react-router-dom'; +import {Box, MainContent, NonIdealState} from '@dagster-io/ui-components'; + import {AssetGroupRoot} from '../assets/AssetGroupRoot'; import {PipelineRoot} from '../pipelines/PipelineRoot'; import {ResourceRoot} from '../resources/ResourceRoot'; import {WorkspaceResourcesRoot} from '../resources/WorkspaceResourcesRoot'; import {ScheduleRoot} from '../schedules/ScheduleRoot'; import {SensorRoot} from '../sensors/SensorRoot'; - import {GraphRoot} from './GraphRoot'; import {WorkspaceAssetsRoot} from './WorkspaceAssetsRoot'; import {WorkspaceContext} from './WorkspaceContext'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceSchedulesRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceSchedulesRoot.tsx index 4214d032bebec..8d0412e4442fe 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceSchedulesRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceSchedulesRoot.tsx @@ -1,4 +1,6 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { Box, NonIdealState, @@ -7,7 +9,6 @@ import { Tooltip, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; @@ -22,7 +23,6 @@ import {makeScheduleKey} from '../schedules/makeScheduleKey'; import {CheckAllBox} from '../ui/CheckAllBox'; import {useFilters} from '../ui/Filters'; import {useInstigationStatusFilter} from '../ui/Filters/useInstigationStatusFilter'; - import {VirtualizedScheduleTable} from './VirtualizedScheduleTable'; import {WorkspaceHeader} from './WorkspaceHeader'; import {repoAddressAsHumanString} from './repoAddressAsString'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceSensorsRoot.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceSensorsRoot.tsx index 910ec2ef347ff..dcb1268e17491 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceSensorsRoot.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceSensorsRoot.tsx @@ -1,4 +1,6 @@ +import * as React from 'react'; import {gql, useQuery} from '@apollo/client'; + import { Box, NonIdealState, @@ -7,7 +9,6 @@ import { Tooltip, colorTextLight, } from '@dagster-io/ui-components'; -import * as React from 'react'; import {PYTHON_ERROR_FRAGMENT} from '../app/PythonErrorFragment'; import {FIFTEEN_SECONDS, useQueryRefreshAtInterval} from '../app/QueryRefresh'; @@ -22,7 +23,6 @@ import {makeSensorKey} from '../sensors/makeSensorKey'; import {CheckAllBox} from '../ui/CheckAllBox'; import {useFilters} from '../ui/Filters'; import {useInstigationStatusFilter} from '../ui/Filters/useInstigationStatusFilter'; - import {VirtualizedSensorTable} from './VirtualizedSensorTable'; import {WorkspaceHeader} from './WorkspaceHeader'; import {repoAddressAsHumanString} from './repoAddressAsString'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceTabs.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceTabs.tsx index 81a2ac79d688e..3169fecbf3223 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceTabs.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/WorkspaceTabs.tsx @@ -1,10 +1,10 @@ +import * as React from 'react'; import {QueryResult} from '@apollo/client'; + import {Box, Tabs} from '@dagster-io/ui-components'; -import * as React from 'react'; import {QueryRefreshCountdown, QueryRefreshState} from '../app/QueryRefresh'; import {TabLink} from '../ui/TabLink'; - import {RepoAddress} from './types'; import {workspacePathFromAddress} from './workspacePath'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/__stories__/VirtualizedJobTable.stories.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/__stories__/VirtualizedJobTable.stories.tsx index e860dddf9c9d4..73f09b41fc61e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/__stories__/VirtualizedJobTable.stories.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/__stories__/VirtualizedJobTable.stories.tsx @@ -1,7 +1,8 @@ -import {Box, TextInput} from '@dagster-io/ui-components'; +import * as React from 'react'; import {Meta} from '@storybook/react'; import faker from 'faker'; -import * as React from 'react'; + +import {Box, TextInput} from '@dagster-io/ui-components'; import {useQueryPersistedState} from '../../hooks/useQueryPersistedState'; import {StorybookProvider} from '../../testing/StorybookProvider'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/__tests__/CodeLocationSource.test.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/__tests__/CodeLocationSource.test.tsx index 88836a560fd3e..7c65bc1f63a75 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/__tests__/CodeLocationSource.test.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/__tests__/CodeLocationSource.test.tsx @@ -1,5 +1,5 @@ -import {render, screen} from '@testing-library/react'; import * as React from 'react'; +import {render, screen} from '@testing-library/react'; import {CodeLocationSource} from '../CodeLocationSource'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/__tests__/buildRepoAddress.test.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/__tests__/buildRepoAddress.test.ts index ddddb402715fb..1de468c3215a2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/__tests__/buildRepoAddress.test.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/__tests__/buildRepoAddress.test.ts @@ -1,8 +1,8 @@ import { + DUNDER_REPO_NAME, buildRepoAddress, buildRepoPathForHuman, buildRepoPathForURL, - DUNDER_REPO_NAME, } from '../buildRepoAddress'; describe('Repo address utilities', () => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/repoAddressFromPath.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/repoAddressFromPath.ts index 6da000043f5cb..be52645b74ac2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/repoAddressFromPath.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/repoAddressFromPath.ts @@ -1,4 +1,4 @@ -import {buildRepoAddress, DUNDER_REPO_NAME} from './buildRepoAddress'; +import {DUNDER_REPO_NAME, buildRepoAddress} from './buildRepoAddress'; import {RepoAddress} from './types'; export const repoAddressFromPath = (path: string): RepoAddress | null => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/repoAddressToSelector.tsx b/js_modules/dagster-ui/packages/ui-core/src/workspace/repoAddressToSelector.tsx index aa8069f246c86..ebac18005d636 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/repoAddressToSelector.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/repoAddressToSelector.tsx @@ -1,7 +1,6 @@ import memoize from 'lodash/memoize'; import {RepositorySelector} from '../graphql/types'; - import {RepoAddress} from './types'; export const repoAddressToSelector = memoize((repoAddress: RepoAddress): RepositorySelector => { diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/GraphRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/GraphRoot.types.ts index fa851055102a3..02fd57e721f8d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/GraphRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/GraphRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type GraphExplorerRootQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/RepositoryInformation.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/RepositoryInformation.types.ts index 37928aabbd3d1..eb69c6b2ac94f 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/RepositoryInformation.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/RepositoryInformation.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RepositoryInfoFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedAssetRow.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedAssetRow.types.ts index 00d13f775c415..eec3cd813d8a0 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedAssetRow.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedAssetRow.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SingleNonSdaAssetQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedGraphTable.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedGraphTable.types.ts index 7446de409e6ad..cbdaccee2454d 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedGraphTable.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedGraphTable.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SingleGraphQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedJobRow.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedJobRow.types.ts index 48ae1c65923d4..f93604a6c8e8e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedJobRow.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedJobRow.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SingleJobQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedRepoAssetTable.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedRepoAssetTable.types.ts index 2b46adc8d309d..12dca2622a9f2 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedRepoAssetTable.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedRepoAssetTable.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RepoAssetTableFragment = { diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedScheduleRow.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedScheduleRow.types.ts index 2a29eacc5c7cd..7b1d04f730e66 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedScheduleRow.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedScheduleRow.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SingleScheduleQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedSensorRow.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedSensorRow.types.ts index 5f893b69e35e5..fd5f8d4c5a9d4 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedSensorRow.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/VirtualizedSensorRow.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type SingleSensorQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceAssetsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceAssetsRoot.types.ts index 2dbd248651f0e..7dc41027dd236 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceAssetsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceAssetsRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type WorkspaceAssetsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceContext.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceContext.types.ts index a5d84381f5b59..51a9bbae7ba9a 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceContext.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceContext.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type RootWorkspaceQueryVariables = Types.Exact<{[key: string]: never}>; diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceGraphsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceGraphsRoot.types.ts index 08cfdade30195..3f0166a60792e 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceGraphsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceGraphsRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type WorkspaceGraphsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceJobsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceJobsRoot.types.ts index 0ae1f87ec1fbc..1a66fdcc7b6e5 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceJobsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceJobsRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type WorkspaceJobsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceSchedulesRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceSchedulesRoot.types.ts index 0ef8fb7163de2..de586f764f7e8 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceSchedulesRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceSchedulesRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type WorkspaceSchedulesQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceSensorsRoot.types.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceSensorsRoot.types.ts index 9d44a79aa3a24..09668a998f7c3 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceSensorsRoot.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/types/WorkspaceSensorsRoot.types.ts @@ -1,5 +1,4 @@ // Generated GraphQL types, do not edit manually. - import * as Types from '../../graphql/types'; export type WorkspaceSensorsQueryVariables = Types.Exact<{ diff --git a/js_modules/dagster-ui/packages/ui-core/src/workspace/workspacePath.ts b/js_modules/dagster-ui/packages/ui-core/src/workspace/workspacePath.ts index 1ff66364a56bd..593ee53176d70 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/workspace/workspacePath.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/workspace/workspacePath.ts @@ -4,7 +4,6 @@ import {isHiddenAssetGroupJob, tokenForAssetKey} from '../asset-graph/Utils'; import {globalAssetGraphPathToString} from '../assets/globalAssetGraphPathToString'; import {Run} from '../graphql/types'; import {NO_LAUNCH_PERMISSION_MESSAGE} from '../launchpad/LaunchRootExecutionButton'; - import {buildRepoPathForURL} from './buildRepoAddress'; import {RepoAddress} from './types'; diff --git a/js_modules/dagster-ui/tox.ini b/js_modules/dagster-ui/tox.ini index db0c56d905116..d7ad6ebcd842f 100644 --- a/js_modules/dagster-ui/tox.ini +++ b/js_modules/dagster-ui/tox.ini @@ -23,14 +23,16 @@ commands = yarn workspace @dagster-io/ui-core generate-graphql yarn workspace @dagster-io/ui-core generate-perms yarn workspace @dagster-io/app-oss ts + yarn workspace @dagster-io/app-oss format yarn workspace @dagster-io/app-oss lint yarn workspace @dagster-io/ui-core ts + yarn workspace @dagster-io/ui-core format yarn workspace @dagster-io/ui-core lint yarn workspace @dagster-io/ui-components ts + yarn workspace @dagster-io/ui-components format yarn workspace @dagster-io/ui-components lint yarn workspace @dagster-io/ui-core jest --clearCache yarn workspace @dagster-io/ui-core jest-all-silent --testTimeout=10000 --ci --logHeapUsage --workerIdleMemoryLimit=1GB - yarn workspace @dagster-io/ui-core check-prettier yarn workspace @dagster-io/ui-core check-lint yarn workspace @dagster-io/ui-components jest --clearCache yarn workspace @dagster-io/ui-components jest-all-silent --testTimeout=10000 --ci --logHeapUsage --workerIdleMemoryLimit=1GB diff --git a/js_modules/dagster-ui/yarn.lock b/js_modules/dagster-ui/yarn.lock index c529e8b0226f3..737453c688317 100644 --- a/js_modules/dagster-ui/yarn.lock +++ b/js_modules/dagster-ui/yarn.lock @@ -263,6 +263,17 @@ __metadata: languageName: node linkType: hard +"@babel/generator@npm:7.17.7": + version: 7.17.7 + resolution: "@babel/generator@npm:7.17.7" + dependencies: + "@babel/types": "npm:^7.17.0" + jsesc: "npm:^2.5.1" + source-map: "npm:^0.5.0" + checksum: 3303afa2b1310e67071d6c998121b2af1038d6450df266d24fe9a86329fb6288b8ab38bb71787917b3f81a1c4edbc5bc7e6735683fe1d0aa288b33e93daacd60 + languageName: node + linkType: hard + "@babel/generator@npm:^7.12.11, @babel/generator@npm:^7.14.0, @babel/generator@npm:^7.18.13, @babel/generator@npm:^7.22.9, @babel/generator@npm:^7.7.2": version: 7.22.9 resolution: "@babel/generator@npm:7.22.9" @@ -600,7 +611,7 @@ __metadata: languageName: node linkType: hard -"@babel/helper-validator-identifier@npm:^7.22.20": +"@babel/helper-validator-identifier@npm:^7.16.7, @babel/helper-validator-identifier@npm:^7.22.20": version: 7.22.20 resolution: "@babel/helper-validator-identifier@npm:7.22.20" checksum: df882d2675101df2d507b95b195ca2f86a3ef28cb711c84f37e79ca23178e13b9f0d8b522774211f51e40168bf5142be4c1c9776a150cddb61a0d5bf3e95750b @@ -732,6 +743,15 @@ __metadata: languageName: node linkType: hard +"@babel/parser@npm:^7.20.5, @babel/parser@npm:^7.23.6": + version: 7.23.6 + resolution: "@babel/parser@npm:7.23.6" + bin: + parser: ./bin/babel-parser.js + checksum: 6be3a63d3c9d07b035b5a79c022327cb7e16cbd530140ecb731f19a650c794c315a72c699a22413ebeafaff14aa8f53435111898d59e01a393d741b85629fa7d + languageName: node + linkType: hard + "@babel/parser@npm:^7.22.10": version: 7.22.10 resolution: "@babel/parser@npm:7.22.10" @@ -750,15 +770,6 @@ __metadata: languageName: node linkType: hard -"@babel/parser@npm:^7.23.6": - version: 7.23.6 - resolution: "@babel/parser@npm:7.23.6" - bin: - parser: ./bin/babel-parser.js - checksum: 6be3a63d3c9d07b035b5a79c022327cb7e16cbd530140ecb731f19a650c794c315a72c699a22413ebeafaff14aa8f53435111898d59e01a393d741b85629fa7d - languageName: node - linkType: hard - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:^7.22.5": version: 7.22.5 resolution: "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@npm:7.22.5" @@ -2105,7 +2116,7 @@ __metadata: languageName: node linkType: hard -"@babel/traverse@npm:^7.1.6, @babel/traverse@npm:^7.14.0, @babel/traverse@npm:^7.16.8, @babel/traverse@npm:^7.22.10, @babel/traverse@npm:^7.22.6, @babel/traverse@npm:^7.22.8, @babel/traverse@npm:^7.4.5": +"@babel/traverse@npm:7.23.2, @babel/traverse@npm:^7.1.6, @babel/traverse@npm:^7.14.0, @babel/traverse@npm:^7.16.8, @babel/traverse@npm:^7.22.10, @babel/traverse@npm:^7.22.6, @babel/traverse@npm:^7.22.8, @babel/traverse@npm:^7.4.5": version: 7.23.2 resolution: "@babel/traverse@npm:7.23.2" dependencies: @@ -2141,6 +2152,16 @@ __metadata: languageName: node linkType: hard +"@babel/types@npm:7.17.0": + version: 7.17.0 + resolution: "@babel/types@npm:7.17.0" + dependencies: + "@babel/helper-validator-identifier": "npm:^7.16.7" + to-fast-properties: "npm:^2.0.0" + checksum: 535ccef360d0c74e2bb685050f3a45e6ab30f66c740bbdd0858148ed502043f1ae2006a9d0269ac3b7356b690091ae313efd912e408bc0198d80a14b2a6f1537 + languageName: node + linkType: hard + "@babel/types@npm:^7.0.0, @babel/types@npm:^7.1.6, @babel/types@npm:^7.16.8, @babel/types@npm:^7.18.13, @babel/types@npm:^7.2.0, @babel/types@npm:^7.20.7, @babel/types@npm:^7.22.5, @babel/types@npm:^7.3.3, @babel/types@npm:^7.4.4, @babel/types@npm:^7.8.3": version: 7.22.5 resolution: "@babel/types@npm:7.22.5" @@ -2152,7 +2173,7 @@ __metadata: languageName: node linkType: hard -"@babel/types@npm:^7.18.9, @babel/types@npm:^7.23.4, @babel/types@npm:^7.23.6": +"@babel/types@npm:^7.17.0, @babel/types@npm:^7.18.9, @babel/types@npm:^7.23.4, @babel/types@npm:^7.23.6": version: 7.23.6 resolution: "@babel/types@npm:7.23.6" dependencies: @@ -2351,6 +2372,7 @@ __metadata: "@dagster-io/ui-components": "workspace:*" "@dagster-io/ui-core": "workspace:*" "@rive-app/react-canvas": "npm:^3.0.34" + "@trivago/prettier-plugin-sort-imports": "npm:^4.3.0" "@types/jest": "npm:^29.5.11" "@types/node": "npm:^16.11.20" "@types/react": "npm:^18.2.0" @@ -2399,6 +2421,7 @@ __metadata: version: 0.0.0-use.local resolution: "@dagster-io/eslint-config@workspace:packages/eslint-config" dependencies: + "@trivago/prettier-plugin-sort-imports": "npm:^4.3.0" "@types/jest": "npm:^29.5.11" "@typescript-eslint/eslint-plugin": "npm:^6.7.2" "@typescript-eslint/parser": "npm:^6.17.0" @@ -2452,6 +2475,7 @@ __metadata: "@testing-library/jest-dom": "npm:^6.1.5" "@testing-library/react": "npm:^14.0.0" "@testing-library/user-event": "npm:^14.4.3" + "@trivago/prettier-plugin-sort-imports": "npm:^4.3.0" "@types/babel__core": "npm:^7" "@types/babel__preset-env": "npm:^7" "@types/codemirror": "npm:^5.60.5" @@ -2542,6 +2566,7 @@ __metadata: "@testing-library/react": "npm:^14.0.0" "@testing-library/react-hooks": "npm:^7.0.2" "@testing-library/user-event": "npm:^14.4.3" + "@trivago/prettier-plugin-sort-imports": "npm:^4.3.0" "@types/codemirror": "npm:^5.60.5" "@types/color": "npm:^3.0.2" "@types/dagre": "npm:^0.7.42" @@ -6911,6 +6936,26 @@ __metadata: languageName: node linkType: hard +"@trivago/prettier-plugin-sort-imports@npm:^4.3.0": + version: 4.3.0 + resolution: "@trivago/prettier-plugin-sort-imports@npm:4.3.0" + dependencies: + "@babel/generator": "npm:7.17.7" + "@babel/parser": "npm:^7.20.5" + "@babel/traverse": "npm:7.23.2" + "@babel/types": "npm:7.17.0" + javascript-natural-sort: "npm:0.7.1" + lodash: "npm:^4.17.21" + peerDependencies: + "@vue/compiler-sfc": 3.x + prettier: 2.x - 3.x + peerDependenciesMeta: + "@vue/compiler-sfc": + optional: true + checksum: eb25cbeeaf85d3acd54019d1f3563447337a2faee7a35558adb69dff44ce3b93714a5b64ba4d0374f3df3191c32c993d441493fdc43a2c97c9b8a0e3d58702cf + languageName: node + linkType: hard + "@trysound/sax@npm:0.2.0": version: 0.2.0 resolution: "@trysound/sax@npm:0.2.0" @@ -15477,6 +15522,13 @@ __metadata: languageName: node linkType: hard +"javascript-natural-sort@npm:0.7.1": + version: 0.7.1 + resolution: "javascript-natural-sort@npm:0.7.1" + checksum: 7bf6eab67871865d347f09a95aa770f9206c1ab0226bcda6fdd9edec340bf41111a7f82abac30556aa16a21cfa3b2b1ca4a362c8b73dd5ce15220e5d31f49d79 + languageName: node + linkType: hard + "jest-canvas-mock@npm:^2.4.0": version: 2.5.2 resolution: "jest-canvas-mock@npm:2.5.2" @@ -21484,7 +21536,7 @@ __metadata: languageName: node linkType: hard -"source-map@npm:^0.5.6": +"source-map@npm:^0.5.0, source-map@npm:^0.5.6": version: 0.5.7 resolution: "source-map@npm:0.5.7" checksum: 9b4ac749ec5b5831cad1f8cc4c19c4298ebc7474b24a0acf293e2f040f03f8eeccb3d01f12aa0f90cf46d555c887e03912b83a042c627f419bda5152d89c5269