@sixb/app 0.1.17 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/assets/connector-icons/README.md +1 -1
- package/dist/agent/agent-chat.d.ts.map +1 -1
- package/dist/agent/bash/interpret.d.ts +6 -2
- package/dist/agent/bash/interpret.d.ts.map +1 -1
- package/dist/agent/components/agent-message-body.d.ts.map +1 -1
- package/dist/agent/components/approval-mode-icons.d.ts +5 -0
- package/dist/agent/components/approval-mode-icons.d.ts.map +1 -0
- package/dist/agent/components/composer-add-menu.d.ts +15 -0
- package/dist/agent/components/composer-add-menu.d.ts.map +1 -0
- package/dist/agent/components/composer-commands.d.ts +37 -0
- package/dist/agent/components/composer-commands.d.ts.map +1 -0
- package/dist/agent/components/composer-menu.d.ts +18 -15
- package/dist/agent/components/composer-menu.d.ts.map +1 -1
- package/dist/agent/components/composer-settings.d.ts +34 -0
- package/dist/agent/components/composer-settings.d.ts.map +1 -0
- package/dist/agent/components/composer.d.ts +13 -3
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/computer-place.d.ts +23 -0
- package/dist/agent/components/computer-place.d.ts.map +1 -0
- package/dist/agent/components/context-chips.d.ts +5 -0
- package/dist/agent/components/context-chips.d.ts.map +1 -1
- package/dist/agent/components/context-meter.d.ts +41 -0
- package/dist/agent/components/context-meter.d.ts.map +1 -0
- 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/dictation-bar.d.ts +7 -3
- package/dist/agent/components/dictation-bar.d.ts.map +1 -1
- package/dist/agent/components/message-parts.d.ts +9 -1
- package/dist/agent/components/message-parts.d.ts.map +1 -1
- package/dist/agent/components/message-view.d.ts +18 -3
- package/dist/agent/components/message-view.d.ts.map +1 -1
- package/dist/agent/components/model-picker-row.d.ts +1 -3
- package/dist/agent/components/model-picker-row.d.ts.map +1 -1
- package/dist/agent/components/reasoning-effort-slider.d.ts.map +1 -1
- package/dist/agent/components/shared-thread-notice.d.ts +4 -2
- package/dist/agent/components/shared-thread-notice.d.ts.map +1 -1
- package/dist/agent/components/transcript.d.ts +7 -0
- package/dist/agent/components/transcript.d.ts.map +1 -1
- package/dist/agent/conversation.d.ts +17 -2
- package/dist/agent/conversation.d.ts.map +1 -1
- package/dist/agent/delegation/use-children.d.ts +65 -5
- package/dist/agent/delegation/use-children.d.ts.map +1 -1
- package/dist/agent/format.d.ts +4 -0
- package/dist/agent/format.d.ts.map +1 -1
- package/dist/agent/hooks/use-agent-conversation.d.ts +20 -2
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-lists.d.ts +32 -0
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/hooks/use-thread-stream.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +134 -8
- 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 +244 -12
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/agent/live-run.d.ts +4 -0
- package/dist/agent/live-run.d.ts.map +1 -1
- package/dist/agent/model-selection.d.ts +1 -0
- package/dist/agent/model-selection.d.ts.map +1 -1
- package/dist/agent/parts.d.ts +2 -0
- package/dist/agent/parts.d.ts.map +1 -1
- package/dist/agent/run-presentation.d.ts +2 -0
- package/dist/agent/run-presentation.d.ts.map +1 -1
- package/dist/agent/run-sounds.d.ts +18 -0
- package/dist/agent/run-sounds.d.ts.map +1 -0
- package/dist/agent/types.d.ts +3 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/{chunk-sw3pyqgy.js → chunk-4mprsd2n.js} +15 -34
- package/dist/chunk-4mprsd2n.js.map +10 -0
- package/dist/{chunk-md3p7qdt.js → chunk-dgs11da9.js} +3 -3
- package/dist/{chunk-md3p7qdt.js.map → chunk-dgs11da9.js.map} +3 -3
- package/dist/{chunk-12v6y89k.js → chunk-fw2bm6dq.js} +15910 -14521
- package/dist/{chunk-12v6y89k.js.map → chunk-fw2bm6dq.js.map} +68 -64
- package/dist/{chunk-hzy2g13h.js → chunk-j9653e83.js} +1 -1
- package/dist/{chunk-hzy2g13h.js.map → chunk-j9653e83.js.map} +1 -1
- package/dist/{chunk-6n5pdqp0.js → chunk-j98jkx60.js} +3 -3
- package/dist/{chunk-6n5pdqp0.js.map → chunk-j98jkx60.js.map} +3 -3
- package/dist/{chunk-bpj9mg5c.js → chunk-km25essq.js} +3 -3
- package/dist/chunk-km25essq.js.map +10 -0
- package/dist/{chunk-k4epnkcr.js → chunk-kwbw4dyk.js} +1 -1
- package/dist/{chunk-53z5653y.js → chunk-q69001w3.js} +78 -90
- package/dist/chunk-q69001w3.js.map +11 -0
- package/dist/{chunk-2a69ge8h.js → chunk-zxthr2q5.js} +1 -1
- package/dist/{chunk-2a69ge8h.js.map → chunk-zxthr2q5.js.map} +1 -1
- package/dist/codegen.d.ts.map +1 -1
- package/dist/index.d.ts +7 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +35 -20
- package/dist/index.js.map +5 -5
- package/dist/locale-messages.d.ts +8 -20
- package/dist/locale-messages.d.ts.map +1 -1
- package/dist/locale.d.ts +8 -20
- package/dist/locale.d.ts.map +1 -1
- package/dist/locale.js +1 -1
- package/dist/metadata.d.ts.map +1 -1
- package/dist/pages/{observability → console}/action-run.d.ts +1 -1
- package/dist/pages/console/action-run.d.ts.map +1 -0
- package/dist/pages/console/data/connectors.d.ts +5 -0
- package/dist/pages/console/data/connectors.d.ts.map +1 -0
- package/dist/pages/{data → console/data}/datasets.d.ts +3 -3
- package/dist/pages/console/data/datasets.d.ts.map +1 -0
- package/dist/pages/console/data/live-updates.d.ts.map +1 -0
- package/dist/pages/{data → console/data}/messages.d.ts +19 -1
- package/dist/pages/console/data/messages.d.ts.map +1 -0
- package/dist/pages/{data → console/data}/pipeline-canvas.d.ts +1 -1
- package/dist/pages/console/data/pipeline-canvas.d.ts.map +1 -0
- package/dist/pages/console/data/pipelines.d.ts +9 -0
- package/dist/pages/console/data/pipelines.d.ts.map +1 -0
- package/dist/pages/console/data/producer.d.ts +21 -0
- package/dist/pages/console/data/producer.d.ts.map +1 -0
- package/dist/pages/{data → console/data}/projections.d.ts +3 -3
- package/dist/pages/console/data/projections.d.ts.map +1 -0
- package/dist/pages/console/data/schema.d.ts.map +1 -0
- package/dist/pages/console/data/shared.d.ts.map +1 -0
- package/dist/pages/console/data/sync-button.d.ts.map +1 -0
- package/dist/pages/console/data/syncs.d.ts +5 -0
- package/dist/pages/console/data/syncs.d.ts.map +1 -0
- package/dist/pages/console/live-updates.d.ts.map +1 -0
- package/dist/pages/{observability → console}/logs.d.ts +2 -2
- package/dist/pages/console/logs.d.ts.map +1 -0
- package/dist/pages/{observability → console}/messages.d.ts +8 -100
- package/dist/pages/console/messages.d.ts.map +1 -0
- package/dist/pages/console/ontology/action-runs.d.ts +16 -0
- package/dist/pages/console/ontology/action-runs.d.ts.map +1 -0
- package/dist/pages/console/ontology/actions.d.ts +6 -0
- package/dist/pages/console/ontology/actions.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/action-button.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/action-param-null-control.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/collection-toolbar.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/common.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/file-ref-upload-field.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/object-filter-popover.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/object-icon.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/object-query-bar.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/telemetry-chart.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/telemetry-grid.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/telemetry-tile.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/telemetry-value.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/usage-bar.d.ts.map +1 -0
- package/dist/pages/console/ontology/components/user-picker.d.ts.map +1 -0
- package/dist/pages/console/ontology/graph.d.ts +6 -0
- package/dist/pages/console/ontology/graph.d.ts.map +1 -0
- package/dist/pages/console/ontology/hooks/object-live-updates.d.ts.map +1 -0
- package/dist/pages/console/ontology/hooks/object-telemetry-updates.d.ts.map +1 -0
- package/dist/pages/console/ontology/hooks/object-type-counts.d.ts.map +1 -0
- package/dist/pages/console/ontology/hooks/rule-live-updates.d.ts.map +1 -0
- package/dist/pages/console/ontology/hooks/workflow-live-updates.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/action-params.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/format-value.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/labels.d.ts.map +1 -0
- package/dist/pages/{ontology → console/ontology}/lib/live-update-keys.d.ts +2 -0
- package/dist/pages/console/ontology/lib/live-update-keys.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/object-query.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/ontology-graph-layout.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/ontology-graph-links.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/telemetry-history.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/time.d.ts.map +1 -0
- package/dist/pages/console/ontology/lib/user-preferences.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/action-name.d.ts +6 -0
- package/dist/pages/console/ontology/lineage/action-name.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/dataset-steps.d.ts +15 -0
- package/dist/pages/console/ontology/lineage/dataset-steps.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/links.d.ts +13 -0
- package/dist/pages/console/ontology/lineage/links.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/messages.d.ts +108 -0
- package/dist/pages/console/ontology/lineage/messages.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/model.d.ts +84 -0
- package/dist/pages/console/ontology/lineage/model.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts +17 -0
- package/dist/pages/console/ontology/lineage/properties-panel.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/property-source.d.ts +12 -0
- package/dist/pages/console/ontology/lineage/property-source.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/query.d.ts +8 -0
- package/dist/pages/console/ontology/lineage/query.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/requester.d.ts +8 -0
- package/dist/pages/console/ontology/lineage/requester.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/separated.d.ts +16 -0
- package/dist/pages/console/ontology/lineage/separated.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/summary.d.ts +10 -0
- package/dist/pages/console/ontology/lineage/summary.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/trail-step.d.ts +20 -0
- package/dist/pages/console/ontology/lineage/trail-step.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/trail.d.ts +21 -0
- package/dist/pages/console/ontology/lineage/trail.d.ts.map +1 -0
- package/dist/pages/console/ontology/lineage/value-lineage-panel.d.ts +26 -0
- package/dist/pages/console/ontology/lineage/value-lineage-panel.d.ts.map +1 -0
- package/dist/pages/console/ontology/object-page.d.ts.map +1 -0
- package/dist/pages/console/ontology/object-type.d.ts +3 -0
- package/dist/pages/console/ontology/object-type.d.ts.map +1 -0
- package/dist/pages/console/ontology/object-types.d.ts +7 -0
- package/dist/pages/console/ontology/object-types.d.ts.map +1 -0
- package/dist/pages/console/ontology/objects.d.ts +6 -0
- package/dist/pages/console/ontology/objects.d.ts.map +1 -0
- package/dist/pages/{ontology → console/ontology}/rules.d.ts +3 -3
- package/dist/pages/console/ontology/rules.d.ts.map +1 -0
- package/dist/pages/{ontology → console/ontology}/workflow.d.ts +1 -1
- package/dist/pages/console/ontology/workflow.d.ts.map +1 -0
- package/dist/pages/{ontology → console/ontology}/workflows/agent-execution-panel.d.ts +1 -1
- package/dist/pages/console/ontology/workflows/agent-execution-panel.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/intervention-panel.d.ts.map +1 -0
- package/dist/pages/{ontology → console/ontology}/workflows/node-execution-panel.d.ts +1 -1
- package/dist/pages/console/ontology/workflows/node-execution-panel.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/request-run-dialog.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/run-debug-section.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/run-input-form.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/run-progress.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/schema-shape.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/status-badge.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/utils.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows/workflow-card.d.ts.map +1 -0
- package/dist/pages/console/ontology/workflows.d.ts +3 -0
- package/dist/pages/console/ontology/workflows.d.ts.map +1 -0
- package/dist/pages/{observability → console}/workflow-run.d.ts +1 -1
- package/dist/pages/console/workflow-run.d.ts.map +1 -0
- package/dist/pages/routes.d.ts +16 -8
- package/dist/pages/routes.d.ts.map +1 -1
- package/dist/pages/section-page.d.ts +2 -6
- package/dist/pages/section-page.d.ts.map +1 -1
- package/dist/pages/section-ui.d.ts +15 -0
- package/dist/pages/section-ui.d.ts.map +1 -1
- package/dist/pages/settings/activity/calendar.d.ts.map +1 -0
- package/dist/pages/settings/activity/connections.d.ts.map +1 -0
- package/dist/pages/settings/activity/format.d.ts.map +1 -0
- package/dist/pages/{observability → settings}/activity/messages.d.ts +1 -1
- package/dist/pages/settings/activity/messages.d.ts.map +1 -0
- package/dist/pages/settings/activity/meta-items.d.ts.map +1 -0
- package/dist/pages/settings/activity/page.d.ts +6 -0
- package/dist/pages/settings/activity/page.d.ts.map +1 -0
- package/dist/pages/{observability → settings}/activity/period.d.ts +1 -1
- package/dist/pages/settings/activity/period.d.ts.map +1 -0
- package/dist/pages/settings/activity/steps.d.ts.map +1 -0
- package/dist/pages/settings/activity/thread.d.ts +6 -0
- package/dist/pages/settings/activity/thread.d.ts.map +1 -0
- package/dist/pages/settings/activity/timeline.d.ts.map +1 -0
- package/dist/pages/settings/activity/users.d.ts.map +1 -0
- package/dist/pages/settings/controls.d.ts +1 -1
- package/dist/pages/settings/controls.d.ts.map +1 -1
- package/dist/pages/settings/members.d.ts +4 -1
- package/dist/pages/settings/members.d.ts.map +1 -1
- package/dist/pages/settings/memory-editors.d.ts +55 -0
- package/dist/pages/settings/memory-editors.d.ts.map +1 -0
- package/dist/pages/settings/memory-entries.d.ts +2 -5
- package/dist/pages/settings/memory-entries.d.ts.map +1 -1
- package/dist/pages/settings/memory-files.d.ts +17 -14
- package/dist/pages/settings/memory-files.d.ts.map +1 -1
- package/dist/pages/settings/memory-history.d.ts +5 -3
- package/dist/pages/settings/memory-history.d.ts.map +1 -1
- package/dist/pages/settings/memory-note.d.ts +15 -0
- package/dist/pages/settings/memory-note.d.ts.map +1 -0
- package/dist/pages/settings/memory.d.ts +3 -17
- package/dist/pages/settings/memory.d.ts.map +1 -1
- package/dist/pages/settings/messages.d.ts +92 -16
- package/dist/pages/settings/messages.d.ts.map +1 -1
- package/dist/pages/settings/personal.d.ts +2 -2
- package/dist/pages/settings/personal.d.ts.map +1 -1
- package/dist/pages/settings/service-accounts.d.ts +8 -2
- package/dist/pages/settings/service-accounts.d.ts.map +1 -1
- package/dist/pages/settings/usage/breakdown.d.ts +17 -0
- package/dist/pages/settings/usage/breakdown.d.ts.map +1 -0
- package/dist/pages/settings/usage/call-detail.d.ts +9 -0
- package/dist/pages/settings/usage/call-detail.d.ts.map +1 -0
- package/dist/pages/settings/usage/filter-menu.d.ts +28 -0
- package/dist/pages/settings/usage/filter-menu.d.ts.map +1 -0
- package/dist/pages/{observability/ai-usage → settings/usage}/format.d.ts +0 -53
- package/dist/pages/settings/usage/format.d.ts.map +1 -0
- package/dist/pages/settings/usage/limits.d.ts.map +1 -0
- package/dist/pages/settings/usage/messages.d.ts +613 -0
- package/dist/pages/settings/usage/messages.d.ts.map +1 -0
- package/dist/pages/settings/usage/page.d.ts +6 -0
- package/dist/pages/settings/usage/page.d.ts.map +1 -0
- package/dist/pages/settings/usage/runs.d.ts +17 -0
- package/dist/pages/settings/usage/runs.d.ts.map +1 -0
- package/dist/pages/settings/usage/segmented.d.ts +11 -0
- package/dist/pages/settings/usage/segmented.d.ts.map +1 -0
- package/dist/pages/settings/usage/spend-chart.d.ts +22 -0
- package/dist/pages/settings/usage/spend-chart.d.ts.map +1 -0
- package/dist/pages/settings/usage/spend-model.d.ts +133 -0
- package/dist/pages/settings/usage/spend-model.d.ts.map +1 -0
- package/dist/pages/values.d.ts +10 -2
- package/dist/pages/values.d.ts.map +1 -1
- package/dist/pages.d.ts +21 -23
- package/dist/pages.d.ts.map +1 -1
- package/dist/pages.js +25937 -23703
- package/dist/pages.js.map +88 -67
- package/dist/sections/catalog.d.ts +10 -6
- package/dist/sections/catalog.d.ts.map +1 -1
- package/dist/sections/counts.d.ts.map +1 -1
- package/dist/sections/sections.d.ts +11 -18
- package/dist/sections/sections.d.ts.map +1 -1
- package/dist/server.js +128 -37
- package/dist/server.js.map +4 -4
- package/dist/session.d.ts +6 -0
- package/dist/session.d.ts.map +1 -1
- package/dist/shared-unavailable.d.ts +14 -0
- package/dist/shared-unavailable.d.ts.map +1 -0
- package/dist/shell/user-menu.d.ts +1 -1
- package/package.json +4 -4
- package/src/agent/agent-chat.tsx +10 -1
- package/src/agent/agent.css +174 -14
- package/src/agent/bash/interpret.ts +49 -5
- package/src/agent/components/agent-message-body.tsx +13 -3
- package/src/agent/components/approval-card.tsx +1 -1
- package/src/agent/components/approval-mode-icons.ts +9 -0
- package/src/agent/components/composer-add-menu.tsx +126 -0
- package/src/agent/components/composer-commands.tsx +165 -0
- package/src/agent/components/composer-menu.tsx +33 -46
- package/src/agent/components/composer-settings.tsx +437 -0
- package/src/agent/components/composer.tsx +317 -153
- package/src/agent/components/computer-place.tsx +119 -0
- package/src/agent/components/context-chips.tsx +21 -8
- package/src/agent/components/context-meter.tsx +419 -0
- package/src/agent/components/conversation-panel.tsx +17 -10
- package/src/agent/components/dictation-bar.tsx +28 -23
- package/src/agent/components/message-parts.tsx +72 -6
- package/src/agent/components/message-view.tsx +74 -17
- package/src/agent/components/model-picker-row.tsx +14 -24
- package/src/agent/components/reasoning-effort-slider.tsx +14 -10
- package/src/agent/components/shared-thread-notice.tsx +7 -2
- package/src/agent/components/transcript.tsx +31 -5
- package/src/agent/conversation.ts +33 -3
- package/src/agent/format.ts +21 -1
- package/src/agent/hooks/use-agent-conversation.ts +154 -10
- package/src/agent/hooks/use-thread-stream.ts +7 -0
- package/src/agent/i18n/en.ts +128 -15
- package/src/agent/i18n/fr.ts +143 -13
- package/src/agent/live-run.ts +24 -3
- package/src/agent/model-selection.ts +4 -0
- package/src/agent/parts.ts +10 -0
- package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +3 -2
- package/src/agent/run-presentation.ts +3 -0
- package/src/agent/run-sounds.ts +171 -0
- package/src/agent/types.ts +4 -0
- package/src/codegen.ts +134 -18
- package/src/index.ts +9 -3
- package/src/locale-messages.ts +12 -31
- package/src/metadata.ts +1 -33
- package/src/pages/{observability → console}/action-run.tsx +11 -10
- package/src/pages/{data → console/data}/connectors.tsx +11 -11
- package/src/pages/{data → console/data}/datasets.tsx +35 -16
- package/src/pages/{data → console/data}/messages.ts +13 -1
- package/src/pages/{data → console/data}/pipeline-canvas.tsx +1 -1
- package/src/pages/{data → console/data}/pipelines.tsx +11 -11
- package/src/pages/console/data/producer.tsx +90 -0
- package/src/pages/{data → console/data}/projections.tsx +11 -11
- package/src/pages/{data → console/data}/schema.tsx +1 -1
- package/src/pages/{data → console/data}/shared.tsx +1 -1
- package/src/pages/{data → console/data}/sync-button.tsx +1 -1
- package/src/pages/{data → console/data}/syncs.tsx +12 -12
- package/src/pages/{observability → console}/logs.tsx +10 -10
- package/src/pages/{observability → console}/messages.ts +9 -107
- package/src/pages/console/ontology/action-runs.tsx +247 -0
- package/src/pages/{ontology → console/ontology}/actions.tsx +57 -10
- package/src/pages/{ontology → console/ontology}/components/action-button.tsx +5 -5
- package/src/pages/{ontology → console/ontology}/graph.tsx +6 -6
- package/src/pages/{ontology → console/ontology}/lib/live-update-keys.ts +10 -1
- package/src/pages/console/ontology/lineage/action-name.ts +19 -0
- package/src/pages/console/ontology/lineage/dataset-steps.tsx +127 -0
- package/src/pages/console/ontology/lineage/links.tsx +45 -0
- package/src/pages/console/ontology/lineage/messages.ts +117 -0
- package/src/pages/console/ontology/lineage/model.ts +176 -0
- package/src/pages/console/ontology/lineage/properties-panel.tsx +95 -0
- package/src/pages/console/ontology/lineage/property-source.tsx +60 -0
- package/src/pages/console/ontology/lineage/query.ts +21 -0
- package/src/pages/console/ontology/lineage/requester.tsx +73 -0
- package/src/pages/console/ontology/lineage/separated.tsx +33 -0
- package/src/pages/console/ontology/lineage/summary.tsx +58 -0
- package/src/pages/console/ontology/lineage/trail-step.tsx +71 -0
- package/src/pages/console/ontology/lineage/trail.tsx +346 -0
- package/src/pages/console/ontology/lineage/value-lineage-panel.tsx +146 -0
- package/src/pages/{ontology → console/ontology}/object-page.tsx +22 -14
- package/src/pages/{ontology → console/ontology}/object-type.tsx +6 -6
- package/src/pages/{ontology → console/ontology}/object-types.tsx +7 -7
- package/src/pages/{ontology → console/ontology}/objects.tsx +6 -6
- package/src/pages/{ontology → console/ontology}/rules.tsx +10 -10
- package/src/pages/{ontology → console/ontology}/workflow.tsx +9 -9
- package/src/pages/{ontology → console/ontology}/workflows/agent-execution-panel.tsx +3 -3
- package/src/pages/{ontology → console/ontology}/workflows/intervention-panel.tsx +1 -1
- package/src/pages/{ontology → console/ontology}/workflows/node-execution-panel.tsx +2 -2
- package/src/pages/{ontology → console/ontology}/workflows/request-run-dialog.tsx +1 -1
- package/src/pages/{ontology → console/ontology}/workflows/run-debug-section.tsx +1 -1
- package/src/pages/{ontology → console/ontology}/workflows/utils.ts +2 -2
- package/src/pages/{ontology → console/ontology}/workflows/workflow-card.tsx +2 -2
- package/src/pages/{ontology → console/ontology}/workflows.tsx +5 -5
- package/src/pages/{observability → console}/workflow-run.tsx +18 -13
- package/src/pages/routes.ts +38 -16
- package/src/pages/section-page.tsx +3 -13
- package/src/pages/section-ui.tsx +74 -0
- package/src/pages/{observability → settings}/activity/messages.ts +1 -1
- package/src/pages/{observability → settings}/activity/page.tsx +3 -3
- package/src/pages/{observability → settings}/activity/period.ts +1 -1
- package/src/pages/{observability → settings}/activity/thread.tsx +5 -5
- package/src/pages/{observability → settings}/activity/timeline.tsx +2 -2
- package/src/pages/settings/controls.tsx +9 -4
- package/src/pages/settings/members.tsx +493 -203
- package/src/pages/settings/memory-editors.tsx +310 -0
- package/src/pages/settings/memory-entries.ts +10 -22
- package/src/pages/settings/memory-files.ts +37 -53
- package/src/pages/settings/memory-history.tsx +185 -194
- package/src/pages/settings/memory-note.tsx +710 -0
- package/src/pages/settings/memory.tsx +287 -776
- package/src/pages/settings/messages.ts +103 -26
- package/src/pages/settings/personal.tsx +60 -3
- package/src/pages/settings/service-accounts.tsx +14 -12
- package/src/pages/settings/usage/breakdown.tsx +424 -0
- package/src/pages/settings/usage/call-detail.tsx +283 -0
- package/src/pages/settings/usage/filter-menu.tsx +183 -0
- package/src/pages/{observability/ai-usage → settings/usage}/format.ts +0 -156
- package/src/pages/settings/usage/messages.ts +564 -0
- package/src/pages/settings/usage/page.tsx +567 -0
- package/src/pages/settings/usage/runs.tsx +774 -0
- package/src/pages/settings/usage/segmented.tsx +38 -0
- package/src/pages/settings/usage/spend-chart.tsx +334 -0
- package/src/pages/settings/usage/spend-model.ts +335 -0
- package/src/pages/values.tsx +25 -3
- package/src/pages.ts +26 -30
- package/src/sections/catalog.ts +93 -89
- package/src/sections/counts.ts +31 -12
- package/src/sections/sections.tsx +29 -48
- package/src/session.ts +12 -0
- package/src/shared-unavailable.ts +13 -0
- package/src/shell/user-menu.tsx +1 -1
- package/dist/agent/components/approval-mode-chip.d.ts +0 -15
- package/dist/agent/components/approval-mode-chip.d.ts.map +0 -1
- package/dist/agent/components/auto-model-chip.d.ts +0 -23
- package/dist/agent/components/auto-model-chip.d.ts.map +0 -1
- package/dist/agent/components/model-controls.d.ts +0 -41
- package/dist/agent/components/model-controls.d.ts.map +0 -1
- package/dist/chunk-53z5653y.js.map +0 -11
- package/dist/chunk-bpj9mg5c.js.map +0 -10
- package/dist/chunk-sw3pyqgy.js.map +0 -10
- package/dist/chunk-yvhzn4ye.js +0 -98
- package/dist/chunk-yvhzn4ye.js.map +0 -10
- package/dist/pages/data/connectors.d.ts +0 -5
- package/dist/pages/data/connectors.d.ts.map +0 -1
- package/dist/pages/data/datasets.d.ts.map +0 -1
- package/dist/pages/data/live-updates.d.ts.map +0 -1
- package/dist/pages/data/messages.d.ts.map +0 -1
- package/dist/pages/data/pipeline-canvas.d.ts.map +0 -1
- package/dist/pages/data/pipelines.d.ts +0 -9
- package/dist/pages/data/pipelines.d.ts.map +0 -1
- package/dist/pages/data/projections.d.ts.map +0 -1
- package/dist/pages/data/schema.d.ts.map +0 -1
- package/dist/pages/data/shared.d.ts.map +0 -1
- package/dist/pages/data/sync-button.d.ts.map +0 -1
- package/dist/pages/data/syncs.d.ts +0 -5
- package/dist/pages/data/syncs.d.ts.map +0 -1
- package/dist/pages/observability/action-run.d.ts.map +0 -1
- package/dist/pages/observability/activity/calendar.d.ts.map +0 -1
- package/dist/pages/observability/activity/connections.d.ts.map +0 -1
- package/dist/pages/observability/activity/format.d.ts.map +0 -1
- package/dist/pages/observability/activity/messages.d.ts.map +0 -1
- package/dist/pages/observability/activity/meta-items.d.ts.map +0 -1
- package/dist/pages/observability/activity/page.d.ts +0 -6
- package/dist/pages/observability/activity/page.d.ts.map +0 -1
- package/dist/pages/observability/activity/period.d.ts.map +0 -1
- package/dist/pages/observability/activity/steps.d.ts.map +0 -1
- package/dist/pages/observability/activity/thread.d.ts +0 -6
- package/dist/pages/observability/activity/thread.d.ts.map +0 -1
- package/dist/pages/observability/activity/timeline.d.ts.map +0 -1
- package/dist/pages/observability/activity/users.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/calls.d.ts +0 -27
- package/dist/pages/observability/ai-usage/calls.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/charts.d.ts +0 -23
- package/dist/pages/observability/ai-usage/charts.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/format.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/kinds.d.ts +0 -40
- package/dist/pages/observability/ai-usage/kinds.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/limits.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/messages.d.ts +0 -493
- package/dist/pages/observability/ai-usage/messages.d.ts.map +0 -1
- package/dist/pages/observability/ai-usage/page.d.ts +0 -6
- package/dist/pages/observability/ai-usage/page.d.ts.map +0 -1
- package/dist/pages/observability/live-updates.d.ts.map +0 -1
- package/dist/pages/observability/logs.d.ts.map +0 -1
- package/dist/pages/observability/messages.d.ts.map +0 -1
- package/dist/pages/observability/runs.d.ts +0 -7
- package/dist/pages/observability/runs.d.ts.map +0 -1
- package/dist/pages/observability/workflow-run.d.ts.map +0 -1
- package/dist/pages/ontology/actions.d.ts +0 -3
- package/dist/pages/ontology/actions.d.ts.map +0 -1
- package/dist/pages/ontology/components/action-button.d.ts.map +0 -1
- package/dist/pages/ontology/components/action-param-null-control.d.ts.map +0 -1
- package/dist/pages/ontology/components/collection-toolbar.d.ts.map +0 -1
- package/dist/pages/ontology/components/common.d.ts.map +0 -1
- package/dist/pages/ontology/components/file-ref-upload-field.d.ts.map +0 -1
- package/dist/pages/ontology/components/object-filter-popover.d.ts.map +0 -1
- package/dist/pages/ontology/components/object-icon.d.ts.map +0 -1
- package/dist/pages/ontology/components/object-query-bar.d.ts.map +0 -1
- package/dist/pages/ontology/components/telemetry-chart.d.ts.map +0 -1
- package/dist/pages/ontology/components/telemetry-grid.d.ts.map +0 -1
- package/dist/pages/ontology/components/telemetry-tile.d.ts.map +0 -1
- package/dist/pages/ontology/components/telemetry-value.d.ts.map +0 -1
- package/dist/pages/ontology/components/usage-bar.d.ts.map +0 -1
- package/dist/pages/ontology/components/user-picker.d.ts.map +0 -1
- package/dist/pages/ontology/graph.d.ts +0 -6
- package/dist/pages/ontology/graph.d.ts.map +0 -1
- package/dist/pages/ontology/hooks/object-live-updates.d.ts.map +0 -1
- package/dist/pages/ontology/hooks/object-telemetry-updates.d.ts.map +0 -1
- package/dist/pages/ontology/hooks/object-type-counts.d.ts.map +0 -1
- package/dist/pages/ontology/hooks/rule-live-updates.d.ts.map +0 -1
- package/dist/pages/ontology/hooks/workflow-live-updates.d.ts.map +0 -1
- package/dist/pages/ontology/lib/action-params.d.ts.map +0 -1
- package/dist/pages/ontology/lib/format-value.d.ts.map +0 -1
- package/dist/pages/ontology/lib/labels.d.ts.map +0 -1
- package/dist/pages/ontology/lib/live-update-keys.d.ts.map +0 -1
- package/dist/pages/ontology/lib/object-query.d.ts.map +0 -1
- package/dist/pages/ontology/lib/ontology-graph-layout.d.ts.map +0 -1
- package/dist/pages/ontology/lib/ontology-graph-links.d.ts.map +0 -1
- package/dist/pages/ontology/lib/telemetry-history.d.ts.map +0 -1
- package/dist/pages/ontology/lib/time.d.ts.map +0 -1
- package/dist/pages/ontology/lib/user-preferences.d.ts.map +0 -1
- package/dist/pages/ontology/object-page.d.ts.map +0 -1
- package/dist/pages/ontology/object-type.d.ts +0 -3
- package/dist/pages/ontology/object-type.d.ts.map +0 -1
- package/dist/pages/ontology/object-types.d.ts +0 -7
- package/dist/pages/ontology/object-types.d.ts.map +0 -1
- package/dist/pages/ontology/objects.d.ts +0 -6
- package/dist/pages/ontology/objects.d.ts.map +0 -1
- package/dist/pages/ontology/rules.d.ts.map +0 -1
- package/dist/pages/ontology/workflow.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/agent-execution-panel.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/intervention-panel.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/node-execution-panel.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/request-run-dialog.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/run-debug-section.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/run-input-form.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/run-progress.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/schema-shape.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/status-badge.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/utils.d.ts.map +0 -1
- package/dist/pages/ontology/workflows/workflow-card.d.ts.map +0 -1
- package/dist/pages/ontology/workflows.d.ts +0 -3
- package/dist/pages/ontology/workflows.d.ts.map +0 -1
- package/dist/pages/settings/memory-contents.d.ts +0 -30
- package/dist/pages/settings/memory-contents.d.ts.map +0 -1
- package/src/agent/components/approval-mode-chip.tsx +0 -120
- package/src/agent/components/auto-model-chip.tsx +0 -219
- package/src/agent/components/model-controls.tsx +0 -238
- package/src/pages/observability/ai-usage/calls.tsx +0 -585
- package/src/pages/observability/ai-usage/charts.tsx +0 -126
- package/src/pages/observability/ai-usage/kinds.tsx +0 -156
- package/src/pages/observability/ai-usage/messages.ts +0 -523
- package/src/pages/observability/ai-usage/page.tsx +0 -923
- package/src/pages/observability/runs.tsx +0 -732
- package/src/pages/settings/memory-contents.tsx +0 -173
- /package/dist/{chunk-k4epnkcr.js.map → chunk-kwbw4dyk.js.map} +0 -0
- /package/dist/pages/{data → console/data}/live-updates.d.ts +0 -0
- /package/dist/pages/{data → console/data}/schema.d.ts +0 -0
- /package/dist/pages/{data → console/data}/shared.d.ts +0 -0
- /package/dist/pages/{data → console/data}/sync-button.d.ts +0 -0
- /package/dist/pages/{observability → console}/live-updates.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/action-button.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/action-param-null-control.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/collection-toolbar.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/common.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/file-ref-upload-field.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/object-filter-popover.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/object-icon.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/object-query-bar.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/telemetry-chart.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/telemetry-grid.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/telemetry-tile.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/telemetry-value.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/usage-bar.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/components/user-picker.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/hooks/object-live-updates.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/hooks/object-telemetry-updates.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/hooks/object-type-counts.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/hooks/rule-live-updates.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/hooks/workflow-live-updates.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/action-params.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/format-value.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/labels.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/object-query.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/ontology-graph-layout.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/ontology-graph-links.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/telemetry-history.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/time.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/lib/user-preferences.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/object-page.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/intervention-panel.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/request-run-dialog.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/run-debug-section.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/run-input-form.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/run-progress.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/schema-shape.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/status-badge.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/utils.d.ts +0 -0
- /package/dist/pages/{ontology → console/ontology}/workflows/workflow-card.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/calendar.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/connections.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/format.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/meta-items.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/steps.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/timeline.d.ts +0 -0
- /package/dist/pages/{observability → settings}/activity/users.d.ts +0 -0
- /package/dist/pages/{observability/ai-usage → settings/usage}/limits.d.ts +0 -0
- /package/src/pages/{data → console/data}/live-updates.ts +0 -0
- /package/src/pages/{observability → console}/live-updates.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/components/action-param-null-control.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/collection-toolbar.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/common.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/file-ref-upload-field.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/object-filter-popover.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/object-icon.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/object-query-bar.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/telemetry-chart.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/telemetry-grid.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/telemetry-tile.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/telemetry-value.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/usage-bar.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/components/user-picker.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/hooks/object-live-updates.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/hooks/object-telemetry-updates.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/hooks/object-type-counts.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/hooks/rule-live-updates.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/hooks/workflow-live-updates.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/action-params.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/format-value.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/labels.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/object-query.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/ontology-graph-layout.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/ontology-graph-links.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/telemetry-history.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/time.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/lib/user-preferences.ts +0 -0
- /package/src/pages/{ontology → console/ontology}/workflows/run-input-form.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/workflows/run-progress.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/workflows/schema-shape.tsx +0 -0
- /package/src/pages/{ontology → console/ontology}/workflows/status-badge.tsx +0 -0
- /package/src/pages/{observability → settings}/activity/calendar.tsx +0 -0
- /package/src/pages/{observability → settings}/activity/connections.tsx +0 -0
- /package/src/pages/{observability → settings}/activity/format.ts +0 -0
- /package/src/pages/{observability → settings}/activity/meta-items.tsx +0 -0
- /package/src/pages/{observability → settings}/activity/steps.ts +0 -0
- /package/src/pages/{observability → settings}/activity/users.tsx +0 -0
- /package/src/pages/{observability/ai-usage → settings/usage}/limits.tsx +0 -0
|
@@ -38,7 +38,7 @@ import { Link, useSearchParams } from "react-router-dom"
|
|
|
38
38
|
import { actionRunHref, workflowRunHref } from "../routes"
|
|
39
39
|
import { SectionWorkspace, WorkspaceHeader } from "../section-page"
|
|
40
40
|
import { CopyButton, IconTile, PageSection, Panel, PanelEmpty } from "../section-ui"
|
|
41
|
-
import {
|
|
41
|
+
import { useConsoleMessages } from "./messages"
|
|
42
42
|
|
|
43
43
|
const kinds = ["all", "sync", "pipeline", "workflow", "action", "webhook"] as const
|
|
44
44
|
type Kind = (typeof kinds)[number]
|
|
@@ -62,11 +62,11 @@ function builderFor(kind: Kind, level: Level): LogsBuilder {
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Console › Logs: what runs write as they work. The retained history loads first, then new
|
|
66
66
|
* lines stream in at the top, which stays pinned unless the reader scrolls down into history.
|
|
67
67
|
*/
|
|
68
|
-
export function
|
|
69
|
-
const messages =
|
|
68
|
+
export function ConsoleLogsPage() {
|
|
69
|
+
const messages = useConsoleMessages().logs
|
|
70
70
|
const [searchParams, setSearchParams] = useSearchParams()
|
|
71
71
|
const kind = kinds.find((candidate) => candidate === searchParams.get("kind")) ?? "all"
|
|
72
72
|
const level = levels.find((candidate) => candidate === searchParams.get("level")) ?? "all"
|
|
@@ -104,7 +104,7 @@ export function ObservabilityLogsPage() {
|
|
|
104
104
|
const state = denied || error ? "disconnected" : connected ? "live" : "connecting"
|
|
105
105
|
|
|
106
106
|
return (
|
|
107
|
-
<SectionWorkspace section="
|
|
107
|
+
<SectionWorkspace section="console" page="logs">
|
|
108
108
|
<WorkspaceHeader
|
|
109
109
|
icon={<IconTile icon={ScrollText} />}
|
|
110
110
|
title={messages.title}
|
|
@@ -251,7 +251,7 @@ export function RunLogs({
|
|
|
251
251
|
readonly kind: "workflow" | "action"
|
|
252
252
|
readonly runId: string
|
|
253
253
|
}) {
|
|
254
|
-
const messages =
|
|
254
|
+
const messages = useConsoleMessages().logs
|
|
255
255
|
const builder = useMemo(
|
|
256
256
|
() => (kind === "workflow" ? logs.workflows() : logs.actions()).run(runId),
|
|
257
257
|
[kind, runId]
|
|
@@ -331,7 +331,7 @@ function FilterSelect<T extends string>({
|
|
|
331
331
|
*/
|
|
332
332
|
function PinToLatest({ cursors }: { readonly cursors: readonly string[] }) {
|
|
333
333
|
const latest = cursors[0] ?? null
|
|
334
|
-
const messages =
|
|
334
|
+
const messages = useConsoleMessages().logs
|
|
335
335
|
const { scrollToStart } = useMessageScroller()
|
|
336
336
|
const atTop = !useMessageScrollerScrollable().start
|
|
337
337
|
const pinned = useRef(true)
|
|
@@ -386,7 +386,7 @@ const rowAccents: Record<LogLevel, string> = {
|
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
function LogLine({ line, showRun }: { readonly line: SixbLogLine; readonly showRun: boolean }) {
|
|
389
|
-
const messages =
|
|
389
|
+
const messages = useConsoleMessages().logs
|
|
390
390
|
const locale = useLocale()
|
|
391
391
|
const [open, setOpen] = useState(false)
|
|
392
392
|
const { errorField, fields } = useMemo(() => splitFields(line.fields), [line.fields])
|
|
@@ -497,7 +497,7 @@ function LogLine({ line, showRun }: { readonly line: SixbLogLine; readonly showR
|
|
|
497
497
|
|
|
498
498
|
/** The run a line came from: a link where the run has a page, its id to copy otherwise. */
|
|
499
499
|
function RunReference({ run }: { readonly run: SixbLogLine["context"]["run"] }) {
|
|
500
|
-
const messages =
|
|
500
|
+
const messages = useConsoleMessages().logs
|
|
501
501
|
const href =
|
|
502
502
|
run.kind === "workflow"
|
|
503
503
|
? workflowRunHref(run.id)
|
|
@@ -526,7 +526,7 @@ function RunReference({ run }: { readonly run: SixbLogLine["context"]["run"] })
|
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
function DayHeading({ at }: { readonly at: string }) {
|
|
529
|
-
const messages =
|
|
529
|
+
const messages = useConsoleMessages().logs
|
|
530
530
|
const locale = useLocale()
|
|
531
531
|
const date = new Date(at)
|
|
532
532
|
if (Number.isNaN(date.getTime())) return null
|
|
@@ -1,56 +1,7 @@
|
|
|
1
1
|
import { defineMessages, type MessageTree, plural, type Translation } from "@sixb/ui/lib/i18n"
|
|
2
2
|
|
|
3
|
-
/** Source catalog of the
|
|
3
|
+
/** Source catalog of the Console's run pages and logs. */
|
|
4
4
|
export const en = {
|
|
5
|
-
runs: {
|
|
6
|
-
title: "Runs",
|
|
7
|
-
description: "Everything that ran, newest first: workflows, actions, syncs and the rest.",
|
|
8
|
-
kinds: {
|
|
9
|
-
workflows: "Workflows",
|
|
10
|
-
actions: "Actions",
|
|
11
|
-
syncs: "Syncs",
|
|
12
|
-
pipelines: "Pipelines",
|
|
13
|
-
projections: "Projections",
|
|
14
|
-
webhooks: "Webhooks",
|
|
15
|
-
},
|
|
16
|
-
all: {
|
|
17
|
-
workflows: "All workflows",
|
|
18
|
-
actions: "All actions",
|
|
19
|
-
syncs: "All syncs",
|
|
20
|
-
pipelines: "All pipelines",
|
|
21
|
-
projections: "All projections",
|
|
22
|
-
webhooks: "All connectors",
|
|
23
|
-
},
|
|
24
|
-
allStatuses: "All statuses",
|
|
25
|
-
emptyTitle: "No runs yet",
|
|
26
|
-
empty: {
|
|
27
|
-
workflows: "A workflow's runs appear here once one starts.",
|
|
28
|
-
actions: "An action's runs appear here once someone applies one.",
|
|
29
|
-
syncs: "A sync's runs appear here once one starts, on its schedule or by Sync now.",
|
|
30
|
-
pipelines: "A pipeline's runs appear here once one starts.",
|
|
31
|
-
projections: "A projection runs when the dataset it reads gets a new version.",
|
|
32
|
-
webhooks: "A webhook's deliveries appear here as services call it.",
|
|
33
|
-
},
|
|
34
|
-
noMatchTitle: "No runs match",
|
|
35
|
-
noMatch: "Try another filter or status.",
|
|
36
|
-
loadFailed: "The runs could not be loaded.",
|
|
37
|
-
loadMore: "Load more",
|
|
38
|
-
moreFailed: "The next runs could not be loaded.",
|
|
39
|
-
refreshFailed: "The list could not be refreshed.",
|
|
40
|
-
shown: (shown: string, total: string) => `${shown} of ${total}`,
|
|
41
|
-
unrecorded: {
|
|
42
|
-
workflows: "Workflow runs",
|
|
43
|
-
actions: "Action runs",
|
|
44
|
-
syncs: "Sync runs",
|
|
45
|
-
pipelines: "Pipeline runs",
|
|
46
|
-
projections: "Projection runs",
|
|
47
|
-
webhooks: "Webhook deliveries",
|
|
48
|
-
},
|
|
49
|
-
noSubject: "No subject",
|
|
50
|
-
rowsRead: (count: number, formatted: string) =>
|
|
51
|
-
plural("en", count, { one: `${formatted} row read`, other: `${formatted} rows read` }),
|
|
52
|
-
responded: (status: number) => `Responded ${status}`,
|
|
53
|
-
},
|
|
54
5
|
run: {
|
|
55
6
|
started: "Started",
|
|
56
7
|
took: "Took",
|
|
@@ -79,7 +30,9 @@ export const en = {
|
|
|
79
30
|
tokens: (count: string) => `${count} tokens`,
|
|
80
31
|
},
|
|
81
32
|
action: {
|
|
33
|
+
runs: "Action runs",
|
|
82
34
|
subject: "Subject",
|
|
35
|
+
noSubject: "No subject",
|
|
83
36
|
phase: "Phase",
|
|
84
37
|
failedIn: (phase: string) => `Failed during ${phase}`,
|
|
85
38
|
/** A validator declined the request; its message follows. */
|
|
@@ -166,62 +119,9 @@ export const en = {
|
|
|
166
119
|
},
|
|
167
120
|
} satisfies MessageTree
|
|
168
121
|
|
|
169
|
-
export type
|
|
122
|
+
export type ConsoleMessages = typeof en
|
|
170
123
|
|
|
171
|
-
export const fr: Translation<
|
|
172
|
-
runs: {
|
|
173
|
-
title: "Exécutions",
|
|
174
|
-
description:
|
|
175
|
-
"Tout ce qui s’est exécuté, du plus récent au plus ancien : workflows, actions, synchronisations et le reste.",
|
|
176
|
-
kinds: {
|
|
177
|
-
workflows: "Workflows",
|
|
178
|
-
actions: "Actions",
|
|
179
|
-
syncs: "Synchronisations",
|
|
180
|
-
pipelines: "Pipelines",
|
|
181
|
-
projections: "Projections",
|
|
182
|
-
webhooks: "Webhooks",
|
|
183
|
-
},
|
|
184
|
-
all: {
|
|
185
|
-
workflows: "Tous les workflows",
|
|
186
|
-
actions: "Toutes les actions",
|
|
187
|
-
syncs: "Toutes les synchronisations",
|
|
188
|
-
pipelines: "Tous les pipelines",
|
|
189
|
-
projections: "Toutes les projections",
|
|
190
|
-
webhooks: "Tous les connecteurs",
|
|
191
|
-
},
|
|
192
|
-
allStatuses: "Tous les statuts",
|
|
193
|
-
emptyTitle: "Aucune exécution",
|
|
194
|
-
empty: {
|
|
195
|
-
workflows: "Les exécutions d’un workflow apparaissent ici dès qu’il démarre.",
|
|
196
|
-
actions: "Les exécutions d’une action apparaissent ici dès qu’on l’applique.",
|
|
197
|
-
syncs:
|
|
198
|
-
"Les exécutions d’une synchronisation apparaissent ici dès qu’elle démarre, selon sa planification ou via Synchroniser.",
|
|
199
|
-
pipelines: "Les exécutions d’un pipeline apparaissent ici dès qu’il démarre.",
|
|
200
|
-
projections:
|
|
201
|
-
"Une projection s’exécute quand le jeu de données qu’elle lit reçoit une nouvelle version.",
|
|
202
|
-
webhooks:
|
|
203
|
-
"Les livraisons d’un webhook apparaissent ici à mesure que les services l’appellent.",
|
|
204
|
-
},
|
|
205
|
-
noMatchTitle: "Aucune exécution ne correspond",
|
|
206
|
-
noMatch: "Essayez un autre filtre ou un autre statut.",
|
|
207
|
-
loadFailed: "Impossible de charger les exécutions.",
|
|
208
|
-
loadMore: "Charger plus",
|
|
209
|
-
moreFailed: "Impossible de charger les exécutions suivantes.",
|
|
210
|
-
refreshFailed: "Impossible d’actualiser la liste.",
|
|
211
|
-
shown: (shown: string, total: string) => `${shown} sur ${total}`,
|
|
212
|
-
unrecorded: {
|
|
213
|
-
workflows: "Les exécutions de workflows",
|
|
214
|
-
actions: "Les exécutions d’actions",
|
|
215
|
-
syncs: "Les exécutions de synchronisations",
|
|
216
|
-
pipelines: "Les exécutions de pipelines",
|
|
217
|
-
projections: "Les exécutions de projections",
|
|
218
|
-
webhooks: "Les livraisons de webhooks",
|
|
219
|
-
},
|
|
220
|
-
noSubject: "Aucun sujet",
|
|
221
|
-
rowsRead: (count: number, formatted: string) =>
|
|
222
|
-
plural("fr", count, { one: `${formatted} ligne lue`, other: `${formatted} lignes lues` }),
|
|
223
|
-
responded: (status: number) => `Réponse ${status}`,
|
|
224
|
-
},
|
|
124
|
+
export const fr: Translation<ConsoleMessages> = {
|
|
225
125
|
run: {
|
|
226
126
|
started: "Début",
|
|
227
127
|
took: "Durée",
|
|
@@ -250,7 +150,9 @@ export const fr: Translation<ObservabilityMessages> = {
|
|
|
250
150
|
tokens: (count: string) => `${count} jetons`,
|
|
251
151
|
},
|
|
252
152
|
action: {
|
|
153
|
+
runs: "Exécutions d’actions",
|
|
253
154
|
subject: "Sujet",
|
|
155
|
+
noSubject: "Aucun sujet",
|
|
254
156
|
phase: "Phase",
|
|
255
157
|
failedIn: (phase: string) => `Échec pendant ${phase}`,
|
|
256
158
|
rejected: "Demande refusée",
|
|
@@ -334,6 +236,6 @@ export const fr: Translation<ObservabilityMessages> = {
|
|
|
334
236
|
},
|
|
335
237
|
}
|
|
336
238
|
|
|
337
|
-
const
|
|
239
|
+
const consoleMessages = defineMessages<ConsoleMessages>({ en, fr })
|
|
338
240
|
|
|
339
|
-
export const
|
|
241
|
+
export const useConsoleMessages = consoleMessages.useMessages
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import type { ListActionRunsResponse } from "@sixb/client"
|
|
2
|
+
import { listActionRunsInfiniteOptions, listActionsOptions } from "@sixb/client/hooks"
|
|
3
|
+
import {
|
|
4
|
+
Button,
|
|
5
|
+
Select,
|
|
6
|
+
SelectContent,
|
|
7
|
+
SelectItem,
|
|
8
|
+
SelectTrigger,
|
|
9
|
+
SelectValue,
|
|
10
|
+
} from "@sixb/ui/components"
|
|
11
|
+
import { useInfiniteQuery, useQuery } from "@tanstack/react-query"
|
|
12
|
+
import { ChevronRight, Loader2, Zap } from "lucide-react"
|
|
13
|
+
import { actionRunHref } from "../../routes"
|
|
14
|
+
import {
|
|
15
|
+
formatDuration,
|
|
16
|
+
IconTile,
|
|
17
|
+
isUnrecorded,
|
|
18
|
+
MetaDot,
|
|
19
|
+
Panel,
|
|
20
|
+
PanelEmpty,
|
|
21
|
+
PanelRow,
|
|
22
|
+
PanelSkeleton,
|
|
23
|
+
RunStatusPill,
|
|
24
|
+
UnrecordedHistory,
|
|
25
|
+
useFormat,
|
|
26
|
+
useLoadFailure,
|
|
27
|
+
useNumbers,
|
|
28
|
+
useRunStatusLabels,
|
|
29
|
+
} from "../../section-ui"
|
|
30
|
+
import { humanizeIdentifier } from "./lib/labels"
|
|
31
|
+
|
|
32
|
+
type ActionRun = ListActionRunsResponse["runs"][number]
|
|
33
|
+
|
|
34
|
+
const statuses = ["succeeded", "failed"] as const
|
|
35
|
+
type ActionRunStatus = (typeof statuses)[number]
|
|
36
|
+
|
|
37
|
+
const pageSize = 20
|
|
38
|
+
|
|
39
|
+
/** Runs record no event, so the list is read again while it is displayed. */
|
|
40
|
+
const pollMs = 10_000
|
|
41
|
+
|
|
42
|
+
/** Where the runs list lives, so a run's page can lead back to it. */
|
|
43
|
+
export const ACTION_RUNS_HREF = "/console/actions?view=runs"
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Every action run, newest first, filtered by action and by how it went. Each opens its page: its
|
|
47
|
+
* input, subject, phases, effects and logs.
|
|
48
|
+
*/
|
|
49
|
+
export function ActionRuns({
|
|
50
|
+
actionId,
|
|
51
|
+
status,
|
|
52
|
+
onFilter,
|
|
53
|
+
}: {
|
|
54
|
+
readonly actionId: string | null
|
|
55
|
+
readonly status: string | null
|
|
56
|
+
/** One update per change, so the action and the status never race for the URL. */
|
|
57
|
+
readonly onFilter: (changes: {
|
|
58
|
+
readonly action?: string | null
|
|
59
|
+
readonly status?: string | null
|
|
60
|
+
}) => void
|
|
61
|
+
}) {
|
|
62
|
+
const format = useFormat()
|
|
63
|
+
const numbers = useNumbers()
|
|
64
|
+
const statusLabels = useRunStatusLabels()
|
|
65
|
+
const actions = useQuery({ ...listActionsOptions(), retry: false }).data ?? []
|
|
66
|
+
const actionIds = actions.map((action) => action.id)
|
|
67
|
+
const shownStatus = statuses.find((candidate) => candidate === status) ?? null
|
|
68
|
+
const query = useInfiniteQuery({
|
|
69
|
+
...listActionRunsInfiniteOptions({
|
|
70
|
+
query: {
|
|
71
|
+
limit: String(pageSize),
|
|
72
|
+
order: "desc",
|
|
73
|
+
...(actionId ? { actionId } : {}),
|
|
74
|
+
...(shownStatus ? { status: shownStatus } : {}),
|
|
75
|
+
},
|
|
76
|
+
}),
|
|
77
|
+
// Each next page starts where the loaded runs end.
|
|
78
|
+
initialPageParam: "0",
|
|
79
|
+
getNextPageParam: (lastPage, pages) =>
|
|
80
|
+
lastPage.hasMore ? String(pages.reduce((sum, page) => sum + page.runs.length, 0)) : undefined,
|
|
81
|
+
retry: false,
|
|
82
|
+
refetchInterval: pollMs,
|
|
83
|
+
})
|
|
84
|
+
const failure = useLoadFailure(query.error, { fallback: "The runs could not be loaded." })
|
|
85
|
+
// Pages are read by offset from the newest, so runs that start between two reads shift the next
|
|
86
|
+
// page onto runs already shown; each run is listed once.
|
|
87
|
+
const runs = [
|
|
88
|
+
...new Map(
|
|
89
|
+
(query.data?.pages.flatMap((page) => page.runs) ?? []).map((run) => [run.id, run])
|
|
90
|
+
).values(),
|
|
91
|
+
]
|
|
92
|
+
const total = query.data?.pages[0]?.total ?? 0
|
|
93
|
+
const filtered = Boolean(actionId || shownStatus)
|
|
94
|
+
|
|
95
|
+
return (
|
|
96
|
+
<Panel
|
|
97
|
+
toolbar={
|
|
98
|
+
<div className="flex w-full flex-wrap items-center justify-end gap-2">
|
|
99
|
+
<Select
|
|
100
|
+
value={actionId ?? "all"}
|
|
101
|
+
onValueChange={(value) => onFilter({ action: value === "all" ? null : value })}
|
|
102
|
+
>
|
|
103
|
+
<SelectTrigger size="sm" className="h-7 w-44 text-xs" aria-label="Action">
|
|
104
|
+
<SelectValue />
|
|
105
|
+
</SelectTrigger>
|
|
106
|
+
<SelectContent position="popper" align="end">
|
|
107
|
+
<SelectItem value="all" className="text-xs">
|
|
108
|
+
All actions
|
|
109
|
+
</SelectItem>
|
|
110
|
+
{/* A link can name one the project no longer defines; it still shows as chosen. */}
|
|
111
|
+
{actionId && !actionIds.includes(actionId) ? (
|
|
112
|
+
<SelectItem value={actionId} className="text-xs">
|
|
113
|
+
{humanizeIdentifier(actionId)}
|
|
114
|
+
</SelectItem>
|
|
115
|
+
) : null}
|
|
116
|
+
{actionIds.map((id) => (
|
|
117
|
+
<SelectItem key={id} value={id} className="text-xs">
|
|
118
|
+
{humanizeIdentifier(id)}
|
|
119
|
+
</SelectItem>
|
|
120
|
+
))}
|
|
121
|
+
</SelectContent>
|
|
122
|
+
</Select>
|
|
123
|
+
<Select
|
|
124
|
+
value={shownStatus ?? "all"}
|
|
125
|
+
onValueChange={(value) => onFilter({ status: value === "all" ? null : value })}
|
|
126
|
+
>
|
|
127
|
+
<SelectTrigger size="sm" className="h-7 w-32 text-xs" aria-label="Status">
|
|
128
|
+
<SelectValue />
|
|
129
|
+
</SelectTrigger>
|
|
130
|
+
<SelectContent position="popper" align="end">
|
|
131
|
+
<SelectItem value="all" className="text-xs">
|
|
132
|
+
All statuses
|
|
133
|
+
</SelectItem>
|
|
134
|
+
{statuses.map((value: ActionRunStatus) => (
|
|
135
|
+
<SelectItem key={value} value={value} className="text-xs">
|
|
136
|
+
{statusLabels[value]}
|
|
137
|
+
</SelectItem>
|
|
138
|
+
))}
|
|
139
|
+
</SelectContent>
|
|
140
|
+
</Select>
|
|
141
|
+
</div>
|
|
142
|
+
}
|
|
143
|
+
footer={
|
|
144
|
+
runs.length > 0 && total > 0 ? (
|
|
145
|
+
<div className="flex items-center justify-between gap-3">
|
|
146
|
+
<span className="tabular-nums">
|
|
147
|
+
{query.isError ? (
|
|
148
|
+
<span className="text-red-600 dark:text-red-400">
|
|
149
|
+
{query.isFetchNextPageError
|
|
150
|
+
? "The next runs could not be loaded."
|
|
151
|
+
: "The list could not be refreshed."}
|
|
152
|
+
</span>
|
|
153
|
+
) : (
|
|
154
|
+
`${numbers.count(runs.length)} of ${numbers.count(total)}`
|
|
155
|
+
)}
|
|
156
|
+
</span>
|
|
157
|
+
{query.hasNextPage ? (
|
|
158
|
+
<Button
|
|
159
|
+
type="button"
|
|
160
|
+
variant="ghost"
|
|
161
|
+
size="sm"
|
|
162
|
+
className="-my-1"
|
|
163
|
+
disabled={query.isFetchingNextPage}
|
|
164
|
+
onClick={() => query.fetchNextPage()}
|
|
165
|
+
>
|
|
166
|
+
{query.isFetchingNextPage ? <Loader2 className="animate-spin" /> : null}
|
|
167
|
+
Load more
|
|
168
|
+
</Button>
|
|
169
|
+
) : null}
|
|
170
|
+
</div>
|
|
171
|
+
) : undefined
|
|
172
|
+
}
|
|
173
|
+
>
|
|
174
|
+
{query.isPending ? (
|
|
175
|
+
<PanelSkeleton rows={4} />
|
|
176
|
+
) : query.isError && runs.length === 0 ? (
|
|
177
|
+
isUnrecorded(query.error) ? (
|
|
178
|
+
<UnrecordedHistory what="Action runs" />
|
|
179
|
+
) : (
|
|
180
|
+
<PanelEmpty
|
|
181
|
+
tone="error"
|
|
182
|
+
icon={Zap}
|
|
183
|
+
title={failure.title}
|
|
184
|
+
description={failure.description}
|
|
185
|
+
/>
|
|
186
|
+
)
|
|
187
|
+
) : runs.length === 0 ? (
|
|
188
|
+
<PanelEmpty
|
|
189
|
+
icon={Zap}
|
|
190
|
+
title={filtered ? "No runs match" : "No runs yet"}
|
|
191
|
+
description={
|
|
192
|
+
filtered
|
|
193
|
+
? "Try another action or status."
|
|
194
|
+
: "An action's runs appear here once someone applies one."
|
|
195
|
+
}
|
|
196
|
+
/>
|
|
197
|
+
) : (
|
|
198
|
+
runs.map((run) => (
|
|
199
|
+
<ActionRunRow key={run.id} run={run} at={format.relative(run.startedAt)} />
|
|
200
|
+
))
|
|
201
|
+
)}
|
|
202
|
+
</Panel>
|
|
203
|
+
)
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
function ActionRunRow({ run, at }: { readonly run: ActionRun; readonly at: string }) {
|
|
207
|
+
return (
|
|
208
|
+
<PanelRow
|
|
209
|
+
href={actionRunHref(run.id)}
|
|
210
|
+
leading={<IconTile icon={Zap} />}
|
|
211
|
+
title={<span className="truncate">{humanizeIdentifier(run.actionId)}</span>}
|
|
212
|
+
meta={
|
|
213
|
+
<>
|
|
214
|
+
{run.subject.kind === "none" ? (
|
|
215
|
+
<span>No subject</span>
|
|
216
|
+
) : (
|
|
217
|
+
<span className="min-w-0 truncate font-mono text-xs">
|
|
218
|
+
{run.subject.objectTypeId} · {run.subject.primaryId}
|
|
219
|
+
</span>
|
|
220
|
+
)}
|
|
221
|
+
<MetaDot />
|
|
222
|
+
<span>{at}</span>
|
|
223
|
+
{run.finishedAt ? (
|
|
224
|
+
<>
|
|
225
|
+
<MetaDot />
|
|
226
|
+
<span className="tabular-nums">{formatDuration(run.startedAt, run.finishedAt)}</span>
|
|
227
|
+
</>
|
|
228
|
+
) : null}
|
|
229
|
+
{run.error ? (
|
|
230
|
+
<>
|
|
231
|
+
<MetaDot />
|
|
232
|
+
<span className="min-w-0 truncate text-red-600 dark:text-red-400">
|
|
233
|
+
{run.error.message}
|
|
234
|
+
</span>
|
|
235
|
+
</>
|
|
236
|
+
) : null}
|
|
237
|
+
</>
|
|
238
|
+
}
|
|
239
|
+
trailing={
|
|
240
|
+
<>
|
|
241
|
+
<RunStatusPill status={run.status} />
|
|
242
|
+
<ChevronRight className="size-4 text-muted-foreground/60" />
|
|
243
|
+
</>
|
|
244
|
+
}
|
|
245
|
+
/>
|
|
246
|
+
)
|
|
247
|
+
}
|
|
@@ -45,10 +45,17 @@ import {
|
|
|
45
45
|
} from "lucide-react"
|
|
46
46
|
import { type ReactElement, type SyntheticEvent, useCallback, useMemo, useState } from "react"
|
|
47
47
|
import { useNavigate, useSearchParams } from "react-router-dom"
|
|
48
|
-
import {
|
|
49
|
-
import { actionRunHref } from "
|
|
50
|
-
import { notify, SectionPage } from "
|
|
51
|
-
import {
|
|
48
|
+
import { useSectionOpen } from "../../../sections/sections"
|
|
49
|
+
import { actionRunHref } from "../../routes"
|
|
50
|
+
import { notify, SectionPage } from "../../section-page"
|
|
51
|
+
import {
|
|
52
|
+
PanelEmpty,
|
|
53
|
+
PanelSkeleton,
|
|
54
|
+
RunStatusPill,
|
|
55
|
+
ToolbarTabs,
|
|
56
|
+
useLoadFailure,
|
|
57
|
+
} from "../../section-ui"
|
|
58
|
+
import { ActionRuns } from "./action-runs"
|
|
52
59
|
import { ActionParamNullControl } from "./components/action-param-null-control"
|
|
53
60
|
import { CollectionToolbar } from "./components/collection-toolbar"
|
|
54
61
|
import {
|
|
@@ -76,12 +83,35 @@ type ActionRunSummary = ListActionRunsResponse["runs"][number]
|
|
|
76
83
|
*/
|
|
77
84
|
const RUN_HISTORY_REFETCH_MS = 10_000
|
|
78
85
|
|
|
79
|
-
/**
|
|
80
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Console › Actions: every action, each with its latest run, applied from its card; and every
|
|
88
|
+
* action run, to find one that failed and open it.
|
|
89
|
+
*/
|
|
90
|
+
export function ConsoleActionsPage() {
|
|
81
91
|
const count = useQuery({ ...listActionsOptions(), retry: false }).data?.length
|
|
92
|
+
const [searchParams, setSearchParams] = useSearchParams()
|
|
93
|
+
const view = searchParams.get("view") === "runs" ? "runs" : "actions"
|
|
94
|
+
// Each view has its own filters, so switching starts them clear.
|
|
95
|
+
const showView = (next: "actions" | "runs") =>
|
|
96
|
+
setSearchParams(next === "runs" ? { view: "runs" } : {})
|
|
97
|
+
const filterRuns = (changes: {
|
|
98
|
+
readonly action?: string | null
|
|
99
|
+
readonly status?: string | null
|
|
100
|
+
}) =>
|
|
101
|
+
setSearchParams(
|
|
102
|
+
(params) => {
|
|
103
|
+
for (const [name, value] of Object.entries(changes)) {
|
|
104
|
+
if (value) params.set(name, value)
|
|
105
|
+
else params.delete(name)
|
|
106
|
+
}
|
|
107
|
+
return params
|
|
108
|
+
},
|
|
109
|
+
{ replace: true }
|
|
110
|
+
)
|
|
111
|
+
|
|
82
112
|
return (
|
|
83
113
|
<SectionPage
|
|
84
|
-
section="
|
|
114
|
+
section="console"
|
|
85
115
|
page="actions"
|
|
86
116
|
width="wide"
|
|
87
117
|
title="Actions"
|
|
@@ -89,7 +119,24 @@ export function OntologyActionsPage() {
|
|
|
89
119
|
count === undefined ? undefined : <span>{`${count} action${count === 1 ? "" : "s"}`}</span>
|
|
90
120
|
}
|
|
91
121
|
>
|
|
92
|
-
<
|
|
122
|
+
<ToolbarTabs
|
|
123
|
+
className="-mt-4"
|
|
124
|
+
value={view}
|
|
125
|
+
onChange={showView}
|
|
126
|
+
tabs={[
|
|
127
|
+
{ id: "actions", label: "Actions" },
|
|
128
|
+
{ id: "runs", label: "Runs" },
|
|
129
|
+
]}
|
|
130
|
+
/>
|
|
131
|
+
{view === "runs" ? (
|
|
132
|
+
<ActionRuns
|
|
133
|
+
actionId={searchParams.get("action")}
|
|
134
|
+
status={searchParams.get("status")}
|
|
135
|
+
onFilter={filterRuns}
|
|
136
|
+
/>
|
|
137
|
+
) : (
|
|
138
|
+
<ActionDefinitionsTab />
|
|
139
|
+
)}
|
|
93
140
|
</SectionPage>
|
|
94
141
|
)
|
|
95
142
|
}
|
|
@@ -352,7 +399,7 @@ function ActionRequestDialog({
|
|
|
352
399
|
trigger?: ReactElement
|
|
353
400
|
}) {
|
|
354
401
|
const navigate = useNavigate()
|
|
355
|
-
const runsOpen =
|
|
402
|
+
const runsOpen = useSectionOpen("console")
|
|
356
403
|
const [open, setOpen] = useState(false)
|
|
357
404
|
const [values, setValues] = useState<ActionParamFormValues>({})
|
|
358
405
|
const [subjectPrimaryId, setSubjectPrimaryId] = useState(subject?.primaryId ?? "")
|
|
@@ -362,7 +409,7 @@ function ActionRequestDialog({
|
|
|
362
409
|
invalidateOnCommit: true,
|
|
363
410
|
onSuccess: (run) => {
|
|
364
411
|
setOpen(false)
|
|
365
|
-
// The run's page is in
|
|
412
|
+
// The run's page is in the Console; without it, the card's latest run shows the outcome.
|
|
366
413
|
if (runsOpen) navigate(actionRunHref(run.id))
|
|
367
414
|
else notify.success(`${humanizeIdentifier(action.id)} ran.`)
|
|
368
415
|
},
|
|
@@ -23,9 +23,9 @@ import { cn } from "@sixb/ui/lib/utils"
|
|
|
23
23
|
import { Loader2 } from "lucide-react"
|
|
24
24
|
import { useCallback, useEffect, useRef, useState } from "react"
|
|
25
25
|
import { useNavigate } from "react-router-dom"
|
|
26
|
-
import {
|
|
27
|
-
import { actionRunHref } from "
|
|
28
|
-
import { notify } from "
|
|
26
|
+
import { useSectionOpen } from "../../../../sections/sections"
|
|
27
|
+
import { actionRunHref } from "../../../routes"
|
|
28
|
+
import { notify } from "../../../section-page"
|
|
29
29
|
import {
|
|
30
30
|
type ActionParamFormValue,
|
|
31
31
|
type ActionParamFormValues,
|
|
@@ -276,7 +276,7 @@ export function ActionButton({
|
|
|
276
276
|
requireConfirm,
|
|
277
277
|
}: ActionButtonProps) {
|
|
278
278
|
const navigate = useNavigate()
|
|
279
|
-
const runsOpen =
|
|
279
|
+
const runsOpen = useSectionOpen("console")
|
|
280
280
|
const [showParams, setShowParams] = useState(false)
|
|
281
281
|
const messages = useActionButtonMessages()
|
|
282
282
|
const [result, setResult] = useState<{ success: boolean } | null>(null)
|
|
@@ -299,7 +299,7 @@ export function ActionButton({
|
|
|
299
299
|
invalidateOnCommit: true,
|
|
300
300
|
onSuccess: (run) => {
|
|
301
301
|
setShowParams(false)
|
|
302
|
-
// The run's page is in
|
|
302
|
+
// The run's page is in the Console; without it, the button shows the outcome.
|
|
303
303
|
if (runsOpen) {
|
|
304
304
|
setResult({ success: true })
|
|
305
305
|
navigate(actionRunHref(run.id))
|
|
@@ -29,9 +29,9 @@ import {
|
|
|
29
29
|
import { Maximize2, Network, Search, X } from "lucide-react"
|
|
30
30
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react"
|
|
31
31
|
import { useNavigate, useSearchParams } from "react-router-dom"
|
|
32
|
-
import { objectsOfTypeHref, objectTypeHref } from "
|
|
33
|
-
import { SectionWorkspace, WorkspaceHeader } from "
|
|
34
|
-
import { PanelEmpty, useLoadFailure } from "
|
|
32
|
+
import { objectsOfTypeHref, objectTypeHref } from "../../routes"
|
|
33
|
+
import { SectionWorkspace, WorkspaceHeader } from "../../section-page"
|
|
34
|
+
import { PanelEmpty, useLoadFailure } from "../../section-ui"
|
|
35
35
|
import { LetterAvatar } from "./components/common"
|
|
36
36
|
import { useObjectTypeCounts } from "./hooks/object-type-counts"
|
|
37
37
|
import { humanizeIdentifier } from "./lib/labels"
|
|
@@ -98,10 +98,10 @@ const GRAPH_LAYOUT_DURATION = 280
|
|
|
98
98
|
const noObjectTypes: ObjectTypeSummary[] = []
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* Console › Graph: the object types and the links between them. Selecting a type focuses its
|
|
102
102
|
* neighborhood and opens an inspector beside the canvas.
|
|
103
103
|
*/
|
|
104
|
-
export function
|
|
104
|
+
export function ConsoleGraphPage() {
|
|
105
105
|
const navigate = useNavigate()
|
|
106
106
|
const [searchParams, setSearchParams] = useSearchParams()
|
|
107
107
|
const selectedTypeId = searchParams.get("type")
|
|
@@ -125,7 +125,7 @@ export function OntologyGraphPage() {
|
|
|
125
125
|
}, [selectType, selectedTypeId])
|
|
126
126
|
|
|
127
127
|
return (
|
|
128
|
-
<SectionWorkspace section="
|
|
128
|
+
<SectionWorkspace section="console" page="graph">
|
|
129
129
|
<WorkspaceHeader title="Graph" meta={<span>{countLabel(objectTypes.length, "type")}</span>} />
|
|
130
130
|
<div className="flex min-h-0 flex-1 flex-col overflow-y-auto min-[900px]:flex-row min-[900px]:overflow-hidden">
|
|
131
131
|
<div className="relative min-h-[520px] min-w-0 flex-1 overflow-hidden">
|
|
@@ -33,6 +33,11 @@ export function objectDetailKey(objectTypeId: string, primaryId: string): Invali
|
|
|
33
33
|
return queryKeyWithPath("getObject", { objectId: objectIdKey(objectTypeId, primaryId) })
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
/** Where the object's values come from, which every change to the object can move. */
|
|
37
|
+
export function objectLineageKey(objectTypeId: string, primaryId: string): InvalidationKey {
|
|
38
|
+
return queryKeyWithPath("getObjectLineage", { objectTypeId, objectId: primaryId })
|
|
39
|
+
}
|
|
40
|
+
|
|
36
41
|
export function relationshipKey(objectTypeId: string, primaryId: string): InvalidationKey {
|
|
37
42
|
return queryKeyWithQuery("listRelationships", {
|
|
38
43
|
objectId: objectIdKey(objectTypeId, primaryId),
|
|
@@ -40,7 +45,11 @@ export function relationshipKey(objectTypeId: string, primaryId: string): Invali
|
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
export function objectChangedKeys(objectTypeId: string, primaryId: string): InvalidationKey[] {
|
|
43
|
-
return [
|
|
48
|
+
return [
|
|
49
|
+
objectDetailKey(objectTypeId, primaryId),
|
|
50
|
+
objectLineageKey(objectTypeId, primaryId),
|
|
51
|
+
...objectCollectionKeys(),
|
|
52
|
+
]
|
|
44
53
|
}
|
|
45
54
|
|
|
46
55
|
export function workflowChangedKeys(workflowId: string, runId: string): InvalidationKey[] {
|