@sixb/app 0.1.11 → 0.1.13
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/LICENSE +2 -0
- package/README.md +27 -26
- package/assets/connector-icons/README.md +29 -0
- package/assets/connector-icons/ace-iot.ico +0 -0
- package/assets/connector-icons/companycam.png +0 -0
- package/assets/connector-icons/exa.png +0 -0
- package/assets/connector-icons/github.svg +1 -0
- package/assets/connector-icons/google.ico +0 -0
- package/assets/connector-icons/googleads.svg +29 -0
- package/assets/connector-icons/linkedin.svg +1 -0
- package/assets/connector-icons/mercury.svg +1 -0
- package/assets/connector-icons/meta.svg +1 -0
- package/assets/connector-icons/microsoft.ico +0 -0
- package/assets/connector-icons/notion.svg +1 -0
- package/assets/connector-icons/pandadoc.png +0 -0
- package/assets/connector-icons/pennylane.ico +0 -0
- package/assets/connector-icons/pipedrive.png +0 -0
- package/assets/connector-icons/plaud.png +0 -0
- package/assets/connector-icons/quickbooks.svg +1 -0
- package/assets/connector-icons/stripe.svg +1 -0
- package/assets/connector-icons/teamleader.ico +0 -0
- package/assets/connector-icons/tiktok.svg +1 -0
- package/assets/connector-icons/unipile.png +0 -0
- package/dist/agent/activity-label.d.ts +5 -0
- package/dist/agent/activity-label.d.ts.map +1 -0
- package/dist/agent/agent-chat.d.ts +25 -0
- package/dist/agent/agent-chat.d.ts.map +1 -0
- package/dist/agent/agent-context-provider.d.ts +9 -0
- package/dist/agent/agent-context-provider.d.ts.map +1 -0
- package/dist/agent/agent-execution-trace.d.ts +9 -0
- package/dist/agent/agent-execution-trace.d.ts.map +1 -0
- package/dist/agent/agent-panel.d.ts +24 -0
- package/dist/agent/agent-panel.d.ts.map +1 -0
- package/dist/agent/agent-surface-state.d.ts +22 -0
- package/dist/agent/agent-surface-state.d.ts.map +1 -0
- package/dist/agent/agent-surface.d.ts +46 -0
- package/dist/agent/agent-surface.d.ts.map +1 -0
- package/dist/agent/agents-page.d.ts +4 -0
- package/dist/agent/agents-page.d.ts.map +1 -0
- package/dist/agent/artifact-card.d.ts +9 -0
- package/dist/agent/artifact-card.d.ts.map +1 -0
- package/dist/agent/artifact-panel-state.d.ts +16 -0
- package/dist/agent/artifact-panel-state.d.ts.map +1 -0
- package/dist/agent/artifact-panel.d.ts +38 -0
- package/dist/agent/artifact-panel.d.ts.map +1 -0
- package/dist/agent/bash/bash-tool-view.d.ts +17 -0
- package/dist/agent/bash/bash-tool-view.d.ts.map +1 -0
- package/dist/agent/bash/data.d.ts +35 -0
- package/dist/agent/bash/data.d.ts.map +1 -0
- package/dist/agent/bash/interpret.d.ts +84 -0
- package/dist/agent/bash/interpret.d.ts.map +1 -0
- package/dist/agent/bash/renderers.d.ts +31 -0
- package/dist/agent/bash/renderers.d.ts.map +1 -0
- package/dist/agent/bash/shell.d.ts +16 -0
- package/dist/agent/bash/shell.d.ts.map +1 -0
- package/dist/agent/components/activity-status.d.ts +13 -0
- package/dist/agent/components/activity-status.d.ts.map +1 -0
- package/dist/agent/components/agent-thread-switcher.d.ts +16 -0
- package/dist/agent/components/agent-thread-switcher.d.ts.map +1 -0
- package/dist/agent/components/composer.d.ts +47 -0
- package/dist/agent/components/composer.d.ts.map +1 -0
- package/dist/agent/components/context-chips.d.ts +7 -0
- package/dist/agent/components/context-chips.d.ts.map +1 -0
- package/dist/agent/components/context-picker.d.ts +16 -0
- package/dist/agent/components/context-picker.d.ts.map +1 -0
- package/dist/agent/components/conversation-panel.d.ts +82 -0
- package/dist/agent/components/conversation-panel.d.ts.map +1 -0
- package/dist/agent/components/file-attachment-card.d.ts +8 -0
- package/dist/agent/components/file-attachment-card.d.ts.map +1 -0
- package/dist/agent/components/message-parts.d.ts +14 -0
- package/dist/agent/components/message-parts.d.ts.map +1 -0
- package/dist/agent/components/message-view.d.ts +58 -0
- package/dist/agent/components/message-view.d.ts.map +1 -0
- package/dist/agent/components/model-controls.d.ts +20 -0
- package/dist/agent/components/model-controls.d.ts.map +1 -0
- package/dist/agent/components/model-picker-row.d.ts +8 -0
- package/dist/agent/components/model-picker-row.d.ts.map +1 -0
- package/dist/agent/components/provider-logo.d.ts +6 -0
- package/dist/agent/components/provider-logo.d.ts.map +1 -0
- package/dist/agent/components/provider-logos.d.ts +3 -0
- package/dist/agent/components/provider-logos.d.ts.map +1 -0
- package/dist/agent/components/reasoning-effort-slider.d.ts +11 -0
- package/dist/agent/components/reasoning-effort-slider.d.ts.map +1 -0
- package/dist/agent/components/sandbox-recovery.d.ts +6 -0
- package/dist/agent/components/sandbox-recovery.d.ts.map +1 -0
- package/dist/agent/components/thread-artifacts-menu.d.ts +8 -0
- package/dist/agent/components/thread-artifacts-menu.d.ts.map +1 -0
- package/dist/agent/components/transcript.d.ts +36 -0
- package/dist/agent/components/transcript.d.ts.map +1 -0
- package/dist/agent/components/web-fetch-tool-view.d.ts +5 -0
- package/dist/agent/components/web-fetch-tool-view.d.ts.map +1 -0
- package/dist/agent/components/web-search-tool-view.d.ts +5 -0
- package/dist/agent/components/web-search-tool-view.d.ts.map +1 -0
- package/dist/agent/components/web-sources.d.ts +9 -0
- package/dist/agent/components/web-sources.d.ts.map +1 -0
- package/dist/agent/format.d.ts +12 -0
- package/dist/agent/format.d.ts.map +1 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts +337 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -0
- package/dist/agent/hooks/use-thread-stream.d.ts +22 -0
- package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -0
- package/dist/agent/i18n/en.d.ts +550 -0
- package/dist/agent/i18n/en.d.ts.map +1 -0
- package/dist/agent/i18n/fr.d.ts +4 -0
- package/dist/agent/i18n/fr.d.ts.map +1 -0
- package/dist/agent/i18n/index.d.ts +1079 -0
- package/dist/agent/i18n/index.d.ts.map +1 -0
- package/dist/agent/live-run.d.ts +48 -0
- package/dist/agent/live-run.d.ts.map +1 -0
- package/dist/agent/model-selection.d.ts +33 -0
- package/dist/agent/model-selection.d.ts.map +1 -0
- package/dist/agent/object-context-title.d.ts +22 -0
- package/dist/agent/object-context-title.d.ts.map +1 -0
- package/dist/agent/parts.d.ts +42 -0
- package/dist/agent/parts.d.ts.map +1 -0
- package/dist/agent/publish-artifact/interpret.d.ts +32 -0
- package/dist/agent/publish-artifact/interpret.d.ts.map +1 -0
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts +9 -0
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts.map +1 -0
- package/dist/agent/publish-artifact/use-live-publishes.d.ts +10 -0
- package/dist/agent/publish-artifact/use-live-publishes.d.ts.map +1 -0
- package/dist/agent/react-router.d.ts +7 -0
- package/dist/agent/react-router.d.ts.map +1 -0
- package/dist/agent/read/interpret.d.ts +24 -0
- package/dist/agent/read/interpret.d.ts.map +1 -0
- package/dist/agent/read/read-tool-view.d.ts +5 -0
- package/dist/agent/read/read-tool-view.d.ts.map +1 -0
- package/dist/agent/requester-settings.d.ts +15 -0
- package/dist/agent/requester-settings.d.ts.map +1 -0
- package/dist/agent/run-presentation.d.ts +70 -0
- package/dist/agent/run-presentation.d.ts.map +1 -0
- package/dist/agent/thread-navigation.d.ts +5 -0
- package/dist/agent/thread-navigation.d.ts.map +1 -0
- package/dist/agent/types.d.ts +22 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/utils/context-display.d.ts +5 -0
- package/dist/agent/utils/context-display.d.ts.map +1 -0
- package/dist/agent/utils/context-mention.d.ts +12 -0
- package/dist/agent/utils/context-mention.d.ts.map +1 -0
- package/dist/agent/utils/web-fetch.d.ts +4 -0
- package/dist/agent/utils/web-fetch.d.ts.map +1 -0
- package/dist/agent/utils/web-search.d.ts +20 -0
- package/dist/agent/utils/web-search.d.ts.map +1 -0
- package/dist/agent/view-file/interpret.d.ts +9 -0
- package/dist/agent/view-file/interpret.d.ts.map +1 -0
- package/dist/agent/view-file/view-file-tool-view.d.ts +9 -0
- package/dist/agent/view-file/view-file-tool-view.d.ts.map +1 -0
- package/dist/artifacts/artifact-page.d.ts +7 -0
- package/dist/artifacts/artifact-page.d.ts.map +1 -0
- package/dist/artifacts/card-details.d.ts +15 -0
- package/dist/artifacts/card-details.d.ts.map +1 -0
- package/dist/artifacts/card-preview.d.ts +59 -0
- package/dist/artifacts/card-preview.d.ts.map +1 -0
- package/dist/artifacts/copy-feedback.d.ts +6 -0
- package/dist/artifacts/copy-feedback.d.ts.map +1 -0
- package/dist/artifacts/file-size.d.ts +11 -0
- package/dist/artifacts/file-size.d.ts.map +1 -0
- package/dist/artifacts/file-source.d.ts +45 -0
- package/dist/artifacts/file-source.d.ts.map +1 -0
- package/dist/artifacts/file-view.d.ts +9 -0
- package/dist/artifacts/file-view.d.ts.map +1 -0
- package/dist/artifacts/frame.d.ts +45 -0
- package/dist/artifacts/frame.d.ts.map +1 -0
- package/dist/artifacts/gallery.d.ts +6 -0
- package/dist/artifacts/gallery.d.ts.map +1 -0
- package/dist/artifacts/kind-icon.d.ts +8 -0
- package/dist/artifacts/kind-icon.d.ts.map +1 -0
- package/dist/artifacts/markdown-tree.d.ts +22 -0
- package/dist/artifacts/markdown-tree.d.ts.map +1 -0
- package/dist/artifacts/messages.d.ts +301 -0
- package/dist/artifacts/messages.d.ts.map +1 -0
- package/dist/artifacts/queries.d.ts +21 -0
- package/dist/artifacts/queries.d.ts.map +1 -0
- package/dist/artifacts/references/embed-tree.d.ts +17 -0
- package/dist/artifacts/references/embed-tree.d.ts.map +1 -0
- package/dist/artifacts/references/references.d.ts +50 -0
- package/dist/artifacts/references/references.d.ts.map +1 -0
- package/dist/artifacts/renderers/document-tree.d.ts +11 -0
- package/dist/artifacts/renderers/document-tree.d.ts.map +1 -0
- package/dist/artifacts/renderers/document.d.ts +17 -0
- package/dist/artifacts/renderers/document.d.ts.map +1 -0
- package/dist/artifacts/renderers/file.d.ts +10 -0
- package/dist/artifacts/renderers/file.d.ts.map +1 -0
- package/dist/artifacts/renderers/notice.d.ts +12 -0
- package/dist/artifacts/renderers/notice.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/chart-data.d.ts +33 -0
- package/dist/artifacts/renderers/sheet/chart-data.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/chart.d.ts +15 -0
- package/dist/artifacts/renderers/sheet/chart.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/format.d.ts +35 -0
- package/dist/artifacts/renderers/sheet/format.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/grid.d.ts +25 -0
- package/dist/artifacts/renderers/sheet/grid.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/mini-chart.d.ts +7 -0
- package/dist/artifacts/renderers/sheet/mini-chart.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/model.d.ts +29 -0
- package/dist/artifacts/renderers/sheet/model.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/selection.d.ts +42 -0
- package/dist/artifacts/renderers/sheet/selection.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/sheet.d.ts +17 -0
- package/dist/artifacts/renderers/sheet/sheet.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/virtual.d.ts +13 -0
- package/dist/artifacts/renderers/sheet/virtual.d.ts.map +1 -0
- package/dist/artifacts/renderers/sheet/workbook.d.ts +24 -0
- package/dist/artifacts/renderers/sheet/workbook.d.ts.map +1 -0
- package/dist/artifacts/renderers/slides/navigation.d.ts +17 -0
- package/dist/artifacts/renderers/slides/navigation.d.ts.map +1 -0
- package/dist/artifacts/renderers/slides/slides.d.ts +14 -0
- package/dist/artifacts/renderers/slides/slides.d.ts.map +1 -0
- package/dist/artifacts/target.d.ts +29 -0
- package/dist/artifacts/target.d.ts.map +1 -0
- package/dist/artifacts/theme.d.ts +18 -0
- package/dist/artifacts/theme.d.ts.map +1 -0
- package/dist/artifacts/viewer.d.ts +19 -0
- package/dist/artifacts/viewer.d.ts.map +1 -0
- package/dist/chunk-3schcf10.js +251 -0
- package/dist/chunk-3schcf10.js.map +10 -0
- package/dist/chunk-6n5pdqp0.js +115 -0
- package/dist/chunk-6n5pdqp0.js.map +11 -0
- package/dist/chunk-c7gy61rx.js +276 -0
- package/dist/chunk-c7gy61rx.js.map +10 -0
- package/dist/chunk-g3f4cm8x.js +20 -0
- package/dist/chunk-g3f4cm8x.js.map +10 -0
- package/dist/chunk-gn3k23q5.js +149 -0
- package/dist/chunk-gn3k23q5.js.map +10 -0
- package/dist/chunk-md3p7qdt.js +379 -0
- package/dist/chunk-md3p7qdt.js.map +10 -0
- package/dist/chunk-ng0hdnrq.js +183 -0
- package/dist/chunk-ng0hdnrq.js.map +10 -0
- package/dist/chunk-xxpdn63v.js +15018 -0
- package/dist/chunk-xxpdn63v.js.map +105 -0
- package/dist/chunk-yvhzn4ye.js +98 -0
- package/dist/chunk-yvhzn4ye.js.map +10 -0
- package/dist/codegen.d.ts +8 -4
- package/dist/codegen.d.ts.map +1 -1
- package/dist/createCustomApp.d.ts +14 -7
- package/dist/createCustomApp.d.ts.map +1 -1
- package/dist/index.d.ts +31 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +962 -2891
- package/dist/index.js.map +14 -13
- package/dist/locale-messages.d.ts +74 -6
- package/dist/locale-messages.d.ts.map +1 -1
- package/dist/locale.d.ts +75 -8
- package/dist/locale.d.ts.map +1 -1
- package/dist/locale.js +10 -19
- package/dist/locale.js.map +3 -4
- package/dist/metadata.d.ts.map +1 -1
- package/dist/pages/data/connectors.d.ts +5 -0
- package/dist/pages/data/connectors.d.ts.map +1 -0
- package/dist/pages/data/datasets.d.ts +30 -0
- package/dist/pages/data/datasets.d.ts.map +1 -0
- package/dist/pages/data/live-updates.d.ts +13 -0
- package/dist/pages/data/live-updates.d.ts.map +1 -0
- package/dist/pages/data/messages.d.ts +354 -0
- package/dist/pages/data/messages.d.ts.map +1 -0
- package/dist/pages/data/pipeline-canvas.d.ts +34 -0
- package/dist/pages/data/pipeline-canvas.d.ts.map +1 -0
- package/dist/pages/data/pipelines.d.ts +9 -0
- package/dist/pages/data/pipelines.d.ts.map +1 -0
- package/dist/pages/data/projections.d.ts +10 -0
- package/dist/pages/data/projections.d.ts.map +1 -0
- package/dist/pages/data/schema.d.ts +20 -0
- package/dist/pages/data/schema.d.ts.map +1 -0
- package/dist/pages/data/shared.d.ts +13 -0
- package/dist/pages/data/shared.d.ts.map +1 -0
- package/dist/pages/data/sync-button.d.ts +15 -0
- package/dist/pages/data/sync-button.d.ts.map +1 -0
- package/dist/pages/data/syncs.d.ts +5 -0
- package/dist/pages/data/syncs.d.ts.map +1 -0
- package/dist/pages/home.d.ts +6 -0
- package/dist/pages/home.d.ts.map +1 -0
- package/dist/pages/mosaic.d.ts +5 -0
- package/dist/pages/mosaic.d.ts.map +1 -0
- package/dist/pages/observability/action-run.d.ts +19 -0
- package/dist/pages/observability/action-run.d.ts.map +1 -0
- package/dist/pages/observability/activity/calendar.d.ts +9 -0
- package/dist/pages/observability/activity/calendar.d.ts.map +1 -0
- package/dist/pages/observability/activity/connections.d.ts +7 -0
- package/dist/pages/observability/activity/connections.d.ts.map +1 -0
- package/dist/pages/observability/activity/format.d.ts +11 -0
- package/dist/pages/observability/activity/format.d.ts.map +1 -0
- package/dist/pages/observability/activity/messages.d.ts +231 -0
- package/dist/pages/observability/activity/messages.d.ts.map +1 -0
- package/dist/pages/observability/activity/meta-items.d.ts +10 -0
- package/dist/pages/observability/activity/meta-items.d.ts.map +1 -0
- package/dist/pages/observability/activity/page.d.ts +6 -0
- package/dist/pages/observability/activity/page.d.ts.map +1 -0
- package/dist/pages/observability/activity/period.d.ts +31 -0
- package/dist/pages/observability/activity/period.d.ts.map +1 -0
- package/dist/pages/observability/activity/steps.d.ts +44 -0
- package/dist/pages/observability/activity/steps.d.ts.map +1 -0
- package/dist/pages/observability/activity/timeline.d.ts +36 -0
- package/dist/pages/observability/activity/timeline.d.ts.map +1 -0
- package/dist/pages/observability/activity/users.d.ts +18 -0
- package/dist/pages/observability/activity/users.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/calls.d.ts +27 -0
- package/dist/pages/observability/ai-usage/calls.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/charts.d.ts +23 -0
- package/dist/pages/observability/ai-usage/charts.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/format.d.ts +101 -0
- package/dist/pages/observability/ai-usage/format.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/limits.d.ts +12 -0
- package/dist/pages/observability/ai-usage/limits.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/messages.d.ts +431 -0
- package/dist/pages/observability/ai-usage/messages.d.ts.map +1 -0
- package/dist/pages/observability/ai-usage/page.d.ts +6 -0
- package/dist/pages/observability/ai-usage/page.d.ts.map +1 -0
- package/dist/pages/observability/live-updates.d.ts +3 -0
- package/dist/pages/observability/live-updates.d.ts.map +1 -0
- package/dist/pages/observability/logs.d.ts +11 -0
- package/dist/pages/observability/logs.d.ts.map +1 -0
- package/dist/pages/observability/messages.d.ts +329 -0
- package/dist/pages/observability/messages.d.ts.map +1 -0
- package/dist/pages/observability/runs.d.ts +7 -0
- package/dist/pages/observability/runs.d.ts.map +1 -0
- package/dist/pages/observability/workflow-run.d.ts +6 -0
- package/dist/pages/observability/workflow-run.d.ts.map +1 -0
- package/dist/pages/ontology/actions.d.ts +3 -0
- package/dist/pages/ontology/actions.d.ts.map +1 -0
- package/dist/pages/ontology/components/action-button.d.ts +12 -0
- package/dist/pages/ontology/components/action-button.d.ts.map +1 -0
- package/dist/pages/ontology/components/action-param-null-control.d.ts +7 -0
- package/dist/pages/ontology/components/action-param-null-control.d.ts.map +1 -0
- package/dist/pages/ontology/components/collection-toolbar.d.ts +21 -0
- package/dist/pages/ontology/components/collection-toolbar.d.ts.map +1 -0
- package/dist/pages/ontology/components/common.d.ts +16 -0
- package/dist/pages/ontology/components/common.d.ts.map +1 -0
- package/dist/pages/ontology/components/file-ref-upload-field.d.ts +13 -0
- package/dist/pages/ontology/components/file-ref-upload-field.d.ts.map +1 -0
- package/dist/pages/ontology/components/object-filter-popover.d.ts +9 -0
- package/dist/pages/ontology/components/object-filter-popover.d.ts.map +1 -0
- package/dist/pages/ontology/components/object-icon.d.ts +7 -0
- package/dist/pages/ontology/components/object-icon.d.ts.map +1 -0
- package/dist/pages/ontology/components/object-query-bar.d.ts +21 -0
- package/dist/pages/ontology/components/object-query-bar.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-chart.d.ts +18 -0
- package/dist/pages/ontology/components/telemetry-chart.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-grid.d.ts +19 -0
- package/dist/pages/ontology/components/telemetry-grid.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-tile.d.ts +18 -0
- package/dist/pages/ontology/components/telemetry-tile.d.ts.map +1 -0
- package/dist/pages/ontology/components/telemetry-value.d.ts +10 -0
- package/dist/pages/ontology/components/telemetry-value.d.ts.map +1 -0
- package/dist/pages/ontology/components/usage-bar.d.ts +12 -0
- package/dist/pages/ontology/components/usage-bar.d.ts.map +1 -0
- package/dist/pages/ontology/graph.d.ts +6 -0
- package/dist/pages/ontology/graph.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/object-live-updates.d.ts +5 -0
- package/dist/pages/ontology/hooks/object-live-updates.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts +8 -0
- package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/object-type-counts.d.ts +5 -0
- package/dist/pages/ontology/hooks/object-type-counts.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/rule-live-updates.d.ts +9 -0
- package/dist/pages/ontology/hooks/rule-live-updates.d.ts.map +1 -0
- package/dist/pages/ontology/hooks/workflow-live-updates.d.ts +6 -0
- package/dist/pages/ontology/hooks/workflow-live-updates.d.ts.map +1 -0
- package/dist/pages/ontology/lib/action-params.d.ts +55 -0
- package/dist/pages/ontology/lib/action-params.d.ts.map +1 -0
- package/dist/pages/ontology/lib/format-value.d.ts +3 -0
- package/dist/pages/ontology/lib/format-value.d.ts.map +1 -0
- package/dist/pages/ontology/lib/labels.d.ts +3 -0
- package/dist/pages/ontology/lib/labels.d.ts.map +1 -0
- package/dist/pages/ontology/lib/live-update-keys.d.ts +15 -0
- package/dist/pages/ontology/lib/live-update-keys.d.ts.map +1 -0
- package/dist/pages/ontology/lib/object-query.d.ts +72 -0
- package/dist/pages/ontology/lib/object-query.d.ts.map +1 -0
- package/dist/pages/ontology/lib/ontology-graph-layout.d.ts +68 -0
- package/dist/pages/ontology/lib/ontology-graph-layout.d.ts.map +1 -0
- package/dist/pages/ontology/lib/ontology-graph-links.d.ts +4 -0
- package/dist/pages/ontology/lib/ontology-graph-links.d.ts.map +1 -0
- package/dist/pages/ontology/lib/telemetry-history.d.ts +10 -0
- package/dist/pages/ontology/lib/telemetry-history.d.ts.map +1 -0
- package/dist/pages/ontology/lib/time.d.ts +3 -0
- package/dist/pages/ontology/lib/time.d.ts.map +1 -0
- package/dist/pages/ontology/lib/user-preferences.d.ts +8 -0
- package/dist/pages/ontology/lib/user-preferences.d.ts.map +1 -0
- package/dist/pages/ontology/object-page.d.ts +7 -0
- package/dist/pages/ontology/object-page.d.ts.map +1 -0
- package/dist/pages/ontology/object-type.d.ts +3 -0
- package/dist/pages/ontology/object-type.d.ts.map +1 -0
- package/dist/pages/ontology/object-types.d.ts +7 -0
- package/dist/pages/ontology/object-types.d.ts.map +1 -0
- package/dist/pages/ontology/objects.d.ts +6 -0
- package/dist/pages/ontology/objects.d.ts.map +1 -0
- package/dist/pages/ontology/rules.d.ts +32 -0
- package/dist/pages/ontology/rules.d.ts.map +1 -0
- package/dist/pages/ontology/workflow.d.ts +6 -0
- package/dist/pages/ontology/workflow.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/agent-execution-panel.d.ts +17 -0
- package/dist/pages/ontology/workflows/agent-execution-panel.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/intervention-panel.d.ts +5 -0
- package/dist/pages/ontology/workflows/intervention-panel.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/node-execution-panel.d.ts +11 -0
- package/dist/pages/ontology/workflows/node-execution-panel.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/request-run-dialog.d.ts +5 -0
- package/dist/pages/ontology/workflows/request-run-dialog.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/run-debug-section.d.ts +11 -0
- package/dist/pages/ontology/workflows/run-debug-section.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/run-input-form.d.ts +18 -0
- package/dist/pages/ontology/workflows/run-input-form.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/run-progress.d.ts +15 -0
- package/dist/pages/ontology/workflows/run-progress.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/schema-shape.d.ts +10 -0
- package/dist/pages/ontology/workflows/schema-shape.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/status-badge.d.ts +5 -0
- package/dist/pages/ontology/workflows/status-badge.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/utils.d.ts +29 -0
- package/dist/pages/ontology/workflows/utils.d.ts.map +1 -0
- package/dist/pages/ontology/workflows/workflow-card.d.ts +5 -0
- package/dist/pages/ontology/workflows/workflow-card.d.ts.map +1 -0
- package/dist/pages/ontology/workflows.d.ts +3 -0
- package/dist/pages/ontology/workflows.d.ts.map +1 -0
- package/dist/pages/routes.d.ts +26 -0
- package/dist/pages/routes.d.ts.map +1 -0
- package/dist/pages/section-page.d.ts +91 -0
- package/dist/pages/section-page.d.ts.map +1 -0
- package/dist/pages/section-ui.d.ts +212 -0
- package/dist/pages/section-ui.d.ts.map +1 -0
- package/dist/pages/settings/controls.d.ts +94 -0
- package/dist/pages/settings/controls.d.ts.map +1 -0
- package/dist/pages/settings/developers.d.ts +3 -0
- package/dist/pages/settings/developers.d.ts.map +1 -0
- package/dist/pages/settings/members.d.ts +3 -0
- package/dist/pages/settings/members.d.ts.map +1 -0
- package/dist/pages/settings/messages.d.ts +538 -0
- package/dist/pages/settings/messages.d.ts.map +1 -0
- package/dist/pages/settings/personal.d.ts +6 -0
- package/dist/pages/settings/personal.d.ts.map +1 -0
- package/dist/pages/settings/service-accounts.d.ts +3 -0
- package/dist/pages/settings/service-accounts.d.ts.map +1 -0
- package/dist/pages/settings/sessions.d.ts +3 -0
- package/dist/pages/settings/sessions.d.ts.map +1 -0
- package/dist/pages/values.d.ts +77 -0
- package/dist/pages/values.d.ts.map +1 -0
- package/dist/pages.d.ts +45 -0
- package/dist/pages.d.ts.map +1 -0
- package/dist/pages.js +26029 -0
- package/dist/pages.js.map +98 -0
- package/dist/runtime.d.ts +0 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/sections/catalog.d.ts +37 -0
- package/dist/sections/catalog.d.ts.map +1 -0
- package/dist/sections/counts.d.ts +7 -0
- package/dist/sections/counts.d.ts.map +1 -0
- package/dist/sections/sections.d.ts +67 -0
- package/dist/sections/sections.d.ts.map +1 -0
- package/dist/server.d.ts +8 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +3036 -0
- package/dist/server.js.map +19 -0
- package/dist/session.d.ts +18 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/shell/agent-dock.d.ts +7 -0
- package/dist/shell/agent-dock.d.ts.map +1 -0
- package/dist/shell/app-shell.d.ts +42 -0
- package/dist/shell/app-shell.d.ts.map +1 -0
- package/dist/shell/brand.d.ts +15 -0
- package/dist/shell/brand.d.ts.map +1 -0
- package/dist/shell/nav-items.d.ts +34 -0
- package/dist/shell/nav-items.d.ts.map +1 -0
- package/dist/shell/search-command.d.ts +12 -0
- package/dist/shell/search-command.d.ts.map +1 -0
- package/dist/shell/section-nav.d.ts +13 -0
- package/dist/shell/section-nav.d.ts.map +1 -0
- package/dist/shell/user-menu.d.ts +25 -0
- package/dist/shell/user-menu.d.ts.map +1 -0
- package/dist/tailwind.d.ts +4 -4
- package/dist/tailwind.d.ts.map +1 -1
- package/package.json +22 -21
- package/src/agent/activity-label.ts +70 -0
- package/src/agent/agent-chat.tsx +248 -0
- package/src/agent/agent-context-provider.tsx +92 -0
- package/src/agent/agent-execution-trace.tsx +316 -0
- package/src/agent/agent-panel.tsx +74 -0
- package/src/agent/agent-surface-state.ts +113 -0
- package/src/agent/agent-surface.tsx +363 -0
- package/src/agent/agent.css +231 -0
- package/src/agent/agents-page.ts +7 -0
- package/src/agent/artifact-card.tsx +190 -0
- package/src/agent/artifact-panel-state.ts +38 -0
- package/src/agent/artifact-panel.tsx +320 -0
- package/src/agent/bash/bash-tool-view.tsx +288 -0
- package/src/agent/bash/data.ts +137 -0
- package/src/agent/bash/interpret.ts +769 -0
- package/src/agent/bash/renderers.tsx +503 -0
- package/src/agent/bash/shell.ts +195 -0
- package/src/agent/components/activity-status.tsx +86 -0
- package/src/agent/components/agent-thread-switcher.tsx +346 -0
- package/src/agent/components/composer.tsx +870 -0
- package/src/agent/components/context-chips.tsx +63 -0
- package/src/agent/components/context-picker.tsx +88 -0
- package/src/agent/components/conversation-panel.tsx +352 -0
- package/src/agent/components/file-attachment-card.tsx +136 -0
- package/src/agent/components/message-parts.tsx +305 -0
- package/src/agent/components/message-view.tsx +422 -0
- package/src/agent/components/model-controls.tsx +204 -0
- package/src/agent/components/model-picker-row.tsx +136 -0
- package/src/agent/components/provider-logo.tsx +31 -0
- package/src/agent/components/provider-logos.ts +24 -0
- package/src/agent/components/reasoning-effort-slider.tsx +121 -0
- package/src/agent/components/sandbox-recovery.tsx +49 -0
- package/src/agent/components/thread-artifacts-menu.tsx +77 -0
- package/src/agent/components/transcript.tsx +239 -0
- package/src/agent/components/web-fetch-tool-view.tsx +69 -0
- package/src/agent/components/web-search-tool-view.tsx +37 -0
- package/src/agent/components/web-sources.tsx +159 -0
- package/src/agent/format.ts +60 -0
- package/src/agent/hooks/use-agent-conversation.ts +536 -0
- package/src/agent/hooks/use-thread-stream.ts +121 -0
- package/src/agent/i18n/en.ts +500 -0
- package/src/agent/i18n/fr.ts +530 -0
- package/src/agent/i18n/index.ts +14 -0
- package/src/agent/live-run.ts +257 -0
- package/src/agent/model-selection.ts +88 -0
- package/src/agent/object-context-title.ts +57 -0
- package/src/agent/parts.ts +119 -0
- package/src/agent/publish-artifact/interpret.ts +110 -0
- package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +62 -0
- package/src/agent/publish-artifact/use-live-publishes.ts +45 -0
- package/src/agent/react-router.tsx +103 -0
- package/src/agent/read/interpret.ts +101 -0
- package/src/agent/read/read-tool-view.tsx +92 -0
- package/src/agent/requester-settings.ts +55 -0
- package/src/agent/run-presentation.ts +211 -0
- package/src/agent/thread-navigation.ts +11 -0
- package/src/agent/types.ts +37 -0
- package/src/agent/utils/context-display.ts +72 -0
- package/src/agent/utils/context-mention.ts +28 -0
- package/src/agent/utils/web-fetch.ts +20 -0
- package/src/agent/utils/web-search.ts +106 -0
- package/src/agent/view-file/interpret.ts +22 -0
- package/src/agent/view-file/view-file-tool-view.tsx +123 -0
- package/src/artifacts/artifact-page.tsx +61 -0
- package/src/artifacts/artifacts.css +172 -0
- package/src/artifacts/card-details.ts +92 -0
- package/src/artifacts/card-preview.tsx +612 -0
- package/src/artifacts/copy-feedback.ts +25 -0
- package/src/artifacts/file-size.ts +24 -0
- package/src/artifacts/file-source.ts +109 -0
- package/src/artifacts/file-view.ts +57 -0
- package/src/artifacts/frame.tsx +288 -0
- package/src/artifacts/gallery.tsx +405 -0
- package/src/artifacts/kind-icon.tsx +23 -0
- package/src/artifacts/markdown-tree.ts +32 -0
- package/src/artifacts/messages.ts +317 -0
- package/src/artifacts/queries.ts +85 -0
- package/src/artifacts/references/embed-tree.ts +86 -0
- package/src/artifacts/references/references.tsx +739 -0
- package/src/artifacts/renderers/document-tree.ts +157 -0
- package/src/artifacts/renderers/document.tsx +334 -0
- package/src/artifacts/renderers/file.tsx +160 -0
- package/src/artifacts/renderers/notice.tsx +38 -0
- package/src/artifacts/renderers/sheet/chart-data.ts +73 -0
- package/src/artifacts/renderers/sheet/chart.tsx +288 -0
- package/src/artifacts/renderers/sheet/format.ts +142 -0
- package/src/artifacts/renderers/sheet/grid.tsx +709 -0
- package/src/artifacts/renderers/sheet/mini-chart.tsx +241 -0
- package/src/artifacts/renderers/sheet/model.ts +136 -0
- package/src/artifacts/renderers/sheet/selection.ts +152 -0
- package/src/artifacts/renderers/sheet/sheet.tsx +471 -0
- package/src/artifacts/renderers/sheet/virtual.ts +49 -0
- package/src/artifacts/renderers/sheet/workbook.ts +57 -0
- package/src/artifacts/renderers/slides/navigation.ts +38 -0
- package/src/artifacts/renderers/slides/slides.tsx +441 -0
- package/src/artifacts/target.ts +76 -0
- package/src/artifacts/theme.ts +29 -0
- package/src/artifacts/viewer.tsx +476 -0
- package/src/build.ts +13 -2
- package/src/codegen.ts +98 -80
- package/src/createCustomApp.ts +175 -67
- package/src/index.ts +47 -16
- package/src/locale-messages.ts +128 -12
- package/src/locale.ts +1 -2
- package/src/metadata.ts +35 -1
- package/src/pages/canvas.css +43 -0
- package/src/pages/data/connectors.tsx +317 -0
- package/src/pages/data/datasets.tsx +731 -0
- package/src/pages/data/live-updates.ts +71 -0
- package/src/pages/data/messages.ts +349 -0
- package/src/pages/data/pipeline-canvas.tsx +288 -0
- package/src/pages/data/pipelines.tsx +710 -0
- package/src/pages/data/projections.tsx +482 -0
- package/src/pages/data/schema.tsx +62 -0
- package/src/pages/data/shared.tsx +78 -0
- package/src/pages/data/sync-button.tsx +103 -0
- package/src/pages/data/syncs.tsx +326 -0
- package/src/pages/home.tsx +64 -0
- package/src/pages/mosaic.tsx +97 -0
- package/src/pages/observability/action-run.tsx +229 -0
- package/src/pages/observability/activity/calendar.tsx +239 -0
- package/src/pages/observability/activity/connections.tsx +144 -0
- package/src/pages/observability/activity/format.ts +49 -0
- package/src/pages/observability/activity/messages.ts +255 -0
- package/src/pages/observability/activity/meta-items.tsx +23 -0
- package/src/pages/observability/activity/page.tsx +605 -0
- package/src/pages/observability/activity/period.ts +63 -0
- package/src/pages/observability/activity/steps.ts +102 -0
- package/src/pages/observability/activity/timeline.tsx +411 -0
- package/src/pages/observability/activity/users.tsx +133 -0
- package/src/pages/observability/ai-usage/calls.tsx +541 -0
- package/src/pages/observability/ai-usage/charts.tsx +126 -0
- package/src/pages/observability/ai-usage/format.ts +276 -0
- package/src/pages/observability/ai-usage/limits.tsx +629 -0
- package/src/pages/observability/ai-usage/messages.ts +446 -0
- package/src/pages/observability/ai-usage/page.tsx +814 -0
- package/src/pages/observability/live-updates.ts +19 -0
- package/src/pages/observability/logs.tsx +617 -0
- package/src/pages/observability/messages.ts +336 -0
- package/src/pages/observability/runs.tsx +732 -0
- package/src/pages/observability/workflow-run.tsx +323 -0
- package/src/pages/ontology/actions.tsx +749 -0
- package/src/pages/ontology/components/action-button.tsx +355 -0
- package/src/pages/ontology/components/action-param-null-control.tsx +35 -0
- package/src/pages/ontology/components/collection-toolbar.tsx +61 -0
- package/src/pages/ontology/components/common.tsx +60 -0
- package/src/pages/ontology/components/file-ref-upload-field.tsx +279 -0
- package/src/pages/ontology/components/object-filter-popover.tsx +311 -0
- package/src/pages/ontology/components/object-icon.tsx +133 -0
- package/src/pages/ontology/components/object-query-bar.tsx +217 -0
- package/src/pages/ontology/components/telemetry-chart.tsx +392 -0
- package/src/pages/ontology/components/telemetry-grid.tsx +137 -0
- package/src/pages/ontology/components/telemetry-tile.tsx +164 -0
- package/src/pages/ontology/components/telemetry-value.tsx +91 -0
- package/src/pages/ontology/components/usage-bar.tsx +64 -0
- package/src/pages/ontology/graph.tsx +1283 -0
- package/src/pages/ontology/hooks/object-live-updates.ts +53 -0
- package/src/pages/ontology/hooks/object-telemetry-updates.ts +45 -0
- package/src/pages/ontology/hooks/object-type-counts.ts +27 -0
- package/src/pages/ontology/hooks/rule-live-updates.ts +28 -0
- package/src/pages/ontology/hooks/workflow-live-updates.ts +20 -0
- package/src/pages/ontology/lib/action-params.ts +231 -0
- package/src/pages/ontology/lib/format-value.ts +34 -0
- package/src/pages/ontology/lib/labels.ts +50 -0
- package/src/pages/ontology/lib/live-update-keys.ts +62 -0
- package/src/pages/ontology/lib/object-query.ts +372 -0
- package/src/pages/ontology/lib/ontology-graph-layout.ts +1004 -0
- package/src/pages/ontology/lib/ontology-graph-links.ts +15 -0
- package/src/pages/ontology/lib/telemetry-history.ts +56 -0
- package/src/pages/ontology/lib/time.ts +23 -0
- package/src/pages/ontology/lib/user-preferences.ts +52 -0
- package/src/pages/ontology/object-page.tsx +1029 -0
- package/src/pages/ontology/object-type.tsx +910 -0
- package/src/pages/ontology/object-types.tsx +240 -0
- package/src/pages/ontology/objects.tsx +938 -0
- package/src/pages/ontology/rules.tsx +805 -0
- package/src/pages/ontology/workflow.tsx +1485 -0
- package/src/pages/ontology/workflows/agent-execution-panel.tsx +340 -0
- package/src/pages/ontology/workflows/intervention-panel.tsx +261 -0
- package/src/pages/ontology/workflows/node-execution-panel.tsx +86 -0
- package/src/pages/ontology/workflows/request-run-dialog.tsx +197 -0
- package/src/pages/ontology/workflows/run-debug-section.tsx +54 -0
- package/src/pages/ontology/workflows/run-input-form.tsx +900 -0
- package/src/pages/ontology/workflows/run-progress.tsx +83 -0
- package/src/pages/ontology/workflows/schema-shape.tsx +206 -0
- package/src/pages/ontology/workflows/status-badge.tsx +15 -0
- package/src/pages/ontology/workflows/utils.ts +107 -0
- package/src/pages/ontology/workflows/workflow-card.tsx +48 -0
- package/src/pages/ontology/workflows.tsx +143 -0
- package/src/pages/routes.ts +63 -0
- package/src/pages/section-page.tsx +272 -0
- package/src/pages/section-ui.tsx +773 -0
- package/src/pages/settings/controls.tsx +721 -0
- package/src/pages/settings/developers.tsx +163 -0
- package/src/pages/settings/members.tsx +1018 -0
- package/src/pages/settings/messages.ts +551 -0
- package/src/pages/settings/personal.tsx +97 -0
- package/src/pages/settings/service-accounts.tsx +623 -0
- package/src/pages/settings/sessions.tsx +183 -0
- package/src/pages/values.tsx +700 -0
- package/src/pages.ts +59 -0
- package/src/runtime.ts +0 -3
- package/src/sections/catalog.ts +182 -0
- package/src/sections/counts.ts +33 -0
- package/src/sections/sections.tsx +259 -0
- package/src/server.ts +19 -0
- package/src/session.ts +29 -0
- package/src/shell/agent-dock.tsx +32 -0
- package/src/shell/app-shell.tsx +142 -0
- package/src/shell/brand.tsx +47 -0
- package/src/shell/nav-items.tsx +136 -0
- package/src/shell/search-command.tsx +160 -0
- package/src/shell/section-nav.tsx +61 -0
- package/src/shell/user-menu.tsx +206 -0
- package/src/tailwind.ts +4 -4
- package/dist/agents.d.ts +0 -11
- package/dist/agents.d.ts.map +0 -1
- package/dist/agents.js +0 -41
- package/dist/agents.js.map +0 -10
- package/dist/auth.js +0 -3
- package/dist/auth.js.map +0 -9
- package/dist/browser.d.ts +0 -3
- package/dist/browser.d.ts.map +0 -1
- package/dist/browser.js +0 -9
- package/dist/browser.js.map +0 -9
- package/dist/chunk-cftmy40z.js +0 -70
- package/dist/chunk-cftmy40z.js.map +0 -10
- package/dist/chunk-e1gj8c1a.js +0 -8
- package/dist/chunk-e1gj8c1a.js.map +0 -10
- package/src/agents.ts +0 -48
- package/src/browser.ts +0 -2
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getDatasetOptions,
|
|
3
|
+
getPipelineOptions,
|
|
4
|
+
getPipelineQueryKey,
|
|
5
|
+
getPipelineRunOptions,
|
|
6
|
+
listDatasetRowsOptions,
|
|
7
|
+
listPipelineRunsOptions,
|
|
8
|
+
listPipelineRunsQueryKey,
|
|
9
|
+
listPipelinesOptions,
|
|
10
|
+
listPipelinesQueryKey,
|
|
11
|
+
requestPipelineRunMutation,
|
|
12
|
+
} from "@sixb/client/hooks"
|
|
13
|
+
import { Button, DataTable } from "@sixb/ui/components"
|
|
14
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
15
|
+
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"
|
|
16
|
+
import {
|
|
17
|
+
ArrowUpRight,
|
|
18
|
+
ChevronLeft,
|
|
19
|
+
ChevronRight,
|
|
20
|
+
Database,
|
|
21
|
+
History,
|
|
22
|
+
Loader2,
|
|
23
|
+
Play,
|
|
24
|
+
Workflow,
|
|
25
|
+
X,
|
|
26
|
+
} from "lucide-react"
|
|
27
|
+
import { lazy, type ReactNode, Suspense, useMemo, useState } from "react"
|
|
28
|
+
import { Link, useParams, useSearchParams } from "react-router-dom"
|
|
29
|
+
import {
|
|
30
|
+
DetailFallback,
|
|
31
|
+
notify,
|
|
32
|
+
SectionPage,
|
|
33
|
+
SectionWorkspace,
|
|
34
|
+
WorkspaceHeader,
|
|
35
|
+
} from "../section-page"
|
|
36
|
+
import {
|
|
37
|
+
apiErrorMessage,
|
|
38
|
+
FailureSummary,
|
|
39
|
+
formatDuration,
|
|
40
|
+
humanize,
|
|
41
|
+
IconTile,
|
|
42
|
+
isUnrecorded,
|
|
43
|
+
MetaDot,
|
|
44
|
+
Panel,
|
|
45
|
+
PanelEmpty,
|
|
46
|
+
PanelRow,
|
|
47
|
+
PanelSkeleton,
|
|
48
|
+
Pill,
|
|
49
|
+
RunStatusPill,
|
|
50
|
+
UnrecordedHistory,
|
|
51
|
+
useFormat,
|
|
52
|
+
useLoadFailure,
|
|
53
|
+
useNumbers,
|
|
54
|
+
useRunStatusLabels,
|
|
55
|
+
} from "../section-ui"
|
|
56
|
+
import { datasetGridColumns } from "./datasets"
|
|
57
|
+
import { useDatasetLiveUpdates, usePipelineLiveUpdates } from "./live-updates"
|
|
58
|
+
import { useDataMessages } from "./messages"
|
|
59
|
+
import { ScheduleMeta } from "./shared"
|
|
60
|
+
|
|
61
|
+
/** Data › Pipelines: what turns datasets into new ones, and how each last ran. */
|
|
62
|
+
export function DataPipelinesPage() {
|
|
63
|
+
const messages = useDataMessages()
|
|
64
|
+
const format = useFormat()
|
|
65
|
+
usePipelineLiveUpdates()
|
|
66
|
+
const pipelinesQuery = useQuery({ ...listPipelinesOptions(), retry: false })
|
|
67
|
+
const pipelines = pipelinesQuery.data ?? []
|
|
68
|
+
|
|
69
|
+
return (
|
|
70
|
+
<SectionPage
|
|
71
|
+
section="data"
|
|
72
|
+
page="pipelines"
|
|
73
|
+
title={messages.pipelines.title}
|
|
74
|
+
description={messages.pipelines.description}
|
|
75
|
+
>
|
|
76
|
+
<Panel>
|
|
77
|
+
{pipelinesQuery.isPending ? (
|
|
78
|
+
<PanelSkeleton rows={3} />
|
|
79
|
+
) : pipelinesQuery.isError ? (
|
|
80
|
+
<PanelEmpty
|
|
81
|
+
tone="error"
|
|
82
|
+
icon={Workflow}
|
|
83
|
+
title={messages.pipelines.title}
|
|
84
|
+
description={apiErrorMessage(pipelinesQuery.error, messages.common.loadFailed)}
|
|
85
|
+
/>
|
|
86
|
+
) : pipelines.length === 0 ? (
|
|
87
|
+
<PanelEmpty
|
|
88
|
+
icon={Workflow}
|
|
89
|
+
title={messages.pipelines.emptyTitle}
|
|
90
|
+
description={messages.pipelines.emptyDescription}
|
|
91
|
+
/>
|
|
92
|
+
) : (
|
|
93
|
+
pipelines.map((pipeline) => {
|
|
94
|
+
const steps = pipeline.graph.nodes
|
|
95
|
+
const output = steps.at(-1)?.step.output.id
|
|
96
|
+
return (
|
|
97
|
+
<PanelRow
|
|
98
|
+
key={pipeline.id}
|
|
99
|
+
href={`/data/pipelines/${encodeURIComponent(pipeline.id)}`}
|
|
100
|
+
leading={<IconTile icon={Workflow} />}
|
|
101
|
+
title={<span className="truncate">{humanize(pipeline.id)}</span>}
|
|
102
|
+
meta={
|
|
103
|
+
<>
|
|
104
|
+
<span>{messages.pipelines.stepCount(steps.length)}</span>
|
|
105
|
+
{output ? (
|
|
106
|
+
<>
|
|
107
|
+
<MetaDot />
|
|
108
|
+
<span className="truncate">{messages.common.writes(output)}</span>
|
|
109
|
+
</>
|
|
110
|
+
) : null}
|
|
111
|
+
{pipeline.triggers.map((trigger) => (
|
|
112
|
+
<ScheduleMeta key={trigger.scheduleId} id={trigger.scheduleId} />
|
|
113
|
+
))}
|
|
114
|
+
{pipeline.latestRun ? (
|
|
115
|
+
<>
|
|
116
|
+
<MetaDot />
|
|
117
|
+
<span>
|
|
118
|
+
{format.relative(
|
|
119
|
+
pipeline.latestRun.startedAt ?? pipeline.latestRun.queuedAt
|
|
120
|
+
)}
|
|
121
|
+
</span>
|
|
122
|
+
</>
|
|
123
|
+
) : null}
|
|
124
|
+
</>
|
|
125
|
+
}
|
|
126
|
+
trailing={
|
|
127
|
+
<>
|
|
128
|
+
{pipeline.latestRun ? (
|
|
129
|
+
<RunStatusPill status={pipeline.latestRun.status} />
|
|
130
|
+
) : (
|
|
131
|
+
<Pill tone="muted">{messages.common.neverRun}</Pill>
|
|
132
|
+
)}
|
|
133
|
+
<ChevronRight className="size-4 text-muted-foreground/60" />
|
|
134
|
+
</>
|
|
135
|
+
}
|
|
136
|
+
/>
|
|
137
|
+
)
|
|
138
|
+
})
|
|
139
|
+
)}
|
|
140
|
+
</Panel>
|
|
141
|
+
</SectionPage>
|
|
142
|
+
)
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const PipelineCanvas = lazy(() => import("./pipeline-canvas"))
|
|
146
|
+
|
|
147
|
+
const previewRows = 50
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* One pipeline as a canvas: its datasets and steps from left to right. A dataset opens its rows
|
|
151
|
+
* below the canvas; Runs opens the run history beside it, and a run's step results colour the
|
|
152
|
+
* steps.
|
|
153
|
+
*/
|
|
154
|
+
export function DataPipelinePage() {
|
|
155
|
+
const pipelineId = useParams().pipelineId ?? ""
|
|
156
|
+
// The open dataset and the runs panel belong to one pipeline; another starts closed.
|
|
157
|
+
return <PipelineDetail key={pipelineId} pipelineId={pipelineId} />
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
function PipelineDetail({ pipelineId }: { readonly pipelineId: string }) {
|
|
161
|
+
const statusLabels = useRunStatusLabels()
|
|
162
|
+
const messages = useDataMessages()
|
|
163
|
+
const queryClient = useQueryClient()
|
|
164
|
+
const [searchParams, setSearchParams] = useSearchParams()
|
|
165
|
+
const selectedRunParam = searchParams.get("run")
|
|
166
|
+
const [runsOpen, setRunsOpen] = useState(selectedRunParam !== null)
|
|
167
|
+
const [datasetId, setDatasetId] = useState<string | null>(null)
|
|
168
|
+
usePipelineLiveUpdates({ pipelineId })
|
|
169
|
+
|
|
170
|
+
const pipelineQuery = useQuery({
|
|
171
|
+
...getPipelineOptions({ path: { pipelineId } }),
|
|
172
|
+
retry: false,
|
|
173
|
+
})
|
|
174
|
+
const pipeline = pipelineQuery.data
|
|
175
|
+
const latestRun = pipeline?.latestRun ?? null
|
|
176
|
+
// The canvas shows the run picked in the panel, or the latest.
|
|
177
|
+
const shownRunId = selectedRunParam ?? latestRun?.id
|
|
178
|
+
const runQuery = useQuery({
|
|
179
|
+
...getPipelineRunOptions({ path: { runId: shownRunId ?? "" } }),
|
|
180
|
+
enabled: Boolean(shownRunId),
|
|
181
|
+
retry: false,
|
|
182
|
+
})
|
|
183
|
+
const stepStatus = useMemo(
|
|
184
|
+
() => new Map((runQuery.data?.steps ?? []).map((step) => [step.stepId, step.status])),
|
|
185
|
+
[runQuery.data]
|
|
186
|
+
)
|
|
187
|
+
|
|
188
|
+
const selectRun = (runId: string | null) =>
|
|
189
|
+
setSearchParams(
|
|
190
|
+
(params) => {
|
|
191
|
+
if (runId) params.set("run", runId)
|
|
192
|
+
else params.delete("run")
|
|
193
|
+
return params
|
|
194
|
+
},
|
|
195
|
+
{ replace: true }
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
const request = useMutation({
|
|
199
|
+
...requestPipelineRunMutation(),
|
|
200
|
+
onSuccess: async (data) => {
|
|
201
|
+
notify.success(messages.pipelines.started)
|
|
202
|
+
setRunsOpen(true)
|
|
203
|
+
selectRun(data.runId)
|
|
204
|
+
await Promise.all([
|
|
205
|
+
queryClient.invalidateQueries({ queryKey: getPipelineQueryKey({ path: { pipelineId } }) }),
|
|
206
|
+
queryClient.invalidateQueries({ queryKey: listPipelinesQueryKey() }),
|
|
207
|
+
queryClient.invalidateQueries({ queryKey: listPipelineRunsQueryKey() }),
|
|
208
|
+
])
|
|
209
|
+
},
|
|
210
|
+
onError: (error) => notify.error(apiErrorMessage(error, messages.pipelines.requestFailed)),
|
|
211
|
+
})
|
|
212
|
+
|
|
213
|
+
const back = { href: "/data/pipelines", label: messages.pipelines.title }
|
|
214
|
+
|
|
215
|
+
if (!pipeline) {
|
|
216
|
+
return (
|
|
217
|
+
<DetailFallback
|
|
218
|
+
section="data"
|
|
219
|
+
page="pipelines"
|
|
220
|
+
back={back}
|
|
221
|
+
name={humanize(pipelineId)}
|
|
222
|
+
id={pipelineId}
|
|
223
|
+
icon={Workflow}
|
|
224
|
+
error={pipelineQuery.error}
|
|
225
|
+
/>
|
|
226
|
+
)
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
const running = latestRun?.status === "queued" || latestRun?.status === "running"
|
|
230
|
+
|
|
231
|
+
return (
|
|
232
|
+
<SectionWorkspace section="data" page="pipelines">
|
|
233
|
+
<WorkspaceHeader
|
|
234
|
+
back={back}
|
|
235
|
+
icon={<IconTile icon={Workflow} />}
|
|
236
|
+
title={humanize(pipeline.id)}
|
|
237
|
+
meta={
|
|
238
|
+
<>
|
|
239
|
+
{latestRun ? (
|
|
240
|
+
<RunStatusPill status={latestRun.status} />
|
|
241
|
+
) : (
|
|
242
|
+
<Pill tone="muted">{messages.common.neverRun}</Pill>
|
|
243
|
+
)}
|
|
244
|
+
<span>{messages.pipelines.stepCount(pipeline.graph.nodes.length)}</span>
|
|
245
|
+
{pipeline.triggers.map((trigger) => (
|
|
246
|
+
<ScheduleMeta key={trigger.scheduleId} id={trigger.scheduleId} />
|
|
247
|
+
))}
|
|
248
|
+
</>
|
|
249
|
+
}
|
|
250
|
+
actions={
|
|
251
|
+
<>
|
|
252
|
+
<Button
|
|
253
|
+
type="button"
|
|
254
|
+
variant={runsOpen ? "secondary" : "ghost"}
|
|
255
|
+
size="sm"
|
|
256
|
+
aria-expanded={runsOpen}
|
|
257
|
+
onClick={() => {
|
|
258
|
+
// Closing the panel goes back to the latest run, as its close button does.
|
|
259
|
+
if (runsOpen) selectRun(null)
|
|
260
|
+
setRunsOpen(!runsOpen)
|
|
261
|
+
}}
|
|
262
|
+
>
|
|
263
|
+
<History />
|
|
264
|
+
<span className="hidden sm:inline">{messages.common.runs}</span>
|
|
265
|
+
</Button>
|
|
266
|
+
<Button
|
|
267
|
+
type="button"
|
|
268
|
+
size="sm"
|
|
269
|
+
disabled={request.isPending || running}
|
|
270
|
+
onClick={() => request.mutate({ path: { pipelineId } })}
|
|
271
|
+
>
|
|
272
|
+
{request.isPending || running ? <Loader2 className="animate-spin" /> : <Play />}
|
|
273
|
+
{request.isPending
|
|
274
|
+
? messages.pipelines.starting
|
|
275
|
+
: running
|
|
276
|
+
? statusLabels.running
|
|
277
|
+
: messages.pipelines.runNow}
|
|
278
|
+
</Button>
|
|
279
|
+
</>
|
|
280
|
+
}
|
|
281
|
+
/>
|
|
282
|
+
|
|
283
|
+
<div className="flex min-h-0 flex-1">
|
|
284
|
+
<div className="flex min-w-0 flex-1 flex-col">
|
|
285
|
+
<div className="relative min-h-0 flex-1 bg-muted/25">
|
|
286
|
+
<Suspense
|
|
287
|
+
fallback={
|
|
288
|
+
<div className="flex h-full items-center justify-center text-[0.8125rem] text-muted-foreground">
|
|
289
|
+
<Loader2 className="mr-2 size-4 animate-spin" />
|
|
290
|
+
{messages.pipelines.canvasLoading}
|
|
291
|
+
</div>
|
|
292
|
+
}
|
|
293
|
+
>
|
|
294
|
+
<PipelineCanvas
|
|
295
|
+
pipeline={pipeline}
|
|
296
|
+
stepStatus={stepStatus}
|
|
297
|
+
selectedDatasetId={datasetId}
|
|
298
|
+
onSelectDataset={setDatasetId}
|
|
299
|
+
/>
|
|
300
|
+
</Suspense>
|
|
301
|
+
{datasetId === null ? (
|
|
302
|
+
<p className="pointer-events-none absolute bottom-4 left-1/2 hidden -translate-x-1/2 rounded-md bg-background/80 px-2 py-1 text-xs text-muted-foreground backdrop-blur-sm sm:block">
|
|
303
|
+
{messages.pipelines.canvasHint}
|
|
304
|
+
</p>
|
|
305
|
+
) : null}
|
|
306
|
+
</div>
|
|
307
|
+
<DatasetDrawer datasetId={datasetId} onClose={() => setDatasetId(null)} />
|
|
308
|
+
</div>
|
|
309
|
+
|
|
310
|
+
<aside
|
|
311
|
+
aria-hidden={!runsOpen}
|
|
312
|
+
className={cn(
|
|
313
|
+
"h-full shrink-0 overflow-hidden border-border bg-card transition-[width] duration-300 ease-out",
|
|
314
|
+
runsOpen ? "w-[22rem] max-w-[calc(100vw-1rem)] border-l" : "w-0"
|
|
315
|
+
)}
|
|
316
|
+
>
|
|
317
|
+
<div className="flex h-full w-[22rem] max-w-[calc(100vw-1rem)] flex-col">
|
|
318
|
+
{runsOpen ? (
|
|
319
|
+
selectedRunParam ? (
|
|
320
|
+
<RunPanel
|
|
321
|
+
runId={selectedRunParam}
|
|
322
|
+
onBack={() => selectRun(null)}
|
|
323
|
+
onClose={() => {
|
|
324
|
+
setRunsOpen(false)
|
|
325
|
+
selectRun(null)
|
|
326
|
+
}}
|
|
327
|
+
onOpenDataset={setDatasetId}
|
|
328
|
+
/>
|
|
329
|
+
) : (
|
|
330
|
+
<RunsPanel
|
|
331
|
+
pipelineId={pipelineId}
|
|
332
|
+
onSelect={selectRun}
|
|
333
|
+
onClose={() => setRunsOpen(false)}
|
|
334
|
+
/>
|
|
335
|
+
)
|
|
336
|
+
) : null}
|
|
337
|
+
</div>
|
|
338
|
+
</aside>
|
|
339
|
+
</div>
|
|
340
|
+
</SectionWorkspace>
|
|
341
|
+
)
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
function PanelBar({
|
|
345
|
+
title,
|
|
346
|
+
onBack,
|
|
347
|
+
onClose,
|
|
348
|
+
children,
|
|
349
|
+
}: {
|
|
350
|
+
readonly title: ReactNode
|
|
351
|
+
readonly onBack?: () => void
|
|
352
|
+
readonly onClose: () => void
|
|
353
|
+
readonly children?: ReactNode
|
|
354
|
+
}) {
|
|
355
|
+
const messages = useDataMessages().pipelines
|
|
356
|
+
return (
|
|
357
|
+
<div className="flex h-12 shrink-0 items-center gap-1.5 border-b border-border px-2.5">
|
|
358
|
+
{onBack ? (
|
|
359
|
+
<Button
|
|
360
|
+
type="button"
|
|
361
|
+
variant="ghost"
|
|
362
|
+
size="icon-sm"
|
|
363
|
+
onClick={onBack}
|
|
364
|
+
aria-label={messages.allRuns}
|
|
365
|
+
>
|
|
366
|
+
<ChevronLeft />
|
|
367
|
+
</Button>
|
|
368
|
+
) : null}
|
|
369
|
+
<h2 className="min-w-0 truncate pl-1 text-sm font-semibold">{title}</h2>
|
|
370
|
+
{children}
|
|
371
|
+
<Button
|
|
372
|
+
type="button"
|
|
373
|
+
variant="ghost"
|
|
374
|
+
size="icon-sm"
|
|
375
|
+
onClick={onClose}
|
|
376
|
+
aria-label={messages.close}
|
|
377
|
+
className="ml-auto"
|
|
378
|
+
>
|
|
379
|
+
<X />
|
|
380
|
+
</Button>
|
|
381
|
+
</div>
|
|
382
|
+
)
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
function RunsPanel({
|
|
386
|
+
pipelineId,
|
|
387
|
+
onSelect,
|
|
388
|
+
onClose,
|
|
389
|
+
}: {
|
|
390
|
+
readonly pipelineId: string
|
|
391
|
+
readonly onSelect: (runId: string) => void
|
|
392
|
+
readonly onClose: () => void
|
|
393
|
+
}) {
|
|
394
|
+
const messages = useDataMessages()
|
|
395
|
+
const format = useFormat()
|
|
396
|
+
const runsQuery = useQuery({
|
|
397
|
+
...listPipelineRunsOptions({ query: { pipelineId, limit: "20", order: "desc" } }),
|
|
398
|
+
retry: false,
|
|
399
|
+
})
|
|
400
|
+
|
|
401
|
+
return (
|
|
402
|
+
<>
|
|
403
|
+
<PanelBar title={messages.common.runs} onClose={onClose} />
|
|
404
|
+
<div className="min-h-0 flex-1 overflow-y-auto">
|
|
405
|
+
{runsQuery.isPending ? (
|
|
406
|
+
<PanelSkeleton rows={4} />
|
|
407
|
+
) : runsQuery.isError ? (
|
|
408
|
+
isUnrecorded(runsQuery.error) ? (
|
|
409
|
+
<UnrecordedHistory what={messages.pipelines.runWhat} />
|
|
410
|
+
) : (
|
|
411
|
+
<PanelEmpty
|
|
412
|
+
tone="error"
|
|
413
|
+
icon={History}
|
|
414
|
+
title={messages.common.runs}
|
|
415
|
+
description={apiErrorMessage(runsQuery.error, messages.common.loadFailed)}
|
|
416
|
+
/>
|
|
417
|
+
)
|
|
418
|
+
) : runsQuery.data.runs.length === 0 ? (
|
|
419
|
+
<PanelEmpty
|
|
420
|
+
icon={History}
|
|
421
|
+
title={messages.common.noRunsTitle}
|
|
422
|
+
description={messages.pipelines.runsEmpty}
|
|
423
|
+
/>
|
|
424
|
+
) : (
|
|
425
|
+
<ul className="divide-y divide-border">
|
|
426
|
+
{runsQuery.data.runs.map((run) => (
|
|
427
|
+
// The failure sits outside the row's button: its Details dialog has buttons of its
|
|
428
|
+
// own, and clicks inside it would otherwise select the run.
|
|
429
|
+
<li key={run.id} className="transition-colors hover:bg-muted/50">
|
|
430
|
+
<button
|
|
431
|
+
type="button"
|
|
432
|
+
onClick={() => onSelect(run.id)}
|
|
433
|
+
className={cn(
|
|
434
|
+
"flex w-full items-start gap-3 px-4 pt-3 text-left",
|
|
435
|
+
run.error ? "pb-1.5" : "pb-3"
|
|
436
|
+
)}
|
|
437
|
+
>
|
|
438
|
+
<span className="min-w-0 flex-1">
|
|
439
|
+
<span className="block text-[0.8125rem] font-medium">
|
|
440
|
+
{format.dateTime(run.startedAt ?? run.queuedAt)}
|
|
441
|
+
</span>
|
|
442
|
+
<span className="block text-xs text-muted-foreground tabular-nums">
|
|
443
|
+
{format.relative(run.startedAt ?? run.queuedAt)}
|
|
444
|
+
{run.finishedAt
|
|
445
|
+
? ` · ${formatDuration(run.startedAt, run.finishedAt)}`
|
|
446
|
+
: null}
|
|
447
|
+
</span>
|
|
448
|
+
</span>
|
|
449
|
+
<RunStatusPill status={run.status} />
|
|
450
|
+
</button>
|
|
451
|
+
{run.error ? (
|
|
452
|
+
<div className="px-4 pb-3">
|
|
453
|
+
<FailureSummary failure={run.error} compact />
|
|
454
|
+
</div>
|
|
455
|
+
) : null}
|
|
456
|
+
</li>
|
|
457
|
+
))}
|
|
458
|
+
</ul>
|
|
459
|
+
)}
|
|
460
|
+
</div>
|
|
461
|
+
</>
|
|
462
|
+
)
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
function RunPanel({
|
|
466
|
+
runId,
|
|
467
|
+
onBack,
|
|
468
|
+
onClose,
|
|
469
|
+
onOpenDataset,
|
|
470
|
+
}: {
|
|
471
|
+
readonly runId: string
|
|
472
|
+
readonly onBack: () => void
|
|
473
|
+
readonly onClose: () => void
|
|
474
|
+
readonly onOpenDataset: (datasetId: string) => void
|
|
475
|
+
}) {
|
|
476
|
+
const messages = useDataMessages()
|
|
477
|
+
const format = useFormat()
|
|
478
|
+
const numbers = useNumbers()
|
|
479
|
+
const runQuery = useQuery({ ...getPipelineRunOptions({ path: { runId } }), retry: false })
|
|
480
|
+
const failure = useLoadFailure(runQuery.error, { id: runId })
|
|
481
|
+
const run = runQuery.data?.run
|
|
482
|
+
const steps = runQuery.data?.steps ?? []
|
|
483
|
+
|
|
484
|
+
return (
|
|
485
|
+
<>
|
|
486
|
+
<PanelBar
|
|
487
|
+
title={run ? format.dateTime(run.startedAt ?? run.queuedAt) : messages.pipelines.run}
|
|
488
|
+
onBack={onBack}
|
|
489
|
+
onClose={onClose}
|
|
490
|
+
>
|
|
491
|
+
{run ? <RunStatusPill status={run.status} /> : null}
|
|
492
|
+
</PanelBar>
|
|
493
|
+
<div className="min-h-0 flex-1 overflow-y-auto">
|
|
494
|
+
{runQuery.isPending ? (
|
|
495
|
+
<PanelSkeleton rows={3} />
|
|
496
|
+
) : runQuery.isError || !run ? (
|
|
497
|
+
<PanelEmpty
|
|
498
|
+
tone="error"
|
|
499
|
+
icon={History}
|
|
500
|
+
title={failure.title}
|
|
501
|
+
description={failure.description}
|
|
502
|
+
/>
|
|
503
|
+
) : (
|
|
504
|
+
<div className="flex flex-col gap-5 p-4">
|
|
505
|
+
<dl className="grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-border bg-border">
|
|
506
|
+
{[
|
|
507
|
+
[messages.common.started, format.relative(run.startedAt ?? run.queuedAt)],
|
|
508
|
+
[messages.common.took, formatDuration(run.startedAt, run.finishedAt)],
|
|
509
|
+
].map(([label, value]) => (
|
|
510
|
+
<div key={label} className="bg-card px-3 py-2">
|
|
511
|
+
<dt className="text-[0.6875rem] text-muted-foreground">{label}</dt>
|
|
512
|
+
<dd className="text-[0.8125rem] font-medium tabular-nums">{value}</dd>
|
|
513
|
+
</div>
|
|
514
|
+
))}
|
|
515
|
+
</dl>
|
|
516
|
+
{run.error ? <FailureSummary failure={run.error} /> : null}
|
|
517
|
+
<section className="flex flex-col gap-2">
|
|
518
|
+
<h3 className="text-xs font-medium text-muted-foreground">
|
|
519
|
+
{messages.pipelines.stepCount(steps.length)}
|
|
520
|
+
</h3>
|
|
521
|
+
{steps.length === 0 ? (
|
|
522
|
+
<p className="text-[0.8125rem] text-muted-foreground">
|
|
523
|
+
{messages.pipelines.noStepsRecorded}
|
|
524
|
+
</p>
|
|
525
|
+
) : (
|
|
526
|
+
<ol className="flex flex-col gap-2">
|
|
527
|
+
{steps.map((step) => {
|
|
528
|
+
const output = step.output
|
|
529
|
+
return (
|
|
530
|
+
<li key={step.id} className="rounded-lg border border-border px-3 py-2.5">
|
|
531
|
+
<div className="flex items-center gap-2">
|
|
532
|
+
<span className="min-w-0 flex-1 truncate text-[0.8125rem] font-medium">
|
|
533
|
+
{humanize(step.stepId)}
|
|
534
|
+
</span>
|
|
535
|
+
<RunStatusPill status={step.status} />
|
|
536
|
+
</div>
|
|
537
|
+
<div className="mt-1 flex flex-wrap items-center gap-x-2 text-xs text-muted-foreground tabular-nums">
|
|
538
|
+
<span>{messages.common.modes[step.mode]}</span>
|
|
539
|
+
{step.rowsWritten !== undefined ? (
|
|
540
|
+
<>
|
|
541
|
+
<MetaDot />
|
|
542
|
+
<span>
|
|
543
|
+
{messages.pipelines.rowsWritten(
|
|
544
|
+
step.rowsWritten,
|
|
545
|
+
numbers.count(step.rowsWritten)
|
|
546
|
+
)}
|
|
547
|
+
</span>
|
|
548
|
+
</>
|
|
549
|
+
) : null}
|
|
550
|
+
{step.finishedAt ? (
|
|
551
|
+
<>
|
|
552
|
+
<MetaDot />
|
|
553
|
+
<span>{formatDuration(step.startedAt, step.finishedAt)}</span>
|
|
554
|
+
</>
|
|
555
|
+
) : null}
|
|
556
|
+
</div>
|
|
557
|
+
{output ? (
|
|
558
|
+
<button
|
|
559
|
+
type="button"
|
|
560
|
+
onClick={() => onOpenDataset(output.datasetId)}
|
|
561
|
+
className="mt-2 inline-flex max-w-full items-center gap-1.5 rounded-md border border-border bg-background px-2 py-0.5 font-mono text-xs transition-colors hover:border-foreground/25"
|
|
562
|
+
>
|
|
563
|
+
<Database className="size-3 shrink-0 text-muted-foreground" />
|
|
564
|
+
<span className="truncate">{output.datasetId}</span>
|
|
565
|
+
</button>
|
|
566
|
+
) : null}
|
|
567
|
+
{step.error ? (
|
|
568
|
+
<div className="mt-2">
|
|
569
|
+
<FailureSummary failure={step.error} compact />
|
|
570
|
+
</div>
|
|
571
|
+
) : null}
|
|
572
|
+
</li>
|
|
573
|
+
)
|
|
574
|
+
})}
|
|
575
|
+
</ol>
|
|
576
|
+
)}
|
|
577
|
+
</section>
|
|
578
|
+
</div>
|
|
579
|
+
)}
|
|
580
|
+
</div>
|
|
581
|
+
</>
|
|
582
|
+
)
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
/** A dataset's first rows, below the canvas, with the way to its full page. */
|
|
586
|
+
function DatasetDrawer({
|
|
587
|
+
datasetId,
|
|
588
|
+
onClose,
|
|
589
|
+
}: {
|
|
590
|
+
readonly datasetId: string | null
|
|
591
|
+
readonly onClose: () => void
|
|
592
|
+
}) {
|
|
593
|
+
const open = datasetId !== null
|
|
594
|
+
return (
|
|
595
|
+
<div
|
|
596
|
+
aria-hidden={!open}
|
|
597
|
+
className={cn(
|
|
598
|
+
"shrink-0 overflow-hidden transition-[height] duration-300 ease-out",
|
|
599
|
+
open ? "h-[46%] min-h-64" : "h-0"
|
|
600
|
+
)}
|
|
601
|
+
>
|
|
602
|
+
{datasetId ? <DatasetPreview datasetId={datasetId} onClose={onClose} /> : null}
|
|
603
|
+
</div>
|
|
604
|
+
)
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
function DatasetPreview({
|
|
608
|
+
datasetId,
|
|
609
|
+
onClose,
|
|
610
|
+
}: {
|
|
611
|
+
readonly datasetId: string
|
|
612
|
+
readonly onClose: () => void
|
|
613
|
+
}) {
|
|
614
|
+
const messages = useDataMessages()
|
|
615
|
+
const format = useFormat()
|
|
616
|
+
const numbers = useNumbers()
|
|
617
|
+
useDatasetLiveUpdates({ datasetId })
|
|
618
|
+
const datasetQuery = useQuery({ ...getDatasetOptions({ path: { datasetId } }), retry: false })
|
|
619
|
+
const hasVersion = Boolean(datasetQuery.data?.latestVersion)
|
|
620
|
+
const rowsQuery = useQuery({
|
|
621
|
+
...listDatasetRowsOptions({ path: { datasetId }, query: { limit: String(previewRows) } }),
|
|
622
|
+
enabled: hasVersion,
|
|
623
|
+
retry: false,
|
|
624
|
+
})
|
|
625
|
+
const dataset = datasetQuery.data
|
|
626
|
+
const page = rowsQuery.data
|
|
627
|
+
const schemaColumns = page?.version.schema.columns ?? dataset?.schema.columns ?? []
|
|
628
|
+
const types = useMemo(
|
|
629
|
+
() => new Map(schemaColumns.map((column) => [column.name, column.type])),
|
|
630
|
+
[schemaColumns]
|
|
631
|
+
)
|
|
632
|
+
const names = page?.columns ?? schemaColumns.map((column) => column.name)
|
|
633
|
+
const columns = useMemo(
|
|
634
|
+
() => datasetGridColumns(names, types, page?.redactions, messages.datasets.hidden),
|
|
635
|
+
[names, types, page?.redactions, messages.datasets.hidden]
|
|
636
|
+
)
|
|
637
|
+
const version = page?.version ?? dataset?.latestVersion
|
|
638
|
+
const rows = page?.rows ?? []
|
|
639
|
+
|
|
640
|
+
return (
|
|
641
|
+
<div className="flex h-full flex-col border-t border-border bg-card">
|
|
642
|
+
<div className="flex h-12 shrink-0 items-center gap-3 border-b border-border px-3 md:px-4">
|
|
643
|
+
<IconTile icon={Database} />
|
|
644
|
+
<div className="min-w-0 flex-1">
|
|
645
|
+
<p className="truncate font-mono text-[0.8125rem] font-semibold">{datasetId}</p>
|
|
646
|
+
<p className="truncate text-xs text-muted-foreground tabular-nums">
|
|
647
|
+
{version?.rowCount !== undefined
|
|
648
|
+
? `${messages.common.rows(version.rowCount, numbers.count(version.rowCount))} · `
|
|
649
|
+
: null}
|
|
650
|
+
{messages.common.columns(schemaColumns.length)}
|
|
651
|
+
{version ? ` · ${messages.datasets.updated(format.relative(version.createdAt))}` : null}
|
|
652
|
+
</p>
|
|
653
|
+
</div>
|
|
654
|
+
<Button type="button" variant="ghost" size="sm" asChild>
|
|
655
|
+
<Link to={`/data/datasets/${encodeURIComponent(datasetId)}`}>
|
|
656
|
+
{messages.pipelines.openDataset}
|
|
657
|
+
<ArrowUpRight />
|
|
658
|
+
</Link>
|
|
659
|
+
</Button>
|
|
660
|
+
<Button
|
|
661
|
+
type="button"
|
|
662
|
+
variant="ghost"
|
|
663
|
+
size="icon-sm"
|
|
664
|
+
onClick={onClose}
|
|
665
|
+
aria-label={messages.pipelines.close}
|
|
666
|
+
>
|
|
667
|
+
<X />
|
|
668
|
+
</Button>
|
|
669
|
+
</div>
|
|
670
|
+
<div className="flex min-h-0 flex-1 flex-col">
|
|
671
|
+
{datasetQuery.isError || rowsQuery.isError ? (
|
|
672
|
+
<PanelEmpty
|
|
673
|
+
tone="error"
|
|
674
|
+
icon={Database}
|
|
675
|
+
title={messages.datasets.rowsUnavailable}
|
|
676
|
+
description={apiErrorMessage(
|
|
677
|
+
datasetQuery.error ?? rowsQuery.error,
|
|
678
|
+
messages.common.loadFailed
|
|
679
|
+
)}
|
|
680
|
+
/>
|
|
681
|
+
) : datasetQuery.isSuccess && !hasVersion ? (
|
|
682
|
+
<PanelEmpty
|
|
683
|
+
icon={Database}
|
|
684
|
+
title={messages.datasets.noVersionsTitle}
|
|
685
|
+
description={messages.datasets.noVersionsDescription}
|
|
686
|
+
/>
|
|
687
|
+
) : (
|
|
688
|
+
<DataTable
|
|
689
|
+
columns={columns}
|
|
690
|
+
data={rows}
|
|
691
|
+
showRowIndex
|
|
692
|
+
isLoading={datasetQuery.isPending || rowsQuery.isPending}
|
|
693
|
+
empty={
|
|
694
|
+
<PanelEmpty
|
|
695
|
+
icon={Database}
|
|
696
|
+
title={messages.datasets.noRowsTitle}
|
|
697
|
+
description={messages.datasets.noRowsDescription}
|
|
698
|
+
/>
|
|
699
|
+
}
|
|
700
|
+
/>
|
|
701
|
+
)}
|
|
702
|
+
</div>
|
|
703
|
+
{page?.hasMore ? (
|
|
704
|
+
<p className="shrink-0 border-t border-border px-3 py-1.5 text-xs text-muted-foreground md:px-4">
|
|
705
|
+
{messages.pipelines.previewLimited(numbers.count(previewRows))}
|
|
706
|
+
</p>
|
|
707
|
+
) : null}
|
|
708
|
+
</div>
|
|
709
|
+
)
|
|
710
|
+
}
|