@sixb/app 0.2.1 → 0.2.4
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/activity-label.d.ts.map +1 -1
- 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/background/background-tool-row.d.ts.map +1 -1
- package/dist/agent/background/interpret.d.ts +1 -1
- package/dist/agent/background/interpret.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 +7 -2
- 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/components/transcript.d.ts +5 -0
- package/dist/agent/components/transcript.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/agent-exchange.d.ts +16 -0
- package/dist/agent/delegation/agent-exchange.d.ts.map +1 -0
- package/dist/agent/delegation/child-card.d.ts +3 -3
- package/dist/agent/delegation/child-card.d.ts.map +1 -1
- package/dist/agent/delegation/child-parts.d.ts +1 -10
- package/dist/agent/delegation/child-parts.d.ts.map +1 -1
- package/dist/agent/delegation/child-work.d.ts.map +1 -1
- package/dist/agent/delegation/interpret.d.ts +4 -10
- package/dist/agent/delegation/interpret.d.ts.map +1 -1
- package/dist/agent/delegation/use-children.d.ts +5 -5
- package/dist/agent/delegation/use-children.d.ts.map +1 -1
- package/dist/agent/file-edits/file-edit-tool-view.d.ts +10 -0
- package/dist/agent/file-edits/file-edit-tool-view.d.ts.map +1 -0
- package/dist/agent/file-edits/interpret.d.ts +25 -0
- package/dist/agent/file-edits/interpret.d.ts.map +1 -0
- package/dist/agent/hooks/use-agent-conversation.d.ts +16 -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 +59 -4
- 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 +96 -8
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/agent/message-agent/interpret.d.ts +2 -2
- package/dist/agent/message-agent/interpret.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/questions/interpret.d.ts +31 -0
- package/dist/agent/questions/interpret.d.ts.map +1 -0
- package/dist/agent/questions/question-card.d.ts +16 -0
- package/dist/agent/questions/question-card.d.ts.map +1 -0
- package/dist/agent/questions/question-composer.d.ts +15 -0
- package/dist/agent/questions/question-composer.d.ts.map +1 -0
- package/dist/agent/read/interpret.d.ts +8 -1
- package/dist/agent/read/interpret.d.ts.map +1 -1
- package/dist/agent/read/read-tool-view.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/agent/waits.d.ts +14 -0
- package/dist/agent/waits.d.ts.map +1 -0
- 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 +17 -7
- 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 +476 -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 +50 -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 +77 -20
- package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/canvas.d.ts +14 -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/controls.d.ts +15 -4
- package/dist/artifacts/renderers/canvas/controls.d.ts.map +1 -1
- 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 +54 -5
- package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/gestures.d.ts +46 -0
- package/dist/artifacts/renderers/canvas/gestures.d.ts.map +1 -0
- 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/page-resize.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/page-resize.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-size-controls.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/page-size-controls.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-size.d.ts +93 -0
- package/dist/artifacts/renderers/canvas/page-size.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/page-zoom.d.ts +64 -0
- package/dist/artifacts/renderers/canvas/page-zoom.d.ts.map +1 -0
- 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/shown-size.d.ts +26 -0
- package/dist/artifacts/renderers/canvas/shown-size.d.ts.map +1 -0
- 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-00wggsst.js +7 -0
- package/dist/chunk-00wggsst.js.map +10 -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-7fj9cfkw.js → chunk-970s5nkn.js} +1 -1
- package/dist/{chunk-4mprsd2n.js → chunk-fg6thecb.js} +25 -1
- package/dist/chunk-fg6thecb.js.map +10 -0
- package/dist/{chunk-ytadd0b5.js → chunk-kymx9y5e.js} +8126 -4257
- package/dist/chunk-kymx9y5e.js.map +211 -0
- package/dist/{chunk-j8g956dt.js → chunk-pxd07kvx.js} +1 -1
- package/dist/{chunk-kwbw4dyk.js → chunk-ryed2jq8.js} +1 -1
- package/dist/chunk-yrcm1pbg.js +5975 -0
- package/dist/chunk-yrcm1pbg.js.map +34 -0
- package/dist/codegen.d.ts.map +1 -1
- package/dist/createCustomApp.d.ts.map +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +932 -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/activity-label.ts +6 -1
- package/src/agent/agent-chat.tsx +52 -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/background/background-tool-row.tsx +24 -10
- package/src/agent/background/interpret.ts +60 -51
- 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 +30 -10
- package/src/agent/components/message-parts.tsx +29 -6
- package/src/agent/components/thread-artifacts-menu.tsx +22 -5
- package/src/agent/components/transcript.tsx +45 -27
- package/src/agent/composer-insertion.ts +36 -0
- package/src/agent/delegation/agent-exchange.tsx +53 -0
- package/src/agent/delegation/child-card.tsx +6 -40
- package/src/agent/delegation/child-parts.tsx +1 -84
- package/src/agent/delegation/child-work.tsx +19 -5
- package/src/agent/delegation/interpret.ts +33 -54
- package/src/agent/delegation/model.ts +1 -1
- package/src/agent/file-edits/file-edit-tool-view.tsx +126 -0
- package/src/agent/file-edits/interpret.ts +120 -0
- package/src/agent/hooks/use-agent-conversation.ts +61 -10
- package/src/agent/hooks/use-new-thread-place.ts +149 -25
- package/src/agent/i18n/en.ts +60 -4
- package/src/agent/i18n/fr.ts +51 -4
- package/src/agent/message-agent/interpret.ts +4 -3
- package/src/agent/publish-artifact/interpret.ts +37 -6
- 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/questions/interpret.ts +90 -0
- package/src/agent/questions/question-card.tsx +57 -0
- package/src/agent/questions/question-composer.tsx +257 -0
- package/src/agent/react-router.tsx +2 -2
- package/src/agent/read/interpret.ts +34 -1
- package/src/agent/read/read-tool-view.tsx +20 -4
- package/src/agent/tool-views/built-in.tsx +22 -8
- package/src/agent/types.ts +4 -0
- package/src/agent/waits.ts +50 -0
- package/src/artifacts/artifact-page.tsx +42 -17
- package/src/artifacts/artifact-viewer.tsx +56 -0
- package/src/artifacts/artifacts.css +116 -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 +21 -7
- package/src/artifacts/file-source.ts +10 -3
- package/src/artifacts/frame.tsx +53 -14
- 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 +469 -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 +839 -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 +373 -35
- package/src/artifacts/renderers/canvas/canvas.tsx +441 -75
- 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/controls.tsx +64 -30
- 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 +321 -26
- package/src/artifacts/renderers/canvas/gestures.ts +265 -0
- package/src/artifacts/renderers/canvas/items.tsx +179 -52
- package/src/artifacts/renderers/canvas/layout.ts +99 -47
- package/src/artifacts/renderers/canvas/page-resize.tsx +542 -0
- package/src/artifacts/renderers/canvas/page-size-controls.tsx +193 -0
- package/src/artifacts/renderers/canvas/page-size.ts +218 -0
- package/src/artifacts/renderers/canvas/page-zoom.ts +280 -0
- 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/shown-size.ts +105 -0
- 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 +219 -147
- package/src/build.ts +96 -11
- package/src/codegen.ts +83 -5
- package/src/createCustomApp.ts +20 -7
- package/src/index.ts +14 -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-7fj9cfkw.js.map → chunk-970s5nkn.js.map} +0 -0
- /package/dist/{chunk-j8g956dt.js.map → chunk-pxd07kvx.js.map} +0 -0
- /package/dist/{chunk-kwbw4dyk.js.map → chunk-ryed2jq8.js.map} +0 -0
package/src/build.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createHash } from "node:crypto"
|
|
1
2
|
import { existsSync } from "node:fs"
|
|
2
3
|
import { copyFile, mkdir, readFile, rm, writeFile } from "node:fs/promises"
|
|
3
4
|
import { basename, dirname, join, resolve } from "node:path"
|
|
@@ -7,6 +8,8 @@ import {
|
|
|
7
8
|
gzip as gzipCallback,
|
|
8
9
|
constants as zlibConstants,
|
|
9
10
|
} from "node:zlib"
|
|
11
|
+
import { renderServiceWorker, SERVICE_WORKER_PATH } from "./service-worker"
|
|
12
|
+
import { LAUNCH_ICON_SIZE } from "./shell/phone/launch"
|
|
10
13
|
|
|
11
14
|
const STATIC_ASSET_ORIGIN = "https://sixb-static.invalid"
|
|
12
15
|
const brotliCompress = promisify(brotliCompressCallback)
|
|
@@ -93,8 +96,14 @@ export async function buildApp(options: BuildAppOptions): Promise<BuildAppResult
|
|
|
93
96
|
.replace(sourceEntryPattern, "")
|
|
94
97
|
.replace("</head>", ` ${assetTags}</head>`)
|
|
95
98
|
await writeFile(join(outdir, "index.html"), html, "utf-8")
|
|
99
|
+
const serviceWorkerPath = await writeServiceWorker(
|
|
100
|
+
outdir,
|
|
101
|
+
html,
|
|
102
|
+
`/${basename(normalEntry.script.path)}`
|
|
103
|
+
)
|
|
96
104
|
|
|
97
|
-
|
|
105
|
+
// The worker is compressed with the bundles, so the server can send it as it sends them.
|
|
106
|
+
const outputs = [...result.outputs, { path: serviceWorkerPath, type: "text/javascript" }]
|
|
98
107
|
if (options.sharedEntryPath && options.sharedScriptEntryPath) {
|
|
99
108
|
// Keep these builds sequential. Bun can mis-resolve package-relative imports when two large
|
|
100
109
|
// browser entry graphs are built together, while content hashes safely deduplicate their
|
|
@@ -179,7 +188,9 @@ async function buildBrowserEntry(
|
|
|
179
188
|
chunk: "chunk-[name]-[hash].[ext]",
|
|
180
189
|
asset: "asset-[name]-[hash].[ext]",
|
|
181
190
|
},
|
|
182
|
-
plugins: [extensionlessSourceImportPlugin],
|
|
191
|
+
plugins: [extensionlessSourceImportPlugin, publicRootUrlPlugin],
|
|
192
|
+
// Report a failed build through `result.logs` instead of throwing Bun's bare "Bundle failed".
|
|
193
|
+
throw: false,
|
|
183
194
|
// React is bundled into this browser output, so without pinning NODE_ENV the production build
|
|
184
195
|
// of a user's app ships React's development build: dev-only checks on every render, and the
|
|
185
196
|
// warnings that go with them. This is also the only knob that selects the production JSX
|
|
@@ -276,7 +287,8 @@ export async function buildAuthExperience(
|
|
|
276
287
|
chunk: "chunk-[name]-[hash].[ext]",
|
|
277
288
|
asset: "asset-[name]-[hash].[ext]",
|
|
278
289
|
},
|
|
279
|
-
plugins: [extensionlessSourceImportPlugin],
|
|
290
|
+
plugins: [extensionlessSourceImportPlugin, publicRootUrlPlugin],
|
|
291
|
+
throw: false,
|
|
280
292
|
define: { "process.env.NODE_ENV": '"production"' },
|
|
281
293
|
sourcemap: "external",
|
|
282
294
|
})
|
|
@@ -350,18 +362,36 @@ export function restoreAppStaticUrls(html: string): string {
|
|
|
350
362
|
const THEME_BOOTSTRAP =
|
|
351
363
|
'try{var t=localStorage.getItem("sixb-theme");if(t==="dark"||t==="light")document.documentElement.classList.add(t)}catch(e){}'
|
|
352
364
|
|
|
365
|
+
/**
|
|
366
|
+
* What shows while the app loads: the app's own background with its icon in the middle, as a
|
|
367
|
+
* native app's launch screen does, so opening the installed app runs from iOS's launch image
|
|
368
|
+
* (drawn to match, see `startup-image.ts`) to this to the app without a flash. The app's
|
|
369
|
+
* stylesheet loads before the body paints, so `--background` is the app's colour in either theme.
|
|
370
|
+
* On a cold start iOS can report the viewport a status bar short, so the shell takes the corrected
|
|
371
|
+
* `--viewport-height` to centre its icon where the launch image has it, and the page behind it takes
|
|
372
|
+
* its colour. A spinner joins the icon only once loading takes long enough to notice.
|
|
373
|
+
*/
|
|
353
374
|
function withLoadingShell(html: string): string {
|
|
375
|
+
const icon = html.match(/<link\s+rel=["']icon["']\s+href=["']([^"']+)["']/)?.[1]
|
|
354
376
|
const styles = `<style data-sixb-loading-shell>
|
|
355
|
-
.sixb-loading-shell{position:fixed;
|
|
356
|
-
.sixb-loading-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
377
|
+
.sixb-loading-shell{position:fixed;top:0;left:0;width:100%;height:var(--viewport-height,100vh);display:grid;place-items:center;background:var(--background,#fff);color:var(--muted-foreground,#71717a)}
|
|
378
|
+
html:has(.sixb-loading-shell){background:var(--background,#fff)}
|
|
379
|
+
.sixb-loading-icon{width:${LAUNCH_ICON_SIZE}px;height:${LAUNCH_ICON_SIZE}px;object-fit:contain}
|
|
380
|
+
.sixb-loading-spinner{width:1.25rem;height:1.25rem;border:2px solid currentColor;border-right-color:transparent;border-radius:9999px;opacity:0;animation:sixb-loading-spin .7s linear infinite,sixb-loading-show .2s ease-out .8s forwards}
|
|
381
|
+
.sixb-loading-icon+.sixb-loading-spinner{position:absolute;top:calc(50% + ${LAUNCH_ICON_SIZE / 2 + 24}px);left:calc(50% - .625rem)}
|
|
382
|
+
@media(prefers-color-scheme:dark){html:not(.light):not(.dark):has(.sixb-loading-shell),html:not(.light):not(.dark) .sixb-loading-shell{background:#09090b;color:#a1a1aa}}
|
|
383
|
+
@media(prefers-reduced-motion:reduce){.sixb-loading-spinner{animation-duration:1.5s,.2s}}
|
|
360
384
|
@keyframes sixb-loading-spin{to{transform:rotate(360deg)}}
|
|
385
|
+
@keyframes sixb-loading-show{to{opacity:1}}
|
|
361
386
|
</style>
|
|
362
|
-
<script data-sixb-theme>${THEME_BOOTSTRAP}</script
|
|
363
|
-
|
|
364
|
-
|
|
387
|
+
<script data-sixb-theme>${THEME_BOOTSTRAP}</script>${
|
|
388
|
+
// Decoded by the first paint, so the icon is there as iOS fades from its launch image.
|
|
389
|
+
icon ? `\n <link rel="preload" as="image" href="${icon}">` : ""
|
|
390
|
+
}`
|
|
391
|
+
const iconTag = icon
|
|
392
|
+
? `<img class="sixb-loading-icon" src="${icon}" alt="" width="${LAUNCH_ICON_SIZE}" height="${LAUNCH_ICON_SIZE}">`
|
|
393
|
+
: ""
|
|
394
|
+
const root = `<div id="root"><div class="sixb-loading-shell" role="status" aria-label="Loading application">${iconTag}<span class="sixb-loading-spinner" aria-hidden="true"></span></div></div>`
|
|
365
395
|
|
|
366
396
|
if (!html.includes('<div id="root"></div>') || !html.includes("</head>")) {
|
|
367
397
|
throw new Error("[SixbCustomApp] Generated app shell is missing its root or head element.")
|
|
@@ -370,6 +400,61 @@ function withLoadingShell(html: string): string {
|
|
|
370
400
|
return html.replace("</head>", `${styles}\n </head>`).replace('<div id="root"></div>', root)
|
|
371
401
|
}
|
|
372
402
|
|
|
403
|
+
/**
|
|
404
|
+
* Writes the service worker for this build. Its version is the shell's own hash, which names every
|
|
405
|
+
* entry file, so any change to the app replaces what devices keep. It saves the shell's stylesheet,
|
|
406
|
+
* script and icons up front; the rest is saved as the app loads it.
|
|
407
|
+
*/
|
|
408
|
+
async function writeServiceWorker(outdir: string, html: string, entry: string): Promise<string> {
|
|
409
|
+
const version = createHash("sha256").update(html).digest("hex").slice(0, 16)
|
|
410
|
+
const precache = [
|
|
411
|
+
...new Set([
|
|
412
|
+
...[...html.matchAll(/<(?:script|link)\b[^>]*\s(?:src|href)=["'](\/[^"'/][^"']*)["']/g)]
|
|
413
|
+
.map((match) => match[1])
|
|
414
|
+
.filter((path): path is string => path !== undefined && path !== "/app.webmanifest"),
|
|
415
|
+
// The page registers the worker after it has loaded these, so it never saves them itself.
|
|
416
|
+
...(await startupChunks(outdir, entry)),
|
|
417
|
+
]),
|
|
418
|
+
]
|
|
419
|
+
const path = join(outdir, SERVICE_WORKER_PATH.slice(1))
|
|
420
|
+
await writeFile(path, renderServiceWorker({ version, entry, precache }), "utf-8")
|
|
421
|
+
return path
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/** A static `import … from "/chunk-…"` or `import "/chunk-…"` in a bundle; `import(` is left out. */
|
|
425
|
+
const STATIC_CHUNK_IMPORT = /\b(?:from|import)\s*["'](\/chunk-[^"']+\.js)["']/g
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* The chunks the entry imports as it loads, and the chunks those import: everything the app runs
|
|
429
|
+
* before its first screen. Chunks loaded on demand, such as a chart, are saved when first used.
|
|
430
|
+
*/
|
|
431
|
+
export async function startupChunks(outdir: string, entry: string): Promise<string[]> {
|
|
432
|
+
const found = new Set<string>()
|
|
433
|
+
const pending = [entry]
|
|
434
|
+
for (let path = pending.pop(); path !== undefined; path = pending.pop()) {
|
|
435
|
+
const source = await readFile(join(outdir, path.slice(1)), "utf-8").catch(() => "")
|
|
436
|
+
for (const [, chunk] of source.matchAll(STATIC_CHUNK_IMPORT)) {
|
|
437
|
+
if (chunk === undefined || found.has(chunk)) continue
|
|
438
|
+
found.add(chunk)
|
|
439
|
+
pending.push(chunk)
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
return [...found]
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// A root-relative `url()` in CSS, such as a font at `/fonts/x.woff2`, names a file in `app/public`.
|
|
446
|
+
// That folder is copied into the output as-is, so the URL has to stay as written instead of being
|
|
447
|
+
// resolved against the filesystem root, where Bun fails the build.
|
|
448
|
+
const publicRootUrlPlugin: Bun.BunPlugin = {
|
|
449
|
+
name: "sixb-public-root-urls",
|
|
450
|
+
setup(build) {
|
|
451
|
+
// Bun reports a CSS `url()` as kind "internal", so the importer is what says it came from CSS.
|
|
452
|
+
build.onResolve({ filter: /^\/(?!\/)/ }, (args) =>
|
|
453
|
+
args.importer.endsWith(".css") ? { path: args.path, external: true } : undefined
|
|
454
|
+
)
|
|
455
|
+
},
|
|
456
|
+
}
|
|
457
|
+
|
|
373
458
|
const extensionlessSourceImportPlugin: Bun.BunPlugin = {
|
|
374
459
|
name: "sixb-extensionless-source-imports",
|
|
375
460
|
setup(build) {
|
package/src/codegen.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { renderAppManifest } from "./manifest"
|
|
|
5
5
|
import { resolveAppMetadata } from "./metadata"
|
|
6
6
|
import { renderCustomAppRuntimeScript } from "./runtime"
|
|
7
7
|
import { type AppRouteLayout, type PageRoute, routePatternKey } from "./scanner"
|
|
8
|
+
import { RESERVED_PATH_PREFIXES, SERVICE_WORKER_PATH } from "./service-worker"
|
|
8
9
|
|
|
9
10
|
export interface BuiltInRouteManifestEntry {
|
|
10
11
|
readonly path: string
|
|
@@ -542,6 +543,7 @@ export async function generateAppEntry(
|
|
|
542
543
|
const runtimeContent = `import React from "react"
|
|
543
544
|
import { createRoot, type Root } from "react-dom/client"
|
|
544
545
|
import type { GetAuthSessionResponse } from "@sixb/client"
|
|
546
|
+
import type { SixbSharedAccessSession } from "@sixb/client/browser"
|
|
545
547
|
import {
|
|
546
548
|
BrowserRouter,
|
|
547
549
|
matchPath,
|
|
@@ -558,6 +560,12 @@ import {
|
|
|
558
560
|
SixbEventsProvider,
|
|
559
561
|
} from "@sixb/client/hooks"
|
|
560
562
|
import { LocaleProvider, useAppMessages } from "@sixb/app/locale"
|
|
563
|
+
import {
|
|
564
|
+
keepSharedSession,
|
|
565
|
+
PhoneFoundations,
|
|
566
|
+
refreshOnReturn,
|
|
567
|
+
restoreLastScreen,
|
|
568
|
+
} from "@sixb/app/pages"
|
|
561
569
|
${sectionsImport}${toolViewsImport}import { activityRoutePaths, routePaths, routes } from "./routes"
|
|
562
570
|
${globalsCssImport}
|
|
563
571
|
${layoutImport}
|
|
@@ -571,6 +579,8 @@ export interface StartAppOptions {
|
|
|
571
579
|
readonly basename?: string
|
|
572
580
|
/** The session the bootstrap already loaded, so useCurrentUser does not fetch it again. */
|
|
573
581
|
readonly session?: GetAuthSessionResponse
|
|
582
|
+
/** A shared link's session, which the bootstrap opened for its visitor. */
|
|
583
|
+
readonly sharedSession?: SixbSharedAccessSession
|
|
574
584
|
}
|
|
575
585
|
|
|
576
586
|
if (import.meta.hot) import.meta.hot.accept()
|
|
@@ -613,7 +623,7 @@ function createQueryClient(): QueryClient {
|
|
|
613
623
|
})
|
|
614
624
|
}
|
|
615
625
|
|
|
616
|
-
const RESERVED_PATH_PREFIXES = [
|
|
626
|
+
const RESERVED_PATH_PREFIXES = [${RESERVED_PATH_PREFIXES.map((prefix) => JSON.stringify(prefix)).join(", ")}]
|
|
617
627
|
|
|
618
628
|
function isReservedPath(pathname: string) {
|
|
619
629
|
return RESERVED_PATH_PREFIXES.some(
|
|
@@ -803,7 +813,8 @@ function AppFallback({
|
|
|
803
813
|
alignItems: "center",
|
|
804
814
|
justifyContent: "center",
|
|
805
815
|
gap: "1rem",
|
|
806
|
-
padding:
|
|
816
|
+
padding:
|
|
817
|
+
"calc(2rem + env(safe-area-inset-top, 0px)) 2rem calc(2rem + env(safe-area-inset-bottom, 0px))",
|
|
807
818
|
textAlign: "center",
|
|
808
819
|
fontFamily:
|
|
809
820
|
"var(--font-sans, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif)",
|
|
@@ -1020,6 +1031,7 @@ function App({ basename }: StartAppOptions) {
|
|
|
1020
1031
|
<ProjectLocale shared={Boolean(basename)}>
|
|
1021
1032
|
${sectionsStart}
|
|
1022
1033
|
<BrowserRouter basename={basename}>
|
|
1034
|
+
<PhoneFoundations />
|
|
1023
1035
|
<ActivityPageView />
|
|
1024
1036
|
<RefusedFrameReporter />
|
|
1025
1037
|
<SharedDocumentLinkInterceptor basename={basename} />
|
|
@@ -1041,6 +1053,10 @@ function App({ basename }: StartAppOptions) {
|
|
|
1041
1053
|
|
|
1042
1054
|
export function startApp(options: StartAppOptions = {}) {
|
|
1043
1055
|
if (options.session) queryClient.setQueryData(getAuthSessionQueryKey(), options.session)
|
|
1056
|
+
if (options.sharedSession) keepSharedSession(queryClient, options.sharedSession)
|
|
1057
|
+
// The installed app reopens where it was left, and shows what changed while it was away.
|
|
1058
|
+
if (!options.basename) restoreLastScreen()
|
|
1059
|
+
refreshOnReturn(queryClient)
|
|
1044
1060
|
// The HTML is built without loading the project: declare the project's language on the document
|
|
1045
1061
|
// as soon as the API answers, without waiting for the page tree to render.
|
|
1046
1062
|
if (!options.basename) {
|
|
@@ -1065,10 +1081,27 @@ export function renderApiUnavailable(apiBaseUrl: string) {
|
|
|
1065
1081
|
|
|
1066
1082
|
function ApiUnavailableView({ apiBaseUrl }: { readonly apiBaseUrl: string }) {
|
|
1067
1083
|
const messages = useAppMessages()
|
|
1084
|
+
// Opened offline, from the device: say so, and open by itself once the connection is back. A
|
|
1085
|
+
// phone can report itself online with no way out, so the app's own server out of reach as well
|
|
1086
|
+
// as the API means offline too; the API alone is the API.
|
|
1087
|
+
const [offline, setOffline] = React.useState<boolean | null>(() => (navigator.onLine ? null : true))
|
|
1088
|
+
React.useEffect(() => {
|
|
1089
|
+
if (offline === null) {
|
|
1090
|
+
// A request that hangs for want of a route out is offline too.
|
|
1091
|
+
fetch("/", { method: "HEAD", cache: "no-store", signal: AbortSignal.timeout(3000) }).then(
|
|
1092
|
+
() => setOffline(false),
|
|
1093
|
+
() => setOffline(true)
|
|
1094
|
+
)
|
|
1095
|
+
}
|
|
1096
|
+
const retry = () => window.location.reload()
|
|
1097
|
+
window.addEventListener("online", retry)
|
|
1098
|
+
return () => window.removeEventListener("online", retry)
|
|
1099
|
+
}, [offline])
|
|
1100
|
+
if (offline === null) return null
|
|
1068
1101
|
return (
|
|
1069
1102
|
<AppFallback
|
|
1070
|
-
title={messages.apiUnavailable.title}
|
|
1071
|
-
detail={messages.apiUnavailable.detail(apiBaseUrl)}
|
|
1103
|
+
title={offline ? messages.offline.title : messages.apiUnavailable.title}
|
|
1104
|
+
detail={offline ? messages.offline.detail : messages.apiUnavailable.detail(apiBaseUrl)}
|
|
1072
1105
|
action={
|
|
1073
1106
|
<button
|
|
1074
1107
|
type="button"
|
|
@@ -1128,6 +1161,39 @@ if (import.meta.hot) {
|
|
|
1128
1161
|
import.meta.hot.dispose(() => browserClient.dispose())
|
|
1129
1162
|
}
|
|
1130
1163
|
|
|
1164
|
+
// A production build keeps the app on the device, so the installed app opens without the network.
|
|
1165
|
+
// A browser gives the root one worker: a project that registers its own there keeps it. The
|
|
1166
|
+
// development server has no worker, and removes Sixb's if an earlier build left it on its address.
|
|
1167
|
+
if ("serviceWorker" in navigator) {
|
|
1168
|
+
const isSixbWorker = (registration: ServiceWorkerRegistration) =>
|
|
1169
|
+
[registration.installing, registration.waiting, registration.active].some((worker) =>
|
|
1170
|
+
worker?.scriptURL.endsWith(${JSON.stringify(SERVICE_WORKER_PATH)})
|
|
1171
|
+
)
|
|
1172
|
+
if (import.meta.hot) {
|
|
1173
|
+
void navigator.serviceWorker.getRegistrations().then((registrations) => {
|
|
1174
|
+
for (const registration of registrations) {
|
|
1175
|
+
if (isSixbWorker(registration)) void registration.unregister()
|
|
1176
|
+
}
|
|
1177
|
+
})
|
|
1178
|
+
} else {
|
|
1179
|
+
// Once the page has loaded, so installing never competes with opening the app.
|
|
1180
|
+
const register = () => {
|
|
1181
|
+
navigator.serviceWorker
|
|
1182
|
+
.getRegistration("/")
|
|
1183
|
+
.then((existing) =>
|
|
1184
|
+
existing && !isSixbWorker(existing)
|
|
1185
|
+
? undefined
|
|
1186
|
+
: navigator.serviceWorker.register(${JSON.stringify(SERVICE_WORKER_PATH)})
|
|
1187
|
+
)
|
|
1188
|
+
.catch((error: unknown) => {
|
|
1189
|
+
console.warn("[SixbCustomApp] Could not register the service worker:", error)
|
|
1190
|
+
})
|
|
1191
|
+
}
|
|
1192
|
+
if (document.readyState === "complete") register()
|
|
1193
|
+
else window.addEventListener("load", register, { once: true })
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1131
1197
|
// Without the API's answer the app can neither render nor send the user to sign in.
|
|
1132
1198
|
const authSession = runtimeConfig.auth.enabled
|
|
1133
1199
|
? await requireSixbBrowserAuthSession(runtimeConfig, browserClient).catch((error: unknown) => {
|
|
@@ -1217,6 +1283,11 @@ export function startSharedApp(
|
|
|
1217
1283
|
const runtimeConfig = readSixbBrowserRuntimeConfig({ authEnabled: false })
|
|
1218
1284
|
controller = configureSixbSharedBrowserClient(runtimeConfig, {
|
|
1219
1285
|
grantId,
|
|
1286
|
+
// A link revoked or a session expired while the page is open: loading it again finds no
|
|
1287
|
+
// session, and shows the unavailable screen.
|
|
1288
|
+
onEnded: () => {
|
|
1289
|
+
if (established) window.location.reload()
|
|
1290
|
+
},
|
|
1220
1291
|
})
|
|
1221
1292
|
activeController = controller
|
|
1222
1293
|
} catch {
|
|
@@ -1265,7 +1336,7 @@ export function startSharedApp(
|
|
|
1265
1336
|
}
|
|
1266
1337
|
|
|
1267
1338
|
const { startApp } = await import("./app-runtime")
|
|
1268
|
-
startApp({ basename })
|
|
1339
|
+
startApp({ basename, sharedSession: session })
|
|
1269
1340
|
// After a start that held: a failed one is retried, and must still find the arrival.
|
|
1270
1341
|
startSixbActivityCapture()
|
|
1271
1342
|
} catch (error) {
|
|
@@ -1640,6 +1711,13 @@ function renderMetadataHead(metadata: Awaited<ReturnType<typeof resolveAppMetada
|
|
|
1640
1711
|
? [` <meta name="description" content="${escapeHtmlAttribute(metadata.description)}" />`]
|
|
1641
1712
|
: []),
|
|
1642
1713
|
` <meta name="theme-color" content="${escapeHtmlAttribute(metadata.themeColor)}" />`,
|
|
1714
|
+
// iOS shows a Home Screen app's launch image only with the first; Chrome asks for the second.
|
|
1715
|
+
' <meta name="apple-mobile-web-app-capable" content="yes" />',
|
|
1716
|
+
' <meta name="mobile-web-app-capable" content="yes" />',
|
|
1717
|
+
// iOS reads this when the app is added to the Home Screen.
|
|
1718
|
+
...(metadata.statusBar === "under"
|
|
1719
|
+
? [' <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />']
|
|
1720
|
+
: []),
|
|
1643
1721
|
' <link rel="manifest" href="/app.webmanifest" />',
|
|
1644
1722
|
...(metadata.favicon
|
|
1645
1723
|
? [` <link rel="icon" href="${escapeHtmlAttribute(metadata.favicon)}" />`]
|
package/src/createCustomApp.ts
CHANGED
|
@@ -24,6 +24,7 @@ import { readAppFrameOrigins } from "./frame-origins"
|
|
|
24
24
|
import { collectPublicEnv, renderCustomAppRuntimeScript } from "./runtime"
|
|
25
25
|
import { type PageRoute, routePatternKey, scanAppRoutes } from "./scanner"
|
|
26
26
|
import { sectionCatalog } from "./sections/catalog"
|
|
27
|
+
import { IMMUTABLE_ASSET_PATTERN, SERVICE_WORKER_PATH } from "./service-worker"
|
|
27
28
|
import { type CustomAppStylesheet, resolveCustomAppStylesheet } from "./styles"
|
|
28
29
|
import { createTailwindCssCompiler, type TailwindCssCompiler } from "./tailwind"
|
|
29
30
|
|
|
@@ -99,6 +100,8 @@ const builtInPageStylesheetPath = join(packageRoot, "src", "pages", "canvas.css"
|
|
|
99
100
|
const agentStylesheetPath = join(packageRoot, "src", "agent", "agent.css")
|
|
100
101
|
// The artifact viewer's: the document page and the `@source` for its components.
|
|
101
102
|
const artifactsStylesheetPath = join(packageRoot, "src", "artifacts", "artifacts.css")
|
|
103
|
+
// Phone navigation: screen motion and pull to refresh.
|
|
104
|
+
const phoneStylesheetPath = join(packageRoot, "src", "shell", "phone", "phone.css")
|
|
102
105
|
const customAppManifestRoute = "/app.webmanifest"
|
|
103
106
|
const internalAppShellRoute = "/__sixb/generated/app-shell"
|
|
104
107
|
// Files the built-in pages show, such as connector logos, served from the package itself so they
|
|
@@ -188,6 +191,7 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
188
191
|
`@import ${JSON.stringify(stylesheet.sourcePath)};`,
|
|
189
192
|
`@import ${JSON.stringify(agentStylesheetPath)};`,
|
|
190
193
|
`@import ${JSON.stringify(artifactsStylesheetPath)};`,
|
|
194
|
+
`@import ${JSON.stringify(phoneStylesheetPath)};`,
|
|
191
195
|
"",
|
|
192
196
|
].join("\n")
|
|
193
197
|
)
|
|
@@ -242,6 +246,7 @@ export async function createCustomApp(options: CreateCustomAppOptions): Promise<
|
|
|
242
246
|
`@import ${JSON.stringify(builtInPageStylesheetPath)};`,
|
|
243
247
|
`@import ${JSON.stringify(agentStylesheetPath)};`,
|
|
244
248
|
`@import ${JSON.stringify(artifactsStylesheetPath)};`,
|
|
249
|
+
`@import ${JSON.stringify(phoneStylesheetPath)};`,
|
|
245
250
|
"",
|
|
246
251
|
].join("\n")
|
|
247
252
|
)
|
|
@@ -1143,6 +1148,12 @@ function sharedHtmlResponse(
|
|
|
1143
1148
|
})
|
|
1144
1149
|
}
|
|
1145
1150
|
|
|
1151
|
+
/** The origin of an API's WebSockets: `wss:` beside `https:`, `ws:` beside `http:`. */
|
|
1152
|
+
function socketOrigin(apiOrigin: string): string {
|
|
1153
|
+
const url = new URL(apiOrigin)
|
|
1154
|
+
return `${url.protocol === "https:" ? "wss:" : "ws:"}//${url.host}`
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1146
1157
|
function secureSharedHtml(
|
|
1147
1158
|
html: string,
|
|
1148
1159
|
request: Request,
|
|
@@ -1152,7 +1163,8 @@ function secureSharedHtml(
|
|
|
1152
1163
|
const { requestOrigin, apiOrigin } = resolveOrigins(request, options.apiBaseUrl)
|
|
1153
1164
|
|
|
1154
1165
|
const apiSources = apiOrigin === requestOrigin ? [] : [apiOrigin]
|
|
1155
|
-
|
|
1166
|
+
// The artifacts a link reaches are followed live, over the API's sockets.
|
|
1167
|
+
const connectSources = ["'self'", ...apiSources, socketOrigin(apiOrigin)]
|
|
1156
1168
|
// Files are fetched or embedded from the API, which a split deployment serves from its own
|
|
1157
1169
|
// origin; `https:` alone misses it in plain-HTTP development.
|
|
1158
1170
|
const fileSources = ["'self'", ...apiSources, "data:", "blob:", "https:"]
|
|
@@ -1188,12 +1200,9 @@ function secureSharedHtml(
|
|
|
1188
1200
|
}
|
|
1189
1201
|
}
|
|
1190
1202
|
|
|
1191
|
-
// buildApp emits content-hashed entry, chunk, and asset names. Their
|
|
1192
|
-
// under the same URL, so they are safe to cache forever. Files copied
|
|
1193
|
-
// names across deploys and stay uncached.
|
|
1194
|
-
const IMMUTABLE_ASSET_PATTERN =
|
|
1195
|
-
/^(?:(?:app|shared|chunk)-[a-z0-9]+|(?:chunk|asset)-.+-[a-z0-9]+)\.[a-z0-9]+(?:\.map)?$/
|
|
1196
|
-
|
|
1203
|
+
// buildApp emits content-hashed entry, chunk, and asset names (IMMUTABLE_ASSET_PATTERN). Their
|
|
1204
|
+
// contents can never change under the same URL, so they are safe to cache forever. Files copied
|
|
1205
|
+
// from `public/` keep their names across deploys and stay uncached.
|
|
1197
1206
|
function staticAssetHeaders(pathname: string): Record<string, string> {
|
|
1198
1207
|
if (pathname === customAppManifestRoute) {
|
|
1199
1208
|
return {
|
|
@@ -1201,6 +1210,10 @@ function staticAssetHeaders(pathname: string): Record<string, string> {
|
|
|
1201
1210
|
"cache-control": "no-cache",
|
|
1202
1211
|
}
|
|
1203
1212
|
}
|
|
1213
|
+
// Checked on every launch, so a deploy reaches installed apps at once.
|
|
1214
|
+
if (pathname === SERVICE_WORKER_PATH) {
|
|
1215
|
+
return { "content-type": "text/javascript; charset=utf-8", "cache-control": "no-cache" }
|
|
1216
|
+
}
|
|
1204
1217
|
|
|
1205
1218
|
const lastSegment = pathname.split("/").pop() ?? ""
|
|
1206
1219
|
if (!IMMUTABLE_ASSET_PATTERN.test(lastSegment)) {
|
package/src/index.ts
CHANGED
|
@@ -81,6 +81,8 @@ export {
|
|
|
81
81
|
type UseAgentConversationInput,
|
|
82
82
|
useAgentConversation,
|
|
83
83
|
} from "./agent/hooks/use-agent-conversation"
|
|
84
|
+
export type { AskedQuestion } from "./agent/questions/interpret"
|
|
85
|
+
export { QuestionComposer, type QuestionComposerProps } from "./agent/questions/question-composer"
|
|
84
86
|
export { AgentChatPage, type AgentChatPageProps } from "./agent/react-router"
|
|
85
87
|
export {
|
|
86
88
|
type AgentToolView,
|
|
@@ -95,8 +97,10 @@ export type {
|
|
|
95
97
|
AgentRun,
|
|
96
98
|
AgentThread,
|
|
97
99
|
AgentThreadContext,
|
|
100
|
+
AgentThreadSandboxParams,
|
|
98
101
|
LanguageModel,
|
|
99
102
|
} from "./agent/types"
|
|
103
|
+
export { ArtifactViewer, type ArtifactViewerProps } from "./artifacts/artifact-viewer"
|
|
100
104
|
export type { ArtifactTarget } from "./artifacts/target"
|
|
101
105
|
export type { AuthExperienceActions, AuthExperienceProps, AuthExperienceState } from "./auth"
|
|
102
106
|
export type { AppMetadata } from "./metadata"
|
|
@@ -109,6 +113,7 @@ export {
|
|
|
109
113
|
useSections,
|
|
110
114
|
} from "./sections/sections"
|
|
111
115
|
export { type CurrentUser, useCurrentUser, useSignOut } from "./session"
|
|
116
|
+
export { type SharedGuest, useSharedGuest } from "./shared-session"
|
|
112
117
|
export type { SharedUnavailableProps } from "./shared-unavailable"
|
|
113
118
|
export { AgentDock } from "./shell/agent-dock"
|
|
114
119
|
export {
|
|
@@ -125,6 +130,15 @@ export {
|
|
|
125
130
|
NavItems,
|
|
126
131
|
type NavItemsProps,
|
|
127
132
|
} from "./shell/nav-items"
|
|
133
|
+
export { useBack } from "./shell/phone/back"
|
|
134
|
+
export {
|
|
135
|
+
PhoneMoreGroup,
|
|
136
|
+
PhoneMoreRow,
|
|
137
|
+
PhoneMoreSheet,
|
|
138
|
+
type PhoneMoreSheetProps,
|
|
139
|
+
} from "./shell/phone/more-sheet"
|
|
140
|
+
export { PhoneTabBar, type PhoneTabBarProps } from "./shell/phone/tab-bar"
|
|
141
|
+
export { PhoneBarActions, PhoneTopBar, type PhoneTopBarProps } from "./shell/phone/top-bar"
|
|
128
142
|
export { SearchCommand, type SearchCommandProps } from "./shell/search-command"
|
|
129
143
|
export { SectionNav, type SectionNavProps } from "./shell/section-nav"
|
|
130
144
|
export { UserMenu, type UserMenuItemProps, type UserMenuProps } from "./shell/user-menu"
|
package/src/locale-messages.ts
CHANGED
|
@@ -13,6 +13,10 @@ export const en = {
|
|
|
13
13
|
title: "Something went wrong",
|
|
14
14
|
sharedDetail: "This shared page could not be displayed.",
|
|
15
15
|
},
|
|
16
|
+
offline: {
|
|
17
|
+
title: "You're offline",
|
|
18
|
+
detail: "The app opens as soon as you're connected again.",
|
|
19
|
+
},
|
|
16
20
|
apiUnavailable: {
|
|
17
21
|
title: "Can't reach the Sixb API",
|
|
18
22
|
detail: (apiBaseUrl: string) =>
|
|
@@ -41,6 +45,13 @@ export const en = {
|
|
|
41
45
|
},
|
|
42
46
|
agent: { title: "Agent", open: "Ask the agent" },
|
|
43
47
|
artifacts: "Artifacts",
|
|
48
|
+
phone: {
|
|
49
|
+
back: "Back",
|
|
50
|
+
more: "More",
|
|
51
|
+
moreDescription: "Every place in the app, and your account.",
|
|
52
|
+
tabs: "Primary",
|
|
53
|
+
workspace: "Workspace",
|
|
54
|
+
},
|
|
44
55
|
sections: {
|
|
45
56
|
back: "Back",
|
|
46
57
|
console: {
|
|
@@ -51,6 +62,7 @@ export const en = {
|
|
|
51
62
|
connectors: "Connectors",
|
|
52
63
|
syncs: "Syncs",
|
|
53
64
|
datasets: "Datasets",
|
|
65
|
+
"lake-health": "Lake health",
|
|
54
66
|
pipelines: "Pipelines",
|
|
55
67
|
projections: "Projections",
|
|
56
68
|
"object-types": "Object types",
|
|
@@ -99,6 +111,10 @@ export const fr: Translation<AppMessages> = {
|
|
|
99
111
|
title: "Une erreur est survenue",
|
|
100
112
|
sharedDetail: "Cette page partagée n’a pas pu être affichée.",
|
|
101
113
|
},
|
|
114
|
+
offline: {
|
|
115
|
+
title: "Vous êtes hors ligne",
|
|
116
|
+
detail: "L’application s’ouvre dès que vous êtes de nouveau connecté.",
|
|
117
|
+
},
|
|
102
118
|
apiUnavailable: {
|
|
103
119
|
title: "Impossible de joindre l’API Sixb",
|
|
104
120
|
detail: (apiBaseUrl) =>
|
|
@@ -126,6 +142,13 @@ export const fr: Translation<AppMessages> = {
|
|
|
126
142
|
},
|
|
127
143
|
agent: { title: "Agent", open: "Demander à l’agent" },
|
|
128
144
|
artifacts: "Artefacts",
|
|
145
|
+
phone: {
|
|
146
|
+
back: "Retour",
|
|
147
|
+
more: "Plus",
|
|
148
|
+
moreDescription: "Toutes les pages de l’application, et votre compte.",
|
|
149
|
+
tabs: "Principal",
|
|
150
|
+
workspace: "Espace de travail",
|
|
151
|
+
},
|
|
129
152
|
sections: {
|
|
130
153
|
back: "Retour",
|
|
131
154
|
console: {
|
|
@@ -136,6 +159,7 @@ export const fr: Translation<AppMessages> = {
|
|
|
136
159
|
connectors: "Connecteurs",
|
|
137
160
|
syncs: "Synchronisations",
|
|
138
161
|
datasets: "Jeux de données",
|
|
162
|
+
"lake-health": "Santé du lac",
|
|
139
163
|
pipelines: "Pipelines",
|
|
140
164
|
projections: "Projections",
|
|
141
165
|
"object-types": "Types d’objets",
|
package/src/metadata.ts
CHANGED
|
@@ -11,6 +11,13 @@ export interface AppMetadata {
|
|
|
11
11
|
favicon?: string
|
|
12
12
|
themeColor?: string
|
|
13
13
|
backgroundColor?: string
|
|
14
|
+
/**
|
|
15
|
+
* Where the installed app starts on an iPhone or iPad: under the status bar (the default), as a
|
|
16
|
+
* native app does, so a sheet's backdrop dims the status bar in step with the page, or below it.
|
|
17
|
+
* Under it, a layout of your own clears the status bar with `--safe-top`; Sixb's shells and
|
|
18
|
+
* screens do.
|
|
19
|
+
*/
|
|
20
|
+
statusBar?: "under" | "below"
|
|
14
21
|
}
|
|
15
22
|
|
|
16
23
|
export interface ResolvedManifestIcon {
|
|
@@ -28,6 +35,7 @@ export interface ResolvedAppMetadata {
|
|
|
28
35
|
readonly backgroundColor: string
|
|
29
36
|
readonly appleTouchIcon?: string
|
|
30
37
|
readonly icons: readonly ResolvedManifestIcon[]
|
|
38
|
+
readonly statusBar: "under" | "below"
|
|
31
39
|
}
|
|
32
40
|
|
|
33
41
|
export interface ResolveAppMetadataOptions {
|
|
@@ -107,6 +115,7 @@ export async function resolveAppMetadata(
|
|
|
107
115
|
? { appleTouchIcon: "/apple-touch-icon.png" }
|
|
108
116
|
: {}),
|
|
109
117
|
icons,
|
|
118
|
+
statusBar: configured.statusBar ?? "under",
|
|
110
119
|
}
|
|
111
120
|
}
|
|
112
121
|
|
|
@@ -174,6 +183,9 @@ function validateMetadata(metadata: AppMetadata, layoutPath: string): void {
|
|
|
174
183
|
throw metadataError(layoutPath, `metadata.${field} must be a non-empty string when provided`)
|
|
175
184
|
}
|
|
176
185
|
}
|
|
186
|
+
if (metadata.statusBar !== undefined && !["under", "below"].includes(metadata.statusBar)) {
|
|
187
|
+
throw metadataError(layoutPath, 'metadata.statusBar must be "under" or "below" when provided')
|
|
188
|
+
}
|
|
177
189
|
}
|
|
178
190
|
|
|
179
191
|
function metadataError(layoutPath: string, detail: string): Error {
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
import { RunLogs } from "./logs"
|
|
27
27
|
import { useConsoleMessages } from "./messages"
|
|
28
28
|
import { ACTION_RUNS_HREF } from "./ontology/action-runs"
|
|
29
|
+
import { PillSkeleton, StatsSkeleton } from "./skeletons"
|
|
29
30
|
|
|
30
31
|
type ActionRun = GetActionRunResponse
|
|
31
32
|
|
|
@@ -99,6 +100,25 @@ export function ConsoleActionRunPage() {
|
|
|
99
100
|
id={runId}
|
|
100
101
|
icon={Zap}
|
|
101
102
|
error={runQuery.error}
|
|
103
|
+
loading={{
|
|
104
|
+
icon: <IconTile icon={Zap} size="lg" />,
|
|
105
|
+
meta: (
|
|
106
|
+
<>
|
|
107
|
+
<PillSkeleton />
|
|
108
|
+
<span className="font-mono text-xs">{runId}</span>
|
|
109
|
+
</>
|
|
110
|
+
),
|
|
111
|
+
children: (
|
|
112
|
+
<StatsSkeleton
|
|
113
|
+
labels={[
|
|
114
|
+
messages.run.started,
|
|
115
|
+
messages.run.took,
|
|
116
|
+
messages.action.phase,
|
|
117
|
+
messages.action.subject,
|
|
118
|
+
]}
|
|
119
|
+
/>
|
|
120
|
+
),
|
|
121
|
+
}}
|
|
102
122
|
/>
|
|
103
123
|
)
|
|
104
124
|
}
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
useFormat,
|
|
30
30
|
useNumbers,
|
|
31
31
|
} from "../../section-ui"
|
|
32
|
+
import { MetaSkeleton, SkeletonBlock, TrailingSkeleton } from "../skeletons"
|
|
32
33
|
import { useDataMessages } from "./messages"
|
|
33
34
|
import { ConnectorIcon } from "./shared"
|
|
34
35
|
|
|
@@ -47,7 +48,11 @@ export function ConsoleConnectorsPage() {
|
|
|
47
48
|
>
|
|
48
49
|
<Panel>
|
|
49
50
|
{connectorsQuery.isPending ? (
|
|
50
|
-
<PanelSkeleton
|
|
51
|
+
<PanelSkeleton
|
|
52
|
+
rows={3}
|
|
53
|
+
interactive
|
|
54
|
+
trailing={<TrailingSkeleton pill={false} chevron />}
|
|
55
|
+
/>
|
|
51
56
|
) : connectorsQuery.isError ? (
|
|
52
57
|
<PanelEmpty
|
|
53
58
|
tone="error"
|
|
@@ -124,6 +129,20 @@ export function ConsoleConnectorPage() {
|
|
|
124
129
|
id={connectorId}
|
|
125
130
|
icon={Cable}
|
|
126
131
|
error={connectorQuery.error}
|
|
132
|
+
loading={{
|
|
133
|
+
icon: <SkeletonBlock className="size-12 rounded-xl" />,
|
|
134
|
+
meta: <MetaSkeleton pill={false} />,
|
|
135
|
+
children: (
|
|
136
|
+
<PageSection
|
|
137
|
+
title={messages.connectors.syncsTitle}
|
|
138
|
+
description={messages.connectors.syncsDescription}
|
|
139
|
+
>
|
|
140
|
+
<Panel>
|
|
141
|
+
<SyncsSkeleton />
|
|
142
|
+
</Panel>
|
|
143
|
+
</PageSection>
|
|
144
|
+
),
|
|
145
|
+
}}
|
|
127
146
|
/>
|
|
128
147
|
)
|
|
129
148
|
}
|
|
@@ -153,7 +172,7 @@ export function ConsoleConnectorPage() {
|
|
|
153
172
|
>
|
|
154
173
|
<Panel>
|
|
155
174
|
{syncsQuery.isPending ? (
|
|
156
|
-
<
|
|
175
|
+
<SyncsSkeleton />
|
|
157
176
|
) : syncsQuery.isError ? (
|
|
158
177
|
<PanelEmpty
|
|
159
178
|
tone="error"
|
|
@@ -249,7 +268,7 @@ export function ConsoleConnectorPage() {
|
|
|
249
268
|
>
|
|
250
269
|
<Panel>
|
|
251
270
|
{runsQuery.isPending ? (
|
|
252
|
-
<PanelSkeleton rows={3} />
|
|
271
|
+
<PanelSkeleton rows={3} leading="none" trailing={<TrailingSkeleton />} />
|
|
253
272
|
) : runsQuery.isError ? (
|
|
254
273
|
isUnrecorded(runsQuery.error) ? (
|
|
255
274
|
<UnrecordedHistory what={messages.connectors.deliveryWhat} />
|
|
@@ -315,3 +334,8 @@ export function ConsoleConnectorPage() {
|
|
|
315
334
|
</SectionPage>
|
|
316
335
|
)
|
|
317
336
|
}
|
|
337
|
+
|
|
338
|
+
/** A connector's syncs while they load, each ending in its latest run's status. */
|
|
339
|
+
function SyncsSkeleton() {
|
|
340
|
+
return <PanelSkeleton rows={2} interactive trailing={<TrailingSkeleton />} />
|
|
341
|
+
}
|