@datarecce/ui 0.1.41 → 0.2.1-nightly.20260402
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -133
- package/dist/AuthModal-B38pWD3T.js +7 -0
- package/dist/AuthModal-B38pWD3T.js.map +1 -0
- package/dist/RouteConfigContext-DWFg6bll.d.ts +171 -0
- package/dist/RouteConfigContext-DWFg6bll.d.ts.map +1 -0
- package/dist/RunProgress-BCFXvUsE.d.ts +429 -0
- package/dist/RunProgress-BCFXvUsE.d.ts.map +1 -0
- package/dist/ScreenshotDataGrid-BAsPWcde.d.ts +63 -0
- package/dist/ScreenshotDataGrid-BAsPWcde.d.ts.map +1 -0
- package/dist/SplitPane-g8w-XF2_.d.ts +1607 -0
- package/dist/SplitPane-g8w-XF2_.d.ts.map +1 -0
- package/dist/advanced.d.ts +17 -0
- package/dist/advanced.d.ts.map +1 -0
- package/dist/advanced.js +3 -0
- package/dist/advanced.js.map +1 -0
- package/dist/api-BwiRz6pD.d.ts +254 -0
- package/dist/api-BwiRz6pD.d.ts.map +1 -0
- package/dist/api-CbzeUNef.js +3 -0
- package/dist/api-CbzeUNef.js.map +1 -0
- package/dist/api.d.ts +3 -2
- package/dist/api.js +2 -100
- package/dist/colors-BbPSDR1X.js +3 -0
- package/dist/colors-BbPSDR1X.js.map +1 -0
- package/dist/components-run.d.ts +5 -0
- package/dist/components-run.js +2 -0
- package/dist/components.d.ts +9 -2
- package/dist/components.js +2 -86
- package/dist/constants-D-hOGDbU.js +3 -0
- package/dist/constants-D-hOGDbU.js.map +1 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +2 -0
- package/dist/contexts.d.ts +6 -0
- package/dist/contexts.js +2 -0
- package/dist/fetchClient-Bqjx8inP.js +3 -0
- package/dist/fetchClient-Bqjx8inP.js.map +1 -0
- package/dist/fetchClient-CTnJ39EA.d.ts +19 -0
- package/dist/fetchClient-CTnJ39EA.d.ts.map +1 -0
- package/dist/hooks.d.ts +3 -2
- package/dist/hooks.js +2 -43
- package/dist/index-B1IyNkDA.d.ts +472 -0
- package/dist/index-B1IyNkDA.d.ts.map +1 -0
- package/dist/index-BJOCIgE1.d.ts +148 -0
- package/dist/index-BJOCIgE1.d.ts.map +1 -0
- package/dist/index-C9nBECPv.d.ts +212 -0
- package/dist/index-C9nBECPv.d.ts.map +1 -0
- package/dist/index-CHJ0PCEg.d.ts +380 -0
- package/dist/index-CHJ0PCEg.d.ts.map +1 -0
- package/dist/index-CZ7gueQV.d.ts +13 -0
- package/dist/index-CZ7gueQV.d.ts.map +1 -0
- package/dist/index-CaKcjGJC.d.ts +1536 -0
- package/dist/index-CaKcjGJC.d.ts.map +1 -0
- package/dist/index-D-H3NTdf.d.ts +744 -0
- package/dist/index-D-H3NTdf.d.ts.map +1 -0
- package/dist/index-Dh6gw0NG.d.ts +351 -0
- package/dist/index-Dh6gw0NG.d.ts.map +1 -0
- package/dist/index-Dp-BUtpt.d.ts +704 -0
- package/dist/index-Dp-BUtpt.d.ts.map +1 -0
- package/dist/index.d.ts +17 -2
- package/dist/index.js +2 -198
- package/dist/instanceInfo-DNLFhkK8.d.ts +909 -0
- package/dist/instanceInfo-DNLFhkK8.d.ts.map +1 -0
- package/dist/keepAlive-Dj0q3fC9.js +3 -0
- package/dist/keepAlive-Dj0q3fC9.js.map +1 -0
- package/dist/lib/api/queryClient.d.ts +8 -0
- package/dist/lib/api/queryClient.d.ts.map +1 -0
- package/dist/lib/api/queryClient.js +3 -0
- package/dist/lib/api/queryClient.js.map +1 -0
- package/dist/lib/api/track.d.ts +137 -0
- package/dist/lib/api/track.d.ts.map +1 -0
- package/dist/lib/api/track.js +3 -0
- package/dist/lib/api/track.js.map +1 -0
- package/dist/lib/api/user.d.ts +16 -0
- package/dist/lib/api/user.d.ts.map +1 -0
- package/dist/lib/api/user.js +3 -0
- package/dist/lib/api/user.js.map +1 -0
- package/dist/lib/const.d.ts +8 -0
- package/dist/lib/const.d.ts.map +1 -0
- package/dist/lib/const.js +3 -0
- package/dist/lib/const.js.map +1 -0
- package/dist/lib/result/ResultErrorFallback.d.ts +8 -0
- package/dist/lib/result/ResultErrorFallback.d.ts.map +1 -0
- package/dist/lib/result/ResultErrorFallback.js +3 -0
- package/dist/lib/result/ResultErrorFallback.js.map +1 -0
- package/dist/lineage-DsKqx9yh.d.ts +1299 -0
- package/dist/lineage-DsKqx9yh.d.ts.map +1 -0
- package/dist/primitives-D8s_Rs5T.d.ts +1089 -0
- package/dist/primitives-D8s_Rs5T.d.ts.map +1 -0
- package/dist/primitives.d.ts +8 -0
- package/dist/primitives.js +2 -0
- package/dist/result.d.ts +3 -0
- package/dist/result.js +2 -0
- package/dist/src-BH-TT0Mt.js +12 -0
- package/dist/src-BH-TT0Mt.js.map +1 -0
- package/dist/style.css +290 -0
- package/dist/styles.css +478 -4
- package/dist/theme-B_XT39eO.js +3 -0
- package/dist/theme-B_XT39eO.js.map +1 -0
- package/dist/theme.d.ts +2 -2
- package/dist/theme.js +2 -9
- package/dist/types-DLRfpcrV.d.ts +234 -0
- package/dist/types-DLRfpcrV.d.ts.map +1 -0
- package/dist/types-qpgIe7MT.d.ts +171 -0
- package/dist/types-qpgIe7MT.d.ts.map +1 -0
- package/dist/types.d.ts +10 -2
- package/dist/types.js +3 -9
- package/dist/types.js.map +1 -0
- package/dist/useThemeColors-OwCMwSrx.d.ts +79 -0
- package/dist/useThemeColors-OwCMwSrx.d.ts.map +1 -0
- package/dist/utils-BwEuAiEd.js +3 -0
- package/dist/utils-BwEuAiEd.js.map +1 -0
- package/dist/utils-Crcz1Rb5.js +6 -0
- package/dist/utils-Crcz1Rb5.js.map +1 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.js +2 -0
- package/package.json +142 -108
- package/LICENSE +0 -201
- package/dist/RecceCheckContext-BJprb2xR.js +0 -7968
- package/dist/RecceCheckContext-BJprb2xR.js.map +0 -1
- package/dist/RecceCheckContext-DPnWB_aU.css +0 -215
- package/dist/RecceCheckContext-DPnWB_aU.css.map +0 -1
- package/dist/RecceCheckContext-DbZ7BdRy.mjs +0 -7426
- package/dist/RecceCheckContext-DbZ7BdRy.mjs.map +0 -1
- package/dist/RecceCheckContext-DyxOeUsX.css +0 -215
- package/dist/RecceCheckContext-DyxOeUsX.css.map +0 -1
- package/dist/api.d.mts +0 -3
- package/dist/api.js.map +0 -1
- package/dist/api.mjs +0 -46
- package/dist/api.mjs.map +0 -1
- package/dist/components-BeAjVBV3.css +0 -70
- package/dist/components-BeAjVBV3.css.map +0 -1
- package/dist/components-DfXnN1Hx.js +0 -14689
- package/dist/components-DfXnN1Hx.js.map +0 -1
- package/dist/components-iUxcqtUB.css +0 -70
- package/dist/components-iUxcqtUB.css.map +0 -1
- package/dist/components-jh6r4tQn.mjs +0 -12348
- package/dist/components-jh6r4tQn.mjs.map +0 -1
- package/dist/components.d.mts +0 -3
- package/dist/components.mjs +0 -9
- package/dist/const-CaIm1Z8g.mjs +0 -12
- package/dist/const-CaIm1Z8g.mjs.map +0 -1
- package/dist/const-CvdZO0FN.js +0 -24
- package/dist/const-CvdZO0FN.js.map +0 -1
- package/dist/hooks-cQsBXBd1.js +0 -40
- package/dist/hooks-cQsBXBd1.js.map +0 -1
- package/dist/hooks-eaHm_yEp.mjs +0 -33
- package/dist/hooks-eaHm_yEp.mjs.map +0 -1
- package/dist/hooks.d.mts +0 -3
- package/dist/hooks.mjs +0 -8
- package/dist/html2canvas-pro.esm-CsuSOHXp.js +0 -7250
- package/dist/html2canvas-pro.esm-CsuSOHXp.js.map +0 -1
- package/dist/html2canvas-pro.esm-E7kpobrC.mjs +0 -7249
- package/dist/html2canvas-pro.esm-E7kpobrC.mjs.map +0 -1
- package/dist/index-B5bpmv0i.d.mts +0 -2172
- package/dist/index-B5bpmv0i.d.mts.map +0 -1
- package/dist/index-B9lSPJTi.d.ts +0 -2170
- package/dist/index-B9lSPJTi.d.ts.map +0 -1
- package/dist/index.d.mts +0 -3
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -20
- package/dist/index.mjs.map +0 -1
- package/dist/mui-theme-CUhybmBq.mjs +0 -696
- package/dist/mui-theme-CUhybmBq.mjs.map +0 -1
- package/dist/mui-theme-iBHkjXJq.js +0 -732
- package/dist/mui-theme-iBHkjXJq.js.map +0 -1
- package/dist/state-CTITyT0R.js +0 -795
- package/dist/state-CTITyT0R.js.map +0 -1
- package/dist/state-Sc2b4jri.mjs +0 -382
- package/dist/state-Sc2b4jri.mjs.map +0 -1
- package/dist/theme.d.mts +0 -3
- package/dist/theme.mjs +0 -4
- package/dist/tooltipMessage-BC5W7H3X.js +0 -13
- package/dist/tooltipMessage-BC5W7H3X.js.map +0 -1
- package/dist/tooltipMessage-B_xMIKWL.mjs +0 -7
- package/dist/tooltipMessage-B_xMIKWL.mjs.map +0 -1
- package/dist/types.d.mts +0 -3
- package/dist/types.mjs +0 -6
- package/dist/urls-BQW5wjg-.js +0 -13
- package/dist/urls-BQW5wjg-.js.map +0 -1
- package/dist/urls-DT7FVEcS.mjs +0 -7
- package/dist/urls-DT7FVEcS.mjs.map +0 -1
- package/dist/version-B9s8yne-.js +0 -300
- package/dist/version-B9s8yne-.js.map +0 -1
- package/dist/version-DP1kU_7v.mjs +0 -162
- package/dist/version-DP1kU_7v.mjs.map +0 -1
- package/recce-source/.editorconfig +0 -26
- package/recce-source/.flake8 +0 -37
- package/recce-source/.github/ISSUE_TEMPLATE/bug_report.yml +0 -67
- package/recce-source/.github/ISSUE_TEMPLATE/custom.md +0 -10
- package/recce-source/.github/ISSUE_TEMPLATE/feature_request.yml +0 -42
- package/recce-source/.github/PULL_REQUEST_TEMPLATE.md +0 -21
- package/recce-source/.github/copilot-instructions.md +0 -331
- package/recce-source/.github/instructions/backend-instructions.md +0 -541
- package/recce-source/.github/instructions/frontend-instructions.md +0 -317
- package/recce-source/.github/workflows/build-statics.yaml +0 -72
- package/recce-source/.github/workflows/bump.yaml +0 -48
- package/recce-source/.github/workflows/integration-tests-cloud.yaml +0 -92
- package/recce-source/.github/workflows/integration-tests-sqlmesh.yaml +0 -33
- package/recce-source/.github/workflows/integration-tests.yaml +0 -52
- package/recce-source/.github/workflows/nightly.yaml +0 -246
- package/recce-source/.github/workflows/release.yaml +0 -196
- package/recce-source/.github/workflows/tests-js.yaml +0 -58
- package/recce-source/.github/workflows/tests-python.yaml +0 -128
- package/recce-source/.pre-commit-config.yaml +0 -26
- package/recce-source/CLAUDE.md +0 -483
- package/recce-source/CODE_OF_CONDUCT.md +0 -128
- package/recce-source/CONTRIBUTING.md +0 -107
- package/recce-source/LICENSE +0 -201
- package/recce-source/Makefile +0 -126
- package/recce-source/README.md +0 -182
- package/recce-source/RECCE_CLOUD.md +0 -81
- package/recce-source/SECURITY.md +0 -25
- package/recce-source/docs/PACKAGING.md +0 -340
- package/recce-source/docs/README.md +0 -1
- package/recce-source/docs/plans/2024-12-31-csv-download-design.md +0 -121
- package/recce-source/docs/plans/2024-12-31-csv-download-implementation.md +0 -930
- package/recce-source/integration_tests/dbt/dbt_project.yml +0 -26
- package/recce-source/integration_tests/dbt/models/customers.sql +0 -69
- package/recce-source/integration_tests/dbt/models/docs.md +0 -14
- package/recce-source/integration_tests/dbt/models/orders.sql +0 -56
- package/recce-source/integration_tests/dbt/models/schema.yml +0 -82
- package/recce-source/integration_tests/dbt/models/staging/schema.yml +0 -31
- package/recce-source/integration_tests/dbt/models/staging/stg_customers.sql +0 -22
- package/recce-source/integration_tests/dbt/models/staging/stg_orders.sql +0 -23
- package/recce-source/integration_tests/dbt/models/staging/stg_payments.sql +0 -25
- package/recce-source/integration_tests/dbt/packages.yml +0 -7
- package/recce-source/integration_tests/dbt/profiles.yml +0 -8
- package/recce-source/integration_tests/dbt/seeds/raw_customers.csv +0 -101
- package/recce-source/integration_tests/dbt/seeds/raw_orders.csv +0 -100
- package/recce-source/integration_tests/dbt/seeds/raw_payments.csv +0 -114
- package/recce-source/integration_tests/dbt/seeds/raw_statuses.csv +0 -5
- package/recce-source/integration_tests/dbt/smoke_test.sh +0 -72
- package/recce-source/integration_tests/dbt/smoke_test_cloud.sh +0 -71
- package/recce-source/integration_tests/sqlmesh/__init__.py +0 -0
- package/recce-source/integration_tests/sqlmesh/audits/assert_item_price_above_zero.sql +0 -9
- package/recce-source/integration_tests/sqlmesh/audits/items.sql +0 -7
- package/recce-source/integration_tests/sqlmesh/audits/order_items.sql +0 -7
- package/recce-source/integration_tests/sqlmesh/config.py +0 -171
- package/recce-source/integration_tests/sqlmesh/helper.py +0 -20
- package/recce-source/integration_tests/sqlmesh/hooks/__init__.py +0 -0
- package/recce-source/integration_tests/sqlmesh/macros/__init__.py +0 -0
- package/recce-source/integration_tests/sqlmesh/macros/macros.py +0 -8
- package/recce-source/integration_tests/sqlmesh/macros/macros.sql +0 -8
- package/recce-source/integration_tests/sqlmesh/macros/utils.py +0 -11
- package/recce-source/integration_tests/sqlmesh/metrics/metrics.sql +0 -25
- package/recce-source/integration_tests/sqlmesh/models/customer_revenue_by_day.sql +0 -41
- package/recce-source/integration_tests/sqlmesh/models/customer_revenue_lifetime.sql +0 -60
- package/recce-source/integration_tests/sqlmesh/models/customers.sql +0 -32
- package/recce-source/integration_tests/sqlmesh/models/items.py +0 -95
- package/recce-source/integration_tests/sqlmesh/models/marketing.sql +0 -15
- package/recce-source/integration_tests/sqlmesh/models/order_items.py +0 -95
- package/recce-source/integration_tests/sqlmesh/models/orders.py +0 -70
- package/recce-source/integration_tests/sqlmesh/models/raw_marketing.py +0 -62
- package/recce-source/integration_tests/sqlmesh/models/top_waiters.sql +0 -23
- package/recce-source/integration_tests/sqlmesh/models/waiter_as_customer_by_day.sql +0 -29
- package/recce-source/integration_tests/sqlmesh/models/waiter_names.sql +0 -10
- package/recce-source/integration_tests/sqlmesh/models/waiter_revenue_by_day.sql +0 -29
- package/recce-source/integration_tests/sqlmesh/models/waiters.py +0 -62
- package/recce-source/integration_tests/sqlmesh/prep_env.sh +0 -16
- package/recce-source/integration_tests/sqlmesh/schema.yaml +0 -5
- package/recce-source/integration_tests/sqlmesh/seeds/waiter_names.csv +0 -11
- package/recce-source/integration_tests/sqlmesh/test_server.sh +0 -29
- package/recce-source/integration_tests/sqlmesh/tests/test_customer_revenue_by_day.yaml +0 -63
- package/recce-source/integration_tests/sqlmesh/tests/test_order_items.yaml +0 -72
- package/recce-source/js/.editorconfig +0 -27
- package/recce-source/js/.env.development +0 -5
- package/recce-source/js/.husky/pre-commit +0 -29
- package/recce-source/js/.nvmrc +0 -1
- package/recce-source/js/README.md +0 -39
- package/recce-source/js/app/(mainComponents)/DisplayModeToggle.tsx +0 -65
- package/recce-source/js/app/(mainComponents)/NavBar.tsx +0 -228
- package/recce-source/js/app/(mainComponents)/RecceVersionBadge.tsx +0 -107
- package/recce-source/js/app/(mainComponents)/TopBar.tsx +0 -252
- package/recce-source/js/app/@lineage/default.tsx +0 -20
- package/recce-source/js/app/@lineage/page.tsx +0 -14
- package/recce-source/js/app/MainLayout.tsx +0 -170
- package/recce-source/js/app/Providers.tsx +0 -49
- package/recce-source/js/app/checks/page.tsx +0 -296
- package/recce-source/js/app/error.tsx +0 -93
- package/recce-source/js/app/favicon.ico +0 -0
- package/recce-source/js/app/global-error.tsx +0 -115
- package/recce-source/js/app/global.css +0 -82
- package/recce-source/js/app/layout.tsx +0 -48
- package/recce-source/js/app/lineage/page.tsx +0 -15
- package/recce-source/js/app/page.tsx +0 -12
- package/recce-source/js/app/query/page.tsx +0 -8
- package/recce-source/js/biome.json +0 -313
- package/recce-source/js/jest.config.js +0 -34
- package/recce-source/js/jest.globals.d.ts +0 -32
- package/recce-source/js/jest.setup.js +0 -91
- package/recce-source/js/next.config.js +0 -16
- package/recce-source/js/package-lock.json +0 -13843
- package/recce-source/js/package.json +0 -123
- package/recce-source/js/pnpm-lock.yaml +0 -9235
- package/recce-source/js/pnpm-workspace.yaml +0 -6
- package/recce-source/js/postcss.config.js +0 -5
- package/recce-source/js/public/auth_callback.html +0 -68
- package/recce-source/js/public/imgs/feedback/thumbs-down.png +0 -0
- package/recce-source/js/public/imgs/feedback/thumbs-up.png +0 -0
- package/recce-source/js/public/imgs/reload-image.svg +0 -4
- package/recce-source/js/public/logo/recce-logo-white.png +0 -0
- package/recce-source/js/src/components/AuthModal/AuthModal.tsx +0 -202
- package/recce-source/js/src/components/app/AvatarDropdown.tsx +0 -159
- package/recce-source/js/src/components/app/EnvInfo.tsx +0 -357
- package/recce-source/js/src/components/app/Filename.tsx +0 -388
- package/recce-source/js/src/components/app/SetupConnectionPopover.tsx +0 -91
- package/recce-source/js/src/components/app/StateExporter.tsx +0 -57
- package/recce-source/js/src/components/app/StateImporter.tsx +0 -198
- package/recce-source/js/src/components/app/StateSharing.tsx +0 -145
- package/recce-source/js/src/components/app/StateSynchronizer.tsx +0 -205
- package/recce-source/js/src/components/charts/HistogramChart.tsx +0 -291
- package/recce-source/js/src/components/charts/SquareIcon.tsx +0 -51
- package/recce-source/js/src/components/charts/TopKSummaryList.tsx +0 -457
- package/recce-source/js/src/components/charts/chartTheme.ts +0 -74
- package/recce-source/js/src/components/check/CheckBreadcrumb.tsx +0 -97
- package/recce-source/js/src/components/check/CheckDescription.tsx +0 -134
- package/recce-source/js/src/components/check/CheckDetail.tsx +0 -797
- package/recce-source/js/src/components/check/CheckEmptyState.tsx +0 -84
- package/recce-source/js/src/components/check/CheckList.tsx +0 -320
- package/recce-source/js/src/components/check/LineageDiffView.tsx +0 -32
- package/recce-source/js/src/components/check/PresetCheckTemplateView.tsx +0 -48
- package/recce-source/js/src/components/check/SchemaDiffView.tsx +0 -290
- package/recce-source/js/src/components/check/check.ts +0 -25
- package/recce-source/js/src/components/check/timeline/CheckTimeline.tsx +0 -163
- package/recce-source/js/src/components/check/timeline/CommentInput.tsx +0 -84
- package/recce-source/js/src/components/check/timeline/TimelineEvent.tsx +0 -468
- package/recce-source/js/src/components/check/timeline/index.ts +0 -12
- package/recce-source/js/src/components/check/utils.ts +0 -12
- package/recce-source/js/src/components/data-grid/ScreenshotDataGrid.tsx +0 -333
- package/recce-source/js/src/components/data-grid/agGridStyles.css +0 -55
- package/recce-source/js/src/components/data-grid/agGridTheme.ts +0 -43
- package/recce-source/js/src/components/editor/CodeEditor.tsx +0 -107
- package/recce-source/js/src/components/editor/DiffEditor.tsx +0 -162
- package/recce-source/js/src/components/editor/index.ts +0 -12
- package/recce-source/js/src/components/errorboundary/ErrorBoundary.tsx +0 -87
- package/recce-source/js/src/components/histogram/HistogramDiffForm.tsx +0 -147
- package/recce-source/js/src/components/histogram/HistogramDiffResultView.tsx +0 -63
- package/recce-source/js/src/components/icons/index.tsx +0 -142
- package/recce-source/js/src/components/lineage/ActionControl.tsx +0 -63
- package/recce-source/js/src/components/lineage/ActionTag.tsx +0 -141
- package/recce-source/js/src/components/lineage/ChangeStatusLegend.tsx +0 -46
- package/recce-source/js/src/components/lineage/ColumnLevelLineageControl.tsx +0 -327
- package/recce-source/js/src/components/lineage/ColumnLevelLineageLegend.tsx +0 -57
- package/recce-source/js/src/components/lineage/GraphColumnNode.tsx +0 -199
- package/recce-source/js/src/components/lineage/GraphEdge.tsx +0 -59
- package/recce-source/js/src/components/lineage/GraphNode.tsx +0 -555
- package/recce-source/js/src/components/lineage/LineagePage.tsx +0 -10
- package/recce-source/js/src/components/lineage/LineageView.tsx +0 -1384
- package/recce-source/js/src/components/lineage/LineageViewContext.tsx +0 -86
- package/recce-source/js/src/components/lineage/LineageViewContextMenu.tsx +0 -637
- package/recce-source/js/src/components/lineage/LineageViewNotification.tsx +0 -64
- package/recce-source/js/src/components/lineage/LineageViewTopBar.tsx +0 -596
- package/recce-source/js/src/components/lineage/NodeSqlView.tsx +0 -136
- package/recce-source/js/src/components/lineage/NodeTag.tsx +0 -278
- package/recce-source/js/src/components/lineage/NodeView.tsx +0 -642
- package/recce-source/js/src/components/lineage/SandboxView.tsx +0 -436
- package/recce-source/js/src/components/lineage/ServerDisconnectedModalContent.tsx +0 -105
- package/recce-source/js/src/components/lineage/SetupConnectionBanner.tsx +0 -52
- package/recce-source/js/src/components/lineage/SingleEnvironmentQueryView.tsx +0 -152
- package/recce-source/js/src/components/lineage/graph.test.ts +0 -31
- package/recce-source/js/src/components/lineage/graph.ts +0 -58
- package/recce-source/js/src/components/lineage/lineage.test.ts +0 -169
- package/recce-source/js/src/components/lineage/lineage.ts +0 -521
- package/recce-source/js/src/components/lineage/styles.css +0 -42
- package/recce-source/js/src/components/lineage/styles.tsx +0 -165
- package/recce-source/js/src/components/lineage/useMultiNodesAction.ts +0 -352
- package/recce-source/js/src/components/lineage/useValueDiffAlertDialog.tsx +0 -108
- package/recce-source/js/src/components/onboarding-guide/Notification.tsx +0 -62
- package/recce-source/js/src/components/profile/ProfileDiffForm.tsx +0 -134
- package/recce-source/js/src/components/profile/ProfileDiffResultView.tsx +0 -243
- package/recce-source/js/src/components/query/ChangedOnlyCheckbox.tsx +0 -29
- package/recce-source/js/src/components/query/DiffText.tsx +0 -120
- package/recce-source/js/src/components/query/QueryDiffResultView.tsx +0 -468
- package/recce-source/js/src/components/query/QueryForm.tsx +0 -80
- package/recce-source/js/src/components/query/QueryPage.tsx +0 -282
- package/recce-source/js/src/components/query/QueryResultView.tsx +0 -180
- package/recce-source/js/src/components/query/SetupConnectionGuide.tsx +0 -57
- package/recce-source/js/src/components/query/SqlEditor.tsx +0 -245
- package/recce-source/js/src/components/query/ToggleSwitch.tsx +0 -84
- package/recce-source/js/src/components/query/styles.css +0 -21
- package/recce-source/js/src/components/routing/DirectUrlAccess.test.tsx +0 -428
- package/recce-source/js/src/components/routing/LineageStatePreservation.test.tsx +0 -311
- package/recce-source/js/src/components/routing/Navigation.test.tsx +0 -256
- package/recce-source/js/src/components/rowcount/RowCountDiffResultView.tsx +0 -108
- package/recce-source/js/src/components/rowcount/delta.test.ts +0 -51
- package/recce-source/js/src/components/rowcount/delta.ts +0 -16
- package/recce-source/js/src/components/run/RunList.tsx +0 -303
- package/recce-source/js/src/components/run/RunModal.tsx +0 -191
- package/recce-source/js/src/components/run/RunPage.tsx +0 -26
- package/recce-source/js/src/components/run/RunResultPane.tsx +0 -578
- package/recce-source/js/src/components/run/RunStatusAndDate.tsx +0 -106
- package/recce-source/js/src/components/run/RunToolbar.tsx +0 -70
- package/recce-source/js/src/components/run/RunView.tsx +0 -196
- package/recce-source/js/src/components/run/registry.ts +0 -214
- package/recce-source/js/src/components/run/types.ts +0 -14
- package/recce-source/js/src/components/schema/ColumnNameCell.test.tsx +0 -169
- package/recce-source/js/src/components/schema/ColumnNameCell.tsx +0 -198
- package/recce-source/js/src/components/schema/SchemaView.tsx +0 -336
- package/recce-source/js/src/components/schema/schemaDiff.ts +0 -32
- package/recce-source/js/src/components/schema/style.css +0 -134
- package/recce-source/js/src/components/screenshot/ScreenshotBox.tsx +0 -39
- package/recce-source/js/src/components/shared/HistoryToggle.tsx +0 -35
- package/recce-source/js/src/components/split/Split.tsx +0 -40
- package/recce-source/js/src/components/split/styles.css +0 -24
- package/recce-source/js/src/components/summary/ChangeSummary.tsx +0 -264
- package/recce-source/js/src/components/summary/SchemaSummary.tsx +0 -123
- package/recce-source/js/src/components/summary/SummaryView.tsx +0 -29
- package/recce-source/js/src/components/timeout/IdleTimeoutBadge.tsx +0 -48
- package/recce-source/js/src/components/top-k/TopKDiffForm.tsx +0 -58
- package/recce-source/js/src/components/top-k/TopKDiffResultView.tsx +0 -73
- package/recce-source/js/src/components/ui/dataGrid/DataFrameColumnGroupHeader.tsx +0 -228
- package/recce-source/js/src/components/ui/dataGrid/DataFrameColumnHeader.tsx +0 -113
- package/recce-source/js/src/components/ui/dataGrid/defaultRenderCell.tsx +0 -72
- package/recce-source/js/src/components/ui/dataGrid/index.ts +0 -23
- package/recce-source/js/src/components/ui/dataGrid/inlineRenderCell.test.tsx +0 -607
- package/recce-source/js/src/components/ui/dataGrid/inlineRenderCell.tsx +0 -211
- package/recce-source/js/src/components/ui/dataGrid/schemaCells.test.tsx +0 -452
- package/recce-source/js/src/components/ui/dataGrid/schemaCells.tsx +0 -142
- package/recce-source/js/src/components/ui/dataGrid/valueDiffCells.test.tsx +0 -178
- package/recce-source/js/src/components/ui/dataGrid/valueDiffCells.tsx +0 -275
- package/recce-source/js/src/components/ui/markdown/ExternalLinkConfirmDialog.tsx +0 -134
- package/recce-source/js/src/components/ui/markdown/MarkdownContent.tsx +0 -364
- package/recce-source/js/src/components/ui/mui/index.ts +0 -13
- package/recce-source/js/src/components/ui/mui-provider.tsx +0 -67
- package/recce-source/js/src/components/ui/mui-theme.ts +0 -1039
- package/recce-source/js/src/components/ui/mui-utils.ts +0 -113
- package/recce-source/js/src/components/ui/toaster.tsx +0 -288
- package/recce-source/js/src/components/valuediff/ValueDiffDetailResultView.tsx +0 -216
- package/recce-source/js/src/components/valuediff/ValueDiffForm.tsx +0 -246
- package/recce-source/js/src/components/valuediff/ValueDiffResultView.tsx +0 -81
- package/recce-source/js/src/components/valuediff/shared.ts +0 -33
- package/recce-source/js/src/constants/tooltipMessage.ts +0 -3
- package/recce-source/js/src/constants/urls.ts +0 -1
- package/recce-source/js/src/lib/UrlHash.ts +0 -12
- package/recce-source/js/src/lib/api/adhocQuery.ts +0 -70
- package/recce-source/js/src/lib/api/axiosClient.ts +0 -9
- package/recce-source/js/src/lib/api/cacheKeys.ts +0 -13
- package/recce-source/js/src/lib/api/checkEvents.ts +0 -252
- package/recce-source/js/src/lib/api/checks.ts +0 -129
- package/recce-source/js/src/lib/api/cll.ts +0 -53
- package/recce-source/js/src/lib/api/connectToCloud.ts +0 -13
- package/recce-source/js/src/lib/api/flag.ts +0 -37
- package/recce-source/js/src/lib/api/info.ts +0 -198
- package/recce-source/js/src/lib/api/instanceInfo.ts +0 -25
- package/recce-source/js/src/lib/api/keepAlive.ts +0 -108
- package/recce-source/js/src/lib/api/lineagecheck.ts +0 -35
- package/recce-source/js/src/lib/api/localStorageKeys.ts +0 -7
- package/recce-source/js/src/lib/api/models.ts +0 -59
- package/recce-source/js/src/lib/api/profile.ts +0 -65
- package/recce-source/js/src/lib/api/rowcount.ts +0 -19
- package/recce-source/js/src/lib/api/runs.ts +0 -174
- package/recce-source/js/src/lib/api/schemacheck.ts +0 -31
- package/recce-source/js/src/lib/api/select.ts +0 -25
- package/recce-source/js/src/lib/api/sessionStorageKeys.ts +0 -8
- package/recce-source/js/src/lib/api/state.ts +0 -117
- package/recce-source/js/src/lib/api/track.ts +0 -281
- package/recce-source/js/src/lib/api/types.ts +0 -284
- package/recce-source/js/src/lib/api/user.ts +0 -42
- package/recce-source/js/src/lib/api/valuediff.ts +0 -46
- package/recce-source/js/src/lib/api/version.ts +0 -40
- package/recce-source/js/src/lib/const.ts +0 -9
- package/recce-source/js/src/lib/csv/extractors.test.ts +0 -456
- package/recce-source/js/src/lib/csv/extractors.ts +0 -468
- package/recce-source/js/src/lib/csv/format.test.ts +0 -211
- package/recce-source/js/src/lib/csv/format.ts +0 -44
- package/recce-source/js/src/lib/csv/index.test.ts +0 -155
- package/recce-source/js/src/lib/csv/index.ts +0 -109
- package/recce-source/js/src/lib/dataGrid/crossFunctionConsistency.test.ts +0 -626
- package/recce-source/js/src/lib/dataGrid/dataGridFactory.test.ts +0 -2140
- package/recce-source/js/src/lib/dataGrid/dataGridFactory.ts +0 -397
- package/recce-source/js/src/lib/dataGrid/generators/rowCountUtils.test.ts +0 -132
- package/recce-source/js/src/lib/dataGrid/generators/rowCountUtils.ts +0 -126
- package/recce-source/js/src/lib/dataGrid/generators/toDataDiffGrid.test.ts +0 -1627
- package/recce-source/js/src/lib/dataGrid/generators/toDataDiffGrid.ts +0 -140
- package/recce-source/js/src/lib/dataGrid/generators/toDataGrid.ts +0 -67
- package/recce-source/js/src/lib/dataGrid/generators/toRowCountDataGrid.test.ts +0 -142
- package/recce-source/js/src/lib/dataGrid/generators/toRowCountDataGrid.ts +0 -71
- package/recce-source/js/src/lib/dataGrid/generators/toRowCountDiffDataGrid.test.ts +0 -258
- package/recce-source/js/src/lib/dataGrid/generators/toRowCountDiffDataGrid.ts +0 -153
- package/recce-source/js/src/lib/dataGrid/generators/toSchemaDataGrid.test.ts +0 -951
- package/recce-source/js/src/lib/dataGrid/generators/toSchemaDataGrid.ts +0 -221
- package/recce-source/js/src/lib/dataGrid/generators/toValueDataGrid.test.ts +0 -395
- package/recce-source/js/src/lib/dataGrid/generators/toValueDataGrid.ts +0 -184
- package/recce-source/js/src/lib/dataGrid/generators/toValueDiffGrid.test.ts +0 -884
- package/recce-source/js/src/lib/dataGrid/generators/toValueDiffGrid.ts +0 -113
- package/recce-source/js/src/lib/dataGrid/index.ts +0 -51
- package/recce-source/js/src/lib/dataGrid/propertyBased.test.ts +0 -858
- package/recce-source/js/src/lib/dataGrid/shared/columnBuilders.test.ts +0 -482
- package/recce-source/js/src/lib/dataGrid/shared/columnBuilders.ts +0 -345
- package/recce-source/js/src/lib/dataGrid/shared/dataTypeEdgeCases.test.ts +0 -698
- package/recce-source/js/src/lib/dataGrid/shared/diffColumnBuilder.test.tsx +0 -820
- package/recce-source/js/src/lib/dataGrid/shared/diffColumnBuilder.tsx +0 -277
- package/recce-source/js/src/lib/dataGrid/shared/gridUtils.test.ts +0 -785
- package/recce-source/js/src/lib/dataGrid/shared/gridUtils.ts +0 -370
- package/recce-source/js/src/lib/dataGrid/shared/index.ts +0 -81
- package/recce-source/js/src/lib/dataGrid/shared/rowBuilders.test.ts +0 -909
- package/recce-source/js/src/lib/dataGrid/shared/rowBuilders.ts +0 -325
- package/recce-source/js/src/lib/dataGrid/shared/simpleColumnBuilder.tsx +0 -240
- package/recce-source/js/src/lib/dataGrid/shared/toDiffColumn.test.tsx +0 -719
- package/recce-source/js/src/lib/dataGrid/shared/toDiffColumn.tsx +0 -231
- package/recce-source/js/src/lib/dataGrid/shared/validation.test.ts +0 -559
- package/recce-source/js/src/lib/dataGrid/shared/validation.ts +0 -367
- package/recce-source/js/src/lib/dataGrid/warehouseNamingConventions.test.ts +0 -1117
- package/recce-source/js/src/lib/formatSelect.ts +0 -50
- package/recce-source/js/src/lib/hooks/ApiConfigContext.tsx +0 -181
- package/recce-source/js/src/lib/hooks/IdleTimeoutContext.tsx +0 -177
- package/recce-source/js/src/lib/hooks/LineageGraphContext.tsx +0 -512
- package/recce-source/js/src/lib/hooks/RecceActionContext.tsx +0 -269
- package/recce-source/js/src/lib/hooks/RecceCheckContext.tsx +0 -33
- package/recce-source/js/src/lib/hooks/RecceContextProvider.tsx +0 -54
- package/recce-source/js/src/lib/hooks/RecceInstanceContext.tsx +0 -129
- package/recce-source/js/src/lib/hooks/RecceQueryContext.tsx +0 -98
- package/recce-source/js/src/lib/hooks/RecceShareStateContext.tsx +0 -59
- package/recce-source/js/src/lib/hooks/ScreenShot.tsx +0 -399
- package/recce-source/js/src/lib/hooks/useAppRouter.test.ts +0 -211
- package/recce-source/js/src/lib/hooks/useAppRouter.ts +0 -200
- package/recce-source/js/src/lib/hooks/useCSVExport.ts +0 -136
- package/recce-source/js/src/lib/hooks/useCheckEvents.ts +0 -99
- package/recce-source/js/src/lib/hooks/useCheckToast.tsx +0 -14
- package/recce-source/js/src/lib/hooks/useClipBoardToast.tsx +0 -27
- package/recce-source/js/src/lib/hooks/useCountdownToast.tsx +0 -102
- package/recce-source/js/src/lib/hooks/useFeedbackCollectionToast.tsx +0 -130
- package/recce-source/js/src/lib/hooks/useGuideToast.tsx +0 -45
- package/recce-source/js/src/lib/hooks/useIdleDetection.tsx +0 -185
- package/recce-source/js/src/lib/hooks/useModelColumns.tsx +0 -113
- package/recce-source/js/src/lib/hooks/useRecceInstanceInfo.tsx +0 -13
- package/recce-source/js/src/lib/hooks/useRecceServerFlag.tsx +0 -13
- package/recce-source/js/src/lib/hooks/useRun.tsx +0 -89
- package/recce-source/js/src/lib/hooks/useThemeColors.ts +0 -115
- package/recce-source/js/src/lib/mergeKeys.test.ts +0 -89
- package/recce-source/js/src/lib/mergeKeys.ts +0 -86
- package/recce-source/js/src/lib/result/ResultErrorFallback.tsx +0 -9
- package/recce-source/js/src/lib/utils/formatTime.ts +0 -84
- package/recce-source/js/src/lib/utils/urls.ts +0 -16
- package/recce-source/js/src/utils/DropdownValuesInput.tsx +0 -297
- package/recce-source/js/src/utils/formatters.tsx +0 -237
- package/recce-source/js/src/utils/transforms.ts +0 -81
- package/recce-source/js/tsconfig.json +0 -47
- package/recce-source/macros/README.md +0 -8
- package/recce-source/macros/recce_athena.sql +0 -73
- package/recce-source/pyproject.toml +0 -109
- package/recce-source/recce/VERSION +0 -1
- package/recce-source/recce/__init__.py +0 -84
- package/recce-source/recce/adapter/__init__.py +0 -0
- package/recce-source/recce/adapter/base.py +0 -109
- package/recce-source/recce/adapter/dbt_adapter/__init__.py +0 -1699
- package/recce-source/recce/adapter/dbt_adapter/dbt_version.py +0 -42
- package/recce-source/recce/adapter/sqlmesh_adapter.py +0 -141
- package/recce-source/recce/apis/__init__.py +0 -0
- package/recce-source/recce/apis/check_api.py +0 -203
- package/recce-source/recce/apis/check_events_api.py +0 -353
- package/recce-source/recce/apis/check_func.py +0 -130
- package/recce-source/recce/apis/run_api.py +0 -130
- package/recce-source/recce/apis/run_func.py +0 -258
- package/recce-source/recce/artifact.py +0 -266
- package/recce-source/recce/cli.py +0 -1846
- package/recce-source/recce/config.py +0 -127
- package/recce-source/recce/connect_to_cloud.py +0 -138
- package/recce-source/recce/core.py +0 -334
- package/recce-source/recce/diff.py +0 -26
- package/recce-source/recce/event/CONFIG +0 -1
- package/recce-source/recce/event/SENTRY_DNS +0 -1
- package/recce-source/recce/event/__init__.py +0 -304
- package/recce-source/recce/event/collector.py +0 -184
- package/recce-source/recce/event/track.py +0 -158
- package/recce-source/recce/exceptions.py +0 -21
- package/recce-source/recce/git.py +0 -77
- package/recce-source/recce/github.py +0 -222
- package/recce-source/recce/mcp_server.py +0 -885
- package/recce-source/recce/models/__init__.py +0 -6
- package/recce-source/recce/models/check.py +0 -481
- package/recce-source/recce/models/run.py +0 -46
- package/recce-source/recce/models/types.py +0 -218
- package/recce-source/recce/pull_request.py +0 -124
- package/recce-source/recce/run.py +0 -390
- package/recce-source/recce/server.py +0 -877
- package/recce-source/recce/state/__init__.py +0 -31
- package/recce-source/recce/state/cloud.py +0 -644
- package/recce-source/recce/state/const.py +0 -26
- package/recce-source/recce/state/local.py +0 -56
- package/recce-source/recce/state/state.py +0 -119
- package/recce-source/recce/state/state_loader.py +0 -174
- package/recce-source/recce/summary.py +0 -575
- package/recce-source/recce/tasks/__init__.py +0 -23
- package/recce-source/recce/tasks/core.py +0 -134
- package/recce-source/recce/tasks/dataframe.py +0 -170
- package/recce-source/recce/tasks/histogram.py +0 -433
- package/recce-source/recce/tasks/lineage.py +0 -19
- package/recce-source/recce/tasks/profile.py +0 -298
- package/recce-source/recce/tasks/query.py +0 -450
- package/recce-source/recce/tasks/rowcount.py +0 -277
- package/recce-source/recce/tasks/schema.py +0 -65
- package/recce-source/recce/tasks/top_k.py +0 -172
- package/recce-source/recce/tasks/utils.py +0 -147
- package/recce-source/recce/tasks/valuediff.py +0 -497
- package/recce-source/recce/util/__init__.py +0 -4
- package/recce-source/recce/util/api_token.py +0 -80
- package/recce-source/recce/util/breaking.py +0 -330
- package/recce-source/recce/util/cache.py +0 -25
- package/recce-source/recce/util/cll.py +0 -355
- package/recce-source/recce/util/cloud/__init__.py +0 -15
- package/recce-source/recce/util/cloud/base.py +0 -115
- package/recce-source/recce/util/cloud/check_events.py +0 -190
- package/recce-source/recce/util/cloud/checks.py +0 -242
- package/recce-source/recce/util/io.py +0 -120
- package/recce-source/recce/util/lineage.py +0 -83
- package/recce-source/recce/util/logger.py +0 -25
- package/recce-source/recce/util/onboarding_state.py +0 -45
- package/recce-source/recce/util/perf_tracking.py +0 -85
- package/recce-source/recce/util/pydantic_model.py +0 -22
- package/recce-source/recce/util/recce_cloud.py +0 -454
- package/recce-source/recce/util/singleton.py +0 -18
- package/recce-source/recce/util/startup_perf.py +0 -121
- package/recce-source/recce/yaml/__init__.py +0 -58
- package/recce-source/recce_cloud/README.md +0 -780
- package/recce-source/recce_cloud/VERSION +0 -1
- package/recce-source/recce_cloud/__init__.py +0 -24
- package/recce-source/recce_cloud/api/__init__.py +0 -17
- package/recce-source/recce_cloud/api/base.py +0 -132
- package/recce-source/recce_cloud/api/client.py +0 -186
- package/recce-source/recce_cloud/api/exceptions.py +0 -26
- package/recce-source/recce_cloud/api/factory.py +0 -63
- package/recce-source/recce_cloud/api/github.py +0 -106
- package/recce-source/recce_cloud/api/gitlab.py +0 -111
- package/recce-source/recce_cloud/artifact.py +0 -57
- package/recce-source/recce_cloud/ci_providers/__init__.py +0 -9
- package/recce-source/recce_cloud/ci_providers/base.py +0 -82
- package/recce-source/recce_cloud/ci_providers/detector.py +0 -147
- package/recce-source/recce_cloud/ci_providers/github_actions.py +0 -136
- package/recce-source/recce_cloud/ci_providers/gitlab_ci.py +0 -130
- package/recce-source/recce_cloud/cli.py +0 -434
- package/recce-source/recce_cloud/download.py +0 -230
- package/recce-source/recce_cloud/hatch_build.py +0 -20
- package/recce-source/recce_cloud/pyproject.toml +0 -49
- package/recce-source/recce_cloud/upload.py +0 -214
- package/recce-source/test.py +0 -0
- package/recce-source/tests/__init__.py +0 -0
- package/recce-source/tests/adapter/__init__.py +0 -0
- package/recce-source/tests/adapter/dbt_adapter/__init__.py +0 -0
- package/recce-source/tests/adapter/dbt_adapter/conftest.py +0 -17
- package/recce-source/tests/adapter/dbt_adapter/dbt_test_helper.py +0 -298
- package/recce-source/tests/adapter/dbt_adapter/test_dbt_adapter.py +0 -25
- package/recce-source/tests/adapter/dbt_adapter/test_dbt_cll.py +0 -717
- package/recce-source/tests/adapter/dbt_adapter/test_proj/dbt_project.yml +0 -4
- package/recce-source/tests/adapter/dbt_adapter/test_proj/manifest.json +0 -1
- package/recce-source/tests/adapter/dbt_adapter/test_proj/package-lock.yml +0 -8
- package/recce-source/tests/adapter/dbt_adapter/test_proj/packages.yml +0 -7
- package/recce-source/tests/adapter/dbt_adapter/test_proj/profiles.yml +0 -6
- package/recce-source/tests/adapter/dbt_adapter/test_selector.py +0 -205
- package/recce-source/tests/apis/__init__.py +0 -0
- package/recce-source/tests/apis/row_count_diff.json +0 -59
- package/recce-source/tests/apis/test_check_events_api.py +0 -615
- package/recce-source/tests/apis/test_run_func.py +0 -433
- package/recce-source/tests/catalog.json +0 -527
- package/recce-source/tests/data/manifest/base/catalog.json +0 -1
- package/recce-source/tests/data/manifest/base/manifest.json +0 -1
- package/recce-source/tests/data/manifest/pr2/catalog.json +0 -1
- package/recce-source/tests/data/manifest/pr2/manifest.json +0 -1
- package/recce-source/tests/manifest.json +0 -10655
- package/recce-source/tests/models/__init__.py +0 -0
- package/recce-source/tests/models/test_check.py +0 -731
- package/recce-source/tests/models/test_run_models.py +0 -295
- package/recce-source/tests/recce_cloud/__init__.py +0 -0
- package/recce-source/tests/recce_cloud/test_ci_providers.py +0 -351
- package/recce-source/tests/recce_cloud/test_cli.py +0 -735
- package/recce-source/tests/recce_cloud/test_client.py +0 -379
- package/recce-source/tests/recce_cloud/test_platform_clients.py +0 -483
- package/recce-source/tests/recce_state.json +0 -1
- package/recce-source/tests/state/test_cloud.py +0 -719
- package/recce-source/tests/state/test_local.py +0 -164
- package/recce-source/tests/state/test_state_loader.py +0 -211
- package/recce-source/tests/tasks/__init__.py +0 -0
- package/recce-source/tests/tasks/conftest.py +0 -4
- package/recce-source/tests/tasks/test_histogram.py +0 -129
- package/recce-source/tests/tasks/test_lineage.py +0 -55
- package/recce-source/tests/tasks/test_preset_checks.py +0 -64
- package/recce-source/tests/tasks/test_profile.py +0 -397
- package/recce-source/tests/tasks/test_query.py +0 -528
- package/recce-source/tests/tasks/test_row_count.py +0 -133
- package/recce-source/tests/tasks/test_schema.py +0 -122
- package/recce-source/tests/tasks/test_top_k.py +0 -77
- package/recce-source/tests/tasks/test_utils.py +0 -439
- package/recce-source/tests/tasks/test_valuediff.py +0 -361
- package/recce-source/tests/test_cli.py +0 -236
- package/recce-source/tests/test_cli_mcp_optional.py +0 -45
- package/recce-source/tests/test_cloud_listing_cli.py +0 -324
- package/recce-source/tests/test_config.py +0 -43
- package/recce-source/tests/test_connect_to_cloud.py +0 -82
- package/recce-source/tests/test_core.py +0 -174
- package/recce-source/tests/test_dbt.py +0 -36
- package/recce-source/tests/test_mcp_server.py +0 -505
- package/recce-source/tests/test_pull_request.py +0 -130
- package/recce-source/tests/test_server.py +0 -202
- package/recce-source/tests/test_server_lifespan.py +0 -138
- package/recce-source/tests/test_summary.py +0 -73
- package/recce-source/tests/util/__init__.py +0 -0
- package/recce-source/tests/util/cloud/__init__.py +0 -0
- package/recce-source/tests/util/cloud/test_check_events.py +0 -255
- package/recce-source/tests/util/cloud/test_checks.py +0 -204
- package/recce-source/tests/util/test_api_token.py +0 -119
- package/recce-source/tests/util/test_breaking.py +0 -1427
- package/recce-source/tests/util/test_cll.py +0 -706
- package/recce-source/tests/util/test_lineage.py +0 -122
- package/recce-source/tests/util/test_onboarding_state.py +0 -84
- package/recce-source/tests/util/test_recce_cloud.py +0 -231
- package/recce-source/tox.ini +0 -40
- package/recce-source/uv.lock +0 -3928
- package/src/api/index.ts +0 -32
- package/src/components/index.ts +0 -154
- package/src/global.d.ts +0 -14
- package/src/hooks/index.ts +0 -56
- package/src/index.ts +0 -17
- package/src/lib/hooks/RouteConfigContext.ts +0 -139
- package/src/lib/hooks/useAppRouter.ts +0 -240
- package/src/mui-augmentation.d.ts +0 -139
- package/src/theme/index.ts +0 -13
- package/src/theme.ts +0 -23
- package/src/types/index.ts +0 -23
package/dist/theme.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { C as getThemedPluginOptions, E as dataGridThemeLight, S as getChartThemeColors, T as dataGridThemeDark, _ as CURRENT_BAR_COLOR_WITH_ALPHA, a as SemanticColorVariant, b as INFO_VAL_COLOR_DARK, c as semanticVariantMap, d as BASE_BAR_COLOR_DARK, f as BASE_BAR_COLOR_DARK_WITH_ALPHA, g as CURRENT_BAR_COLOR_DARK_WITH_ALPHA, h as CURRENT_BAR_COLOR_DARK, i as ColorShade, l as token, m as CURRENT_BAR_COLOR, n as RecceTheme, o as colorAliases, p as BASE_BAR_COLOR_WITH_ALPHA, r as theme, s as colors, t as Theme, u as BASE_BAR_COLOR, v as ChartThemeColors, w as getThemedScaleOptions, x as getBarColors, y as INFO_VAL_COLOR } from "./index-CHJ0PCEg.js";
|
|
3
|
+
export { BASE_BAR_COLOR, BASE_BAR_COLOR_DARK, BASE_BAR_COLOR_DARK_WITH_ALPHA, BASE_BAR_COLOR_WITH_ALPHA, CURRENT_BAR_COLOR, CURRENT_BAR_COLOR_DARK, CURRENT_BAR_COLOR_DARK_WITH_ALPHA, CURRENT_BAR_COLOR_WITH_ALPHA, ChartThemeColors, ColorShade, INFO_VAL_COLOR, INFO_VAL_COLOR_DARK, RecceTheme, SemanticColorVariant, Theme, colorAliases, colors, dataGridThemeDark, dataGridThemeLight, getBarColors, getChartThemeColors, getThemedPluginOptions, getThemedScaleOptions, semanticVariantMap, theme, token };
|
package/dist/theme.js
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
exports.colors = require_mui_theme.colors;
|
|
5
|
-
exports.darkTheme = require_mui_theme.darkTheme;
|
|
6
|
-
exports.lightTheme = require_mui_theme.lightTheme;
|
|
7
|
-
exports.muiTheme = require_mui_theme.muiTheme;
|
|
8
|
-
exports.semanticColors = require_mui_theme.semanticColors;
|
|
9
|
-
exports.token = require_mui_theme.token;
|
|
1
|
+
"use client";
|
|
2
|
+
import{_ as e,a as t,c as n,d as r,f as i,g as a,h as o,i as s,l as c,m as l,n as u,o as d,p as f,r as p,s as m,t as h,u as g}from"./theme-B_XT39eO.js";import{i as _,n as v,r as y,t as b}from"./colors-BbPSDR1X.js";export{u as BASE_BAR_COLOR,p as BASE_BAR_COLOR_DARK,s as BASE_BAR_COLOR_DARK_WITH_ALPHA,t as BASE_BAR_COLOR_WITH_ALPHA,d as CURRENT_BAR_COLOR,m as CURRENT_BAR_COLOR_DARK,n as CURRENT_BAR_COLOR_DARK_WITH_ALPHA,c as CURRENT_BAR_COLOR_WITH_ALPHA,g as INFO_VAL_COLOR,r as INFO_VAL_COLOR_DARK,b as colorAliases,v as colors,a as dataGridThemeDark,e as dataGridThemeLight,i as getBarColors,f as getChartThemeColors,l as getThemedPluginOptions,o as getThemedScaleOptions,y as semanticVariantMap,h as theme,_ as token};
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
|
|
2
|
+
import { C as Run, Jt as ColumnLineageData, Kt as CllInput, Ot as RunsAggregated, Qt as GitInfo, Zt as CatalogMetadata, cn as SQLMeshInfo, on as NodeData, rn as ManifestMetadata, s as LineageDiffViewOptions, sn as PullRequestInfo, un as StateMetadata } from "./instanceInfo-DNLFhkK8.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Edge, Node } from "@xyflow/react";
|
|
5
|
+
|
|
6
|
+
//#region src/contexts/lineage/types.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* Environment information derived from server info
|
|
9
|
+
*/
|
|
10
|
+
interface EnvInfo {
|
|
11
|
+
stateMetadata?: StateMetadata;
|
|
12
|
+
adapterType?: string;
|
|
13
|
+
git?: GitInfo;
|
|
14
|
+
pullRequest?: PullRequestInfo;
|
|
15
|
+
dbt?: {
|
|
16
|
+
base: ManifestMetadata | undefined | null;
|
|
17
|
+
current: ManifestMetadata | undefined | null;
|
|
18
|
+
};
|
|
19
|
+
sqlmesh?: SQLMeshInfo | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Which environment the node/edge comes from
|
|
23
|
+
*/
|
|
24
|
+
type LineageFrom = "both" | "base" | "current";
|
|
25
|
+
/**
|
|
26
|
+
* Lineage graph node type for React Flow
|
|
27
|
+
*/
|
|
28
|
+
type LineageGraphNode = Node<{
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
from: LineageFrom;
|
|
32
|
+
data: {
|
|
33
|
+
base?: NodeData;
|
|
34
|
+
current?: NodeData;
|
|
35
|
+
};
|
|
36
|
+
changeStatus?: "added" | "removed" | "modified";
|
|
37
|
+
change?: {
|
|
38
|
+
category: "breaking" | "non_breaking" | "partial_breaking" | "unknown";
|
|
39
|
+
columns: Record<string, "added" | "removed" | "modified"> | null;
|
|
40
|
+
};
|
|
41
|
+
resourceType?: string;
|
|
42
|
+
packageName?: string;
|
|
43
|
+
parents: Record<string, LineageGraphEdge>;
|
|
44
|
+
children: Record<string, LineageGraphEdge>;
|
|
45
|
+
}, "lineageGraphNode">;
|
|
46
|
+
/**
|
|
47
|
+
* Column-level lineage node type
|
|
48
|
+
*/
|
|
49
|
+
type LineageGraphColumnNode = Node<{
|
|
50
|
+
node: LineageGraphNode["data"];
|
|
51
|
+
column: string;
|
|
52
|
+
type: string;
|
|
53
|
+
transformationType?: string;
|
|
54
|
+
changeStatus?: "added" | "removed" | "modified";
|
|
55
|
+
}, "lineageGraphColumnNode">;
|
|
56
|
+
/**
|
|
57
|
+
* Lineage graph edge type for React Flow
|
|
58
|
+
*/
|
|
59
|
+
type LineageGraphEdge = Edge<{
|
|
60
|
+
from: LineageFrom;
|
|
61
|
+
changeStatus?: "added" | "removed";
|
|
62
|
+
}, "lineageGraphEdge">;
|
|
63
|
+
/**
|
|
64
|
+
* Union type for all lineage graph node types
|
|
65
|
+
*/
|
|
66
|
+
type LineageGraphNodes = LineageGraphNode | LineageGraphColumnNode;
|
|
67
|
+
/**
|
|
68
|
+
* The main lineage graph data structure
|
|
69
|
+
*/
|
|
70
|
+
interface LineageGraph {
|
|
71
|
+
nodes: Record<string, LineageGraphNode>;
|
|
72
|
+
edges: Record<string, LineageGraphEdge>;
|
|
73
|
+
modifiedSet: string[];
|
|
74
|
+
manifestMetadata: {
|
|
75
|
+
base?: ManifestMetadata;
|
|
76
|
+
current?: ManifestMetadata;
|
|
77
|
+
};
|
|
78
|
+
catalogMetadata: {
|
|
79
|
+
base?: CatalogMetadata;
|
|
80
|
+
current?: CatalogMetadata;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Type guard for LineageGraphNode
|
|
85
|
+
*/
|
|
86
|
+
declare function isLineageGraphNode(node: LineageGraphNodes): node is LineageGraphNode;
|
|
87
|
+
/**
|
|
88
|
+
* Type guard for LineageGraphColumnNode
|
|
89
|
+
*/
|
|
90
|
+
declare function isLineageGraphColumnNode(node: LineageGraphNodes): node is LineageGraphColumnNode;
|
|
91
|
+
/**
|
|
92
|
+
* Context value exposed by LineageGraphContext
|
|
93
|
+
*/
|
|
94
|
+
interface LineageGraphContextType {
|
|
95
|
+
/** The processed lineage graph */
|
|
96
|
+
lineageGraph?: LineageGraph;
|
|
97
|
+
/** Environment metadata */
|
|
98
|
+
envInfo?: EnvInfo;
|
|
99
|
+
/** Whether in review mode (read-only checks) */
|
|
100
|
+
reviewMode?: boolean;
|
|
101
|
+
/** Whether in cloud mode (recce cloud) */
|
|
102
|
+
cloudMode?: boolean;
|
|
103
|
+
/** Whether in file mode (loading from file) */
|
|
104
|
+
fileMode?: boolean;
|
|
105
|
+
/** The state file name if in file mode */
|
|
106
|
+
fileName?: string;
|
|
107
|
+
/** Whether this is the demo site */
|
|
108
|
+
isDemoSite: boolean;
|
|
109
|
+
/** Whether running in GitHub Codespace */
|
|
110
|
+
isCodespace?: boolean;
|
|
111
|
+
/** Loading state */
|
|
112
|
+
isLoading?: boolean;
|
|
113
|
+
/** Error message if loading failed */
|
|
114
|
+
error?: string;
|
|
115
|
+
/** Supported task types from server */
|
|
116
|
+
supportTasks?: Record<string, boolean>;
|
|
117
|
+
/** Refetch the lineage graph data */
|
|
118
|
+
refetchLineageGraph?: () => void;
|
|
119
|
+
/** Check if an action is available */
|
|
120
|
+
isActionAvailable: (actionName: string) => boolean;
|
|
121
|
+
/** Pre-aggregated run results by model */
|
|
122
|
+
runsAggregated?: RunsAggregated;
|
|
123
|
+
/** Refetch the aggregated runs */
|
|
124
|
+
refetchRunsAggregated?: () => void;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Action mode for node operations - single or multiple nodes
|
|
128
|
+
*/
|
|
129
|
+
type ActionMode = "per_node" | "multi_nodes";
|
|
130
|
+
/**
|
|
131
|
+
* Select mode for multi-node selection
|
|
132
|
+
*/
|
|
133
|
+
type SelectMode = "selecting" | "action_result" | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Action state for individual node operations
|
|
136
|
+
*/
|
|
137
|
+
interface NodeAction {
|
|
138
|
+
/** Whether this is a per-node or multi-node action */
|
|
139
|
+
mode: ActionMode;
|
|
140
|
+
/** Current status of this node's action */
|
|
141
|
+
status?: "pending" | "running" | "success" | "failure" | "skipped";
|
|
142
|
+
/** Reason why this node was skipped (if applicable) */
|
|
143
|
+
skipReason?: string;
|
|
144
|
+
/** The run associated with this action */
|
|
145
|
+
run?: Run;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* Overall action state for batch operations
|
|
149
|
+
*/
|
|
150
|
+
interface ActionState {
|
|
151
|
+
/** Whether this is a per-node or multi-node action */
|
|
152
|
+
mode: ActionMode;
|
|
153
|
+
/** Overall status of the action batch */
|
|
154
|
+
status: "pending" | "running" | "canceling" | "canceled" | "completed";
|
|
155
|
+
/** Current run being executed */
|
|
156
|
+
currentRun?: Partial<Run>;
|
|
157
|
+
/** Number of completed actions */
|
|
158
|
+
completed: number;
|
|
159
|
+
/** Total number of actions */
|
|
160
|
+
total: number;
|
|
161
|
+
/** Per-node action state */
|
|
162
|
+
actions: Record<string, NodeAction>;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Context value exposed by LineageViewContext.
|
|
166
|
+
* Provides state and methods for interacting with the lineage view.
|
|
167
|
+
*/
|
|
168
|
+
interface LineageViewContextType {
|
|
169
|
+
/** Whether the view is interactive (vs read-only) */
|
|
170
|
+
interactive: boolean;
|
|
171
|
+
/** All nodes in the current view */
|
|
172
|
+
nodes: LineageGraphNodes[];
|
|
173
|
+
/** Currently focused node (hovered/highlighted) */
|
|
174
|
+
focusedNode?: LineageGraphNode;
|
|
175
|
+
/** Currently selected nodes for batch operations */
|
|
176
|
+
selectedNodes: LineageGraphNode[];
|
|
177
|
+
/** Column-level lineage data if showing CLL */
|
|
178
|
+
cll: ColumnLineageData | undefined;
|
|
179
|
+
/** Show the context menu for a node */
|
|
180
|
+
showContextMenu: (event: React.MouseEvent, node: LineageGraphNodes) => void;
|
|
181
|
+
/** Current view options (filters, display settings) */
|
|
182
|
+
viewOptions: LineageDiffViewOptions;
|
|
183
|
+
/** Update view options */
|
|
184
|
+
onViewOptionsChanged: (options: LineageDiffViewOptions) => void;
|
|
185
|
+
/** Current selection mode */
|
|
186
|
+
selectMode: SelectMode;
|
|
187
|
+
/** Select/deselect a single node */
|
|
188
|
+
selectNode: (nodeId: string) => void;
|
|
189
|
+
/** Select all parent nodes up to a degree */
|
|
190
|
+
selectParentNodes: (nodeId: string, degree?: number) => void;
|
|
191
|
+
/** Select all child nodes up to a degree */
|
|
192
|
+
selectChildNodes: (nodeId: string, degree?: number) => void;
|
|
193
|
+
/** Clear selection */
|
|
194
|
+
deselect: () => void;
|
|
195
|
+
/** Check if a node is highlighted */
|
|
196
|
+
isNodeHighlighted: (nodeId: string) => boolean;
|
|
197
|
+
/** Check if a node is selected */
|
|
198
|
+
isNodeSelected: (nodeId: string) => boolean;
|
|
199
|
+
/** Check if an edge is highlighted */
|
|
200
|
+
isEdgeHighlighted: (source: string, target: string) => boolean;
|
|
201
|
+
/** Get the action state for a node */
|
|
202
|
+
getNodeAction: (nodeId: string) => NodeAction;
|
|
203
|
+
/** Get the columns visible for a node in CLL mode */
|
|
204
|
+
getNodeColumnSet: (nodeId: string) => Set<string>;
|
|
205
|
+
/** Check if a node is showing change analysis */
|
|
206
|
+
isNodeShowingChangeAnalysis: (nodeId: string) => boolean;
|
|
207
|
+
/** Whether impact radius (change analysis) mode is active */
|
|
208
|
+
changeAnalysisMode: boolean;
|
|
209
|
+
/** Set change analysis mode on/off */
|
|
210
|
+
setChangeAnalysisMode: (active: boolean) => void;
|
|
211
|
+
/** Run row count on selected nodes */
|
|
212
|
+
runRowCount: () => Promise<void>;
|
|
213
|
+
/** Run row count diff on selected nodes */
|
|
214
|
+
runRowCountDiff: () => Promise<void>;
|
|
215
|
+
/** Run value diff on selected nodes */
|
|
216
|
+
runValueDiff: () => Promise<void>;
|
|
217
|
+
/** Add a lineage diff check */
|
|
218
|
+
addLineageDiffCheck: (viewMode?: string) => void;
|
|
219
|
+
/** Add a schema diff check */
|
|
220
|
+
addSchemaDiffCheck: () => void;
|
|
221
|
+
/** Cancel the current action */
|
|
222
|
+
cancel: () => void;
|
|
223
|
+
/** Current action state */
|
|
224
|
+
actionState: ActionState;
|
|
225
|
+
/** Center the view on a specific node */
|
|
226
|
+
centerNode: (nodeId: string) => void;
|
|
227
|
+
/** Show column-level lineage for a node/column */
|
|
228
|
+
showColumnLevelLineage: (cll?: CllInput) => Promise<void>;
|
|
229
|
+
/** Reset column-level lineage view */
|
|
230
|
+
resetColumnLevelLineage: (previous?: boolean) => Promise<void>;
|
|
231
|
+
}
|
|
232
|
+
//#endregion
|
|
233
|
+
export { LineageGraphColumnNode as a, LineageGraphNode as c, NodeAction as d, SelectMode as f, LineageGraph as i, LineageGraphNodes as l, isLineageGraphNode as m, ActionState as n, LineageGraphContextType as o, isLineageGraphColumnNode as p, EnvInfo as r, LineageGraphEdge as s, ActionMode as t, LineageViewContextType as u };
|
|
234
|
+
//# sourceMappingURL=types-DLRfpcrV.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-DLRfpcrV.d.ts","names":[],"sources":["../src/contexts/lineage/types.ts"],"mappings":";;;;;;;;;UAmBiB,OAAA;EACf,aAAA,GAAgB,aAAA;EAChB,WAAA;EACA,GAAA,GAAM,OAAA;EACN,WAAA,GAAc,eAAA;EACd,GAAA;IACE,IAAA,EAAM,gBAAA;IACN,OAAA,EAAS,gBAAA;EAAA;EAEX,OAAA,GAAU,WAAA;AAAA;;;;KAMP,WAAA;;;;KAKO,gBAAA,GAAmB,IAAA;EAE3B,EAAA;EACA,IAAA;EACA,IAAA,EAAM,WAAA;EACN,IAAA;IACE,IAAA,GAAO,QAAA;IACP,OAAA,GAAU,QAAA;EAAA;EAEZ,YAAA;EACA,MAAA;IACE,QAAA;IACA,OAAA,EAAS,MAAA;EAAA;EAEX,YAAA;EACA,WAAA;EACA,OAAA,EAAS,MAAA,SAAe,gBAAA;EACxB,QAAA,EAAU,MAAA,SAAe,gBAAA;AAAA;;;;KAQjB,sBAAA,GAAyB,IAAA;EAEjC,IAAA,EAAM,gBAAA;EACN,MAAA;EACA,IAAA;EACA,kBAAA;EACA,YAAA;AAAA;;;;KAQQ,gBAAA,GAAmB,IAAA;EAE3B,IAAA,EAAM,WAAA;EACN,YAAA;AAAA;;;;KAQQ,iBAAA,GAAoB,gBAAA,GAAmB,sBAAA;;;;UAKlC,YAAA;EACf,KAAA,EAAO,MAAA,SAAe,gBAAA;EACtB,KAAA,EAAO,MAAA,SAAe,gBAAA;EACtB,WAAA;EACA,gBAAA;IACE,IAAA,GAAO,gBAAA;IACP,OAAA,GAAU,gBAAA;EAAA;EAEZ,eAAA;IACE,IAAA,GAAO,eAAA;IACP,OAAA,GAAU,eAAA;EAAA;AAAA;;;;iBAOE,kBAAA,CACd,IAAA,EAAM,iBAAA,GACL,IAAA,IAAQ,gBAAA;;;AAnCX;iBA0CgB,wBAAA,CACd,IAAA,EAAM,iBAAA,GACL,IAAA,IAAQ,sBAAA;;;;UAOM,uBAAA;EAjDP;EAmDR,YAAA,GAAe,YAAA;EAlDD;EAoDd,OAAA,GAAU,OAAA;EA5CA;EA8CV,UAAA;;EAEA,SAAA;EAhDuE;EAkDvE,QAAA;EA7C2B;EA+C3B,QAAA;EA9CsB;EAgDtB,UAAA;EA/CsB;EAiDtB,WAAA;EA9CS;EAgDT,SAAA;EA5CS;EA8CT,KAAA;EA7C2B;EA+C3B,YAAA,GAAe,MAAA;EAxDf;EA0DA,mBAAA;EA1DsB;EA4DtB,iBAAA,GAAoB,UAAA;EA3Db;EA6DP,cAAA,GAAiB,cAAA;EA5DjB;EA8DA,qBAAA;AAAA;;;;KAUU,UAAA;;;;KAKA,UAAA;;;AA/DZ;UAoEiB,UAAA;;EAEf,IAAA,EAAM,UAAA;EArEA;EAuEN,MAAA;EAtEC;EAwED,UAAA;EAxEyB;EA0EzB,GAAA,GAAM,GAAA;AAAA;;;;UAMS,WAAA;EAxEf;EA0EA,IAAA,EAAM,UAAA;EAzEG;EA2ET,MAAA;EA3E+B;EA6E/B,UAAA,GAAa,OAAA,CAAQ,GAAA;EAtEiB;EAwEtC,SAAA;EAtEe;EAwEf,KAAA;EApDe;EAsDf,OAAA,EAAS,MAAA,SAAe,UAAA;AAAA;;;;;UAOT,sBAAA;EA7Ef;EA+EA,WAAA;EA3EA;EA6EA,KAAA,EAAO,iBAAA;EAzEP;EA2EA,WAAA,GAAc,gBAAA;EAvEd;EAyEA,aAAA,EAAe,gBAAA;EArEf;EAuEA,GAAA,EAAK,iBAAA;EArEL;EAyEA,eAAA,GAAkB,KAAA,EAAO,KAAA,CAAM,UAAA,EAAY,IAAA,EAAM,iBAAA;EAvE7B;EA2EpB,WAAA,EAAa,sBAAA;EAzEI;EA2EjB,oBAAA,GAAuB,OAAA,EAAS,sBAAA;EAzEX;EA6ErB,UAAA,EAAY,UAAA;EAnEF;EAqEV,UAAA,GAAa,MAAA;;EAEb,iBAAA,GAAoB,MAAA,UAAgB,MAAA;EAvEhB;EAyEpB,gBAAA,GAAmB,MAAA,UAAgB,MAAA;EApEf;EAsEpB,QAAA;EAtEoB;EA0EpB,iBAAA,GAAoB,MAAA;EArEL;EAuEf,cAAA,GAAiB,MAAA;;EAEjB,iBAAA,GAAoB,MAAA,UAAgB,MAAA;EAvEpC;EAyEA,aAAA,GAAgB,MAAA,aAAmB,UAAA;EAvEnC;EAyEA,gBAAA,GAAmB,MAAA,aAAmB,GAAA;EArEtC;EAuEA,2BAAA,GAA8B,MAAA;EAvErB;EAyET,kBAAA;EAnEe;EAqEf,qBAAA,GAAwB,MAAA;;EAIxB,WAAA,QAAmB,OAAA;EAnEE;EAqErB,eAAA,QAAuB,OAAA;EA/DC;EAiExB,YAAA,QAAoB,OAAA;EAjEL;EAmEf,mBAAA,GAAsB,QAAA;EA7EtB;EA+EA,kBAAA;EA7EA;EA+EA,MAAA;EA7Ea;EA+Eb,WAAA,EAAa,WAAA;EA7Eb;EAiFA,UAAA,GAAa,MAAA;EA7Eb;EA+EA,sBAAA,GAAyB,GAAA,GAAM,QAAA,KAAa,OAAA;EA/EpB;EAiFxB,uBAAA,GAA0B,QAAA,eAAuB,OAAA;AAAA"}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
|
|
2
|
+
import { C as Run, D as RunType, J as ValueDiffDetailViewOptions, Y as ValueDiffParams, dt as ProfileDiffViewOptions, ft as TopKDiffParams, ht as TopKViewOptions, lt as ProfileDiffParams, ot as HistogramDiffParams, s as LineageDiffViewOptions, wt as QueryViewOptions, yt as QueryDiffViewOptions, zt as AxiosQueryParams } from "./instanceInfo-DNLFhkK8.js";
|
|
3
|
+
import { r as DataGridHandle } from "./ScreenshotDataGrid-BAsPWcde.js";
|
|
4
|
+
import * as _$react from "react";
|
|
5
|
+
import { ComponentType, ForwardRefExoticComponent, ReactNode, Ref, RefAttributes } from "react";
|
|
6
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
|
+
|
|
8
|
+
//#region src/components/run/RunToolbar.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Common view options for diff-based result views.
|
|
11
|
+
* Used to control what data is shown in diff results.
|
|
12
|
+
*/
|
|
13
|
+
interface DiffViewOptions {
|
|
14
|
+
/** When true, only show rows/columns that have changed */
|
|
15
|
+
changed_only?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Props for the RunToolbar component
|
|
19
|
+
*/
|
|
20
|
+
interface RunToolbarProps {
|
|
21
|
+
/** Array of warning messages to display */
|
|
22
|
+
warnings?: string[];
|
|
23
|
+
/** Toolbar actions or other content */
|
|
24
|
+
children?: ReactNode;
|
|
25
|
+
/** Optional CSS class */
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* RunToolbar Component
|
|
30
|
+
*
|
|
31
|
+
* A pure presentation component for displaying run toolbar with warnings.
|
|
32
|
+
* Warnings are displayed with amber background when present.
|
|
33
|
+
*
|
|
34
|
+
* @example Basic usage with warnings
|
|
35
|
+
* ```tsx
|
|
36
|
+
* import { RunToolbar } from '@datarecce/ui/primitives';
|
|
37
|
+
*
|
|
38
|
+
* function RunPane({ run }) {
|
|
39
|
+
* return (
|
|
40
|
+
* <RunToolbar warnings={run.warnings}>
|
|
41
|
+
* <Button onClick={handleExport}>Export</Button>
|
|
42
|
+
* </RunToolbar>
|
|
43
|
+
* );
|
|
44
|
+
* }
|
|
45
|
+
* ```
|
|
46
|
+
*
|
|
47
|
+
* @example Without warnings
|
|
48
|
+
* ```tsx
|
|
49
|
+
* <RunToolbar>
|
|
50
|
+
* <Switch label="Changed only" />
|
|
51
|
+
* <Button onClick={handleCopy}>Copy</Button>
|
|
52
|
+
* </RunToolbar>
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
declare function RunToolbarComponent({
|
|
56
|
+
warnings,
|
|
57
|
+
children,
|
|
58
|
+
className
|
|
59
|
+
}: RunToolbarProps): _$react_jsx_runtime0.JSX.Element;
|
|
60
|
+
declare const RunToolbar: _$react.MemoExoticComponent<typeof RunToolbarComponent>;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/run/types.d.ts
|
|
63
|
+
/**
|
|
64
|
+
* Base props for run form components.
|
|
65
|
+
* Generic type PT represents the params type for the specific run type.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* interface MyFormProps extends RunFormProps<MyRunParams> {}
|
|
69
|
+
*/
|
|
70
|
+
interface RunFormProps<PT = unknown> {
|
|
71
|
+
/** Current form parameter values */
|
|
72
|
+
params: Partial<PT>;
|
|
73
|
+
/** Callback when params change */
|
|
74
|
+
onParamsChanged: (params: Partial<PT>) => void;
|
|
75
|
+
/** Callback to set whether the form is valid and ready to execute */
|
|
76
|
+
setIsReadyToExecute: (isReadyToExecute: boolean) => void;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Base props for run result view components.
|
|
80
|
+
* Generic type VO represents the view options type for the specific run type.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* interface MyResultViewProps extends RunResultViewProps<MyViewOptions> {}
|
|
84
|
+
*/
|
|
85
|
+
interface RunResultViewProps<VO = unknown> {
|
|
86
|
+
/** The run object containing execution results */
|
|
87
|
+
run: Run;
|
|
88
|
+
/** Optional view options to control how results are displayed */
|
|
89
|
+
viewOptions?: VO;
|
|
90
|
+
/** Callback when view options change */
|
|
91
|
+
onViewOptionsChanged?: (viewOptions: VO) => void;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Type for icon components - compatible with react-icons IconType pattern.
|
|
95
|
+
* Uses a permissive type to allow react-icons IconType and custom icon components.
|
|
96
|
+
*
|
|
97
|
+
* This type accepts any component that can render an icon. The actual props
|
|
98
|
+
* depend on the icon library used (react-icons, @mui/icons-material, etc.)
|
|
99
|
+
*/
|
|
100
|
+
type IconComponent = ComponentType<any>;
|
|
101
|
+
/**
|
|
102
|
+
* Configuration for a single run type in the registry.
|
|
103
|
+
* Icons and components are injectable, enabling extension/override.
|
|
104
|
+
*
|
|
105
|
+
* @param RefType - Type for the ref (DataGridHandle, HTMLDivElement, etc.)
|
|
106
|
+
* @param ViewOptions - Type for view options specific to this run type
|
|
107
|
+
* @param FormParams - Type for form parameters specific to this run type
|
|
108
|
+
*/
|
|
109
|
+
interface RunTypeConfig<RefType = unknown, ViewOptions = unknown, FormParams = unknown> {
|
|
110
|
+
/** Human-readable title for the run type */
|
|
111
|
+
title: string;
|
|
112
|
+
/** Icon component for the run type - injectable for customization */
|
|
113
|
+
icon: IconComponent;
|
|
114
|
+
/** Optional result view component (forwardRef) for rendering run results */
|
|
115
|
+
RunResultView?: ForwardRefExoticComponent<RunResultViewProps<ViewOptions> & RefAttributes<RefType>>;
|
|
116
|
+
/** Optional form component for configuring run parameters */
|
|
117
|
+
RunForm?: ComponentType<RunFormProps<FormParams>>;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Interface for the full run type registry.
|
|
121
|
+
* Consumers can extend this with additional run types:
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* const cloudRegistry: RunTypeRegistry & { custom: RunTypeConfig } = {
|
|
125
|
+
* ...defaultRunTypeRegistry,
|
|
126
|
+
* custom: { title: "Custom", icon: MyIcon }
|
|
127
|
+
* };
|
|
128
|
+
*/
|
|
129
|
+
type RunTypeRegistry = { [K in RunType]: RunTypeConfig };
|
|
130
|
+
/**
|
|
131
|
+
* Partial registry for registry extension/override patterns.
|
|
132
|
+
* Useful when consumers want to override only some run types.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* const overrides: Partial<RunTypeRegistry> = {
|
|
136
|
+
* query: { ...defaultRunTypeRegistry.query, icon: CustomQueryIcon }
|
|
137
|
+
* };
|
|
138
|
+
*/
|
|
139
|
+
type PartialRunTypeRegistry = Partial<RunTypeRegistry>;
|
|
140
|
+
/**
|
|
141
|
+
* Union of ref types used by run result views.
|
|
142
|
+
* DataGridHandle for data grid components, HTMLDivElement for others.
|
|
143
|
+
*/
|
|
144
|
+
type RunResultViewRef = Ref<unknown> | Ref<HTMLDivElement>;
|
|
145
|
+
/**
|
|
146
|
+
* Union of all view option types used across run result views.
|
|
147
|
+
* Includes options for lineage diff, query diff, profile diff, etc.
|
|
148
|
+
*/
|
|
149
|
+
type ViewOptionTypes = LineageDiffViewOptions | DiffViewOptions | QueryViewOptions | QueryDiffViewOptions | ProfileDiffViewOptions | ValueDiffDetailViewOptions | TopKViewOptions;
|
|
150
|
+
/**
|
|
151
|
+
* Union of ref types for result views.
|
|
152
|
+
* DataGridHandle for data grid components, HTMLDivElement for others.
|
|
153
|
+
*/
|
|
154
|
+
type RefTypes = Ref<DataGridHandle> | Ref<HTMLDivElement>;
|
|
155
|
+
/**
|
|
156
|
+
* Union of form param types for run forms.
|
|
157
|
+
* These are the API-level parameter types.
|
|
158
|
+
*/
|
|
159
|
+
type RunFormParamTypes = ProfileDiffParams | ValueDiffParams | TopKDiffParams | HistogramDiffParams | AxiosQueryParams;
|
|
160
|
+
/**
|
|
161
|
+
* Alias for RunTypeConfig for backward compatibility with OSS code.
|
|
162
|
+
* RegistryEntry was the original name used in OSS registry.ts.
|
|
163
|
+
*
|
|
164
|
+
* @param RefType - Type for the ref (DataGridHandle, HTMLDivElement, etc.)
|
|
165
|
+
* @param ViewOptions - Type for view options specific to this run type
|
|
166
|
+
* @param FormParams - Type for form parameters specific to this run type
|
|
167
|
+
*/
|
|
168
|
+
type RegistryEntry<RefType = RefTypes, ViewOptions = ViewOptionTypes, FormParams = RunFormParamTypes> = RunTypeConfig<RefType, ViewOptions, FormParams>;
|
|
169
|
+
//#endregion
|
|
170
|
+
export { RunFormParamTypes as a, RunResultViewRef as c, ViewOptionTypes as d, DiffViewOptions as f, RegistryEntry as i, RunTypeConfig as l, RunToolbarProps as m, PartialRunTypeRegistry as n, RunFormProps as o, RunToolbar as p, RefTypes as r, RunResultViewProps as s, IconComponent as t, RunTypeRegistry as u };
|
|
171
|
+
//# sourceMappingURL=types-qpgIe7MT.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-qpgIe7MT.d.ts","names":[],"sources":["../src/components/run/RunToolbar.tsx","../src/components/run/types.ts"],"mappings":";;;;;;;;;;;;UAYiB,eAAA;;EAEf,YAAA;AAAA;;;;UAMe,eAAA;EAAA;EAEf,QAAA;;EAEA,QAAA,GAAW,SAAA;EAFX;EAIA,SAAA;AAAA;;;;AACD;;;;;;;;;;;;;;;;;;;;;AAoFD;;;iBAvDS,mBAAA,CAAA;EACP,QAAA;EACA,QAAA;EACA;AAAA,GACC,eAAA,GAAe,oBAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAmDL,UAAA,EAAU,OAAA,CAAA,mBAAA,QAAA,mBAAA;;;;;;;AA3FvB;;;UCuBiB,YAAA;EDrBf;ECuBA,MAAA,EAAQ,OAAA,CAAQ,EAAA;EDrBL;ECuBX,eAAA,GAAkB,MAAA,EAAQ,OAAA,CAAQ,EAAA;EDrBzB;ECuBT,mBAAA,GAAsB,gBAAA;AAAA;;;;;;;;UAcP,kBAAA;EDHC;ECKhB,GAAA,EAAK,GAAA;EDRL;ECUA,WAAA,GAAc,EAAA;EDTd;ECWA,oBAAA,IAAwB,WAAA,EAAa,EAAA;AAAA;;;;;;AD0CvC;;KC3BY,aAAA,GAAgB,aAAA;;;;;;AAzC5B;;;UAuDiB,aAAA;EArDP;EA2DR,KAAA;EAzD0B;EA4D1B,IAAA,EAAM,aAAA;EA5D2B;EA+DjC,aAAA,GAAgB,yBAAA,CACd,kBAAA,CAAmB,WAAA,IAAe,aAAA,CAAc,OAAA;EAlElD;EAsEA,OAAA,GAAU,aAAA,CAAc,YAAA,CAAa,UAAA;AAAA;;;;;;;;;AApDvC;;KAqEY,eAAA,WACJ,OAAA,GAAU,aAAA;;;;;;;;;;KAYN,sBAAA,GAAyB,OAAA,CAAQ,eAAA;;;;AA7D7C;KAuEY,gBAAA,GAAmB,GAAA,YAAe,GAAA,CAAI,cAAA;;;;AAzDlD;KAmEY,eAAA,GACR,sBAAA,GACA,eAAA,GACA,gBAAA,GACA,oBAAA,GACA,sBAAA,GACA,0BAAA,GACA,eAAA;;;;;KAMQ,QAAA,GAAW,GAAA,CAAI,cAAA,IAAkB,GAAA,CAAI,cAAA;;;;;KAMrC,iBAAA,GACR,iBAAA,GACA,eAAA,GACA,cAAA,GACA,mBAAA,GACA,gBAAA;;;;;;;;;KAUQ,aAAA,WACA,QAAA,gBACI,eAAA,eACD,iBAAA,IACX,aAAA,CAAc,OAAA,EAAS,WAAA,EAAa,UAAA"}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { $t as LineageData, Ot as RunsAggregated, Qt as GitInfo, Zt as CatalogMetadata, an as NodeColumnData, cn as SQLMeshInfo, en as LineageDataFromMetadata, i as RecceServerFlags, ln as ServerInfoResult, n as ServerMode, on as NodeData, rn as ManifestMetadata, sn as PullRequestInfo, t as RecceInstanceInfo, tn as LineageDiffData, un as StateMetadata } from "./instanceInfo-DNLFhkK8.js";
|
|
3
|
+
import { a as LineageGraphColumnNode, c as LineageGraphNode, i as LineageGraph, l as LineageGraphNodes, o as LineageGraphContextType, r as EnvInfo, s as LineageGraphEdge } from "./types-DLRfpcrV.js";
|
|
4
|
+
import { o as LineageGraphProviderProps, u as NodeColumnSetMap } from "./index-C9nBECPv.js";
|
|
5
|
+
import { B as LineageColumnNodeProps, C as ChartBarColors, D as HistogramDataType, E as HistogramChartProps, G as CheckListProps, H as LineageViewProps, L as ColumnTransformationType, N as LineageLegendProps, O as HistogramDataset, P as TransformationLegendItem, Q as CheckDescriptionProps, S as TopKItem, U as LineageViewRef, X as CheckDetailTab, Y as CheckDetailProps, a as EmptyStateProps, at as CheckActionType, b as TopKBarChartProps, c as DiffEditorProps, dt as NodeChangeStatus, et as CheckCardData, ft as EdgeChangeStatus, ht as LineageEdgeProps, it as CheckAction, j as ChangeStatusLegendItem, l as DiffEditorTheme, lt as LineageNodeData, mt as LineageEdgeData, nt as CheckRunStatus, p as SchemaDiffRow, q as CheckEmptyStateProps, r as SplitPaneProps, rt as CheckType, s as DiffEditorLanguage, st as CheckActionsProps, t as SplitDirection, tt as CheckCardProps, u as SchemaDiffStatus, ut as LineageNodeProps, w as ChartThemeColors, x as TopKDataset, z as LineageColumnNodeData } from "./SplitPane-g8w-XF2_.js";
|
|
6
|
+
import { _ as CheckProviderProps, a as RoutingConfig, b as LineageCanvasProps, d as QueryProviderProps, f as QueryResult, h as CheckContextType, i as NavigateOptions, l as QueryContextType, m as Check, o as RoutingContextValue, r as RecceProviderProps, t as TYPES_API_VERSION } from "./index-B1IyNkDA.js";
|
|
7
|
+
import { _ as RunStatusWithDateProps, a as RunProgressVariant, c as RunListItemData, d as RunStatus, h as RunStatusBadgeProps, i as RunProgressProps, l as RunListItemProps, r as RunProgressOverlayProps, u as RunListProps } from "./RunProgress-BCFXvUsE.js";
|
|
8
|
+
import { _ as RecceFeatureMode, d as RecceActionOptions, f as SubmitRunTrackProps, g as InstanceInfoType, i as IdleTimeoutContextType, l as AxiosQueryParams, s as RecceActionProviderProps, u as RecceActionContextType, v as RecceFeatureToggles } from "./index-Dh6gw0NG.js";
|
|
9
|
+
import { t as ThemeColors } from "./useThemeColors-OwCMwSrx.js";
|
|
10
|
+
import { a as SemanticColorVariant, i as ColorShade, t as Theme } from "./index-CHJ0PCEg.js";
|
|
11
|
+
export { AxiosQueryParams, CatalogMetadata, ChangeStatusLegendItem, ChartBarColors, ChartThemeColors, Check, CheckAction, CheckActionType, CheckActionsProps, CheckCardData, CheckCardProps, CheckContextType, CheckDescriptionProps, CheckDetailProps, CheckDetailTab, CheckEmptyStateProps, CheckListProps, CheckProviderProps, CheckRunStatus, CheckType, ColorShade, ColumnTransformationType, DiffEditorLanguage, DiffEditorProps, DiffEditorTheme, EdgeChangeStatus, EmptyStateProps, EnvInfo, GitInfo, HistogramChartProps, HistogramDataType, HistogramDataset, IdleTimeoutContextType, InstanceInfoType, LineageCanvasProps, LineageColumnNodeData, LineageColumnNodeProps, LineageData, LineageDataFromMetadata, LineageDiffData, LineageEdgeData, LineageEdgeProps, LineageGraph, LineageGraphColumnNode, LineageGraphContextType, LineageGraphEdge, LineageGraphNode, LineageGraphNodes, LineageGraphProviderProps, LineageLegendProps, LineageNodeData, LineageNodeProps, LineageViewProps, LineageViewRef, ManifestMetadata, NavigateOptions, NodeChangeStatus, NodeColumnData, NodeColumnSetMap, NodeData, PullRequestInfo, QueryContextType, QueryProviderProps, QueryResult, RecceActionContextType, RecceActionOptions, RecceActionProviderProps, RecceFeatureMode, RecceFeatureToggles, RecceInstanceInfo, RecceProviderProps, RecceServerFlags, RoutingConfig, RoutingContextValue, RunListItemData, RunListItemProps, RunListProps, RunProgressOverlayProps, RunProgressProps, RunProgressVariant, RunStatus, RunStatusBadgeProps, RunStatusWithDateProps, RunsAggregated, SQLMeshInfo, SchemaDiffRow, SchemaDiffStatus, SemanticColorVariant, ServerInfoResult, ServerMode, SplitDirection, SplitPaneProps, StateMetadata, SubmitRunTrackProps, TYPES_API_VERSION, Theme, ThemeColors, TopKBarChartProps, TopKDataset, TopKItem, TransformationLegendItem };
|
package/dist/types.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
const require_tooltipMessage = require('./tooltipMessage-BC5W7H3X.js');
|
|
5
|
-
|
|
6
|
-
exports.DisableTooltipMessages = require_tooltipMessage.DisableTooltipMessages;
|
|
7
|
-
exports.PUBLIC_API_URL = require_const.PUBLIC_API_URL;
|
|
8
|
-
exports.PUBLIC_CLOUD_WEB_URL = require_const.PUBLIC_CLOUD_WEB_URL;
|
|
9
|
-
exports.RECCE_SUPPORT_CALENDAR_URL = require_urls.RECCE_SUPPORT_CALENDAR_URL;
|
|
1
|
+
"use client";
|
|
2
|
+
const e=`0.1.0`;export{e as TYPES_API_VERSION};
|
|
3
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","names":[],"sources":["../src/types/index.ts"],"sourcesContent":["// @datarecce/ui/types - Type-only exports for TypeScript consumers\n// Use this entry point when you only need types (no runtime code)\n// Import: import type { CheckCardData, LineageNodeData } from '@datarecce/ui/types';\n\nexport const TYPES_API_VERSION = \"0.1.0\";\n\n// =============================================================================\n// LINEAGE TYPES\n// =============================================================================\n\n// Column node types\nexport type {\n ColumnTransformationType,\n LineageColumnNodeData,\n LineageColumnNodeProps,\n} from \"../components/lineage/columns\";\n// Edge types\nexport type {\n EdgeChangeStatus,\n LineageEdgeData,\n LineageEdgeProps,\n} from \"../components/lineage/edges\";\n// Canvas types\nexport type { LineageCanvasProps } from \"../components/lineage/LineageCanvas\";\n// View types\nexport type {\n LineageViewProps,\n LineageViewRef,\n} from \"../components/lineage/LineageView\";\n// Legend types\nexport type {\n ChangeStatusLegendItem,\n LineageLegendProps,\n TransformationLegendItem,\n} from \"../components/lineage/legend\";\n// Node types\nexport type {\n LineageNodeData,\n LineageNodeProps,\n NodeChangeStatus,\n} from \"../components/lineage/nodes\";\n\n// =============================================================================\n// CHECK TYPES\n// =============================================================================\n\nexport type {\n CheckAction,\n CheckActionsProps,\n CheckActionType,\n} from \"../components/check/CheckActions\";\nexport type {\n CheckCardData,\n CheckCardProps,\n CheckRunStatus,\n CheckType,\n} from \"../components/check/CheckCard\";\nexport type { CheckDescriptionProps } from \"../components/check/CheckDescription\";\nexport type {\n CheckDetailProps,\n CheckDetailTab,\n} from \"../components/check/CheckDetail\";\nexport type { CheckEmptyStateProps } from \"../components/check/CheckEmptyState\";\nexport type { CheckListProps } from \"../components/check/CheckList\";\n\n// =============================================================================\n// RUN TYPES\n// =============================================================================\n\nexport type {\n RunListItemData,\n RunListItemProps,\n RunListProps,\n} from \"../components/run/RunList\";\n\nexport type {\n RunProgressOverlayProps,\n RunProgressProps,\n RunProgressVariant,\n} from \"../components/run/RunProgress\";\n\nexport type {\n RunStatus,\n RunStatusBadgeProps,\n RunStatusWithDateProps,\n} from \"../components/run/RunStatusBadge\";\n\n// =============================================================================\n// DATA TYPES\n// =============================================================================\n\nexport type {\n ChartBarColors,\n ChartThemeColors,\n HistogramChartProps,\n HistogramDataset,\n HistogramDataType,\n} from \"../components/data/HistogramChart\";\n\nexport type {\n TopKBarChartProps,\n TopKDataset,\n TopKItem,\n} from \"../components/data/TopKBarChart\";\n\n// =============================================================================\n// SCHEMA TYPES\n// =============================================================================\n\nexport type {\n SchemaDiffRow,\n SchemaDiffStatus,\n} from \"../components/schema/types\";\n\n// =============================================================================\n// EDITOR TYPES\n// =============================================================================\n\nexport type {\n DiffEditorLanguage,\n DiffEditorProps,\n DiffEditorTheme,\n} from \"../components/editor/DiffEditor\";\n\n// =============================================================================\n// UI TYPES\n// =============================================================================\n\nexport type { EmptyStateProps } from \"../components/ui/EmptyState\";\n\nexport type {\n SplitDirection,\n SplitPaneProps,\n} from \"../components/ui/SplitPane\";\n\n// =============================================================================\n// CONTEXT TYPES\n// =============================================================================\n\n// Action context types\nexport type {\n AxiosQueryParams,\n RecceActionContextType,\n RecceActionOptions,\n RecceActionProviderProps,\n SubmitRunTrackProps,\n} from \"../contexts/action\";\n// Idle timeout types\nexport type { IdleTimeoutContextType } from \"../contexts/idle\";\n// Instance context types\nexport type { InstanceInfoType } from \"../contexts/instance\";\nexport type {\n LineageGraphContextType,\n LineageGraphProviderProps,\n} from \"../contexts/lineage\";\n// Lineage graph types\nexport type {\n EnvInfo,\n LineageGraph,\n LineageGraphColumnNode,\n LineageGraphEdge,\n LineageGraphNode,\n LineageGraphNodes,\n} from \"../contexts/lineage/types\";\nexport type { NodeColumnSetMap } from \"../contexts/lineage/utils\";\n\n// =============================================================================\n// PROVIDER TYPES\n// =============================================================================\n\nexport type {\n Check,\n CheckContextType,\n CheckProviderProps,\n} from \"../providers/contexts/CheckContext\";\n\nexport type {\n QueryContextType,\n QueryProviderProps,\n QueryResult,\n} from \"../providers/contexts/QueryContext\";\n\nexport type {\n NavigateOptions,\n RoutingConfig,\n RoutingContextValue,\n} from \"../providers/contexts/RoutingContext\";\n\nexport type { RecceProviderProps } from \"../providers/RecceProvider\";\n\n// =============================================================================\n// THEME TYPES\n// =============================================================================\n\nexport type { ThemeColors } from \"../hooks/useThemeColors\";\nexport type { Theme } from \"../theme\";\nexport type {\n ColorShade,\n SemanticColorVariant,\n} from \"../theme/colors\";\n\n// =============================================================================\n// API TYPES\n// =============================================================================\n\nexport type {\n CatalogMetadata,\n GitInfo,\n LineageData,\n LineageDataFromMetadata,\n LineageDiffData,\n ManifestMetadata,\n NodeColumnData,\n NodeData,\n PullRequestInfo,\n RecceInstanceInfo,\n RecceServerFlags,\n RunsAggregated,\n ServerInfoResult,\n ServerMode,\n SQLMeshInfo,\n StateMetadata,\n} from \"../api\";\n\n// =============================================================================\n// FEATURE TYPES\n// =============================================================================\n\nexport type {\n RecceFeatureMode,\n RecceFeatureToggles,\n} from \"../contexts/instance\";\n"],"mappings":";AAIA,MAAa,EAAoB"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
|
|
2
|
+
import * as _$_mui_material0 from "@mui/material";
|
|
3
|
+
|
|
4
|
+
//#region src/hooks/useThemeColors.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Theme-aware color utility hook
|
|
7
|
+
*
|
|
8
|
+
* Returns a consistent set of colors based on the current theme mode.
|
|
9
|
+
*
|
|
10
|
+
* **Dual-Context Support:**
|
|
11
|
+
* This hook works in two contexts:
|
|
12
|
+
* 1. **With RecceProvider** (recce-cloud-infra): Uses ThemeContext for theme detection
|
|
13
|
+
* 2. **Without RecceProvider** (Recce OSS with next-themes): Falls back to useIsDark
|
|
14
|
+
* which uses DOM class detection (.dark on <html>)
|
|
15
|
+
*
|
|
16
|
+
* This allows @datarecce/ui components to work in both environments without
|
|
17
|
+
* requiring the host application to wrap everything in RecceProvider.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* function MyComponent() {
|
|
22
|
+
* const { isDark, background, text, border } = useThemeColors();
|
|
23
|
+
*
|
|
24
|
+
* return (
|
|
25
|
+
* <Box sx={{
|
|
26
|
+
* bgcolor: background.paper,
|
|
27
|
+
* color: text.primary,
|
|
28
|
+
* borderColor: border.default,
|
|
29
|
+
* }}>
|
|
30
|
+
* Content
|
|
31
|
+
* </Box>
|
|
32
|
+
* );
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
declare function useThemeColors(): {
|
|
37
|
+
/** Whether the current theme is dark mode */isDark: boolean; /** MUI theme object for direct access when needed */
|
|
38
|
+
theme: _$_mui_material0.Theme; /** Background colors */
|
|
39
|
+
background: {
|
|
40
|
+
/** Default page background */default: "#FFFFFF" | "#171717"; /** Paper/card background */
|
|
41
|
+
paper: "#FFFFFF" | "#262626"; /** Subtle background for slight elevation (e.g., hover states, inputs) */
|
|
42
|
+
subtle: "#FAFAFA" | "#262626"; /** Emphasized background for higher contrast areas */
|
|
43
|
+
emphasized: "#F5F5F5" | "#404040";
|
|
44
|
+
}; /** Text colors */
|
|
45
|
+
text: {
|
|
46
|
+
/** Primary text color */primary: "#FAFAFA" | "#171717"; /** Secondary/muted text color */
|
|
47
|
+
secondary: "#A3A3A3" | "#525252"; /** Disabled text color */
|
|
48
|
+
disabled: "#A3A3A3" | "#737373"; /** Inverted text (for use on dark backgrounds in light mode, etc.) */
|
|
49
|
+
inverted: "#FAFAFA" | "#171717";
|
|
50
|
+
}; /** Border colors */
|
|
51
|
+
border: {
|
|
52
|
+
/** Light border for subtle separations */light: "#E5E5E5" | "#404040"; /** Default border color */
|
|
53
|
+
default: "#D4D4D4" | "#525252"; /** Strong border for emphasis */
|
|
54
|
+
strong: "#A3A3A3" | "#737373";
|
|
55
|
+
}; /** Status/semantic colors */
|
|
56
|
+
status: {
|
|
57
|
+
/** Added/success backgrounds */added: {
|
|
58
|
+
bg: "#DCFCE7" | "#14532D";
|
|
59
|
+
text: "#FAFAFA" | "#171717";
|
|
60
|
+
}; /** Removed/error backgrounds */
|
|
61
|
+
removed: {
|
|
62
|
+
bg: "#FECACA" | "#450A0A";
|
|
63
|
+
text: "#FAFAFA" | "#171717";
|
|
64
|
+
}; /** Modified/warning backgrounds */
|
|
65
|
+
modified: {
|
|
66
|
+
bg: "#FEF3C7" | "#713F12";
|
|
67
|
+
text: "#FAFAFA" | "#171717";
|
|
68
|
+
};
|
|
69
|
+
}; /** Interactive element colors */
|
|
70
|
+
interactive: {
|
|
71
|
+
/** Hover state background */hover: "#F5F5F5" | "#404040"; /** Active/pressed state background */
|
|
72
|
+
active: "#E5E5E5" | "#525252"; /** Focus ring color */
|
|
73
|
+
focus: "#3182CE";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
type ThemeColors = ReturnType<typeof useThemeColors>;
|
|
77
|
+
//#endregion
|
|
78
|
+
export { useThemeColors as n, ThemeColors as t };
|
|
79
|
+
//# sourceMappingURL=useThemeColors-OwCMwSrx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThemeColors-OwCMwSrx.d.ts","names":[],"sources":["../src/hooks/useThemeColors.ts"],"mappings":";;;;;;;AAuCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,cAAA,CAAA;;SAAc,gBAAA,CAAA,KAAA;;kEA2FlB;kCAAgC;mCAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA9C,WAAA,GAAc,UAAA,QAAkB,cAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{a as e,d as t,f as n,i as r,o as i,r as a,t as o}from"./keepAlive-Dj0q3fC9.js";import{n as s}from"./fetchClient-Bqjx8inP.js";import{useQuery as c}from"@tanstack/react-query";import{createContext as l,useCallback as u,useContext as d,useEffect as f,useMemo as p,useRef as m,useState as h}from"react";import{jsx as g,jsxs as _}from"react/jsx-runtime";import v from"lodash/throttle";const y={basePath:``},b=l(null);b.displayName=`RouteConfigContext`;function x({children:e,basePath:t=y.basePath}){let n=u(e=>!t||e.startsWith(t)||e.match(/^https?:\/\//)||e.startsWith(`#`)?e:`${t.endsWith(`/`)?t.slice(0,-1):t}${e.startsWith(`/`)?e:`/${e}`}`,[t]),r=p(()=>({basePath:t,resolvePath:n}),[t,n]);return g(b.Provider,{value:r,children:e})}const S={basePath:``,resolvePath:e=>e};function C(){return d(b)??S}function w(){return d(b)}const T=l({runAction:()=>void 0,showRunId:()=>void 0,isRunResultOpen:!1,closeRunResult:()=>void 0,isHistoryOpen:!1,closeHistory:()=>void 0,showHistory:()=>void 0,setHistoryOpen:()=>void 0,clearRunResult:()=>void 0});T.displayName=`RecceActionContext`;function E({children:e,onRunAction:t,onShowRunId:n,initialRunId:r,initialHistoryOpen:i=!1}){let[a,o]=h(!!r),[s,c]=h(r),[l,d]=h(i),f=u(()=>{o(!1)},[]),m=u(()=>{c(void 0),o(!1)},[]),_=u(()=>{d(!0)},[]),v=u(()=>{d(!1)},[]),y=u((e,t)=>{c(e),o(!0),n?.(e,t)},[n]),b=u(async(e,n,r)=>{if(!t){console.warn(`RecceActionProvider: onRunAction not provided, cannot execute run`);return}let i=await t(e,n,r);typeof i==`string`&&y(i)},[t,y]),x=p(()=>({runAction:b,runId:s,showRunId:y,isRunResultOpen:a,closeRunResult:f,isHistoryOpen:l,closeHistory:v,showHistory:_,setHistoryOpen:d,clearRunResult:m}),[b,s,y,a,f,l,v,_,m]);return g(T.Provider,{value:x,children:e})}function D(){return d(T)}const O={mode:null,disableSaveToFile:!1,disableExportStateFile:!1,disableImportStateFile:!1,disableUpdateChecklist:!1,disableDatabaseQuery:!1,disableViewActionDropdown:!1,disableNodeActionDropdown:!1,disableShare:!1},k={singleEnv:!1,authed:!1,lifetimeExpiredAt:void 0,featureToggles:O,shareUrl:void 0,sessionId:void 0,pythonVersion:void 0},A=s({baseURL:``});function j(){let r=t()?.apiClient??A;return c({queryKey:n.instanceInfo(),queryFn:()=>e(r)})}const M=l(k);M.displayName=`RecceInstanceInfoContext`;function N({children:e}){let{data:t,isLoading:n}=j(),[r,i]=h(O),[a,o]=h(!1),[s,c]=h(!1),[l,u]=h(),[d,f]=h(),[p,m]=h(),[_,v]=h(),[y,b]=h(t);if(!n&&t&&t!==y){b(t),o(t.single_env),c(t.authed),f(t.share_url),m(t.session_id),v(t.python_version),t.lifetime_expired_at&&(u(new Date(t.lifetime_expired_at)),console.log(`lifetime expired at`,t.lifetime_expired_at));let e={...O};t.server_mode===`read-only`?(e.mode=`read only`,e.disableSaveToFile=!0,e.disableExportStateFile=!0,e.disableImportStateFile=!0,e.disableUpdateChecklist=!0,e.disableDatabaseQuery=!0,e.disableViewActionDropdown=!0,e.disableNodeActionDropdown=!0,e.disableShare=!0):t.server_mode===`preview`&&(e.mode=`metadata only`,e.disableSaveToFile=!0,e.disableExportStateFile=!0,e.disableImportStateFile=!0,e.disableUpdateChecklist=!1,e.disableDatabaseQuery=!0,e.disableViewActionDropdown=!1,e.disableNodeActionDropdown=!1,e.disableShare=!0),t.single_env&&(e.disableUpdateChecklist=!0,e.disableShare=!0),t.cloud_instance&&(e.disableShare=!0),i(e)}return g(M.Provider,{value:{featureToggles:r,singleEnv:a,authed:s,lifetimeExpiredAt:l,shareUrl:d,sessionId:p,pythonVersion:_},children:e})}function P(){return d(M)}const F=l(void 0);function I(){return d(F)??null}const L=s({baseURL:``});function ee(){return typeof window<`u`&&!!window.RECCE_DEBUG_IDLE}function R(e,t){ee()&&(t?console.log(e,t):console.log(e))}const z={ACTIVITY_EVENTS:[`focus`,`mousemove`,`keydown`,`scroll`],EVENT_THROTTLE_MS:150};function B(){let{data:e,isLoading:n,isError:r}=j(),i=I()?.isDisconnected??!1,o=t()?.apiClient??L,s=e?.idle_timeout,c=s!==void 0&&s>0&&!i;R(`[Idle Detection] Instance info`,{isLoading:n,isError:r,hasIdleTimeout:s!==void 0,idleTimeout:s===void 0?`not configured`:`${s}s`,isDisconnected:i,isEnabled:c});let l=u(async()=>{document.hidden||await a(o)&&R(`[Idle Detection] Keep-alive sent successfully`,{timestamp:new Date().toISOString()})},[o]),d=u(e=>{c&&!document.hidden&&(R(`[Idle Detection] Activity detected`,{event:e.type,tabActive:!document.hidden}),l())},[c,l]),m=u(()=>{c&&(document.hidden||(R(`[Idle Detection] Tab became active`,{timestamp:new Date().toISOString()}),l()))},[c,l]),h=p(()=>v(d,z.EVENT_THROTTLE_MS,{leading:!0,trailing:!0}),[d]);f(()=>{if(!c){R(`[Idle Detection] Disabled`,{idleTimeout:s,reason:s===void 0?`idle_timeout not configured on server`:s===0?`idle_timeout is 0`:`disconnected`});return}return R(`[Idle Detection] Initialized`,{enabled:!0,idleTimeout:`${s}s`,eventThrottle:`${z.EVENT_THROTTLE_MS}ms`,apiThrottle:`3s (API layer)`,monitoredEvents:z.ACTIVITY_EVENTS.join(`, `)}),z.ACTIVITY_EVENTS.forEach(e=>{window.addEventListener(e,h,{passive:!0})}),document.addEventListener(`visibilitychange`,m),()=>{R(`[Idle Detection] Cleanup - removing event listeners`),z.ACTIVITY_EVENTS.forEach(e=>{window.removeEventListener(e,h)}),document.removeEventListener(`visibilitychange`,m),h.cancel()}},[c,h,m,s])}function V({children:e}){let{data:t}=j(),n=m(Date.now()),[i,a]=h(null),[s,c]=h(!1),l=t?.idle_timeout??null,d=l!==null&&l>0,p=m(d);f(()=>{p.current=d},[d]),f(()=>{if(!d){r(null);return}r(e=>{p.current&&(n.current=e)});let e=o();return e>0&&(n.current=e),()=>{r(null)}},[d]);let v=u(()=>{c(!0)},[]),y=u(()=>{c(!1),n.current=Date.now()},[]);return f(()=>{if(!d||l===null){a(null);return}if(s)return;let e=()=>{let e=(Date.now()-n.current)/1e3;a(Math.max(0,l-e))};e();let t=setInterval(e,1e3);return()=>{clearInterval(t)}},[d,l,s]),_(F.Provider,{value:{remainingSeconds:i,idleTimeout:l,isEnabled:d,setDisconnected:v,resetConnection:y,isDisconnected:s},children:[g(H,{}),e]})}function H(){return B(),null}function U(){let e=d(F);if(!e)throw Error(`useIdleTimeout must be used within IdleTimeoutProvider`);return e}const W=l({isActionAvailable:()=>!0,isDemoSite:!1,isLoading:!0});W.displayName=`RecceLineageGraphContext`;function G({children:e,lineageGraph:t,envInfo:n,reviewMode:r,cloudMode:i,fileMode:a,fileName:o,isDemoSite:s=!1,isCodespace:c,isLoading:l,error:d,supportTasks:f,onRefetchLineageGraph:m,runsAggregated:h,onRefetchRunsAggregated:_}){let v=u(e=>f?f[e]??!0:!0,[f]),y=p(()=>({lineageGraph:t,envInfo:n,reviewMode:r,cloudMode:i,fileMode:a,fileName:o,isDemoSite:s,isCodespace:c,isLoading:l,error:d,supportTasks:f,refetchLineageGraph:m,isActionAvailable:v,runsAggregated:h,refetchRunsAggregated:_}),[t,n,r,i,a,o,s,c,l,d,f,m,v,h,_]);return g(W.Provider,{value:y,children:e})}function K(){return d(W)}function q(){let{runsAggregated:e,refetchRunsAggregated:t}=K();return[e,t]}const J=l(void 0),Y=()=>{let e=d(J);if(!e)throw Error(`useLineageViewContext must be used within a LineageViewProvider`);return e},X=()=>d(J);function Z(e){return e.type===`lineageGraphNode`}function Q(e){return e.type===`lineageGraphColumnNode`}const te=s({baseURL:``});function ne(){let e=t()?.apiClient??te;return c({queryKey:n.flag(),queryFn:()=>i(e)})}const re=24;function ie(...e){let t=new Set;for(let n of e)for(let e of n)t.add(e);return t}function ae(...e){if(e.length===0)return new Set;let t=new Set(e[0]);for(let n of e)t=new Set([...t].filter(e=>n.has(e)));return t}function $(e,t,n=1e3){let r=new Set,i={},a=(e,n)=>{if(n<0||i[e]!=null&&i[e]>=n)return;i[e]=n;let o=t(e);for(let e of o)a(e,n-1);r.add(e)};for(let t of e)a(t,n);return r}function oe(e,t,n){let r={},i={},a=(e,t)=>({id:e,data:{id:e,name:e,from:t,data:{base:void 0,current:void 0},parents:{},children:{}},type:`lineageGraphNode`});for(let[t,n]of Object.entries(e.nodes))r[t]=a(t,`base`),n&&(r[t].data.data.base=n,r[t].data.name=n.name,r[t].data.resourceType=n.resource_type,r[t].data.packageName=n.package_name);for(let[e,n]of Object.entries(t.nodes))r[e]?r[e].data.from=`both`:r[e]=a(e,`current`),n&&(r[e].data.data.current=t.nodes[e],r[e].data.name=n.name,r[e].data.resourceType=n.resource_type,r[e].data.packageName=n.package_name);for(let[t,n]of Object.entries(e.parent_map))for(let e of n){let n=r[t],a=r[e],o=`${e}_${t}`;if(!n||!a)continue;i[o]={id:o,source:a.id,target:n.id,data:{from:`base`}};let s=i[o];n.data.parents[e]=s,a.data.children[t]=s}for(let[e,n]of Object.entries(t.parent_map))for(let t of n){let n=r[e],a=r[t],o=`${t}_${e}`;if(!n||!a)continue;i[o]?.data&&i[o].data?i[o].data.from=`both`:i[o]={id:o,source:a.id,target:n.id,data:{from:`current`}};let s=i[o];n.data.parents[t]=s,a.data.children[e]=s}let o=[];for(let[e,t]of Object.entries(r)){let r=n?.[e];if(r)t.data.changeStatus=r.change_status,r.change&&(t.data.change={category:r.change.category,columns:r.change.columns}),o.push(e);else if(t.data.from===`base`)t.data.changeStatus=`removed`,o.push(t.id);else if(t.data.from===`current`)t.data.changeStatus=`added`,o.push(t.id);else{let e=t.data.data.base?.checksum?.checksum,n=t.data.data.current?.checksum?.checksum;e&&n&&e!==n&&(t.data.changeStatus=`modified`,o.push(t.id))}}for(let e of Object.values(i))e.data&&(e.data.from===`base`?e.data.changeStatus=`removed`:e.data.from===`current`&&(e.data.changeStatus=`added`));return{nodes:r,edges:i,modifiedSet:o,manifestMetadata:{base:e.manifest_metadata??void 0,current:t.manifest_metadata??void 0},catalogMetadata:{base:e.catalog_metadata??void 0,current:t.catalog_metadata??void 0}}}function se(e,t,n=1e3){return $(t,t=>e.nodes[t]===void 0?[]:Object.keys(e.nodes[t].data.parents),n)}function ce(e,t,n=1e3){return $(t,t=>e.nodes[t]===void 0?[]:Object.keys(e.nodes[t].data.children),n)}function le(e,t){let n=[],r=[];function i(e){return e===`base`?0:e===`current`?2:1}function a(e,t){return i(e.data?.from)-i(t.data?.from)}let o=t===void 0?void 0:new Set(t),s=Object.values(e.nodes).sort(a);for(let e of s)o&&!o.has(e.id)||n.push({id:e.id,position:{x:0,y:0},width:300,height:60,className:`no-track-pii-safe`,data:{...e.data},type:`lineageGraphNode`,targetPosition:`left`,sourcePosition:`right`,style:{width:300,height:60}});let c=Object.values(e.edges).sort(a);for(let e of c)o&&(!o.has(e.source)||!o.has(e.target))||r.push({id:e.id,type:`lineageGraphEdge`,source:e.source,target:e.target,data:{...e.data}});return[n,r]}function ue(e,t,n,r=`LR`){let i=new e.graphlib.Graph;i.setDefaultEdgeLabel(()=>({})),i.setGraph({rankdir:r,ranksep:50,nodesep:30});for(let e of t){if(!Z(e))continue;let t=300,n=60;e.style?.height&&e.style.width&&(t=parseInt(String(e.style.width),10),n=parseInt(String(e.style.height),10)),i.setNode(e.id,{width:t,height:n})}for(let e of n)i.setEdge(e.source,e.target);e.layout(i);for(let e of t){if(!Z(e))continue;let t=e.style?.width??300,n=e.style?.height??60,r=i.node(e.id);e.position={x:r.x-Number(t)/2,y:r.y-Number(n)/2}}}export{x as A,N as C,k as D,O as E,w as M,E as O,I as S,j as T,K as _,ue as a,U as b,le as c,Q as d,Z as f,G as g,Y as h,ae as i,C as j,D as k,ie as l,X as m,oe as n,ce as o,J as p,$ as r,se as s,re as t,ne as u,q as v,P as w,B as x,V as y};
|
|
3
|
+
//# sourceMappingURL=utils-BwEuAiEd.js.map
|