@datarecce/ui 0.1.40 → 0.2.0
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-C8LetZNB.js +23 -0
- package/dist/AuthModal-C8LetZNB.js.map +1 -0
- package/dist/LineageCanvas-CR38SDYr.d.ts +41 -0
- package/dist/LineageCanvas-CR38SDYr.d.ts.map +1 -0
- package/dist/ResultErrorFallback-C7c-TN1p.js +3 -0
- package/dist/ResultErrorFallback-C7c-TN1p.js.map +1 -0
- package/dist/RouteConfigContext-z8YNimdP.d.ts +172 -0
- package/dist/RouteConfigContext-z8YNimdP.d.ts.map +1 -0
- package/dist/RunProgress-DyFIALbI.d.ts +429 -0
- package/dist/RunProgress-DyFIALbI.d.ts.map +1 -0
- package/dist/ScreenshotDataGrid-BfxYUThx.d.ts +64 -0
- package/dist/ScreenshotDataGrid-BfxYUThx.d.ts.map +1 -0
- package/dist/SplitPane-B-BLxZaQ.d.ts +1427 -0
- package/dist/SplitPane-B-BLxZaQ.d.ts.map +1 -0
- package/dist/advanced.d.ts +18 -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-ZZ4cc9b9.d.ts +255 -0
- package/dist/api-ZZ4cc9b9.d.ts.map +1 -0
- package/dist/api-_i6BZPkM.js +3 -0
- package/dist/api-_i6BZPkM.js.map +1 -0
- package/dist/api.d.ts +3 -2
- package/dist/api.js +2 -100
- package/dist/colors--47Kkns4.js +3 -0
- package/dist/colors--47Kkns4.js.map +1 -0
- package/dist/colors-vY9Yzui0.d.ts +255 -0
- package/dist/colors-vY9Yzui0.d.ts.map +1 -0
- package/dist/components-run.d.ts +8 -0
- package/dist/components-run.js +2 -0
- package/dist/components.d.ts +22 -2
- package/dist/components.js +2 -86
- package/dist/const-DbXBkrxT.js +3 -0
- package/dist/const-DbXBkrxT.js.map +1 -0
- package/dist/constants-DD5vJv2q.js +3 -0
- package/dist/constants-DD5vJv2q.js.map +1 -0
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +2 -0
- package/dist/contexts.d.ts +7 -0
- package/dist/contexts.js +2 -0
- package/dist/flag-CiR2E5oz.d.ts +898 -0
- package/dist/flag-CiR2E5oz.d.ts.map +1 -0
- package/dist/flag-koeDAqr3.js +3 -0
- package/dist/flag-koeDAqr3.js.map +1 -0
- package/dist/hooks.d.ts +15 -2
- package/dist/hooks.js +2 -43
- package/dist/index-BFkbe0aF.d.ts +698 -0
- package/dist/index-BFkbe0aF.d.ts.map +1 -0
- package/dist/index-Ba3hp2Ng.d.ts +471 -0
- package/dist/index-Ba3hp2Ng.d.ts.map +1 -0
- package/dist/index-C_kD4ZQ3.d.ts +1079 -0
- package/dist/index-C_kD4ZQ3.d.ts.map +1 -0
- package/dist/index-CiPcALu4.d.ts +146 -0
- package/dist/index-CiPcALu4.d.ts.map +1 -0
- package/dist/index-CkXLPYZY.d.ts +13 -0
- package/dist/index-CkXLPYZY.d.ts.map +1 -0
- package/dist/index-DTCpHvX_.d.ts +211 -0
- package/dist/index-DTCpHvX_.d.ts.map +1 -0
- package/dist/index-DVoQsx5c.d.ts +349 -0
- package/dist/index-DVoQsx5c.d.ts.map +1 -0
- package/dist/index-DmwYRgDR.d.ts +192 -0
- package/dist/index-DmwYRgDR.d.ts.map +1 -0
- package/dist/index-N8N7XmRj.d.ts +130 -0
- package/dist/index-N8N7XmRj.d.ts.map +1 -0
- package/dist/index-h_fw6R9U.d.ts +1501 -0
- package/dist/index-h_fw6R9U.d.ts.map +1 -0
- package/dist/index-o48TPoFN.d.ts +734 -0
- package/dist/index-o48TPoFN.d.ts.map +1 -0
- package/dist/index.d.ts +24 -2
- package/dist/index.js +2 -198
- package/dist/keepAlive-CEzyrDfg.js +3 -0
- package/dist/keepAlive-CEzyrDfg.js.map +1 -0
- package/dist/lib/api/axiosClient.d.ts +8 -0
- package/dist/lib/api/axiosClient.d.ts.map +1 -0
- package/dist/lib/api/axiosClient.js +3 -0
- package/dist/lib/api/axiosClient.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 +2 -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 +2 -0
- package/dist/lib/const.d.ts +8 -0
- package/dist/lib/const.d.ts.map +1 -0
- package/dist/lib/const.js +2 -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 +2 -0
- package/dist/primitives-CgGUvwHB.d.ts +914 -0
- package/dist/primitives-CgGUvwHB.d.ts.map +1 -0
- package/dist/primitives.d.ts +12 -0
- package/dist/primitives.js +2 -0
- package/dist/result.d.ts +4 -0
- package/dist/result.js +2 -0
- package/dist/src-BgHSbbHk.js +67 -0
- package/dist/src-BgHSbbHk.js.map +1 -0
- package/dist/styles.css +478 -4
- package/dist/theme-CeWzymUn.js +64 -0
- package/dist/theme-CeWzymUn.js.map +1 -0
- package/dist/theme.d.ts +3 -2
- package/dist/theme.js +2 -9
- package/dist/track-9ZQpBlUK.js +3 -0
- package/dist/track-9ZQpBlUK.js.map +1 -0
- package/dist/types-CFbNxrx2.d.ts +171 -0
- package/dist/types-CFbNxrx2.d.ts.map +1 -0
- package/dist/types-CZre3j02.d.ts +231 -0
- package/dist/types-CZre3j02.d.ts.map +1 -0
- package/dist/types.d.ts +14 -2
- package/dist/types.js +3 -9
- package/dist/types.js.map +1 -0
- package/dist/useRecceServerFlag-Bg5R67J4.js +3 -0
- package/dist/useRecceServerFlag-Bg5R67J4.js.map +1 -0
- package/dist/useThemeColors--prVbMmM.js +3 -0
- package/dist/useThemeColors--prVbMmM.js.map +1 -0
- package/dist/useThemeColors-DHEroo8f.d.ts +104 -0
- package/dist/useThemeColors-DHEroo8f.d.ts.map +1 -0
- package/dist/user-DMT7E0fc.js +3 -0
- package/dist/user-DMT7E0fc.js.map +1 -0
- package/dist/utils-CW2skXm_.js +3 -0
- package/dist/utils-CW2skXm_.js.map +1 -0
- package/dist/utils-CXWhfyxC.js +5 -0
- package/dist/utils-CXWhfyxC.js.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.js +2 -0
- package/package.json +115 -107
- 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-B6oaPB5f.mjs +0 -11769
- package/dist/components-B6oaPB5f.mjs.map +0 -1
- package/dist/components-BeAjVBV3.css +0 -70
- package/dist/components-BeAjVBV3.css.map +0 -1
- package/dist/components-DTLQ2djq.js +0 -14110
- package/dist/components-DTLQ2djq.js.map +0 -1
- package/dist/components-iUxcqtUB.css +0 -70
- package/dist/components-iUxcqtUB.css.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-B9lSPJTi.d.ts +0 -2170
- package/dist/index-B9lSPJTi.d.ts.map +0 -1
- package/dist/index-CbF0x3kW.d.mts +0 -2172
- package/dist/index-CbF0x3kW.d.mts.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/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 -454
- 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/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/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 -861
- package/recce-source/recce/models/__init__.py +0 -6
- package/recce-source/recce/models/check.py +0 -473
- 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
|
@@ -0,0 +1,1427 @@
|
|
|
1
|
+
|
|
2
|
+
import { c as LineageGraphNode, i as LineageGraph } from "./types-CZre3j02.js";
|
|
3
|
+
import * as react11 from "react";
|
|
4
|
+
import { CSSProperties, MouseEvent, ReactNode } from "react";
|
|
5
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
6
|
+
import { ColDef, GridReadyEvent } from "ag-grid-community";
|
|
7
|
+
|
|
8
|
+
//#region src/components/check/CheckActions.d.ts
|
|
9
|
+
/**
|
|
10
|
+
* Action types available for checks
|
|
11
|
+
*/
|
|
12
|
+
type CheckActionType = "run" | "approve" | "edit" | "delete" | "duplicate" | "copy" | "preset";
|
|
13
|
+
/**
|
|
14
|
+
* Configuration for a check action
|
|
15
|
+
*/
|
|
16
|
+
interface CheckAction {
|
|
17
|
+
/** Action type identifier */
|
|
18
|
+
type: CheckActionType;
|
|
19
|
+
/** Display label */
|
|
20
|
+
label: string;
|
|
21
|
+
/** Icon element (optional) */
|
|
22
|
+
icon?: React.ReactNode;
|
|
23
|
+
/** Whether the action is disabled */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Tooltip for disabled state */
|
|
26
|
+
disabledTooltip?: string;
|
|
27
|
+
/** Whether this is a destructive action (shown in red) */
|
|
28
|
+
destructive?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Props for the CheckActions component
|
|
32
|
+
*/
|
|
33
|
+
interface CheckActionsProps {
|
|
34
|
+
/** ID of the check these actions are for */
|
|
35
|
+
checkId: string;
|
|
36
|
+
/** List of primary actions (shown as buttons) */
|
|
37
|
+
primaryActions?: CheckAction[];
|
|
38
|
+
/** List of secondary actions (shown in dropdown menu) */
|
|
39
|
+
secondaryActions?: CheckAction[];
|
|
40
|
+
/** Callback when an action is triggered */
|
|
41
|
+
onAction?: (checkId: string, actionType: CheckActionType) => void;
|
|
42
|
+
/** Render variant */
|
|
43
|
+
variant?: "buttons" | "menu" | "combined";
|
|
44
|
+
/** Size of buttons */
|
|
45
|
+
size?: "small" | "medium";
|
|
46
|
+
/** Icon for menu trigger button */
|
|
47
|
+
menuIcon?: React.ReactNode;
|
|
48
|
+
/** Optional CSS class name */
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* CheckActions Component
|
|
53
|
+
*
|
|
54
|
+
* A pure presentation component for displaying action buttons/menu for a check.
|
|
55
|
+
* Supports primary actions as buttons and secondary actions in a dropdown menu.
|
|
56
|
+
*
|
|
57
|
+
* @example Basic usage with buttons
|
|
58
|
+
* ```tsx
|
|
59
|
+
* import { CheckActions } from '@datarecce/ui/primitives';
|
|
60
|
+
*
|
|
61
|
+
* <CheckActions
|
|
62
|
+
* checkId={check.id}
|
|
63
|
+
* primaryActions={[
|
|
64
|
+
* { type: 'run', label: 'Run' },
|
|
65
|
+
* { type: 'approve', label: 'Approve' },
|
|
66
|
+
* ]}
|
|
67
|
+
* onAction={(id, action) => handleAction(id, action)}
|
|
68
|
+
* />
|
|
69
|
+
* ```
|
|
70
|
+
*
|
|
71
|
+
* @example Combined buttons and menu
|
|
72
|
+
* ```tsx
|
|
73
|
+
* <CheckActions
|
|
74
|
+
* checkId={check.id}
|
|
75
|
+
* variant="combined"
|
|
76
|
+
* primaryActions={[
|
|
77
|
+
* { type: 'run', label: 'Run', icon: <PlayIcon /> },
|
|
78
|
+
* ]}
|
|
79
|
+
* secondaryActions={[
|
|
80
|
+
* { type: 'duplicate', label: 'Duplicate' },
|
|
81
|
+
* { type: 'copy', label: 'Copy Markdown' },
|
|
82
|
+
* { type: 'delete', label: 'Delete', destructive: true },
|
|
83
|
+
* ]}
|
|
84
|
+
* onAction={(id, action) => handleAction(id, action)}
|
|
85
|
+
* />
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @example Menu only
|
|
89
|
+
* ```tsx
|
|
90
|
+
* <CheckActions
|
|
91
|
+
* checkId={check.id}
|
|
92
|
+
* variant="menu"
|
|
93
|
+
* secondaryActions={allActions}
|
|
94
|
+
* onAction={(id, action) => handleAction(id, action)}
|
|
95
|
+
* />
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
declare function CheckActionsComponent({
|
|
99
|
+
checkId,
|
|
100
|
+
primaryActions,
|
|
101
|
+
secondaryActions,
|
|
102
|
+
onAction,
|
|
103
|
+
variant,
|
|
104
|
+
size,
|
|
105
|
+
menuIcon,
|
|
106
|
+
className
|
|
107
|
+
}: CheckActionsProps): react_jsx_runtime26.JSX.Element;
|
|
108
|
+
declare const CheckActions: react11.MemoExoticComponent<typeof CheckActionsComponent>;
|
|
109
|
+
//#endregion
|
|
110
|
+
//#region src/components/check/CheckCard.d.ts
|
|
111
|
+
/**
|
|
112
|
+
* Check type categories for icon display
|
|
113
|
+
*/
|
|
114
|
+
type CheckType = "query" | "query_base" | "query_diff" | "schema_diff" | "lineage_diff" | "profile" | "profile_diff" | "row_count" | "row_count_diff" | "value_diff" | "histogram_diff" | "top_k_diff" | "simple";
|
|
115
|
+
/**
|
|
116
|
+
* Status of a check run
|
|
117
|
+
*/
|
|
118
|
+
type CheckRunStatus = "pending" | "running" | "success" | "error";
|
|
119
|
+
/**
|
|
120
|
+
* Data structure for check display
|
|
121
|
+
*/
|
|
122
|
+
interface CheckCardData {
|
|
123
|
+
/** Unique check identifier */
|
|
124
|
+
id: string;
|
|
125
|
+
/** Display name of the check */
|
|
126
|
+
name: string;
|
|
127
|
+
/** Type of check for icon display */
|
|
128
|
+
type: CheckType;
|
|
129
|
+
/** Whether the check is approved */
|
|
130
|
+
isApproved?: boolean;
|
|
131
|
+
/** Run status of the check */
|
|
132
|
+
runStatus?: CheckRunStatus;
|
|
133
|
+
/** Whether the check is a preset */
|
|
134
|
+
isPreset?: boolean;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Props for the CheckCard component
|
|
138
|
+
*/
|
|
139
|
+
interface CheckCardProps {
|
|
140
|
+
/** Check data to display */
|
|
141
|
+
check: CheckCardData;
|
|
142
|
+
/** Whether this card is currently selected */
|
|
143
|
+
isSelected?: boolean;
|
|
144
|
+
/** Callback when card is clicked */
|
|
145
|
+
onClick?: (checkId: string) => void;
|
|
146
|
+
/** Callback when approval checkbox is toggled */
|
|
147
|
+
onApprovalChange?: (checkId: string, isApproved: boolean) => void;
|
|
148
|
+
/** Whether approval checkbox is disabled */
|
|
149
|
+
disableApproval?: boolean;
|
|
150
|
+
/** Tooltip text for disabled approval */
|
|
151
|
+
disabledApprovalTooltip?: string;
|
|
152
|
+
/** Whether the entire card is disabled */
|
|
153
|
+
disabled?: boolean;
|
|
154
|
+
/** Optional CSS class name */
|
|
155
|
+
className?: string;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* CheckCard Component
|
|
159
|
+
*
|
|
160
|
+
* A pure presentation component for displaying a single check in a list.
|
|
161
|
+
* Shows check type icon, name, approval status, and run status.
|
|
162
|
+
*
|
|
163
|
+
* @example Basic usage
|
|
164
|
+
* ```tsx
|
|
165
|
+
* import { CheckCard } from '@datarecce/ui/primitives';
|
|
166
|
+
*
|
|
167
|
+
* function CheckListItem({ check }) {
|
|
168
|
+
* return (
|
|
169
|
+
* <CheckCard
|
|
170
|
+
* check={{
|
|
171
|
+
* id: check.check_id,
|
|
172
|
+
* name: check.name,
|
|
173
|
+
* type: check.type,
|
|
174
|
+
* isApproved: check.is_checked,
|
|
175
|
+
* }}
|
|
176
|
+
* isSelected={selectedId === check.check_id}
|
|
177
|
+
* onClick={(id) => setSelectedId(id)}
|
|
178
|
+
* onApprovalChange={(id, approved) => updateCheck(id, { is_checked: approved })}
|
|
179
|
+
* />
|
|
180
|
+
* );
|
|
181
|
+
* }
|
|
182
|
+
* ```
|
|
183
|
+
*
|
|
184
|
+
* @example Disabled state
|
|
185
|
+
* ```tsx
|
|
186
|
+
* <CheckCard
|
|
187
|
+
* check={check}
|
|
188
|
+
* disableApproval
|
|
189
|
+
* disabledApprovalTooltip="Run the check first to enable approval"
|
|
190
|
+
* />
|
|
191
|
+
* ```
|
|
192
|
+
*/
|
|
193
|
+
declare function CheckCardComponent({
|
|
194
|
+
check,
|
|
195
|
+
isSelected,
|
|
196
|
+
onClick,
|
|
197
|
+
onApprovalChange,
|
|
198
|
+
disableApproval,
|
|
199
|
+
disabledApprovalTooltip,
|
|
200
|
+
disabled,
|
|
201
|
+
className
|
|
202
|
+
}: CheckCardProps): react_jsx_runtime26.JSX.Element;
|
|
203
|
+
declare const CheckCard: react11.MemoExoticComponent<typeof CheckCardComponent>;
|
|
204
|
+
//#endregion
|
|
205
|
+
//#region src/components/check/CheckDescription.d.ts
|
|
206
|
+
/**
|
|
207
|
+
* Props for the CheckDescription component
|
|
208
|
+
*/
|
|
209
|
+
interface CheckDescriptionProps {
|
|
210
|
+
/** Current description value */
|
|
211
|
+
value?: string;
|
|
212
|
+
/** Callback when description is saved */
|
|
213
|
+
onChange?: (value?: string) => void;
|
|
214
|
+
/** Placeholder text when empty */
|
|
215
|
+
placeholder?: string;
|
|
216
|
+
/** Whether editing is disabled */
|
|
217
|
+
disabled?: boolean;
|
|
218
|
+
/** Optional CSS class name */
|
|
219
|
+
className?: string;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* CheckDescription Component
|
|
223
|
+
*
|
|
224
|
+
* A pure presentation component for displaying and editing check descriptions.
|
|
225
|
+
* Supports click-to-edit with Cmd+Enter (Mac) or Ctrl+Enter (Windows) to save.
|
|
226
|
+
*
|
|
227
|
+
* @example Basic usage
|
|
228
|
+
* ```tsx
|
|
229
|
+
* import { CheckDescription } from '@datarecce/ui/primitives';
|
|
230
|
+
*
|
|
231
|
+
* function CheckDetail({ check }) {
|
|
232
|
+
* return (
|
|
233
|
+
* <CheckDescription
|
|
234
|
+
* value={check.description}
|
|
235
|
+
* onChange={(desc) => updateCheck(check.id, { description: desc })}
|
|
236
|
+
* placeholder="Add a description..."
|
|
237
|
+
* />
|
|
238
|
+
* );
|
|
239
|
+
* }
|
|
240
|
+
* ```
|
|
241
|
+
*
|
|
242
|
+
* @example Disabled state
|
|
243
|
+
* ```tsx
|
|
244
|
+
* <CheckDescription
|
|
245
|
+
* value={check.description}
|
|
246
|
+
* disabled
|
|
247
|
+
* placeholder="Description not available"
|
|
248
|
+
* />
|
|
249
|
+
* ```
|
|
250
|
+
*/
|
|
251
|
+
declare function CheckDescriptionComponent({
|
|
252
|
+
value,
|
|
253
|
+
onChange,
|
|
254
|
+
placeholder,
|
|
255
|
+
disabled,
|
|
256
|
+
className
|
|
257
|
+
}: CheckDescriptionProps): react_jsx_runtime26.JSX.Element;
|
|
258
|
+
declare const CheckDescription: react11.MemoExoticComponent<typeof CheckDescriptionComponent>;
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region src/components/check/CheckDetail.d.ts
|
|
261
|
+
/**
|
|
262
|
+
* Tab configuration for CheckDetail
|
|
263
|
+
*/
|
|
264
|
+
interface CheckDetailTab {
|
|
265
|
+
/** Unique tab identifier */
|
|
266
|
+
id: string;
|
|
267
|
+
/** Tab label */
|
|
268
|
+
label: string;
|
|
269
|
+
/** Tab content */
|
|
270
|
+
content: ReactNode;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Props for the CheckDetail component
|
|
274
|
+
*/
|
|
275
|
+
interface CheckDetailProps {
|
|
276
|
+
/** Check ID */
|
|
277
|
+
checkId: string;
|
|
278
|
+
/** Check name (displayed as header) */
|
|
279
|
+
name: string;
|
|
280
|
+
/** Check type for display */
|
|
281
|
+
type: string;
|
|
282
|
+
/** Check description */
|
|
283
|
+
description?: string;
|
|
284
|
+
/** Whether the check is approved */
|
|
285
|
+
isApproved?: boolean;
|
|
286
|
+
/** Tabs to display (result, query, etc.) */
|
|
287
|
+
tabs?: CheckDetailTab[];
|
|
288
|
+
/** Default selected tab ID */
|
|
289
|
+
defaultTab?: string;
|
|
290
|
+
/** Primary actions for the check */
|
|
291
|
+
primaryActions?: CheckAction[];
|
|
292
|
+
/** Secondary actions for the check */
|
|
293
|
+
secondaryActions?: CheckAction[];
|
|
294
|
+
/** Callback when an action is triggered */
|
|
295
|
+
onAction?: (checkId: string, actionType: CheckActionType) => void;
|
|
296
|
+
/** Callback when description changes */
|
|
297
|
+
onDescriptionChange?: (description?: string) => void;
|
|
298
|
+
/** Callback when name changes */
|
|
299
|
+
onNameChange?: (name: string) => void;
|
|
300
|
+
/** Whether editing is disabled */
|
|
301
|
+
disabled?: boolean;
|
|
302
|
+
/** Optional header content (breadcrumbs, etc.) */
|
|
303
|
+
headerContent?: ReactNode;
|
|
304
|
+
/** Optional sidebar content */
|
|
305
|
+
sidebarContent?: ReactNode;
|
|
306
|
+
/** Optional CSS class name */
|
|
307
|
+
className?: string;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* CheckDetail Component
|
|
311
|
+
*
|
|
312
|
+
* A pure presentation component for displaying detailed information
|
|
313
|
+
* about a single check with tabs, actions, and editable fields.
|
|
314
|
+
*
|
|
315
|
+
* @example Basic usage
|
|
316
|
+
* ```tsx
|
|
317
|
+
* import { CheckDetail } from '@datarecce/ui/primitives';
|
|
318
|
+
*
|
|
319
|
+
* function CheckPage({ check, run }) {
|
|
320
|
+
* return (
|
|
321
|
+
* <CheckDetail
|
|
322
|
+
* checkId={check.id}
|
|
323
|
+
* name={check.name}
|
|
324
|
+
* type={check.type}
|
|
325
|
+
* description={check.description}
|
|
326
|
+
* isApproved={check.is_checked}
|
|
327
|
+
* tabs={[
|
|
328
|
+
* { id: 'result', label: 'Result', content: <ResultView run={run} /> },
|
|
329
|
+
* { id: 'query', label: 'Query', content: <QueryView sql={check.params.sql} /> },
|
|
330
|
+
* ]}
|
|
331
|
+
* primaryActions={[
|
|
332
|
+
* { type: 'run', label: 'Run' },
|
|
333
|
+
* { type: 'approve', label: check.is_checked ? 'Approved' : 'Pending' },
|
|
334
|
+
* ]}
|
|
335
|
+
* secondaryActions={[
|
|
336
|
+
* { type: 'delete', label: 'Delete', destructive: true },
|
|
337
|
+
* ]}
|
|
338
|
+
* onAction={(id, action) => handleAction(id, action)}
|
|
339
|
+
* onDescriptionChange={(desc) => updateCheck(id, { description: desc })}
|
|
340
|
+
* />
|
|
341
|
+
* );
|
|
342
|
+
* }
|
|
343
|
+
* ```
|
|
344
|
+
*
|
|
345
|
+
* @example With sidebar
|
|
346
|
+
* ```tsx
|
|
347
|
+
* <CheckDetail
|
|
348
|
+
* {...props}
|
|
349
|
+
* sidebarContent={<CheckTimeline checkId={check.id} />}
|
|
350
|
+
* />
|
|
351
|
+
* ```
|
|
352
|
+
*/
|
|
353
|
+
declare function CheckDetailComponent({
|
|
354
|
+
checkId,
|
|
355
|
+
name,
|
|
356
|
+
type,
|
|
357
|
+
description,
|
|
358
|
+
isApproved,
|
|
359
|
+
tabs,
|
|
360
|
+
defaultTab,
|
|
361
|
+
primaryActions,
|
|
362
|
+
secondaryActions,
|
|
363
|
+
onAction,
|
|
364
|
+
onDescriptionChange,
|
|
365
|
+
onNameChange,
|
|
366
|
+
disabled,
|
|
367
|
+
headerContent,
|
|
368
|
+
sidebarContent,
|
|
369
|
+
className
|
|
370
|
+
}: CheckDetailProps): react_jsx_runtime26.JSX.Element;
|
|
371
|
+
declare const CheckDetail: react11.MemoExoticComponent<typeof CheckDetailComponent>;
|
|
372
|
+
//#endregion
|
|
373
|
+
//#region src/components/check/CheckEmptyState.d.ts
|
|
374
|
+
/**
|
|
375
|
+
* Props for the CheckEmptyState component
|
|
376
|
+
*/
|
|
377
|
+
interface CheckEmptyStateProps {
|
|
378
|
+
/** Main title text */
|
|
379
|
+
title?: string;
|
|
380
|
+
/** Description text */
|
|
381
|
+
description?: string;
|
|
382
|
+
/** Icon element to display */
|
|
383
|
+
icon?: ReactNode;
|
|
384
|
+
/** Primary action button text */
|
|
385
|
+
actionText?: string;
|
|
386
|
+
/** Callback when primary action is clicked */
|
|
387
|
+
onAction?: () => void;
|
|
388
|
+
/** Whether the action is loading */
|
|
389
|
+
isLoading?: boolean;
|
|
390
|
+
/** Optional helper text below the action */
|
|
391
|
+
helperText?: string;
|
|
392
|
+
/** Optional CSS class name */
|
|
393
|
+
className?: string;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* CheckEmptyState Component
|
|
397
|
+
*
|
|
398
|
+
* A pure presentation component for displaying an empty state
|
|
399
|
+
* when no checks exist in the list.
|
|
400
|
+
*
|
|
401
|
+
* @example Basic usage
|
|
402
|
+
* ```tsx
|
|
403
|
+
* import { CheckEmptyState } from '@datarecce/ui/primitives';
|
|
404
|
+
*
|
|
405
|
+
* function MyCheckList() {
|
|
406
|
+
* if (checks.length === 0) {
|
|
407
|
+
* return (
|
|
408
|
+
* <CheckEmptyState
|
|
409
|
+
* title="No checks yet"
|
|
410
|
+
* description="Create your first check to start validating data"
|
|
411
|
+
* actionText="Create Schema Diff Check"
|
|
412
|
+
* onAction={() => createSchemaDiffCheck()}
|
|
413
|
+
* />
|
|
414
|
+
* );
|
|
415
|
+
* }
|
|
416
|
+
* return <CheckList checks={checks} />;
|
|
417
|
+
* }
|
|
418
|
+
* ```
|
|
419
|
+
*
|
|
420
|
+
* @example Custom icon
|
|
421
|
+
* ```tsx
|
|
422
|
+
* import { TbChecklist } from 'react-icons/tb';
|
|
423
|
+
*
|
|
424
|
+
* <CheckEmptyState
|
|
425
|
+
* icon={<TbChecklist size={48} />}
|
|
426
|
+
* title="No checks found"
|
|
427
|
+
* description="Checks help you validate your data changes"
|
|
428
|
+
* />
|
|
429
|
+
* ```
|
|
430
|
+
*/
|
|
431
|
+
declare function CheckEmptyStateComponent({
|
|
432
|
+
title,
|
|
433
|
+
description,
|
|
434
|
+
icon,
|
|
435
|
+
actionText,
|
|
436
|
+
onAction,
|
|
437
|
+
isLoading,
|
|
438
|
+
helperText,
|
|
439
|
+
className
|
|
440
|
+
}: CheckEmptyStateProps): react_jsx_runtime26.JSX.Element;
|
|
441
|
+
declare const CheckEmptyState: react11.MemoExoticComponent<typeof CheckEmptyStateComponent>;
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region src/components/check/CheckList.d.ts
|
|
444
|
+
/**
|
|
445
|
+
* Props for the CheckList component
|
|
446
|
+
*/
|
|
447
|
+
interface CheckListProps {
|
|
448
|
+
/** Array of checks to display */
|
|
449
|
+
checks: CheckCardData[];
|
|
450
|
+
/** Currently selected check ID */
|
|
451
|
+
selectedId?: string | null;
|
|
452
|
+
/** Callback when a check is selected */
|
|
453
|
+
onCheckSelect?: (checkId: string) => void;
|
|
454
|
+
/** Callback when check approval status changes */
|
|
455
|
+
onApprovalChange?: (checkId: string, isApproved: boolean) => void;
|
|
456
|
+
/** Callback when checks are reordered (for drag-drop implementations) */
|
|
457
|
+
onReorder?: (sourceIndex: number, destinationIndex: number) => void;
|
|
458
|
+
/** Whether approval is disabled for all checks */
|
|
459
|
+
disableApproval?: boolean;
|
|
460
|
+
/** Tooltip for disabled approval */
|
|
461
|
+
disabledApprovalTooltip?: string;
|
|
462
|
+
/** Optional title for the list */
|
|
463
|
+
title?: string;
|
|
464
|
+
/** Optional CSS class name */
|
|
465
|
+
className?: string;
|
|
466
|
+
/** Whether the list is loading */
|
|
467
|
+
isLoading?: boolean;
|
|
468
|
+
/** Content to show when list is empty */
|
|
469
|
+
emptyContent?: React.ReactNode;
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* CheckList Component
|
|
473
|
+
*
|
|
474
|
+
* A pure presentation component for displaying a list of checks.
|
|
475
|
+
* This component does not include drag-and-drop functionality -
|
|
476
|
+
* implement that at the consumer level if needed.
|
|
477
|
+
*
|
|
478
|
+
* @example Basic usage
|
|
479
|
+
* ```tsx
|
|
480
|
+
* import { CheckList } from '@datarecce/ui/primitives';
|
|
481
|
+
*
|
|
482
|
+
* function MyCheckList({ checks }) {
|
|
483
|
+
* const [selectedId, setSelectedId] = useState(null);
|
|
484
|
+
*
|
|
485
|
+
* return (
|
|
486
|
+
* <CheckList
|
|
487
|
+
* checks={checks.map(c => ({
|
|
488
|
+
* id: c.check_id,
|
|
489
|
+
* name: c.name,
|
|
490
|
+
* type: c.type,
|
|
491
|
+
* isApproved: c.is_checked,
|
|
492
|
+
* }))}
|
|
493
|
+
* selectedId={selectedId}
|
|
494
|
+
* onCheckSelect={setSelectedId}
|
|
495
|
+
* onApprovalChange={(id, approved) => updateCheck(id, approved)}
|
|
496
|
+
* />
|
|
497
|
+
* );
|
|
498
|
+
* }
|
|
499
|
+
* ```
|
|
500
|
+
*
|
|
501
|
+
* @example With empty state
|
|
502
|
+
* ```tsx
|
|
503
|
+
* <CheckList
|
|
504
|
+
* checks={[]}
|
|
505
|
+
* emptyContent={<CheckEmptyState onCreateFirst={() => createCheck()} />}
|
|
506
|
+
* />
|
|
507
|
+
* ```
|
|
508
|
+
*/
|
|
509
|
+
declare function CheckListComponent({
|
|
510
|
+
checks,
|
|
511
|
+
selectedId,
|
|
512
|
+
onCheckSelect,
|
|
513
|
+
onApprovalChange,
|
|
514
|
+
disableApproval,
|
|
515
|
+
disabledApprovalTooltip,
|
|
516
|
+
title,
|
|
517
|
+
className,
|
|
518
|
+
isLoading,
|
|
519
|
+
emptyContent
|
|
520
|
+
}: CheckListProps): react_jsx_runtime26.JSX.Element;
|
|
521
|
+
declare const CheckList: react11.MemoExoticComponent<typeof CheckListComponent>;
|
|
522
|
+
//#endregion
|
|
523
|
+
//#region src/components/lineage/LineageView.d.ts
|
|
524
|
+
/**
|
|
525
|
+
* Props for the LineageView component.
|
|
526
|
+
* Defines options for viewing lineage diff data.
|
|
527
|
+
*/
|
|
528
|
+
interface LineageViewProps {
|
|
529
|
+
/**
|
|
530
|
+
* Optional lineage graph data. If not provided, uses LineageGraphContext.
|
|
531
|
+
*/
|
|
532
|
+
lineageGraph?: LineageGraph;
|
|
533
|
+
/**
|
|
534
|
+
* View options for lineage diff visualization
|
|
535
|
+
*/
|
|
536
|
+
viewOptions?: {
|
|
537
|
+
view_mode?: "changed_models" | "all";
|
|
538
|
+
node_ids?: string[];
|
|
539
|
+
select?: string;
|
|
540
|
+
exclude?: string;
|
|
541
|
+
packages?: string[];
|
|
542
|
+
column_level_lineage?: {
|
|
543
|
+
node_id?: string;
|
|
544
|
+
column?: string;
|
|
545
|
+
change_analysis?: boolean;
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
/**
|
|
549
|
+
* Whether the view allows user interaction
|
|
550
|
+
* @default true
|
|
551
|
+
*/
|
|
552
|
+
interactive?: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* Optional height for the view
|
|
555
|
+
* @default 600
|
|
556
|
+
*/
|
|
557
|
+
height?: number | string;
|
|
558
|
+
/**
|
|
559
|
+
* Optional filter function for nodes
|
|
560
|
+
*/
|
|
561
|
+
filterNodes?: (key: string, node: LineageGraphNode) => boolean;
|
|
562
|
+
/**
|
|
563
|
+
* Callback when a node is selected
|
|
564
|
+
*/
|
|
565
|
+
onNodeSelect?: (nodeId: string | null) => void;
|
|
566
|
+
/**
|
|
567
|
+
* Callback when a node is double-clicked
|
|
568
|
+
*/
|
|
569
|
+
onNodeDoubleClick?: (nodeId: string) => void;
|
|
570
|
+
/**
|
|
571
|
+
* Optional dagre instance for layout.
|
|
572
|
+
* If not provided, nodes will be positioned at (0,0).
|
|
573
|
+
* Install @dagrejs/dagre and pass the imported module.
|
|
574
|
+
*/
|
|
575
|
+
dagre?: any;
|
|
576
|
+
/**
|
|
577
|
+
* Whether to show the minimap
|
|
578
|
+
* @default true
|
|
579
|
+
*/
|
|
580
|
+
showMiniMap?: boolean;
|
|
581
|
+
/**
|
|
582
|
+
* Whether to show the controls
|
|
583
|
+
* @default true
|
|
584
|
+
*/
|
|
585
|
+
showControls?: boolean;
|
|
586
|
+
/**
|
|
587
|
+
* Whether to show the background grid
|
|
588
|
+
* @default true
|
|
589
|
+
*/
|
|
590
|
+
showBackground?: boolean;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Ref interface for LineageView component.
|
|
594
|
+
* Provides methods to interact with the LineageView programmatically.
|
|
595
|
+
*/
|
|
596
|
+
interface LineageViewRef {
|
|
597
|
+
/**
|
|
598
|
+
* Copies the current lineage view as an image to the clipboard
|
|
599
|
+
*/
|
|
600
|
+
copyToClipboard: () => Promise<void>;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* LineageView Component
|
|
604
|
+
*
|
|
605
|
+
* A high-level component for visualizing data lineage graphs using React Flow.
|
|
606
|
+
* Shows relationships between models and their change status.
|
|
607
|
+
*
|
|
608
|
+
* Can receive data from:
|
|
609
|
+
* 1. LineageGraphContext (wrap with LineageGraphProvider)
|
|
610
|
+
* 2. Direct prop (pass lineageGraph prop)
|
|
611
|
+
*
|
|
612
|
+
* For auto-layout, provide a dagre instance:
|
|
613
|
+
*
|
|
614
|
+
* @example Using with context
|
|
615
|
+
* ```tsx
|
|
616
|
+
* import { LineageGraphProvider, LineageView } from '@datarecce/ui';
|
|
617
|
+
* import dagre from '@dagrejs/dagre';
|
|
618
|
+
*
|
|
619
|
+
* function App() {
|
|
620
|
+
* return (
|
|
621
|
+
* <LineageGraphProvider serverInfo={serverInfo}>
|
|
622
|
+
* <LineageView dagre={dagre} />
|
|
623
|
+
* </LineageGraphProvider>
|
|
624
|
+
* );
|
|
625
|
+
* }
|
|
626
|
+
* ```
|
|
627
|
+
*
|
|
628
|
+
* @example Using with direct data
|
|
629
|
+
* ```tsx
|
|
630
|
+
* import { buildLineageGraph, LineageView } from '@datarecce/ui';
|
|
631
|
+
* import dagre from '@dagrejs/dagre';
|
|
632
|
+
*
|
|
633
|
+
* function App({ serverInfo }) {
|
|
634
|
+
* const lineageGraph = buildLineageGraph(
|
|
635
|
+
* serverInfo.lineage.base,
|
|
636
|
+
* serverInfo.lineage.current,
|
|
637
|
+
* serverInfo.lineage.diff
|
|
638
|
+
* );
|
|
639
|
+
*
|
|
640
|
+
* return <LineageView lineageGraph={lineageGraph} dagre={dagre} />;
|
|
641
|
+
* }
|
|
642
|
+
* ```
|
|
643
|
+
*/
|
|
644
|
+
declare const LineageView: react11.ForwardRefExoticComponent<LineageViewProps & react11.RefAttributes<LineageViewRef>>;
|
|
645
|
+
//#endregion
|
|
646
|
+
//#region src/components/lineage/columns/LineageColumnNode.d.ts
|
|
647
|
+
/**
|
|
648
|
+
* Transformation type for column-level lineage
|
|
649
|
+
*/
|
|
650
|
+
type ColumnTransformationType = "passthrough" | "renamed" | "derived" | "source" | "unknown";
|
|
651
|
+
/**
|
|
652
|
+
* Column change status for diff views
|
|
653
|
+
*/
|
|
654
|
+
type ColumnChangeStatus = "added" | "removed" | "modified";
|
|
655
|
+
/**
|
|
656
|
+
* Data structure for a column node
|
|
657
|
+
*/
|
|
658
|
+
interface LineageColumnNodeData extends Record<string, unknown> {
|
|
659
|
+
/** Column name */
|
|
660
|
+
column: string;
|
|
661
|
+
/** Column data type (e.g., "VARCHAR", "INTEGER") */
|
|
662
|
+
type?: string;
|
|
663
|
+
/** ID of the parent model/table node */
|
|
664
|
+
nodeId: string;
|
|
665
|
+
/** Transformation type for this column */
|
|
666
|
+
transformationType?: ColumnTransformationType;
|
|
667
|
+
/** Change status for diff views */
|
|
668
|
+
changeStatus?: ColumnChangeStatus;
|
|
669
|
+
/** Whether the column is highlighted */
|
|
670
|
+
isHighlighted?: boolean;
|
|
671
|
+
/** Whether the column is selected/focused */
|
|
672
|
+
isFocused?: boolean;
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Props for the LineageColumnNode component
|
|
676
|
+
*/
|
|
677
|
+
interface LineageColumnNodeProps {
|
|
678
|
+
/** Unique node ID */
|
|
679
|
+
id: string;
|
|
680
|
+
/** Node data */
|
|
681
|
+
data: LineageColumnNodeData;
|
|
682
|
+
/** Whether the node is selected */
|
|
683
|
+
selected?: boolean;
|
|
684
|
+
/**
|
|
685
|
+
* Whether to show content (used for zoom-level visibility)
|
|
686
|
+
* When false, the node renders nothing (hidden at low zoom levels)
|
|
687
|
+
* @default true
|
|
688
|
+
*/
|
|
689
|
+
showContent?: boolean;
|
|
690
|
+
/**
|
|
691
|
+
* Whether to show change analysis mode
|
|
692
|
+
* When true and changeStatus exists, shows change status indicator
|
|
693
|
+
* When false, shows transformation type indicator
|
|
694
|
+
* @default false
|
|
695
|
+
*/
|
|
696
|
+
showChangeAnalysis?: boolean;
|
|
697
|
+
/**
|
|
698
|
+
* Whether to use dark mode styling
|
|
699
|
+
* @default false
|
|
700
|
+
*/
|
|
701
|
+
isDark?: boolean;
|
|
702
|
+
/** Callback when column is clicked */
|
|
703
|
+
onColumnClick?: (columnId: string) => void;
|
|
704
|
+
/**
|
|
705
|
+
* Callback when context menu is requested (kebab menu click)
|
|
706
|
+
* When provided, shows kebab menu on hover
|
|
707
|
+
*/
|
|
708
|
+
onContextMenu?: (event: MouseEvent, columnId: string) => void;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Default column height in pixels
|
|
712
|
+
*/
|
|
713
|
+
declare const COLUMN_NODE_HEIGHT = 24;
|
|
714
|
+
/**
|
|
715
|
+
* Default column width in pixels
|
|
716
|
+
*/
|
|
717
|
+
declare const COLUMN_NODE_WIDTH = 280;
|
|
718
|
+
/**
|
|
719
|
+
* LineageColumnNode Component
|
|
720
|
+
*
|
|
721
|
+
* A pure presentation component for rendering individual columns
|
|
722
|
+
* in column-level lineage visualizations using React Flow.
|
|
723
|
+
*
|
|
724
|
+
* @example Basic usage
|
|
725
|
+
* ```tsx
|
|
726
|
+
* import { LineageColumnNode } from '@datarecce/ui/primitives';
|
|
727
|
+
*
|
|
728
|
+
* // Register as a React Flow node type
|
|
729
|
+
* const nodeTypes = {
|
|
730
|
+
* columnNode: LineageColumnNode,
|
|
731
|
+
* };
|
|
732
|
+
*
|
|
733
|
+
* function ColumnLineageGraph() {
|
|
734
|
+
* return (
|
|
735
|
+
* <ReactFlow nodes={columnNodes} edges={edges} nodeTypes={nodeTypes} />
|
|
736
|
+
* );
|
|
737
|
+
* }
|
|
738
|
+
* ```
|
|
739
|
+
*
|
|
740
|
+
* @example Node data structure
|
|
741
|
+
* ```tsx
|
|
742
|
+
* const columnNode = {
|
|
743
|
+
* id: 'users-id',
|
|
744
|
+
* type: 'columnNode',
|
|
745
|
+
* data: {
|
|
746
|
+
* column: 'id',
|
|
747
|
+
* type: 'INTEGER',
|
|
748
|
+
* nodeId: 'users',
|
|
749
|
+
* transformationType: 'passthrough',
|
|
750
|
+
* changeStatus: undefined,
|
|
751
|
+
* isHighlighted: true,
|
|
752
|
+
* },
|
|
753
|
+
* position: { x: 0, y: 0 },
|
|
754
|
+
* };
|
|
755
|
+
* ```
|
|
756
|
+
*
|
|
757
|
+
* @example With change analysis mode
|
|
758
|
+
* ```tsx
|
|
759
|
+
* // In change analysis mode, shows change status instead of transformation type
|
|
760
|
+
* <LineageColumnNode
|
|
761
|
+
* showChangeAnalysis={true}
|
|
762
|
+
* showContent={zoomLevel > 0.3}
|
|
763
|
+
* onContextMenu={(e, columnId) => showMenu(e, columnId)}
|
|
764
|
+
* />
|
|
765
|
+
* ```
|
|
766
|
+
*/
|
|
767
|
+
declare function LineageColumnNodeComponent({
|
|
768
|
+
id,
|
|
769
|
+
data,
|
|
770
|
+
showContent,
|
|
771
|
+
showChangeAnalysis,
|
|
772
|
+
isDark,
|
|
773
|
+
onColumnClick,
|
|
774
|
+
onContextMenu
|
|
775
|
+
}: LineageColumnNodeProps): react_jsx_runtime26.JSX.Element | null;
|
|
776
|
+
declare const LineageColumnNode: react11.MemoExoticComponent<typeof LineageColumnNodeComponent>;
|
|
777
|
+
//#endregion
|
|
778
|
+
//#region src/components/lineage/legend/LineageLegend.d.ts
|
|
779
|
+
/**
|
|
780
|
+
* Legend item for change status
|
|
781
|
+
*/
|
|
782
|
+
interface ChangeStatusLegendItem {
|
|
783
|
+
status: "added" | "removed" | "modified";
|
|
784
|
+
label: string;
|
|
785
|
+
description?: string;
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Legend item for transformation type
|
|
789
|
+
*/
|
|
790
|
+
interface TransformationLegendItem {
|
|
791
|
+
type: "passthrough" | "renamed" | "derived" | "source" | "unknown";
|
|
792
|
+
label: string;
|
|
793
|
+
description?: string;
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Props for the LineageLegend component
|
|
797
|
+
*/
|
|
798
|
+
interface LineageLegendProps {
|
|
799
|
+
/**
|
|
800
|
+
* Type of legend to display
|
|
801
|
+
*/
|
|
802
|
+
variant: "changeStatus" | "transformation";
|
|
803
|
+
/**
|
|
804
|
+
* Whether to show tooltips on hover
|
|
805
|
+
* @default true
|
|
806
|
+
*/
|
|
807
|
+
showTooltips?: boolean;
|
|
808
|
+
/**
|
|
809
|
+
* Optional title for the legend
|
|
810
|
+
*/
|
|
811
|
+
title?: string;
|
|
812
|
+
/**
|
|
813
|
+
* CSS class name for additional styling
|
|
814
|
+
*/
|
|
815
|
+
className?: string;
|
|
816
|
+
}
|
|
817
|
+
/**
|
|
818
|
+
* LineageLegend Component
|
|
819
|
+
*
|
|
820
|
+
* A pure presentation component for displaying legends in lineage visualizations.
|
|
821
|
+
* Supports both change status legends (added/removed/modified) and
|
|
822
|
+
* transformation type legends (passthrough/renamed/derived/source/unknown).
|
|
823
|
+
*
|
|
824
|
+
* @example Change status legend
|
|
825
|
+
* ```tsx
|
|
826
|
+
* import { LineageLegend } from '@datarecce/ui/primitives';
|
|
827
|
+
*
|
|
828
|
+
* function MyLineageGraph() {
|
|
829
|
+
* return (
|
|
830
|
+
* <div style={{ position: 'relative' }}>
|
|
831
|
+
* <ReactFlow nodes={nodes} edges={edges} />
|
|
832
|
+
* <div style={{ position: 'absolute', bottom: 10, right: 10 }}>
|
|
833
|
+
* <LineageLegend variant="changeStatus" title="Changes" />
|
|
834
|
+
* </div>
|
|
835
|
+
* </div>
|
|
836
|
+
* );
|
|
837
|
+
* }
|
|
838
|
+
* ```
|
|
839
|
+
*
|
|
840
|
+
* @example Transformation type legend
|
|
841
|
+
* ```tsx
|
|
842
|
+
* import { LineageLegend } from '@datarecce/ui/primitives';
|
|
843
|
+
*
|
|
844
|
+
* function ColumnLineageGraph() {
|
|
845
|
+
* return (
|
|
846
|
+
* <div>
|
|
847
|
+
* <ReactFlow nodes={columnNodes} edges={edges} />
|
|
848
|
+
* <LineageLegend variant="transformation" />
|
|
849
|
+
* </div>
|
|
850
|
+
* );
|
|
851
|
+
* }
|
|
852
|
+
* ```
|
|
853
|
+
*/
|
|
854
|
+
declare function LineageLegend({
|
|
855
|
+
variant,
|
|
856
|
+
showTooltips,
|
|
857
|
+
title,
|
|
858
|
+
className
|
|
859
|
+
}: LineageLegendProps): react_jsx_runtime26.JSX.Element;
|
|
860
|
+
//#endregion
|
|
861
|
+
//#region src/components/data/HistogramChart.d.ts
|
|
862
|
+
/**
|
|
863
|
+
* Theme-aware colors for charts
|
|
864
|
+
*/
|
|
865
|
+
interface ChartThemeColors {
|
|
866
|
+
gridColor: string;
|
|
867
|
+
textColor: string;
|
|
868
|
+
borderColor: string;
|
|
869
|
+
tooltipBackgroundColor: string;
|
|
870
|
+
tooltipTextColor: string;
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* Bar colors for base/current comparison
|
|
874
|
+
*/
|
|
875
|
+
interface ChartBarColors {
|
|
876
|
+
current: string;
|
|
877
|
+
base: string;
|
|
878
|
+
currentWithAlpha: string;
|
|
879
|
+
baseWithAlpha: string;
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Get theme-aware colors for charts
|
|
883
|
+
*/
|
|
884
|
+
declare function getChartThemeColors(isDark: boolean): ChartThemeColors;
|
|
885
|
+
/**
|
|
886
|
+
* Get theme-aware bar colors
|
|
887
|
+
*/
|
|
888
|
+
declare function getChartBarColors(isDark: boolean): ChartBarColors;
|
|
889
|
+
/**
|
|
890
|
+
* Histogram dataset for a single environment
|
|
891
|
+
*/
|
|
892
|
+
interface HistogramDataset {
|
|
893
|
+
/** Count values per bin */
|
|
894
|
+
counts: number[];
|
|
895
|
+
/** Optional dataset label */
|
|
896
|
+
label?: string;
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* Histogram data type
|
|
900
|
+
*/
|
|
901
|
+
type HistogramDataType = "numeric" | "datetime" | "string";
|
|
902
|
+
/**
|
|
903
|
+
* Props for the HistogramChart component
|
|
904
|
+
*/
|
|
905
|
+
interface HistogramChartProps {
|
|
906
|
+
/** Chart title */
|
|
907
|
+
title: string;
|
|
908
|
+
/** Data type (numeric, datetime, or string) */
|
|
909
|
+
dataType?: HistogramDataType;
|
|
910
|
+
/** Total sample count */
|
|
911
|
+
samples?: number;
|
|
912
|
+
/** Minimum value (for datetime scale) */
|
|
913
|
+
min?: string | number;
|
|
914
|
+
/** Maximum value (for datetime scale) */
|
|
915
|
+
max?: string | number;
|
|
916
|
+
/** Bin edge values */
|
|
917
|
+
binEdges: number[];
|
|
918
|
+
/** Base environment dataset */
|
|
919
|
+
baseData: HistogramDataset;
|
|
920
|
+
/** Current environment dataset */
|
|
921
|
+
currentData: HistogramDataset;
|
|
922
|
+
/** Enable animation */
|
|
923
|
+
animate?: boolean;
|
|
924
|
+
/** Hide axis labels and ticks */
|
|
925
|
+
hideAxis?: boolean;
|
|
926
|
+
/** Theme mode */
|
|
927
|
+
theme?: "light" | "dark";
|
|
928
|
+
/** Chart height in pixels */
|
|
929
|
+
height?: number;
|
|
930
|
+
/** Optional CSS class */
|
|
931
|
+
className?: string;
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* HistogramChart Component
|
|
935
|
+
*
|
|
936
|
+
* A pure presentation component for displaying histogram charts comparing
|
|
937
|
+
* base and current data distributions using Chart.js.
|
|
938
|
+
*
|
|
939
|
+
* @example Basic usage
|
|
940
|
+
* ```tsx
|
|
941
|
+
* import { HistogramChart } from '@datarecce/ui/primitives';
|
|
942
|
+
*
|
|
943
|
+
* function ProfilePanel({ histogramData }) {
|
|
944
|
+
* return (
|
|
945
|
+
* <HistogramChart
|
|
946
|
+
* title="Age Distribution"
|
|
947
|
+
* dataType="numeric"
|
|
948
|
+
* binEdges={histogramData.binEdges}
|
|
949
|
+
* baseData={{ counts: histogramData.baseCounts }}
|
|
950
|
+
* currentData={{ counts: histogramData.currentCounts }}
|
|
951
|
+
* samples={1000}
|
|
952
|
+
* />
|
|
953
|
+
* );
|
|
954
|
+
* }
|
|
955
|
+
* ```
|
|
956
|
+
*
|
|
957
|
+
* @example With datetime scale
|
|
958
|
+
* ```tsx
|
|
959
|
+
* <HistogramChart
|
|
960
|
+
* title="Events Over Time"
|
|
961
|
+
* dataType="datetime"
|
|
962
|
+
* binEdges={timestamps}
|
|
963
|
+
* baseData={{ counts: baseCounts }}
|
|
964
|
+
* currentData={{ counts: currentCounts }}
|
|
965
|
+
* min={startDate}
|
|
966
|
+
* max={endDate}
|
|
967
|
+
* />
|
|
968
|
+
* ```
|
|
969
|
+
*/
|
|
970
|
+
declare function HistogramChartComponent({
|
|
971
|
+
title,
|
|
972
|
+
dataType,
|
|
973
|
+
samples,
|
|
974
|
+
min,
|
|
975
|
+
max,
|
|
976
|
+
binEdges,
|
|
977
|
+
baseData,
|
|
978
|
+
currentData,
|
|
979
|
+
animate,
|
|
980
|
+
hideAxis,
|
|
981
|
+
theme,
|
|
982
|
+
height,
|
|
983
|
+
className
|
|
984
|
+
}: HistogramChartProps): react_jsx_runtime26.JSX.Element;
|
|
985
|
+
declare const HistogramChart: react11.MemoExoticComponent<typeof HistogramChartComponent>;
|
|
986
|
+
//#endregion
|
|
987
|
+
//#region src/components/data/TopKBarChart.d.ts
|
|
988
|
+
/**
|
|
989
|
+
* Single Top-K value item
|
|
990
|
+
*/
|
|
991
|
+
interface TopKItem {
|
|
992
|
+
/** Value label */
|
|
993
|
+
label: string;
|
|
994
|
+
/** Count */
|
|
995
|
+
count: number;
|
|
996
|
+
/** Whether this is a special label (null, empty, others) */
|
|
997
|
+
isSpecial?: boolean;
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Top-K dataset for a single environment
|
|
1001
|
+
* Compatible with TopKResult from @datarecce/ui/api
|
|
1002
|
+
*/
|
|
1003
|
+
interface TopKDataset {
|
|
1004
|
+
/** Value labels (null or undefined treated as special) */
|
|
1005
|
+
values: (string | number | null | undefined)[];
|
|
1006
|
+
/** Counts per value */
|
|
1007
|
+
counts: number[];
|
|
1008
|
+
/** Total valid count */
|
|
1009
|
+
valids: number;
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Props for the TopKBarChart component
|
|
1013
|
+
*/
|
|
1014
|
+
interface TopKBarChartProps {
|
|
1015
|
+
/** Base environment dataset */
|
|
1016
|
+
baseData?: TopKDataset;
|
|
1017
|
+
/** Current environment dataset */
|
|
1018
|
+
currentData: TopKDataset;
|
|
1019
|
+
/** Maximum items to display (default 10) */
|
|
1020
|
+
maxItems?: number;
|
|
1021
|
+
/** Show comparison with base */
|
|
1022
|
+
showComparison?: boolean;
|
|
1023
|
+
/** Theme mode */
|
|
1024
|
+
theme?: "light" | "dark";
|
|
1025
|
+
/** Chart title */
|
|
1026
|
+
title?: string;
|
|
1027
|
+
/** Optional CSS class */
|
|
1028
|
+
className?: string;
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* TopKBarChart Component
|
|
1032
|
+
*
|
|
1033
|
+
* A pure presentation component for displaying top-k value distributions
|
|
1034
|
+
* with optional base/current comparison.
|
|
1035
|
+
*
|
|
1036
|
+
* @example Basic usage
|
|
1037
|
+
* ```tsx
|
|
1038
|
+
* import { TopKBarChart } from '@datarecce/ui/primitives';
|
|
1039
|
+
*
|
|
1040
|
+
* function ValueDistribution({ topKData }) {
|
|
1041
|
+
* return (
|
|
1042
|
+
* <TopKBarChart
|
|
1043
|
+
* currentData={topKData}
|
|
1044
|
+
* maxItems={10}
|
|
1045
|
+
* />
|
|
1046
|
+
* );
|
|
1047
|
+
* }
|
|
1048
|
+
* ```
|
|
1049
|
+
*
|
|
1050
|
+
* @example With comparison
|
|
1051
|
+
* ```tsx
|
|
1052
|
+
* <TopKBarChart
|
|
1053
|
+
* baseData={baseTopK}
|
|
1054
|
+
* currentData={currentTopK}
|
|
1055
|
+
* showComparison
|
|
1056
|
+
* maxItems={10}
|
|
1057
|
+
* />
|
|
1058
|
+
* ```
|
|
1059
|
+
*/
|
|
1060
|
+
declare function TopKBarChartComponent({
|
|
1061
|
+
baseData,
|
|
1062
|
+
currentData,
|
|
1063
|
+
maxItems,
|
|
1064
|
+
showComparison,
|
|
1065
|
+
theme,
|
|
1066
|
+
title,
|
|
1067
|
+
className
|
|
1068
|
+
}: TopKBarChartProps): react_jsx_runtime26.JSX.Element;
|
|
1069
|
+
declare const TopKBarChart: react11.MemoExoticComponent<typeof TopKBarChartComponent>;
|
|
1070
|
+
//#endregion
|
|
1071
|
+
//#region src/components/schema/SchemaDiff.d.ts
|
|
1072
|
+
/**
|
|
1073
|
+
* Schema diff row status
|
|
1074
|
+
*/
|
|
1075
|
+
type SchemaDiffStatus = "added" | "removed" | "modified" | "unchanged";
|
|
1076
|
+
/**
|
|
1077
|
+
* Schema diff row data
|
|
1078
|
+
*/
|
|
1079
|
+
interface SchemaDiffRow {
|
|
1080
|
+
/** Column name */
|
|
1081
|
+
name: string;
|
|
1082
|
+
/** Whether column was reordered */
|
|
1083
|
+
reordered?: boolean;
|
|
1084
|
+
/** Index in current environment */
|
|
1085
|
+
currentIndex?: number;
|
|
1086
|
+
/** Index in base environment */
|
|
1087
|
+
baseIndex?: number;
|
|
1088
|
+
/** Data type in current environment */
|
|
1089
|
+
currentType?: string;
|
|
1090
|
+
/** Data type in base environment */
|
|
1091
|
+
baseType?: string;
|
|
1092
|
+
/** Row status */
|
|
1093
|
+
__status?: SchemaDiffStatus;
|
|
1094
|
+
/** Row key */
|
|
1095
|
+
__rowKey?: string;
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Handle for accessing grid API
|
|
1099
|
+
*/
|
|
1100
|
+
interface SchemaDiffHandle {
|
|
1101
|
+
/** AG Grid API */
|
|
1102
|
+
api: GridReadyEvent["api"] | null;
|
|
1103
|
+
/** DOM element for screenshots */
|
|
1104
|
+
element: HTMLElement | null;
|
|
1105
|
+
}
|
|
1106
|
+
/**
|
|
1107
|
+
* Props for the SchemaDiff component
|
|
1108
|
+
*/
|
|
1109
|
+
interface SchemaDiffProps {
|
|
1110
|
+
/** Schema diff rows */
|
|
1111
|
+
rows: SchemaDiffRow[];
|
|
1112
|
+
/** Selected column name */
|
|
1113
|
+
selectedColumn?: string | null;
|
|
1114
|
+
/** Callback when a column is clicked */
|
|
1115
|
+
onColumnClick?: (columnName: string) => void;
|
|
1116
|
+
/** Warning message to display */
|
|
1117
|
+
warningMessage?: string;
|
|
1118
|
+
/** Row height in pixels */
|
|
1119
|
+
rowHeight?: number;
|
|
1120
|
+
/** Empty state message */
|
|
1121
|
+
emptyMessage?: string;
|
|
1122
|
+
/** Theme mode */
|
|
1123
|
+
theme?: "light" | "dark";
|
|
1124
|
+
/** Custom column definitions override */
|
|
1125
|
+
columnDefs?: ColDef[];
|
|
1126
|
+
/** Custom cell renderer for name column */
|
|
1127
|
+
nameRenderer?: (params: {
|
|
1128
|
+
value: string;
|
|
1129
|
+
data: SchemaDiffRow;
|
|
1130
|
+
}) => ReactNode;
|
|
1131
|
+
/** Custom cell renderer for index columns */
|
|
1132
|
+
indexRenderer?: (params: {
|
|
1133
|
+
value: number | undefined;
|
|
1134
|
+
data: SchemaDiffRow;
|
|
1135
|
+
}) => ReactNode;
|
|
1136
|
+
/** Custom cell renderer for type columns */
|
|
1137
|
+
typeRenderer?: (params: {
|
|
1138
|
+
value: string | undefined;
|
|
1139
|
+
data: SchemaDiffRow;
|
|
1140
|
+
}) => ReactNode;
|
|
1141
|
+
/** Optional CSS class */
|
|
1142
|
+
className?: string;
|
|
1143
|
+
}
|
|
1144
|
+
/**
|
|
1145
|
+
* Merge base and current columns into diff rows
|
|
1146
|
+
*/
|
|
1147
|
+
declare function mergeSchemaColumns(baseColumns: Record<string, {
|
|
1148
|
+
index: number;
|
|
1149
|
+
type?: string;
|
|
1150
|
+
}>, currentColumns: Record<string, {
|
|
1151
|
+
index: number;
|
|
1152
|
+
type?: string;
|
|
1153
|
+
}>): SchemaDiffRow[];
|
|
1154
|
+
declare const SchemaDiff: react11.ForwardRefExoticComponent<SchemaDiffProps & react11.RefAttributes<SchemaDiffHandle>>;
|
|
1155
|
+
//#endregion
|
|
1156
|
+
//#region src/components/editor/DiffEditor.d.ts
|
|
1157
|
+
/**
|
|
1158
|
+
* Supported languages for the diff editor
|
|
1159
|
+
*/
|
|
1160
|
+
type DiffEditorLanguage = "sql" | "yaml" | "text";
|
|
1161
|
+
/**
|
|
1162
|
+
* Theme options for the diff editor
|
|
1163
|
+
*/
|
|
1164
|
+
type DiffEditorTheme = "light" | "dark";
|
|
1165
|
+
/**
|
|
1166
|
+
* Props for the DiffEditor component
|
|
1167
|
+
*/
|
|
1168
|
+
interface DiffEditorProps {
|
|
1169
|
+
/** Original (base) text content */
|
|
1170
|
+
original: string;
|
|
1171
|
+
/** Modified (current) text content */
|
|
1172
|
+
modified: string;
|
|
1173
|
+
/** Language for syntax highlighting */
|
|
1174
|
+
language?: DiffEditorLanguage;
|
|
1175
|
+
/** Whether editor is read-only */
|
|
1176
|
+
readOnly?: boolean;
|
|
1177
|
+
/** Show line numbers */
|
|
1178
|
+
lineNumbers?: boolean;
|
|
1179
|
+
/** Side-by-side view (true) or unified view (false) */
|
|
1180
|
+
sideBySide?: boolean;
|
|
1181
|
+
/** Editor height */
|
|
1182
|
+
height?: string;
|
|
1183
|
+
/** Theme mode */
|
|
1184
|
+
theme?: DiffEditorTheme;
|
|
1185
|
+
/** Callback when modified content changes */
|
|
1186
|
+
onModifiedChange?: (value: string) => void;
|
|
1187
|
+
/** Optional CSS class */
|
|
1188
|
+
className?: string;
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* DiffEditor Component
|
|
1192
|
+
*
|
|
1193
|
+
* A pure presentation component for displaying text diffs using CodeMirror's
|
|
1194
|
+
* merge view. Supports side-by-side and unified diff views.
|
|
1195
|
+
*
|
|
1196
|
+
* @example Basic usage
|
|
1197
|
+
* ```tsx
|
|
1198
|
+
* import { DiffEditor } from '@datarecce/ui/primitives';
|
|
1199
|
+
*
|
|
1200
|
+
* function SqlDiffPanel({ baseSql, currentSql }) {
|
|
1201
|
+
* return (
|
|
1202
|
+
* <DiffEditor
|
|
1203
|
+
* original={baseSql}
|
|
1204
|
+
* modified={currentSql}
|
|
1205
|
+
* language="sql"
|
|
1206
|
+
* sideBySide
|
|
1207
|
+
* />
|
|
1208
|
+
* );
|
|
1209
|
+
* }
|
|
1210
|
+
* ```
|
|
1211
|
+
*
|
|
1212
|
+
* @example Unified view with editing
|
|
1213
|
+
* ```tsx
|
|
1214
|
+
* const [modifiedSql, setModifiedSql] = useState(currentSql);
|
|
1215
|
+
*
|
|
1216
|
+
* <DiffEditor
|
|
1217
|
+
* original={baseSql}
|
|
1218
|
+
* modified={modifiedSql}
|
|
1219
|
+
* language="sql"
|
|
1220
|
+
* sideBySide={false}
|
|
1221
|
+
* onModifiedChange={setModifiedSql}
|
|
1222
|
+
* />
|
|
1223
|
+
* ```
|
|
1224
|
+
*/
|
|
1225
|
+
declare function DiffEditorComponent({
|
|
1226
|
+
original,
|
|
1227
|
+
modified,
|
|
1228
|
+
language,
|
|
1229
|
+
readOnly,
|
|
1230
|
+
lineNumbers: showLineNumbers,
|
|
1231
|
+
sideBySide,
|
|
1232
|
+
height,
|
|
1233
|
+
theme,
|
|
1234
|
+
onModifiedChange,
|
|
1235
|
+
className
|
|
1236
|
+
}: DiffEditorProps): react_jsx_runtime26.JSX.Element;
|
|
1237
|
+
declare const DiffEditor: react11.MemoExoticComponent<typeof DiffEditorComponent>;
|
|
1238
|
+
//#endregion
|
|
1239
|
+
//#region src/components/ui/EmptyState.d.ts
|
|
1240
|
+
/**
|
|
1241
|
+
* Props for the EmptyState component
|
|
1242
|
+
*/
|
|
1243
|
+
interface EmptyStateProps {
|
|
1244
|
+
/** Main title text */
|
|
1245
|
+
title: string;
|
|
1246
|
+
/** Description text */
|
|
1247
|
+
description?: string;
|
|
1248
|
+
/** Icon to display */
|
|
1249
|
+
icon?: ReactNode;
|
|
1250
|
+
/** Primary action button text */
|
|
1251
|
+
actionLabel?: string;
|
|
1252
|
+
/** Primary action callback */
|
|
1253
|
+
onAction?: () => void;
|
|
1254
|
+
/** Secondary action button text */
|
|
1255
|
+
secondaryActionLabel?: string;
|
|
1256
|
+
/** Secondary action callback */
|
|
1257
|
+
onSecondaryAction?: () => void;
|
|
1258
|
+
/** Theme mode */
|
|
1259
|
+
theme?: "light" | "dark";
|
|
1260
|
+
/** Vertical padding */
|
|
1261
|
+
paddingY?: number;
|
|
1262
|
+
/** Optional CSS class */
|
|
1263
|
+
className?: string;
|
|
1264
|
+
/** Additional content below actions */
|
|
1265
|
+
children?: ReactNode;
|
|
1266
|
+
}
|
|
1267
|
+
/**
|
|
1268
|
+
* EmptyState Component
|
|
1269
|
+
*
|
|
1270
|
+
* A pure presentation component for displaying empty states
|
|
1271
|
+
* with optional icon, actions, and custom content.
|
|
1272
|
+
*
|
|
1273
|
+
* @example Basic usage
|
|
1274
|
+
* ```tsx
|
|
1275
|
+
* import { EmptyState } from '@datarecce/ui/primitives';
|
|
1276
|
+
*
|
|
1277
|
+
* function ChecksPanel({ checks }) {
|
|
1278
|
+
* if (checks.length === 0) {
|
|
1279
|
+
* return (
|
|
1280
|
+
* <EmptyState
|
|
1281
|
+
* title="No checks yet"
|
|
1282
|
+
* description="Create your first check to get started"
|
|
1283
|
+
* />
|
|
1284
|
+
* );
|
|
1285
|
+
* }
|
|
1286
|
+
* // ... render checks
|
|
1287
|
+
* }
|
|
1288
|
+
* ```
|
|
1289
|
+
*
|
|
1290
|
+
* @example With action button
|
|
1291
|
+
* ```tsx
|
|
1292
|
+
* <EmptyState
|
|
1293
|
+
* title="No results found"
|
|
1294
|
+
* description="Try adjusting your search criteria"
|
|
1295
|
+
* actionLabel="Clear Filters"
|
|
1296
|
+
* onAction={() => clearFilters()}
|
|
1297
|
+
* />
|
|
1298
|
+
* ```
|
|
1299
|
+
*
|
|
1300
|
+
* @example With icon and multiple actions
|
|
1301
|
+
* ```tsx
|
|
1302
|
+
* <EmptyState
|
|
1303
|
+
* icon={<FolderIcon />}
|
|
1304
|
+
* title="No files"
|
|
1305
|
+
* description="Upload files to get started"
|
|
1306
|
+
* actionLabel="Upload File"
|
|
1307
|
+
* onAction={handleUpload}
|
|
1308
|
+
* secondaryActionLabel="Learn More"
|
|
1309
|
+
* onSecondaryAction={() => window.open(docsUrl)}
|
|
1310
|
+
* />
|
|
1311
|
+
* ```
|
|
1312
|
+
*/
|
|
1313
|
+
declare function EmptyStateComponent({
|
|
1314
|
+
title,
|
|
1315
|
+
description,
|
|
1316
|
+
icon,
|
|
1317
|
+
actionLabel,
|
|
1318
|
+
onAction,
|
|
1319
|
+
secondaryActionLabel,
|
|
1320
|
+
onSecondaryAction,
|
|
1321
|
+
theme,
|
|
1322
|
+
paddingY,
|
|
1323
|
+
className,
|
|
1324
|
+
children
|
|
1325
|
+
}: EmptyStateProps): react_jsx_runtime26.JSX.Element;
|
|
1326
|
+
declare const EmptyState: react11.MemoExoticComponent<typeof EmptyStateComponent>;
|
|
1327
|
+
//#endregion
|
|
1328
|
+
//#region src/components/ui/SplitPane.d.ts
|
|
1329
|
+
/**
|
|
1330
|
+
* Split direction
|
|
1331
|
+
*/
|
|
1332
|
+
type SplitDirection = "horizontal" | "vertical";
|
|
1333
|
+
/**
|
|
1334
|
+
* Props for the SplitPane component
|
|
1335
|
+
*/
|
|
1336
|
+
interface SplitPaneProps {
|
|
1337
|
+
/** Child elements to split */
|
|
1338
|
+
children: ReactNode;
|
|
1339
|
+
/** Split direction */
|
|
1340
|
+
direction?: SplitDirection;
|
|
1341
|
+
/** Initial sizes as percentages (should sum to 100) */
|
|
1342
|
+
sizes?: number[];
|
|
1343
|
+
/** Minimum sizes in pixels */
|
|
1344
|
+
minSizes?: number | number[];
|
|
1345
|
+
/** Maximum sizes in pixels */
|
|
1346
|
+
maxSizes?: number | number[];
|
|
1347
|
+
/** Gutter (drag handle) size in pixels */
|
|
1348
|
+
gutterSize?: number;
|
|
1349
|
+
/** Snap to closed at this threshold (pixels) */
|
|
1350
|
+
snapOffset?: number;
|
|
1351
|
+
/** Allow dragging past minSize to collapse */
|
|
1352
|
+
dragInterval?: number;
|
|
1353
|
+
/** Callback when sizes change */
|
|
1354
|
+
onDragEnd?: (sizes: number[]) => void;
|
|
1355
|
+
/** Callback during drag */
|
|
1356
|
+
onDrag?: (sizes: number[]) => void;
|
|
1357
|
+
/** Theme mode */
|
|
1358
|
+
theme?: "light" | "dark";
|
|
1359
|
+
/** Container style */
|
|
1360
|
+
style?: CSSProperties;
|
|
1361
|
+
/** Optional CSS class */
|
|
1362
|
+
className?: string;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* SplitPane Component
|
|
1366
|
+
*
|
|
1367
|
+
* A pure presentation component for creating resizable split panes
|
|
1368
|
+
* using react-split. Supports horizontal and vertical layouts.
|
|
1369
|
+
*
|
|
1370
|
+
* @example Horizontal split
|
|
1371
|
+
* ```tsx
|
|
1372
|
+
* import { SplitPane } from '@datarecce/ui/primitives';
|
|
1373
|
+
*
|
|
1374
|
+
* function TwoColumnLayout() {
|
|
1375
|
+
* return (
|
|
1376
|
+
* <SplitPane direction="horizontal" sizes={[30, 70]}>
|
|
1377
|
+
* <div>Left Panel</div>
|
|
1378
|
+
* <div>Right Panel</div>
|
|
1379
|
+
* </SplitPane>
|
|
1380
|
+
* );
|
|
1381
|
+
* }
|
|
1382
|
+
* ```
|
|
1383
|
+
*
|
|
1384
|
+
* @example Vertical split with min sizes
|
|
1385
|
+
* ```tsx
|
|
1386
|
+
* <SplitPane
|
|
1387
|
+
* direction="vertical"
|
|
1388
|
+
* sizes={[50, 50]}
|
|
1389
|
+
* minSizes={[100, 100]}
|
|
1390
|
+
* >
|
|
1391
|
+
* <div>Top Panel</div>
|
|
1392
|
+
* <div>Bottom Panel</div>
|
|
1393
|
+
* </SplitPane>
|
|
1394
|
+
* ```
|
|
1395
|
+
*
|
|
1396
|
+
* @example Three-way split with callbacks
|
|
1397
|
+
* ```tsx
|
|
1398
|
+
* <SplitPane
|
|
1399
|
+
* direction="horizontal"
|
|
1400
|
+
* sizes={[25, 50, 25]}
|
|
1401
|
+
* onDragEnd={(sizes) => saveSizes(sizes)}
|
|
1402
|
+
* >
|
|
1403
|
+
* <div>Navigation</div>
|
|
1404
|
+
* <div>Content</div>
|
|
1405
|
+
* <div>Details</div>
|
|
1406
|
+
* </SplitPane>
|
|
1407
|
+
* ```
|
|
1408
|
+
*/
|
|
1409
|
+
declare function SplitPaneComponent({
|
|
1410
|
+
children,
|
|
1411
|
+
direction,
|
|
1412
|
+
sizes,
|
|
1413
|
+
minSizes,
|
|
1414
|
+
maxSizes,
|
|
1415
|
+
gutterSize,
|
|
1416
|
+
snapOffset,
|
|
1417
|
+
dragInterval,
|
|
1418
|
+
onDragEnd,
|
|
1419
|
+
onDrag,
|
|
1420
|
+
theme,
|
|
1421
|
+
style,
|
|
1422
|
+
className
|
|
1423
|
+
}: SplitPaneProps): react_jsx_runtime26.JSX.Element;
|
|
1424
|
+
declare const SplitPane: react11.MemoExoticComponent<typeof SplitPaneComponent>;
|
|
1425
|
+
//#endregion
|
|
1426
|
+
export { CheckRunStatus as $, LineageLegendProps as A, LineageViewRef as B, HistogramChartProps as C, getChartThemeColors as D, getChartBarColors as E, LineageColumnNode as F, CheckDetail as G, CheckListProps as H, LineageColumnNodeData as I, CheckDescription as J, CheckDetailProps as K, LineageColumnNodeProps as L, COLUMN_NODE_HEIGHT as M, COLUMN_NODE_WIDTH as N, ChangeStatusLegendItem as O, ColumnTransformationType as P, CheckCardProps as Q, LineageView as R, HistogramChart as S, HistogramDataset as T, CheckEmptyState as U, CheckList as V, CheckEmptyStateProps as W, CheckCard as X, CheckDescriptionProps as Y, CheckCardData as Z, TopKBarChartProps as _, EmptyStateProps as a, ChartBarColors as b, DiffEditorProps as c, SchemaDiffHandle as d, CheckType as et, SchemaDiffProps as f, TopKBarChart as g, mergeSchemaColumns as h, EmptyState as i, CheckActionsProps as it, TransformationLegendItem as j, LineageLegend as k, DiffEditorTheme as l, SchemaDiffStatus as m, SplitPane as n, CheckActionType as nt, DiffEditor as o, SchemaDiffRow as p, CheckDetailTab as q, SplitPaneProps as r, CheckActions as rt, DiffEditorLanguage as s, SplitDirection as t, CheckAction as tt, SchemaDiff as u, TopKDataset as v, HistogramDataType as w, ChartThemeColors as x, TopKItem as y, LineageViewProps as z };
|
|
1427
|
+
//# sourceMappingURL=SplitPane-B-BLxZaQ.d.ts.map
|