@sixb/app 0.2.1 → 0.2.3
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/dist/agent/agent-chat.d.ts +9 -2
- package/dist/agent/agent-chat.d.ts.map +1 -1
- package/dist/agent/agent-panel.d.ts +9 -1
- package/dist/agent/agent-panel.d.ts.map +1 -1
- package/dist/agent/agent-surface.d.ts.map +1 -1
- package/dist/agent/artifact-card.d.ts +3 -1
- package/dist/agent/artifact-card.d.ts.map +1 -1
- package/dist/agent/artifact-panel.d.ts +7 -1
- package/dist/agent/artifact-panel.d.ts.map +1 -1
- package/dist/agent/components/composer-place.d.ts +3 -1
- package/dist/agent/components/composer-place.d.ts.map +1 -1
- package/dist/agent/components/composer.d.ts +20 -1
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/context-chips.d.ts.map +1 -1
- package/dist/agent/components/context-meter.d.ts +1 -1
- package/dist/agent/components/conversation-panel.d.ts +3 -1
- package/dist/agent/components/conversation-panel.d.ts.map +1 -1
- package/dist/agent/components/message-parts.d.ts +3 -1
- package/dist/agent/components/message-parts.d.ts.map +1 -1
- package/dist/agent/components/thread-artifacts-menu.d.ts.map +1 -1
- package/dist/agent/composer-insertion.d.ts +24 -0
- package/dist/agent/composer-insertion.d.ts.map +1 -0
- package/dist/agent/delegation/use-children.d.ts +5 -5
- package/dist/agent/delegation/use-children.d.ts.map +1 -1
- package/dist/agent/hooks/use-agent-conversation.d.ts +10 -4
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-new-thread-place.d.ts +39 -17
- package/dist/agent/hooks/use-new-thread-place.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +14 -0
- package/dist/agent/i18n/en.d.ts.map +1 -1
- package/dist/agent/i18n/fr.d.ts.map +1 -1
- package/dist/agent/i18n/index.d.ts +20 -0
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/agent/publish-artifact/interpret.d.ts +8 -2
- package/dist/agent/publish-artifact/interpret.d.ts.map +1 -1
- package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts +9 -0
- package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts.map +1 -0
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts +4 -2
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts.map +1 -1
- package/dist/agent/publish-artifact/use-live-publishes.d.ts +3 -3
- package/dist/agent/publish-artifact/use-live-publishes.d.ts.map +1 -1
- package/dist/agent/tool-views/built-in.d.ts.map +1 -1
- package/dist/agent/types.d.ts +3 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/artifacts/artifact-page.d.ts.map +1 -1
- package/dist/artifacts/artifact-viewer.d.ts +16 -0
- package/dist/artifacts/artifact-viewer.d.ts.map +1 -0
- package/dist/artifacts/card-details.d.ts +1 -1
- package/dist/artifacts/card-details.d.ts.map +1 -1
- package/dist/artifacts/card-preview.d.ts.map +1 -1
- package/dist/artifacts/comments-context.d.ts +48 -0
- package/dist/artifacts/comments-context.d.ts.map +1 -0
- package/dist/artifacts/edit-session.d.ts +6 -6
- package/dist/artifacts/edit-session.d.ts.map +1 -1
- package/dist/artifacts/file-source.d.ts.map +1 -1
- package/dist/artifacts/frame.d.ts +10 -2
- package/dist/artifacts/frame.d.ts.map +1 -1
- package/dist/artifacts/guest-badge.d.ts +8 -0
- package/dist/artifacts/guest-badge.d.ts.map +1 -0
- package/dist/artifacts/held-artifact.d.ts +19 -0
- package/dist/artifacts/held-artifact.d.ts.map +1 -0
- package/dist/artifacts/holders.d.ts +10 -0
- package/dist/artifacts/holders.d.ts.map +1 -0
- package/dist/artifacts/live/boards.d.ts +15 -0
- package/dist/artifacts/live/boards.d.ts.map +1 -0
- package/dist/artifacts/live/canvas.d.ts +79 -0
- package/dist/artifacts/live/canvas.d.ts.map +1 -0
- package/dist/artifacts/live/header.d.ts +29 -0
- package/dist/artifacts/live/header.d.ts.map +1 -0
- package/dist/artifacts/live/hooks.d.ts +21 -0
- package/dist/artifacts/live/hooks.d.ts.map +1 -0
- package/dist/artifacts/live/presence.d.ts +32 -0
- package/dist/artifacts/live/presence.d.ts.map +1 -0
- package/dist/artifacts/live/session.d.ts +130 -0
- package/dist/artifacts/live/session.d.ts.map +1 -0
- package/dist/artifacts/live/view.d.ts +28 -0
- package/dist/artifacts/live/view.d.ts.map +1 -0
- package/dist/artifacts/messages.d.ts +424 -14
- package/dist/artifacts/messages.d.ts.map +1 -1
- package/dist/artifacts/page-queries.d.ts +2 -2
- package/dist/artifacts/page-queries.d.ts.map +1 -1
- package/dist/artifacts/page-state.d.ts.map +1 -1
- package/dist/artifacts/publish-edit.d.ts +24 -14
- package/dist/artifacts/publish-edit.d.ts.map +1 -1
- package/dist/artifacts/queries.d.ts +490 -9
- package/dist/artifacts/queries.d.ts.map +1 -1
- package/dist/artifacts/references/references.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/arrows.d.ts +0 -18
- package/dist/artifacts/renderers/canvas/arrows.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/board-editor.d.ts +43 -0
- package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board-properties.d.ts +37 -0
- package/dist/artifacts/renderers/canvas/board-properties.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board-source.d.ts +18 -0
- package/dist/artifacts/renderers/canvas/board-source.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board.d.ts +64 -19
- package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/canvas.d.ts +13 -4
- package/dist/artifacts/renderers/canvas/canvas.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts +84 -0
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/commenting.d.ts +58 -0
- package/dist/artifacts/renderers/canvas/commenting.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/comments-panel.d.ts +27 -0
- package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/comments.d.ts +56 -0
- package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/draft.d.ts +7 -6
- package/dist/artifacts/renderers/canvas/draft.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/edit-mode.d.ts +19 -2
- package/dist/artifacts/renderers/canvas/edit-mode.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/focus.d.ts +40 -5
- package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/items.d.ts +47 -4
- package/dist/artifacts/renderers/canvas/items.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/layout.d.ts +5 -8
- package/dist/artifacts/renderers/canvas/layout.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/presence.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/presence.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/previews.d.ts +54 -0
- package/dist/artifacts/renderers/canvas/previews.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/renderer.d.ts +11 -2
- package/dist/artifacts/renderers/canvas/renderer.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/thumbnail.d.ts +5 -2
- package/dist/artifacts/renderers/canvas/thumbnail.d.ts.map +1 -1
- package/dist/artifacts/version-menu.d.ts +19 -0
- package/dist/artifacts/version-menu.d.ts.map +1 -0
- package/dist/artifacts/view-context.d.ts +43 -0
- package/dist/artifacts/view-context.d.ts.map +1 -0
- package/dist/artifacts/viewer.d.ts.map +1 -1
- package/dist/build.d.ts +5 -0
- package/dist/build.d.ts.map +1 -1
- package/dist/{chunk-ytadd0b5.js → chunk-001c4gnk.js} +6871 -3756
- package/dist/chunk-001c4gnk.js.map +204 -0
- package/dist/chunk-00wggsst.js +7 -0
- package/dist/chunk-00wggsst.js.map +10 -0
- package/dist/chunk-5crvhjp2.js +4704 -0
- package/dist/chunk-5crvhjp2.js.map +28 -0
- package/dist/{chunk-q69001w3.js → chunk-694m74s7.js} +7 -1
- package/dist/{chunk-q69001w3.js.map → chunk-694m74s7.js.map} +3 -3
- package/dist/{chunk-4mprsd2n.js → chunk-fg6thecb.js} +25 -1
- package/dist/chunk-fg6thecb.js.map +10 -0
- package/dist/{chunk-j8g956dt.js → chunk-fwb9mxwm.js} +1 -1
- package/dist/{chunk-7fj9cfkw.js → chunk-kes4ygmz.js} +1 -1
- package/dist/{chunk-kwbw4dyk.js → chunk-ryed2jq8.js} +1 -1
- package/dist/codegen.d.ts.map +1 -1
- package/dist/createCustomApp.d.ts.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +930 -309
- package/dist/index.js.map +15 -10
- package/dist/locale-messages.d.ts +12 -0
- package/dist/locale-messages.d.ts.map +1 -1
- package/dist/locale.d.ts +12 -0
- package/dist/locale.d.ts.map +1 -1
- package/dist/locale.js +1 -1
- package/dist/metadata.d.ts +8 -0
- package/dist/metadata.d.ts.map +1 -1
- package/dist/pages/console/action-run.d.ts.map +1 -1
- package/dist/pages/console/data/connectors.d.ts.map +1 -1
- package/dist/pages/console/data/datasets.d.ts.map +1 -1
- package/dist/pages/console/data/lake-health.d.ts +3 -0
- package/dist/pages/console/data/lake-health.d.ts.map +1 -0
- package/dist/pages/console/data/messages.d.ts +98 -2
- package/dist/pages/console/data/messages.d.ts.map +1 -1
- package/dist/pages/console/data/pipelines.d.ts.map +1 -1
- package/dist/pages/console/data/projections.d.ts.map +1 -1
- package/dist/pages/console/data/syncs.d.ts.map +1 -1
- package/dist/pages/console/ontology/action-runs.d.ts.map +1 -1
- package/dist/pages/console/ontology/actions.d.ts.map +1 -1
- package/dist/pages/console/ontology/components/action-button.d.ts.map +1 -1
- package/dist/pages/console/ontology/components/artifact-picker.d.ts +36 -0
- package/dist/pages/console/ontology/components/artifact-picker.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/object-query-bar.d.ts.map +1 -1
- package/dist/pages/console/ontology/lib/action-params.d.ts +2 -0
- package/dist/pages/console/ontology/lib/action-params.d.ts.map +1 -1
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts +2 -1
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-page.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-type.d.ts.map +1 -1
- package/dist/pages/console/ontology/object-types.d.ts.map +1 -1
- package/dist/pages/console/ontology/objects.d.ts.map +1 -1
- package/dist/pages/console/ontology/rules.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflow.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows/run-input-form.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows/schema-shape.d.ts.map +1 -1
- package/dist/pages/console/ontology/workflows.d.ts.map +1 -1
- package/dist/pages/console/skeletons.d.ts +30 -0
- package/dist/pages/console/skeletons.d.ts.map +1 -0
- package/dist/pages/console/workflow-run.d.ts.map +1 -1
- package/dist/pages/section-page.d.ts +11 -1
- package/dist/pages/section-page.d.ts.map +1 -1
- package/dist/pages/section-ui.d.ts +25 -3
- package/dist/pages/section-ui.d.ts.map +1 -1
- package/dist/pages/settings/activity/calendar.d.ts.map +1 -1
- package/dist/pages/settings/activity/connections.d.ts.map +1 -1
- package/dist/pages/settings/activity/page.d.ts.map +1 -1
- package/dist/pages/settings/activity/thread.d.ts.map +1 -1
- package/dist/pages/settings/activity/timeline.d.ts +2 -0
- package/dist/pages/settings/activity/timeline.d.ts.map +1 -1
- package/dist/pages/settings/controls.d.ts +4 -0
- package/dist/pages/settings/controls.d.ts.map +1 -1
- package/dist/pages/settings/members.d.ts.map +1 -1
- package/dist/pages/settings/memory-history.d.ts +2 -0
- package/dist/pages/settings/memory-history.d.ts.map +1 -1
- package/dist/pages/settings/memory.d.ts.map +1 -1
- package/dist/pages/settings/service-accounts.d.ts.map +1 -1
- package/dist/pages/settings/sessions.d.ts.map +1 -1
- package/dist/pages/settings/usage/breakdown.d.ts.map +1 -1
- package/dist/pages/settings/usage/limits.d.ts.map +1 -1
- package/dist/pages/settings/usage/messages.d.ts +0 -2
- package/dist/pages/settings/usage/messages.d.ts.map +1 -1
- package/dist/pages/settings/usage/runs.d.ts +8 -2
- package/dist/pages/settings/usage/runs.d.ts.map +1 -1
- package/dist/pages/settings/usage/spend-chart.d.ts.map +1 -1
- package/dist/pages/settings/usage/spend-model.d.ts +5 -0
- package/dist/pages/settings/usage/spend-model.d.ts.map +1 -1
- package/dist/pages/values.d.ts +6 -0
- package/dist/pages/values.d.ts.map +1 -1
- package/dist/pages.d.ts +4 -0
- package/dist/pages.d.ts.map +1 -1
- package/dist/pages.js +8188 -4841
- package/dist/pages.js.map +56 -47
- package/dist/sections/catalog.d.ts.map +1 -1
- package/dist/sections/sections.d.ts.map +1 -1
- package/dist/server.js +294 -23
- package/dist/server.js.map +8 -7
- package/dist/service-worker.d.ts +39 -0
- package/dist/service-worker.d.ts.map +1 -0
- package/dist/shared-session.d.ts +25 -0
- package/dist/shared-session.d.ts.map +1 -0
- package/dist/shell/app-return.d.ts +35 -0
- package/dist/shell/app-return.d.ts.map +1 -0
- package/dist/shell/app-shell.d.ts +1 -1
- package/dist/shell/app-shell.d.ts.map +1 -1
- package/dist/shell/nav-items.d.ts +2 -0
- package/dist/shell/nav-items.d.ts.map +1 -1
- package/dist/shell/phone/back.d.ts +6 -0
- package/dist/shell/phone/back.d.ts.map +1 -0
- package/dist/shell/phone/launch.d.ts +7 -0
- package/dist/shell/phone/launch.d.ts.map +1 -0
- package/dist/shell/phone/more-sheet.d.ts +36 -0
- package/dist/shell/phone/more-sheet.d.ts.map +1 -0
- package/dist/shell/phone/phone-foundations.d.ts +9 -0
- package/dist/shell/phone/phone-foundations.d.ts.map +1 -0
- package/dist/shell/phone/pull-to-refresh.d.ts +9 -0
- package/dist/shell/phone/pull-to-refresh.d.ts.map +1 -0
- package/dist/shell/phone/routes.d.ts +12 -0
- package/dist/shell/phone/routes.d.ts.map +1 -0
- package/dist/shell/phone/screen-motion.d.ts +11 -0
- package/dist/shell/phone/screen-motion.d.ts.map +1 -0
- package/dist/shell/phone/scroll-restoration.d.ts +7 -0
- package/dist/shell/phone/scroll-restoration.d.ts.map +1 -0
- package/dist/shell/phone/startup-image.d.ts +17 -0
- package/dist/shell/phone/startup-image.d.ts.map +1 -0
- package/dist/shell/phone/tab-bar.d.ts +14 -0
- package/dist/shell/phone/tab-bar.d.ts.map +1 -0
- package/dist/shell/phone/top-bar.d.ts +24 -0
- package/dist/shell/phone/top-bar.d.ts.map +1 -0
- package/dist/shell/search-command.d.ts +3 -1
- package/dist/shell/search-command.d.ts.map +1 -1
- package/dist/shell/user-menu.d.ts +2 -0
- package/dist/shell/user-menu.d.ts.map +1 -1
- package/package.json +8 -5
- package/src/agent/agent-chat.tsx +51 -8
- package/src/agent/agent-panel.tsx +12 -0
- package/src/agent/agent-surface.tsx +4 -0
- package/src/agent/artifact-card.tsx +84 -16
- package/src/agent/artifact-panel.tsx +63 -43
- package/src/agent/components/agent-message-body.tsx +1 -1
- package/src/agent/components/composer-place.tsx +77 -53
- package/src/agent/components/composer.tsx +92 -7
- package/src/agent/components/context-chips.tsx +72 -2
- package/src/agent/components/conversation-panel.tsx +3 -2
- package/src/agent/components/message-parts.tsx +6 -1
- package/src/agent/components/thread-artifacts-menu.tsx +22 -5
- package/src/agent/composer-insertion.ts +36 -0
- package/src/agent/hooks/use-agent-conversation.ts +41 -10
- package/src/agent/hooks/use-new-thread-place.ts +149 -25
- package/src/agent/i18n/en.ts +14 -0
- package/src/agent/i18n/fr.ts +12 -0
- package/src/agent/publish-artifact/interpret.ts +27 -5
- package/src/agent/publish-artifact/open-artifact-tool-view.tsx +49 -0
- package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +14 -8
- package/src/agent/publish-artifact/use-live-publishes.ts +7 -11
- package/src/agent/react-router.tsx +2 -2
- package/src/agent/tool-views/built-in.tsx +3 -0
- package/src/agent/types.ts +4 -0
- package/src/artifacts/artifact-page.tsx +42 -17
- package/src/artifacts/artifact-viewer.tsx +56 -0
- package/src/artifacts/artifacts.css +80 -0
- package/src/artifacts/card-details.ts +2 -2
- package/src/artifacts/card-preview.tsx +17 -3
- package/src/artifacts/comments-context.ts +125 -0
- package/src/artifacts/edit-session.tsx +6 -6
- package/src/artifacts/file-source.ts +10 -3
- package/src/artifacts/frame.tsx +50 -12
- package/src/artifacts/gallery.tsx +9 -11
- package/src/artifacts/guest-badge.tsx +21 -0
- package/src/artifacts/held-artifact.tsx +241 -0
- package/src/artifacts/holders.tsx +170 -0
- package/src/artifacts/live/boards.ts +95 -0
- package/src/artifacts/live/canvas.ts +402 -0
- package/src/artifacts/live/header.tsx +137 -0
- package/src/artifacts/live/hooks.ts +94 -0
- package/src/artifacts/live/presence.ts +147 -0
- package/src/artifacts/live/session.ts +520 -0
- package/src/artifacts/live/view.ts +81 -0
- package/src/artifacts/messages.ts +415 -24
- package/src/artifacts/page-queries.ts +2 -3
- package/src/artifacts/page-state.ts +16 -7
- package/src/artifacts/publish-edit.ts +50 -22
- package/src/artifacts/queries.ts +108 -10
- package/src/artifacts/references/references.tsx +6 -9
- package/src/artifacts/renderers/canvas/arrows.tsx +12 -39
- package/src/artifacts/renderers/canvas/board-editor.tsx +817 -0
- package/src/artifacts/renderers/canvas/board-properties.tsx +488 -0
- package/src/artifacts/renderers/canvas/board-source.ts +110 -0
- package/src/artifacts/renderers/canvas/board.tsx +309 -33
- package/src/artifacts/renderers/canvas/canvas.tsx +387 -72
- package/src/artifacts/renderers/canvas/comment-pins.tsx +465 -0
- package/src/artifacts/renderers/canvas/commenting.tsx +319 -0
- package/src/artifacts/renderers/canvas/comments-panel.tsx +574 -0
- package/src/artifacts/renderers/canvas/comments.ts +225 -0
- package/src/artifacts/renderers/canvas/draft.ts +41 -50
- package/src/artifacts/renderers/canvas/edit-mode.tsx +145 -20
- package/src/artifacts/renderers/canvas/focus.tsx +175 -24
- package/src/artifacts/renderers/canvas/items.tsx +179 -52
- package/src/artifacts/renderers/canvas/layout.ts +99 -47
- package/src/artifacts/renderers/canvas/presence.tsx +184 -0
- package/src/artifacts/renderers/canvas/previews.ts +127 -0
- package/src/artifacts/renderers/canvas/renderer.tsx +87 -22
- package/src/artifacts/renderers/canvas/thumbnail.tsx +56 -15
- package/src/artifacts/renderers/canvas/toolbar.tsx +1 -1
- package/src/artifacts/renderers/slides/slides.tsx +1 -1
- package/src/artifacts/version-menu.tsx +438 -0
- package/src/artifacts/view-context.ts +102 -0
- package/src/artifacts/viewer.tsx +205 -147
- package/src/build.ts +96 -11
- package/src/codegen.ts +83 -5
- package/src/createCustomApp.ts +20 -7
- package/src/index.ts +12 -0
- package/src/locale-messages.ts +24 -0
- package/src/metadata.ts +12 -0
- package/src/pages/console/action-run.tsx +20 -0
- package/src/pages/console/data/connectors.tsx +27 -3
- package/src/pages/console/data/datasets.tsx +30 -1
- package/src/pages/console/data/lake-health.tsx +299 -0
- package/src/pages/console/data/messages.ts +143 -2
- package/src/pages/console/data/pipelines.tsx +91 -3
- package/src/pages/console/data/projections.tsx +23 -4
- package/src/pages/console/data/syncs.tsx +39 -2
- package/src/pages/console/ontology/action-runs.tsx +8 -2
- package/src/pages/console/ontology/actions.tsx +39 -15
- package/src/pages/console/ontology/components/action-button.tsx +10 -0
- package/src/pages/console/ontology/components/artifact-picker.tsx +522 -0
- package/src/pages/console/ontology/components/object-query-bar.tsx +21 -5
- package/src/pages/console/ontology/lib/action-params.ts +10 -0
- package/src/pages/console/ontology/lineage/properties-panel.tsx +32 -24
- package/src/pages/console/ontology/object-page.tsx +2 -0
- package/src/pages/console/ontology/object-type.tsx +73 -14
- package/src/pages/console/ontology/object-types.tsx +56 -7
- package/src/pages/console/ontology/objects.tsx +167 -19
- package/src/pages/console/ontology/rules.tsx +186 -30
- package/src/pages/console/ontology/workflow.tsx +130 -74
- package/src/pages/console/ontology/workflows/run-input-form.tsx +21 -2
- package/src/pages/console/ontology/workflows/schema-shape.tsx +3 -0
- package/src/pages/console/ontology/workflows.tsx +34 -21
- package/src/pages/console/skeletons.tsx +99 -0
- package/src/pages/console/workflow-run.tsx +20 -0
- package/src/pages/section-page.tsx +37 -7
- package/src/pages/section-ui.tsx +96 -13
- package/src/pages/settings/activity/calendar.tsx +13 -6
- package/src/pages/settings/activity/connections.tsx +26 -9
- package/src/pages/settings/activity/page.tsx +31 -4
- package/src/pages/settings/activity/thread.tsx +32 -18
- package/src/pages/settings/activity/timeline.tsx +39 -0
- package/src/pages/settings/controls.tsx +19 -1
- package/src/pages/settings/developers.tsx +2 -2
- package/src/pages/settings/members.tsx +42 -9
- package/src/pages/settings/memory-history.tsx +76 -10
- package/src/pages/settings/memory.tsx +47 -5
- package/src/pages/settings/service-accounts.tsx +7 -2
- package/src/pages/settings/sessions.tsx +6 -2
- package/src/pages/settings/usage/breakdown.tsx +62 -2
- package/src/pages/settings/usage/limits.tsx +45 -3
- package/src/pages/settings/usage/messages.ts +0 -2
- package/src/pages/settings/usage/page.tsx +99 -52
- package/src/pages/settings/usage/runs.tsx +105 -8
- package/src/pages/settings/usage/spend-chart.tsx +79 -45
- package/src/pages/settings/usage/spend-model.ts +16 -0
- package/src/pages/values.tsx +72 -6
- package/src/pages.ts +4 -0
- package/src/sections/catalog.ts +6 -0
- package/src/sections/sections.tsx +2 -0
- package/src/service-worker.ts +176 -0
- package/src/shared-session.ts +73 -0
- package/src/shell/app-return.ts +115 -0
- package/src/shell/app-shell.tsx +125 -27
- package/src/shell/nav-items.tsx +2 -0
- package/src/shell/phone/back.ts +16 -0
- package/src/shell/phone/launch.ts +6 -0
- package/src/shell/phone/more-sheet.tsx +249 -0
- package/src/shell/phone/phone-foundations.tsx +43 -0
- package/src/shell/phone/phone.css +660 -0
- package/src/shell/phone/pull-to-refresh.tsx +201 -0
- package/src/shell/phone/routes.ts +34 -0
- package/src/shell/phone/screen-motion.ts +292 -0
- package/src/shell/phone/scroll-restoration.tsx +70 -0
- package/src/shell/phone/startup-image.ts +119 -0
- package/src/shell/phone/tab-bar.tsx +95 -0
- package/src/shell/phone/top-bar.tsx +195 -0
- package/src/shell/search-command.tsx +30 -14
- package/src/shell/user-menu.tsx +2 -1
- package/dist/chunk-4j3c3p72.js +0 -1487
- package/dist/chunk-4j3c3p72.js.map +0 -18
- package/dist/chunk-4mprsd2n.js.map +0 -10
- package/dist/chunk-ytadd0b5.js.map +0 -188
- /package/dist/{chunk-j8g956dt.js.map → chunk-fwb9mxwm.js.map} +0 -0
- /package/dist/{chunk-7fj9cfkw.js.map → chunk-kes4ygmz.js.map} +0 -0
- /package/dist/{chunk-kwbw4dyk.js.map → chunk-ryed2jq8.js.map} +0 -0
|
@@ -55,6 +55,7 @@ import {
|
|
|
55
55
|
useFormat,
|
|
56
56
|
useNumbers,
|
|
57
57
|
} from "../../section-ui"
|
|
58
|
+
import { MetaSkeleton, SkeletonBlock, TrailingSkeleton } from "../skeletons"
|
|
58
59
|
import { useDatasetLiveUpdates } from "./live-updates"
|
|
59
60
|
import { useDataMessages } from "./messages"
|
|
60
61
|
import { DatasetProducerLabel, DatasetVersionInputs } from "./producer"
|
|
@@ -83,7 +84,11 @@ export function ConsoleDatasetsPage() {
|
|
|
83
84
|
>
|
|
84
85
|
<Panel>
|
|
85
86
|
{datasetsQuery.isPending ? (
|
|
86
|
-
<PanelSkeleton
|
|
87
|
+
<PanelSkeleton
|
|
88
|
+
rows={4}
|
|
89
|
+
interactive
|
|
90
|
+
trailing={<TrailingSkeleton pill={false} chevron />}
|
|
91
|
+
/>
|
|
87
92
|
) : datasetsQuery.isError ? (
|
|
88
93
|
<PanelEmpty
|
|
89
94
|
tone="error"
|
|
@@ -226,6 +231,30 @@ function DatasetDetail({ datasetId }: { readonly datasetId: string }) {
|
|
|
226
231
|
id={datasetId}
|
|
227
232
|
icon={Database}
|
|
228
233
|
error={datasetQuery.error}
|
|
234
|
+
workspace={
|
|
235
|
+
<>
|
|
236
|
+
<WorkspaceHeader
|
|
237
|
+
back={back}
|
|
238
|
+
icon={<IconTile icon={Database} />}
|
|
239
|
+
title={<span className="font-mono">{datasetId}</span>}
|
|
240
|
+
meta={<MetaSkeleton pill={false} />}
|
|
241
|
+
actions={
|
|
242
|
+
<>
|
|
243
|
+
<SkeletonBlock className="h-8 w-36 sm:w-44" />
|
|
244
|
+
<SkeletonBlock className="h-8 w-8 sm:w-20" />
|
|
245
|
+
</>
|
|
246
|
+
}
|
|
247
|
+
/>
|
|
248
|
+
<div className="flex h-11 shrink-0 items-center gap-2 border-b border-border px-3 md:px-4">
|
|
249
|
+
<SkeletonBlock className="h-8 w-full max-w-72" />
|
|
250
|
+
<SkeletonBlock className="ml-auto h-8 w-8 sm:w-24" />
|
|
251
|
+
</div>
|
|
252
|
+
<div className="flex min-h-0 flex-1 flex-col">
|
|
253
|
+
<DataTable columns={[]} data={[]} isLoading />
|
|
254
|
+
</div>
|
|
255
|
+
<footer className="h-10 shrink-0 border-t border-border" />
|
|
256
|
+
</>
|
|
257
|
+
}
|
|
229
258
|
/>
|
|
230
259
|
)
|
|
231
260
|
}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import type { GetLakeHealthResponse } from "@sixb/client"
|
|
2
|
+
import { getLakeHealthOptions } from "@sixb/client/hooks"
|
|
3
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
4
|
+
import { useQuery } from "@tanstack/react-query"
|
|
5
|
+
import { Database, HardDrive, Inbox, TriangleAlert } from "lucide-react"
|
|
6
|
+
import { Link } from "react-router-dom"
|
|
7
|
+
import { SectionPage } from "../../section-page"
|
|
8
|
+
import {
|
|
9
|
+
apiErrorMessage,
|
|
10
|
+
Facts,
|
|
11
|
+
IconTile,
|
|
12
|
+
MetaDot,
|
|
13
|
+
PageSection,
|
|
14
|
+
Panel,
|
|
15
|
+
PanelEmpty,
|
|
16
|
+
PanelRow,
|
|
17
|
+
PanelSkeleton,
|
|
18
|
+
Pill,
|
|
19
|
+
type Tone,
|
|
20
|
+
useFormat,
|
|
21
|
+
useNumbers,
|
|
22
|
+
} from "../../section-ui"
|
|
23
|
+
import { type DataMessages, useDataMessages } from "./messages"
|
|
24
|
+
|
|
25
|
+
type Cleanup = GetLakeHealthResponse["cleanup"]
|
|
26
|
+
type DatasetStorage = GetLakeHealthResponse["datasets"][number]
|
|
27
|
+
|
|
28
|
+
/** Changes that waited this long mean no flush writes them: the line turns amber. */
|
|
29
|
+
const STALLED_AFTER_MS = 10 * 60_000
|
|
30
|
+
|
|
31
|
+
/** Console › Lake health: how each dataset is stored, and the lake's automatic cleanup. */
|
|
32
|
+
export function ConsoleLakeHealthPage() {
|
|
33
|
+
const messages = useDataMessages()
|
|
34
|
+
|
|
35
|
+
return (
|
|
36
|
+
<SectionPage
|
|
37
|
+
section="console"
|
|
38
|
+
page="lake-health"
|
|
39
|
+
title={messages.lakeHealth.title}
|
|
40
|
+
description={messages.lakeHealth.description}
|
|
41
|
+
>
|
|
42
|
+
<LakeHealth />
|
|
43
|
+
</SectionPage>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function LakeHealth() {
|
|
48
|
+
const messages = useDataMessages()
|
|
49
|
+
const query = useQuery({ ...getLakeHealthOptions(), retry: false })
|
|
50
|
+
const health = query.data
|
|
51
|
+
|
|
52
|
+
if (query.isPending) {
|
|
53
|
+
return (
|
|
54
|
+
<Panel>
|
|
55
|
+
<PanelSkeleton rows={4} />
|
|
56
|
+
</Panel>
|
|
57
|
+
)
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
if (query.isError || !health) {
|
|
61
|
+
return (
|
|
62
|
+
<Panel>
|
|
63
|
+
<PanelEmpty
|
|
64
|
+
tone="error"
|
|
65
|
+
icon={HardDrive}
|
|
66
|
+
title={messages.lakeHealth.title}
|
|
67
|
+
description={apiErrorMessage(query.error, messages.common.loadFailed)}
|
|
68
|
+
/>
|
|
69
|
+
</Panel>
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (!health.available) {
|
|
74
|
+
return (
|
|
75
|
+
<Panel>
|
|
76
|
+
<PanelEmpty
|
|
77
|
+
icon={HardDrive}
|
|
78
|
+
title={messages.lakeHealth.unavailableTitle}
|
|
79
|
+
description={messages.lakeHealth.unavailableDescription}
|
|
80
|
+
/>
|
|
81
|
+
</Panel>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return (
|
|
86
|
+
<div className="flex flex-col gap-8">
|
|
87
|
+
<CleanupSection cleanup={health.cleanup} />
|
|
88
|
+
<DatasetsSection datasets={health.datasets} />
|
|
89
|
+
</div>
|
|
90
|
+
)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** How each state reads, from what durable state says rather than from the settings. */
|
|
94
|
+
const CLEANUP_TONES: Record<Cleanup["state"], Tone> = {
|
|
95
|
+
off: "muted",
|
|
96
|
+
idle: "muted",
|
|
97
|
+
"not-requested": "warn",
|
|
98
|
+
"no-worker": "warn",
|
|
99
|
+
failing: "error",
|
|
100
|
+
cleaning: "info",
|
|
101
|
+
ok: "ok",
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function CleanupSection({ cleanup }: { readonly cleanup: Cleanup }) {
|
|
105
|
+
const messages = useDataMessages().lakeHealth
|
|
106
|
+
const format = useFormat()
|
|
107
|
+
|
|
108
|
+
const when = (timestamp: string | null) =>
|
|
109
|
+
timestamp === null ? messages.never : format.relative(timestamp)
|
|
110
|
+
|
|
111
|
+
return (
|
|
112
|
+
<PageSection title={messages.cleanupTitle} description={messages.cleanupDescription}>
|
|
113
|
+
<Panel>
|
|
114
|
+
<Facts
|
|
115
|
+
items={[
|
|
116
|
+
{ label: messages.status, value: <CleanupState cleanup={cleanup} /> },
|
|
117
|
+
{ label: messages.interval, value: format.duration(cleanup.cleanupEvery) },
|
|
118
|
+
{ label: messages.lastRequested, value: when(cleanup.lastRequestedAt) },
|
|
119
|
+
{ label: messages.lastRun, value: when(cleanup.lastRunAt) },
|
|
120
|
+
{ label: messages.keepVersionsFor, value: format.duration(cleanup.keepVersionsFor) },
|
|
121
|
+
{ label: messages.deleteFilesAfter, value: format.duration(cleanup.deleteFilesAfter) },
|
|
122
|
+
]}
|
|
123
|
+
/>
|
|
124
|
+
</Panel>
|
|
125
|
+
</PageSection>
|
|
126
|
+
)
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/** The state as a pill, over what it means. */
|
|
130
|
+
function CleanupState({ cleanup }: { readonly cleanup: Cleanup }) {
|
|
131
|
+
const { states, stateNotes } = useDataMessages().lakeHealth
|
|
132
|
+
|
|
133
|
+
return (
|
|
134
|
+
<span className="flex flex-col items-start gap-1.5">
|
|
135
|
+
<Pill tone={CLEANUP_TONES[cleanup.state]}>{states[cleanup.state]}</Pill>
|
|
136
|
+
<span className="text-muted-foreground">{stateNotes[cleanup.state]}</span>
|
|
137
|
+
</span>
|
|
138
|
+
)
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function DatasetsSection({ datasets }: { readonly datasets: readonly DatasetStorage[] }) {
|
|
142
|
+
const messages = useDataMessages().lakeHealth
|
|
143
|
+
|
|
144
|
+
return (
|
|
145
|
+
<PageSection title={messages.datasetsTitle} description={messages.datasetsDescription}>
|
|
146
|
+
<Panel>
|
|
147
|
+
{datasets.length === 0 ? (
|
|
148
|
+
<PanelEmpty
|
|
149
|
+
icon={Database}
|
|
150
|
+
title={messages.emptyTitle}
|
|
151
|
+
description={messages.emptyDescription}
|
|
152
|
+
/>
|
|
153
|
+
) : (
|
|
154
|
+
datasets.map((dataset) => <DatasetRow key={dataset.datasetId} dataset={dataset} />)
|
|
155
|
+
)}
|
|
156
|
+
</Panel>
|
|
157
|
+
</PageSection>
|
|
158
|
+
)
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/** One dataset's storage. Not a link: its warnings read under it, and its name opens it. */
|
|
162
|
+
function DatasetRow({ dataset }: { readonly dataset: DatasetStorage }) {
|
|
163
|
+
const messages = useDataMessages().lakeHealth
|
|
164
|
+
|
|
165
|
+
const title = (
|
|
166
|
+
<>
|
|
167
|
+
<Link
|
|
168
|
+
to={`/console/datasets/${encodeURIComponent(dataset.datasetId)}`}
|
|
169
|
+
className="truncate hover:underline"
|
|
170
|
+
>
|
|
171
|
+
{dataset.datasetId}
|
|
172
|
+
</Link>
|
|
173
|
+
|
|
174
|
+
{/* Beside the name rather than trailing, so the warning text below keeps the width. */}
|
|
175
|
+
{dataset.warnings.length > 0 ? (
|
|
176
|
+
<Pill tone="warn">{messages.warnings(dataset.warnings.length)}</Pill>
|
|
177
|
+
) : null}
|
|
178
|
+
</>
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
return (
|
|
182
|
+
<PanelRow
|
|
183
|
+
leading={<IconTile icon={Database} />}
|
|
184
|
+
title={title}
|
|
185
|
+
meta={dataset.materialized ? <StorageFacts dataset={dataset} /> : null}
|
|
186
|
+
trailing={dataset.materialized ? null : <Pill tone="muted">{messages.notWritten}</Pill>}
|
|
187
|
+
>
|
|
188
|
+
{dataset.ingest ? <IngestWaiting waiting={dataset.ingest} /> : null}
|
|
189
|
+
<DatasetWarnings warnings={dataset.warnings} />
|
|
190
|
+
</PanelRow>
|
|
191
|
+
)
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
function DatasetWarnings({ warnings }: { readonly warnings: DatasetStorage["warnings"] }) {
|
|
195
|
+
if (warnings.length === 0) return null
|
|
196
|
+
|
|
197
|
+
return (
|
|
198
|
+
<ul className="flex flex-col gap-1">
|
|
199
|
+
{warnings.map((warning) => (
|
|
200
|
+
<li
|
|
201
|
+
key={warning.code}
|
|
202
|
+
className="flex items-start gap-1.5 text-[0.8125rem] leading-5 text-amber-700 dark:text-amber-400"
|
|
203
|
+
>
|
|
204
|
+
<TriangleAlert aria-hidden className="mt-0.5 size-3.5 shrink-0" />
|
|
205
|
+
<span>{warning.message}</span>
|
|
206
|
+
</li>
|
|
207
|
+
))}
|
|
208
|
+
</ul>
|
|
209
|
+
)
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/** Ingested changes no flush has written yet, and how long the oldest has waited. */
|
|
213
|
+
function IngestWaiting({ waiting }: { readonly waiting: NonNullable<DatasetStorage["ingest"]> }) {
|
|
214
|
+
const messages = useDataMessages().lakeHealth
|
|
215
|
+
const numbers = useNumbers()
|
|
216
|
+
const format = useFormat()
|
|
217
|
+
const { oldestReceivedAt, pendingChanges, rejectedDeliveries } = waiting
|
|
218
|
+
const stalled =
|
|
219
|
+
oldestReceivedAt !== null && Date.now() - Date.parse(oldestReceivedAt) >= STALLED_AFTER_MS
|
|
220
|
+
const needsAttention = stalled || rejectedDeliveries > 0
|
|
221
|
+
|
|
222
|
+
// Like a warning: one wrapping line beside its icon, so a narrow row keeps it readable.
|
|
223
|
+
return (
|
|
224
|
+
<p
|
|
225
|
+
className={cn(
|
|
226
|
+
"flex items-start gap-1.5 text-[0.8125rem] leading-5",
|
|
227
|
+
needsAttention ? "text-amber-700 dark:text-amber-400" : "text-muted-foreground"
|
|
228
|
+
)}
|
|
229
|
+
>
|
|
230
|
+
<Inbox aria-hidden className="mt-0.5 size-3.5 shrink-0" />
|
|
231
|
+
<span>
|
|
232
|
+
{oldestReceivedAt === null ? null : (
|
|
233
|
+
<>
|
|
234
|
+
<span className="tabular-nums">
|
|
235
|
+
{messages.waiting(pendingChanges, numbers.count(pendingChanges))}
|
|
236
|
+
</span>
|
|
237
|
+
{" · "}
|
|
238
|
+
<span>{messages.oldest(format.relative(oldestReceivedAt))}</span>
|
|
239
|
+
</>
|
|
240
|
+
)}
|
|
241
|
+
{oldestReceivedAt !== null && rejectedDeliveries > 0 ? " · " : null}
|
|
242
|
+
{rejectedDeliveries > 0 ? (
|
|
243
|
+
<span className="tabular-nums">
|
|
244
|
+
{messages.rejected(rejectedDeliveries, numbers.count(rejectedDeliveries))}
|
|
245
|
+
</span>
|
|
246
|
+
) : null}
|
|
247
|
+
</span>
|
|
248
|
+
</p>
|
|
249
|
+
)
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** Rows, files and history, leaving out what is at zero beyond the files themselves. */
|
|
253
|
+
function StorageFacts({ dataset }: { readonly dataset: DatasetStorage }) {
|
|
254
|
+
const messages = useDataMessages()
|
|
255
|
+
const numbers = useNumbers()
|
|
256
|
+
const facts = storageFacts(dataset, messages, numbers)
|
|
257
|
+
|
|
258
|
+
return (
|
|
259
|
+
<>
|
|
260
|
+
{facts.map((fact, index) => (
|
|
261
|
+
<span key={fact} className="contents">
|
|
262
|
+
{index > 0 ? <MetaDot /> : null}
|
|
263
|
+
<span className="tabular-nums">{fact}</span>
|
|
264
|
+
</span>
|
|
265
|
+
))}
|
|
266
|
+
</>
|
|
267
|
+
)
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
function storageFacts(
|
|
271
|
+
dataset: DatasetStorage,
|
|
272
|
+
messages: DataMessages,
|
|
273
|
+
numbers: ReturnType<typeof useNumbers>
|
|
274
|
+
): string[] {
|
|
275
|
+
const lake = messages.lakeHealth
|
|
276
|
+
const count = numbers.count
|
|
277
|
+
|
|
278
|
+
const files = lake.files(dataset.dataFiles, count(dataset.dataFiles))
|
|
279
|
+
const facts = [
|
|
280
|
+
messages.common.rows(dataset.rowCount, count(dataset.rowCount)),
|
|
281
|
+
dataset.smallDataFiles > 0
|
|
282
|
+
? `${files} (${lake.smallFiles(dataset.smallDataFiles, count(dataset.smallDataFiles))})`
|
|
283
|
+
: files,
|
|
284
|
+
numbers.bytes(dataset.dataBytes),
|
|
285
|
+
]
|
|
286
|
+
|
|
287
|
+
if (dataset.deleteFiles > 0) {
|
|
288
|
+
facts.push(lake.deleteFiles(dataset.deleteFiles, count(dataset.deleteFiles)))
|
|
289
|
+
}
|
|
290
|
+
if (dataset.inlinedRows > 0) {
|
|
291
|
+
facts.push(lake.inlinedRows(dataset.inlinedRows, count(dataset.inlinedRows)))
|
|
292
|
+
}
|
|
293
|
+
facts.push(lake.snapshots(dataset.retainedSnapshots, count(dataset.retainedSnapshots)))
|
|
294
|
+
if (dataset.partitionBy.length > 0) {
|
|
295
|
+
facts.push(lake.partitionedBy(dataset.partitionBy.join(", ")))
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
return facts
|
|
299
|
+
}
|
|
@@ -13,6 +13,7 @@ export const en = {
|
|
|
13
13
|
loadFailed: "This list could not be loaded.",
|
|
14
14
|
writes: (dataset: string) => `Writes ${dataset}`,
|
|
15
15
|
lastRunFailed: "The last run failed",
|
|
16
|
+
attempt: (count: number) => `Attempt ${count}`,
|
|
16
17
|
schedule: "Schedule",
|
|
17
18
|
schedules: "Schedules",
|
|
18
19
|
details: "Details",
|
|
@@ -119,6 +120,73 @@ export const en = {
|
|
|
119
120
|
hidden: { sync: "A sync", pipeline: "A pipeline" },
|
|
120
121
|
},
|
|
121
122
|
},
|
|
123
|
+
lakeHealth: {
|
|
124
|
+
title: "Lake health",
|
|
125
|
+
description: "How the lake stores each dataset, and how it cleans up after itself.",
|
|
126
|
+
unavailableTitle: "This lake storage has no maintenance",
|
|
127
|
+
unavailableDescription:
|
|
128
|
+
"Its provider neither describes how datasets are stored nor removes replaced versions. DuckLake does both.",
|
|
129
|
+
cleanupTitle: "Automatic cleanup",
|
|
130
|
+
cleanupDescription:
|
|
131
|
+
"Removes replaced versions and the files only they read. The versions projections applied are always kept.",
|
|
132
|
+
status: "Status",
|
|
133
|
+
states: {
|
|
134
|
+
ok: "Healthy",
|
|
135
|
+
cleaning: "Cleaning now",
|
|
136
|
+
off: "Off",
|
|
137
|
+
idle: "Nothing to clean",
|
|
138
|
+
"not-requested": "Not running",
|
|
139
|
+
"no-worker": "Waiting for a lake worker",
|
|
140
|
+
failing: "Failing",
|
|
141
|
+
},
|
|
142
|
+
stateNotes: {
|
|
143
|
+
off: "The project turned it off. Replaced versions stay until someone cleans up by hand.",
|
|
144
|
+
idle: "No dataset writes to this lake yet.",
|
|
145
|
+
ok: "The orchestrator requests it and a lake worker runs it.",
|
|
146
|
+
cleaning: "A lake worker is removing expired versions and their files.",
|
|
147
|
+
"not-requested":
|
|
148
|
+
"Nothing is asking for cleanup: the orchestrator is not running. Replaced versions stay until it does.",
|
|
149
|
+
"no-worker":
|
|
150
|
+
"Cleanup is requested, but no lake worker has run it. Replaced versions stay until one does.",
|
|
151
|
+
failing:
|
|
152
|
+
"The last attempt failed, and the next one tries again. The details went to the project's error handler.",
|
|
153
|
+
},
|
|
154
|
+
interval: "Interval",
|
|
155
|
+
lastRequested: "Last requested",
|
|
156
|
+
lastRun: "Last run",
|
|
157
|
+
never: "Never",
|
|
158
|
+
keepVersionsFor: "Keeps replaced versions for",
|
|
159
|
+
deleteFilesAfter: "Deletes unread files after",
|
|
160
|
+
datasetsTitle: "Datasets",
|
|
161
|
+
datasetsDescription:
|
|
162
|
+
"Compaction merges small files and inlined rows after the writes that leave them.",
|
|
163
|
+
emptyTitle: "No datasets",
|
|
164
|
+
emptyDescription: "A sync or pipeline declares the dataset it writes.",
|
|
165
|
+
notWritten: "Not written yet",
|
|
166
|
+
files: (count: number, formatted: string) =>
|
|
167
|
+
plural("en", count, { one: `${formatted} file`, other: `${formatted} files` }),
|
|
168
|
+
smallFiles: (_count: number, formatted: string) => `${formatted} small`,
|
|
169
|
+
deleteFiles: (count: number, formatted: string) =>
|
|
170
|
+
plural("en", count, { one: `${formatted} delete file`, other: `${formatted} delete files` }),
|
|
171
|
+
inlinedRows: (count: number, formatted: string) =>
|
|
172
|
+
plural("en", count, { one: `${formatted} inlined row`, other: `${formatted} inlined rows` }),
|
|
173
|
+
snapshots: (count: number, formatted: string) =>
|
|
174
|
+
plural("en", count, { one: `${formatted} snapshot`, other: `${formatted} snapshots` }),
|
|
175
|
+
partitionedBy: (columns: string) => `Partitioned by ${columns}`,
|
|
176
|
+
warnings: (count: number) =>
|
|
177
|
+
plural("en", count, { one: "1 warning", other: `${count} warnings` }),
|
|
178
|
+
waiting: (count: number, formatted: string) =>
|
|
179
|
+
plural("en", count, {
|
|
180
|
+
one: `${formatted} ingested change waiting`,
|
|
181
|
+
other: `${formatted} ingested changes waiting`,
|
|
182
|
+
}),
|
|
183
|
+
oldest: (relative: string) => `oldest received ${relative}`,
|
|
184
|
+
rejected: (count: number, formatted: string) =>
|
|
185
|
+
plural("en", count, {
|
|
186
|
+
one: `${formatted} delivery refused, kept for a week: sixb lake rejected`,
|
|
187
|
+
other: `${formatted} deliveries refused, kept for a week: sixb lake rejected`,
|
|
188
|
+
}),
|
|
189
|
+
},
|
|
122
190
|
pipelines: {
|
|
123
191
|
title: "Pipelines",
|
|
124
192
|
description: "Pipelines turn datasets into new ones, one step after another.",
|
|
@@ -167,7 +235,6 @@ export const en = {
|
|
|
167
235
|
rowsRead: "Rows read",
|
|
168
236
|
rowsSkipped: (_count: number, formatted: string) => `${formatted} skipped`,
|
|
169
237
|
runWhat: "Projection runs",
|
|
170
|
-
attempt: (count: number) => `Attempt ${count}`,
|
|
171
238
|
},
|
|
172
239
|
} satisfies MessageTree
|
|
173
240
|
|
|
@@ -185,6 +252,7 @@ export const fr: Translation<DataMessages> = {
|
|
|
185
252
|
loadFailed: "Impossible de charger cette liste.",
|
|
186
253
|
writes: (dataset: string) => `Écrit ${dataset}`,
|
|
187
254
|
lastRunFailed: "La dernière exécution a échoué",
|
|
255
|
+
attempt: (count: number) => `Tentative ${count}`,
|
|
188
256
|
schedule: "Planification",
|
|
189
257
|
schedules: "Planifications",
|
|
190
258
|
details: "Détails",
|
|
@@ -295,6 +363,80 @@ export const fr: Translation<DataMessages> = {
|
|
|
295
363
|
hidden: { sync: "Une synchronisation", pipeline: "Un pipeline" },
|
|
296
364
|
},
|
|
297
365
|
},
|
|
366
|
+
lakeHealth: {
|
|
367
|
+
title: "Santé du lac",
|
|
368
|
+
description: "Comment le lac stocke chaque jeu de données, et comment il se nettoie.",
|
|
369
|
+
unavailableTitle: "Ce stockage de lac n’a pas de maintenance",
|
|
370
|
+
unavailableDescription:
|
|
371
|
+
"Son fournisseur ne décrit pas le stockage des jeux de données et ne supprime pas les versions remplacées. DuckLake fait les deux.",
|
|
372
|
+
cleanupTitle: "Nettoyage automatique",
|
|
373
|
+
cleanupDescription:
|
|
374
|
+
"Supprime les versions remplacées et les fichiers qu’elles seules lisent. Les versions appliquées par les projections sont toujours conservées.",
|
|
375
|
+
status: "État",
|
|
376
|
+
states: {
|
|
377
|
+
ok: "Opérationnel",
|
|
378
|
+
cleaning: "Nettoyage en cours",
|
|
379
|
+
off: "Désactivé",
|
|
380
|
+
idle: "Rien à nettoyer",
|
|
381
|
+
"not-requested": "À l’arrêt",
|
|
382
|
+
"no-worker": "En attente d’un worker du lac",
|
|
383
|
+
failing: "En échec",
|
|
384
|
+
},
|
|
385
|
+
stateNotes: {
|
|
386
|
+
off: "Le projet l’a désactivé. Les versions remplacées restent jusqu’à un nettoyage manuel.",
|
|
387
|
+
idle: "Aucun jeu de données n’écrit encore dans ce lac.",
|
|
388
|
+
ok: "L’orchestrateur le demande et un worker du lac l’exécute.",
|
|
389
|
+
cleaning: "Un worker du lac supprime les versions expirées et leurs fichiers.",
|
|
390
|
+
"not-requested":
|
|
391
|
+
"Rien ne demande le nettoyage : l’orchestrateur ne tourne pas. Les versions remplacées restent en attendant.",
|
|
392
|
+
"no-worker":
|
|
393
|
+
"Le nettoyage est demandé, mais aucun worker du lac ne l’a exécuté. Les versions remplacées restent en attendant.",
|
|
394
|
+
failing:
|
|
395
|
+
"La dernière tentative a échoué et la suivante réessaiera. Le détail est parti vers le gestionnaire d’erreurs du projet.",
|
|
396
|
+
},
|
|
397
|
+
interval: "Intervalle",
|
|
398
|
+
lastRequested: "Dernière demande",
|
|
399
|
+
lastRun: "Dernière exécution",
|
|
400
|
+
never: "Jamais",
|
|
401
|
+
keepVersionsFor: "Conserve les versions remplacées",
|
|
402
|
+
deleteFilesAfter: "Supprime les fichiers non lus après",
|
|
403
|
+
datasetsTitle: "Jeux de données",
|
|
404
|
+
datasetsDescription:
|
|
405
|
+
"La compaction fusionne les petits fichiers et les lignes du catalogue après les écritures qui les laissent.",
|
|
406
|
+
emptyTitle: "Aucun jeu de données",
|
|
407
|
+
emptyDescription: "Une synchronisation ou un pipeline déclare le jeu de données qu’il écrit.",
|
|
408
|
+
notWritten: "Pas encore écrit",
|
|
409
|
+
files: (count: number, formatted: string) =>
|
|
410
|
+
plural("fr", count, { one: `${formatted} fichier`, other: `${formatted} fichiers` }),
|
|
411
|
+
smallFiles: (count: number, formatted: string) =>
|
|
412
|
+
plural("fr", count, { one: `${formatted} petit`, other: `${formatted} petits` }),
|
|
413
|
+
deleteFiles: (count: number, formatted: string) =>
|
|
414
|
+
plural("fr", count, {
|
|
415
|
+
one: `${formatted} fichier de suppression`,
|
|
416
|
+
other: `${formatted} fichiers de suppression`,
|
|
417
|
+
}),
|
|
418
|
+
inlinedRows: (count: number, formatted: string) =>
|
|
419
|
+
plural("fr", count, {
|
|
420
|
+
one: `${formatted} ligne dans le catalogue`,
|
|
421
|
+
other: `${formatted} lignes dans le catalogue`,
|
|
422
|
+
}),
|
|
423
|
+
snapshots: (count: number, formatted: string) =>
|
|
424
|
+
plural("fr", count, { one: `${formatted} instantané`, other: `${formatted} instantanés` }),
|
|
425
|
+
partitionedBy: (columns: string) => `Partitionné par ${columns}`,
|
|
426
|
+
warnings: (count: number) =>
|
|
427
|
+
plural("fr", count, { one: "1 avertissement", other: `${count} avertissements` }),
|
|
428
|
+
waiting: (count: number, formatted: string) =>
|
|
429
|
+
plural("fr", count, {
|
|
430
|
+
one: `${formatted} modification ingérée en attente`,
|
|
431
|
+
other: `${formatted} modifications ingérées en attente`,
|
|
432
|
+
}),
|
|
433
|
+
oldest: (relative: string) => `la plus ancienne reçue ${relative}`,
|
|
434
|
+
rejected: (count: number, formatted: string) =>
|
|
435
|
+
plural("fr", count, {
|
|
436
|
+
one: `${formatted} livraison refusée, conservée une semaine : sixb lake rejected`,
|
|
437
|
+
other: `${formatted} livraisons refusées, conservées une semaine : sixb lake rejected`,
|
|
438
|
+
}),
|
|
439
|
+
},
|
|
298
440
|
pipelines: {
|
|
299
441
|
title: "Pipelines",
|
|
300
442
|
description:
|
|
@@ -351,7 +493,6 @@ export const fr: Translation<DataMessages> = {
|
|
|
351
493
|
rowsSkipped: (count: number, formatted: string) =>
|
|
352
494
|
plural("fr", count, { one: `${formatted} ignorée`, other: `${formatted} ignorées` }),
|
|
353
495
|
runWhat: "Les exécutions de la projection",
|
|
354
|
-
attempt: (count: number) => `Tentative ${count}`,
|
|
355
496
|
},
|
|
356
497
|
}
|
|
357
498
|
|
|
@@ -47,12 +47,14 @@ import {
|
|
|
47
47
|
PanelSkeleton,
|
|
48
48
|
Pill,
|
|
49
49
|
RunStatusPill,
|
|
50
|
+
SkeletonText,
|
|
50
51
|
UnrecordedHistory,
|
|
51
52
|
useFormat,
|
|
52
53
|
useLoadFailure,
|
|
53
54
|
useNumbers,
|
|
54
55
|
useRunStatusLabels,
|
|
55
56
|
} from "../../section-ui"
|
|
57
|
+
import { MetaSkeleton, PillSkeleton, SkeletonBlock, TrailingSkeleton } from "../skeletons"
|
|
56
58
|
import { datasetGridColumns } from "./datasets"
|
|
57
59
|
import { useDatasetLiveUpdates, usePipelineLiveUpdates } from "./live-updates"
|
|
58
60
|
import { useDataMessages } from "./messages"
|
|
@@ -75,7 +77,7 @@ export function ConsolePipelinesPage() {
|
|
|
75
77
|
>
|
|
76
78
|
<Panel>
|
|
77
79
|
{pipelinesQuery.isPending ? (
|
|
78
|
-
<PanelSkeleton rows={3} />
|
|
80
|
+
<PanelSkeleton rows={3} interactive trailing={<TrailingSkeleton chevron />} />
|
|
79
81
|
) : pipelinesQuery.isError ? (
|
|
80
82
|
<PanelEmpty
|
|
81
83
|
tone="error"
|
|
@@ -222,6 +224,30 @@ function PipelineDetail({ pipelineId }: { readonly pipelineId: string }) {
|
|
|
222
224
|
id={pipelineId}
|
|
223
225
|
icon={Workflow}
|
|
224
226
|
error={pipelineQuery.error}
|
|
227
|
+
workspace={
|
|
228
|
+
<>
|
|
229
|
+
<WorkspaceHeader
|
|
230
|
+
back={back}
|
|
231
|
+
icon={<IconTile icon={Workflow} />}
|
|
232
|
+
title={humanize(pipelineId)}
|
|
233
|
+
meta={<MetaSkeleton />}
|
|
234
|
+
actions={
|
|
235
|
+
<>
|
|
236
|
+
<SkeletonBlock className="h-8 w-8 sm:w-20" />
|
|
237
|
+
<SkeletonBlock className="h-8 w-24" />
|
|
238
|
+
</>
|
|
239
|
+
}
|
|
240
|
+
/>
|
|
241
|
+
<div className="flex min-h-0 flex-1">
|
|
242
|
+
<div className="min-w-0 flex-1 bg-muted/25" />
|
|
243
|
+
{runsOpen ? (
|
|
244
|
+
<aside className="h-full w-[22rem] max-w-[calc(100vw-1rem)] shrink-0 border-l border-border bg-card">
|
|
245
|
+
<div className="h-12 border-b border-border" />
|
|
246
|
+
</aside>
|
|
247
|
+
) : null}
|
|
248
|
+
</div>
|
|
249
|
+
</>
|
|
250
|
+
}
|
|
225
251
|
/>
|
|
226
252
|
)
|
|
227
253
|
}
|
|
@@ -403,7 +429,7 @@ function RunsPanel({
|
|
|
403
429
|
<PanelBar title={messages.common.runs} onClose={onClose} />
|
|
404
430
|
<div className="min-h-0 flex-1 overflow-y-auto">
|
|
405
431
|
{runsQuery.isPending ? (
|
|
406
|
-
<
|
|
432
|
+
<RunListSkeleton />
|
|
407
433
|
) : runsQuery.isError ? (
|
|
408
434
|
isUnrecorded(runsQuery.error) ? (
|
|
409
435
|
<UnrecordedHistory what={messages.pipelines.runWhat} />
|
|
@@ -444,6 +470,7 @@ function RunsPanel({
|
|
|
444
470
|
{run.finishedAt
|
|
445
471
|
? ` · ${formatDuration(run.startedAt, run.finishedAt)}`
|
|
446
472
|
: null}
|
|
473
|
+
{run.attempt > 1 ? ` · ${messages.common.attempt(run.attempt)}` : null}
|
|
447
474
|
</span>
|
|
448
475
|
</span>
|
|
449
476
|
<RunStatusPill status={run.status} />
|
|
@@ -492,7 +519,7 @@ function RunPanel({
|
|
|
492
519
|
</PanelBar>
|
|
493
520
|
<div className="min-h-0 flex-1 overflow-y-auto">
|
|
494
521
|
{runQuery.isPending ? (
|
|
495
|
-
<
|
|
522
|
+
<RunSkeleton />
|
|
496
523
|
) : runQuery.isError || !run ? (
|
|
497
524
|
<PanelEmpty
|
|
498
525
|
tone="error"
|
|
@@ -582,6 +609,67 @@ function RunPanel({
|
|
|
582
609
|
)
|
|
583
610
|
}
|
|
584
611
|
|
|
612
|
+
/** The runs panel's list while it loads, shaped like its rows. */
|
|
613
|
+
function RunListSkeleton() {
|
|
614
|
+
return (
|
|
615
|
+
<ul aria-hidden className="divide-y divide-border">
|
|
616
|
+
{Array.from({ length: 6 }, (_, index) => (
|
|
617
|
+
<li key={index} className="flex items-start gap-3 px-4 py-3">
|
|
618
|
+
<span className="min-w-0 flex-1">
|
|
619
|
+
<span className="block text-[0.8125rem]">
|
|
620
|
+
<SkeletonText className="w-36" />
|
|
621
|
+
</span>
|
|
622
|
+
<span className="block text-xs">
|
|
623
|
+
<SkeletonText className="h-2 w-24 bg-muted/70" />
|
|
624
|
+
</span>
|
|
625
|
+
</span>
|
|
626
|
+
<PillSkeleton />
|
|
627
|
+
</li>
|
|
628
|
+
))}
|
|
629
|
+
</ul>
|
|
630
|
+
)
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/** A run's figures and steps while they load. */
|
|
634
|
+
function RunSkeleton() {
|
|
635
|
+
const messages = useDataMessages().common
|
|
636
|
+
return (
|
|
637
|
+
<div aria-hidden className="flex flex-col gap-5 p-4">
|
|
638
|
+
<dl className="grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-border bg-border">
|
|
639
|
+
{[messages.started, messages.took].map((label) => (
|
|
640
|
+
<div key={label} className="bg-card px-3 py-2">
|
|
641
|
+
<dt className="text-[0.6875rem] text-muted-foreground">{label}</dt>
|
|
642
|
+
<dd className="text-[0.8125rem]">
|
|
643
|
+
<SkeletonText className="w-14" />
|
|
644
|
+
</dd>
|
|
645
|
+
</div>
|
|
646
|
+
))}
|
|
647
|
+
</dl>
|
|
648
|
+
<section className="flex flex-col gap-2">
|
|
649
|
+
<h3 className="text-xs">
|
|
650
|
+
<SkeletonText className="h-2 w-12" />
|
|
651
|
+
</h3>
|
|
652
|
+
<ol className="flex flex-col gap-2">
|
|
653
|
+
{Array.from({ length: 2 }, (_, index) => (
|
|
654
|
+
<li key={index} className="rounded-lg border border-border px-3 py-2.5">
|
|
655
|
+
<div className="flex items-center gap-2">
|
|
656
|
+
<span className="min-w-0 flex-1 text-[0.8125rem]">
|
|
657
|
+
<SkeletonText className="w-32" />
|
|
658
|
+
</span>
|
|
659
|
+
<PillSkeleton />
|
|
660
|
+
</div>
|
|
661
|
+
<div className="mt-1 text-xs">
|
|
662
|
+
<SkeletonText className="h-2 w-40 bg-muted/70" />
|
|
663
|
+
</div>
|
|
664
|
+
<SkeletonBlock className="mt-2 h-[1.375rem] w-36" />
|
|
665
|
+
</li>
|
|
666
|
+
))}
|
|
667
|
+
</ol>
|
|
668
|
+
</section>
|
|
669
|
+
</div>
|
|
670
|
+
)
|
|
671
|
+
}
|
|
672
|
+
|
|
585
673
|
/** A dataset's first rows, below the canvas, with the way to its full page. */
|
|
586
674
|
function DatasetDrawer({
|
|
587
675
|
datasetId,
|