@sixb/app 0.2.0 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/connector-icons/README.md +1 -0
- package/assets/connector-icons/fleetio.ico +0 -0
- 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-card.d.ts +10 -0
- package/dist/agent/background/background-card.d.ts.map +1 -0
- package/dist/agent/background/background-tool-row.d.ts +9 -0
- package/dist/agent/background/background-tool-row.d.ts.map +1 -0
- package/dist/agent/background/context.d.ts +23 -0
- package/dist/agent/background/context.d.ts.map +1 -0
- package/dist/agent/background/interpret.d.ts +116 -0
- package/dist/agent/background/interpret.d.ts.map +1 -0
- package/dist/agent/bash/bash-tool-view.d.ts.map +1 -1
- package/dist/agent/bash/interpret.d.ts +4 -0
- package/dist/agent/bash/interpret.d.ts.map +1 -1
- package/dist/agent/components/composer-menu.d.ts +3 -1
- package/dist/agent/components/composer-menu.d.ts.map +1 -1
- package/dist/agent/components/composer-place.d.ts +13 -0
- package/dist/agent/components/composer-place.d.ts.map +1 -0
- package/dist/agent/components/composer.d.ts +23 -1
- package/dist/agent/components/composer.d.ts.map +1 -1
- package/dist/agent/components/computer-place.d.ts +3 -1
- package/dist/agent/components/computer-place.d.ts.map +1 -1
- package/dist/agent/components/context-chips.d.ts.map +1 -1
- package/dist/agent/components/context-meter.d.ts +1 -1
- package/dist/agent/components/conversation-panel.d.ts +3 -1
- package/dist/agent/components/conversation-panel.d.ts.map +1 -1
- package/dist/agent/components/message-parts.d.ts +3 -1
- package/dist/agent/components/message-parts.d.ts.map +1 -1
- package/dist/agent/components/thread-artifacts-menu.d.ts.map +1 -1
- package/dist/agent/components/transcript.d.ts +6 -0
- package/dist/agent/components/transcript.d.ts.map +1 -1
- package/dist/agent/components/web-fetch-tool-view.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/child-parts.d.ts +2 -0
- package/dist/agent/delegation/child-parts.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/hooks/use-agent-conversation.d.ts +24 -4
- package/dist/agent/hooks/use-agent-conversation.d.ts.map +1 -1
- package/dist/agent/hooks/use-new-thread-place.d.ts +70 -0
- package/dist/agent/hooks/use-new-thread-place.d.ts.map +1 -0
- package/dist/agent/hooks/use-thread-lists.d.ts +40 -0
- package/dist/agent/hooks/use-thread-lists.d.ts.map +1 -1
- package/dist/agent/i18n/en.d.ts +74 -0
- package/dist/agent/i18n/en.d.ts.map +1 -1
- package/dist/agent/i18n/fr.d.ts.map +1 -1
- package/dist/agent/i18n/index.d.ts +126 -0
- package/dist/agent/i18n/index.d.ts.map +1 -1
- package/dist/agent/observed-conversation.d.ts.map +1 -1
- package/dist/agent/publish-artifact/interpret.d.ts +8 -2
- package/dist/agent/publish-artifact/interpret.d.ts.map +1 -1
- package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts +9 -0
- package/dist/agent/publish-artifact/open-artifact-tool-view.d.ts.map +1 -0
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts +4 -2
- package/dist/agent/publish-artifact/publish-artifact-tool-view.d.ts.map +1 -1
- package/dist/agent/publish-artifact/use-live-publishes.d.ts +3 -3
- package/dist/agent/publish-artifact/use-live-publishes.d.ts.map +1 -1
- package/dist/agent/tool-views/built-in.d.ts.map +1 -1
- package/dist/agent/types.d.ts +3 -1
- package/dist/agent/types.d.ts.map +1 -1
- package/dist/agent/utils/web-fetch.d.ts +33 -1
- package/dist/agent/utils/web-fetch.d.ts.map +1 -1
- package/dist/agent/utils/web-search.d.ts +14 -2
- package/dist/agent/utils/web-search.d.ts.map +1 -1
- package/dist/artifacts/artifact-page.d.ts.map +1 -1
- package/dist/artifacts/artifact-viewer.d.ts +16 -0
- package/dist/artifacts/artifact-viewer.d.ts.map +1 -0
- package/dist/artifacts/card-details.d.ts +1 -1
- package/dist/artifacts/card-details.d.ts.map +1 -1
- package/dist/artifacts/card-preview.d.ts.map +1 -1
- package/dist/artifacts/comments-context.d.ts +48 -0
- package/dist/artifacts/comments-context.d.ts.map +1 -0
- package/dist/artifacts/edit-session.d.ts +6 -6
- package/dist/artifacts/edit-session.d.ts.map +1 -1
- package/dist/artifacts/file-source.d.ts.map +1 -1
- package/dist/artifacts/frame.d.ts +10 -2
- package/dist/artifacts/frame.d.ts.map +1 -1
- package/dist/artifacts/guest-badge.d.ts +8 -0
- package/dist/artifacts/guest-badge.d.ts.map +1 -0
- package/dist/artifacts/held-artifact.d.ts +19 -0
- package/dist/artifacts/held-artifact.d.ts.map +1 -0
- package/dist/artifacts/holders.d.ts +10 -0
- package/dist/artifacts/holders.d.ts.map +1 -0
- package/dist/artifacts/live/boards.d.ts +15 -0
- package/dist/artifacts/live/boards.d.ts.map +1 -0
- package/dist/artifacts/live/canvas.d.ts +79 -0
- package/dist/artifacts/live/canvas.d.ts.map +1 -0
- package/dist/artifacts/live/header.d.ts +29 -0
- package/dist/artifacts/live/header.d.ts.map +1 -0
- package/dist/artifacts/live/hooks.d.ts +21 -0
- package/dist/artifacts/live/hooks.d.ts.map +1 -0
- package/dist/artifacts/live/presence.d.ts +32 -0
- package/dist/artifacts/live/presence.d.ts.map +1 -0
- package/dist/artifacts/live/session.d.ts +130 -0
- package/dist/artifacts/live/session.d.ts.map +1 -0
- package/dist/artifacts/live/view.d.ts +28 -0
- package/dist/artifacts/live/view.d.ts.map +1 -0
- package/dist/artifacts/messages.d.ts +424 -14
- package/dist/artifacts/messages.d.ts.map +1 -1
- package/dist/artifacts/page-queries.d.ts +2 -2
- package/dist/artifacts/page-queries.d.ts.map +1 -1
- package/dist/artifacts/page-state.d.ts.map +1 -1
- package/dist/artifacts/publish-edit.d.ts +24 -14
- package/dist/artifacts/publish-edit.d.ts.map +1 -1
- package/dist/artifacts/queries.d.ts +490 -9
- package/dist/artifacts/queries.d.ts.map +1 -1
- package/dist/artifacts/references/references.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/arrows.d.ts +0 -18
- package/dist/artifacts/renderers/canvas/arrows.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/board-editor.d.ts +43 -0
- package/dist/artifacts/renderers/canvas/board-editor.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board-properties.d.ts +37 -0
- package/dist/artifacts/renderers/canvas/board-properties.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board-source.d.ts +18 -0
- package/dist/artifacts/renderers/canvas/board-source.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/board.d.ts +64 -19
- package/dist/artifacts/renderers/canvas/board.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/canvas.d.ts +13 -4
- package/dist/artifacts/renderers/canvas/canvas.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts +84 -0
- package/dist/artifacts/renderers/canvas/comment-pins.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/commenting.d.ts +58 -0
- package/dist/artifacts/renderers/canvas/commenting.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/comments-panel.d.ts +27 -0
- package/dist/artifacts/renderers/canvas/comments-panel.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/comments.d.ts +56 -0
- package/dist/artifacts/renderers/canvas/comments.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/draft.d.ts +7 -6
- package/dist/artifacts/renderers/canvas/draft.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/edit-mode.d.ts +19 -2
- package/dist/artifacts/renderers/canvas/edit-mode.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/focus.d.ts +40 -5
- package/dist/artifacts/renderers/canvas/focus.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/items.d.ts +47 -4
- package/dist/artifacts/renderers/canvas/items.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/layout.d.ts +5 -8
- package/dist/artifacts/renderers/canvas/layout.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/presence.d.ts +21 -0
- package/dist/artifacts/renderers/canvas/presence.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/previews.d.ts +54 -0
- package/dist/artifacts/renderers/canvas/previews.d.ts.map +1 -0
- package/dist/artifacts/renderers/canvas/renderer.d.ts +11 -2
- package/dist/artifacts/renderers/canvas/renderer.d.ts.map +1 -1
- package/dist/artifacts/renderers/canvas/thumbnail.d.ts +5 -2
- package/dist/artifacts/renderers/canvas/thumbnail.d.ts.map +1 -1
- package/dist/artifacts/version-menu.d.ts +19 -0
- package/dist/artifacts/version-menu.d.ts.map +1 -0
- package/dist/artifacts/view-context.d.ts +43 -0
- package/dist/artifacts/view-context.d.ts.map +1 -0
- package/dist/artifacts/viewer.d.ts.map +1 -1
- package/dist/build.d.ts +5 -0
- package/dist/build.d.ts.map +1 -1
- package/dist/{chunk-fw2bm6dq.js → chunk-001c4gnk.js} +8086 -3870
- package/dist/chunk-001c4gnk.js.map +204 -0
- package/dist/chunk-00wggsst.js +7 -0
- package/dist/chunk-00wggsst.js.map +10 -0
- package/dist/chunk-5crvhjp2.js +4704 -0
- package/dist/chunk-5crvhjp2.js.map +28 -0
- package/dist/{chunk-q69001w3.js → chunk-694m74s7.js} +7 -1
- package/dist/{chunk-q69001w3.js.map → chunk-694m74s7.js.map} +3 -3
- package/dist/{chunk-4mprsd2n.js → chunk-fg6thecb.js} +25 -1
- package/dist/chunk-fg6thecb.js.map +10 -0
- package/dist/{chunk-j9653e83.js → chunk-fwb9mxwm.js} +1 -1
- package/dist/{chunk-km25essq.js → chunk-kes4ygmz.js} +1 -1
- package/dist/{chunk-kwbw4dyk.js → chunk-ryed2jq8.js} +1 -1
- package/dist/codegen.d.ts.map +1 -1
- package/dist/createCustomApp.d.ts.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +930 -309
- package/dist/index.js.map +15 -10
- package/dist/locale-messages.d.ts +12 -0
- package/dist/locale-messages.d.ts.map +1 -1
- package/dist/locale.d.ts +12 -0
- package/dist/locale.d.ts.map +1 -1
- package/dist/locale.js +1 -1
- package/dist/metadata.d.ts +8 -0
- package/dist/metadata.d.ts.map +1 -1
- package/dist/pages/console/action-run.d.ts.map +1 -1
- package/dist/pages/console/data/connectors.d.ts.map +1 -1
- package/dist/pages/console/data/datasets.d.ts.map +1 -1
- package/dist/pages/console/data/lake-health.d.ts +3 -0
- package/dist/pages/console/data/lake-health.d.ts.map +1 -0
- package/dist/pages/console/data/messages.d.ts +98 -2
- package/dist/pages/console/data/messages.d.ts.map +1 -1
- package/dist/pages/console/data/pipelines.d.ts.map +1 -1
- package/dist/pages/console/data/projections.d.ts.map +1 -1
- package/dist/pages/console/data/shared.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 +2 -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 +8195 -4841
- package/dist/pages.js.map +58 -49
- 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 -2
- package/src/agent/agent-chat.tsx +51 -8
- package/src/agent/agent-panel.tsx +12 -0
- package/src/agent/agent-surface.tsx +4 -0
- package/src/agent/agent.css +18 -0
- package/src/agent/artifact-card.tsx +84 -16
- package/src/agent/artifact-panel.tsx +63 -43
- package/src/agent/background/background-card.tsx +308 -0
- package/src/agent/background/background-tool-row.tsx +58 -0
- package/src/agent/background/context.ts +26 -0
- package/src/agent/background/interpret.ts +356 -0
- package/src/agent/bash/bash-tool-view.tsx +9 -4
- package/src/agent/bash/interpret.ts +21 -3
- package/src/agent/components/agent-message-body.tsx +1 -1
- package/src/agent/components/composer-menu.tsx +4 -1
- package/src/agent/components/composer-place.tsx +168 -0
- package/src/agent/components/composer.tsx +101 -3
- package/src/agent/components/computer-place.tsx +18 -1
- package/src/agent/components/context-chips.tsx +72 -2
- package/src/agent/components/conversation-panel.tsx +3 -2
- package/src/agent/components/message-parts.tsx +6 -1
- package/src/agent/components/thread-artifacts-menu.tsx +22 -5
- package/src/agent/components/transcript.tsx +33 -1
- package/src/agent/components/web-fetch-tool-view.tsx +94 -29
- package/src/agent/composer-insertion.ts +36 -0
- package/src/agent/delegation/child-parts.tsx +1 -1
- package/src/agent/hooks/use-agent-conversation.ts +101 -8
- package/src/agent/hooks/use-new-thread-place.ts +294 -0
- package/src/agent/i18n/en.ts +70 -3
- package/src/agent/i18n/fr.ts +70 -3
- package/src/agent/observed-conversation.tsx +3 -0
- package/src/agent/publish-artifact/interpret.ts +27 -5
- package/src/agent/publish-artifact/open-artifact-tool-view.tsx +49 -0
- package/src/agent/publish-artifact/publish-artifact-tool-view.tsx +14 -8
- package/src/agent/publish-artifact/use-live-publishes.ts +7 -11
- package/src/agent/react-router.tsx +2 -2
- package/src/agent/tool-views/built-in.tsx +29 -11
- package/src/agent/types.ts +4 -0
- package/src/agent/utils/web-fetch.ts +89 -10
- package/src/agent/utils/web-search.ts +67 -28
- package/src/artifacts/artifact-page.tsx +42 -17
- package/src/artifacts/artifact-viewer.tsx +56 -0
- package/src/artifacts/artifacts.css +80 -0
- package/src/artifacts/card-details.ts +2 -2
- package/src/artifacts/card-preview.tsx +17 -3
- package/src/artifacts/comments-context.ts +125 -0
- package/src/artifacts/edit-session.tsx +6 -6
- package/src/artifacts/file-source.ts +10 -3
- package/src/artifacts/frame.tsx +50 -12
- package/src/artifacts/gallery.tsx +9 -11
- package/src/artifacts/guest-badge.tsx +21 -0
- package/src/artifacts/held-artifact.tsx +241 -0
- package/src/artifacts/holders.tsx +170 -0
- package/src/artifacts/live/boards.ts +95 -0
- package/src/artifacts/live/canvas.ts +402 -0
- package/src/artifacts/live/header.tsx +137 -0
- package/src/artifacts/live/hooks.ts +94 -0
- package/src/artifacts/live/presence.ts +147 -0
- package/src/artifacts/live/session.ts +520 -0
- package/src/artifacts/live/view.ts +81 -0
- package/src/artifacts/messages.ts +415 -24
- package/src/artifacts/page-queries.ts +2 -3
- package/src/artifacts/page-state.ts +16 -7
- package/src/artifacts/publish-edit.ts +50 -22
- package/src/artifacts/queries.ts +108 -10
- package/src/artifacts/references/references.tsx +6 -9
- package/src/artifacts/renderers/canvas/arrows.tsx +12 -39
- package/src/artifacts/renderers/canvas/board-editor.tsx +817 -0
- package/src/artifacts/renderers/canvas/board-properties.tsx +488 -0
- package/src/artifacts/renderers/canvas/board-source.ts +110 -0
- package/src/artifacts/renderers/canvas/board.tsx +309 -33
- package/src/artifacts/renderers/canvas/canvas.tsx +387 -72
- package/src/artifacts/renderers/canvas/comment-pins.tsx +465 -0
- package/src/artifacts/renderers/canvas/commenting.tsx +319 -0
- package/src/artifacts/renderers/canvas/comments-panel.tsx +574 -0
- package/src/artifacts/renderers/canvas/comments.ts +225 -0
- package/src/artifacts/renderers/canvas/draft.ts +41 -50
- package/src/artifacts/renderers/canvas/edit-mode.tsx +145 -20
- package/src/artifacts/renderers/canvas/focus.tsx +175 -24
- package/src/artifacts/renderers/canvas/items.tsx +179 -52
- package/src/artifacts/renderers/canvas/layout.ts +99 -47
- package/src/artifacts/renderers/canvas/presence.tsx +184 -0
- package/src/artifacts/renderers/canvas/previews.ts +127 -0
- package/src/artifacts/renderers/canvas/renderer.tsx +87 -22
- package/src/artifacts/renderers/canvas/thumbnail.tsx +56 -15
- package/src/artifacts/renderers/canvas/toolbar.tsx +1 -1
- package/src/artifacts/renderers/slides/slides.tsx +1 -1
- package/src/artifacts/version-menu.tsx +438 -0
- package/src/artifacts/view-context.ts +102 -0
- package/src/artifacts/viewer.tsx +205 -147
- package/src/build.ts +96 -11
- package/src/codegen.ts +83 -5
- package/src/createCustomApp.ts +20 -7
- package/src/index.ts +12 -0
- package/src/locale-messages.ts +24 -0
- package/src/metadata.ts +12 -0
- package/src/pages/console/action-run.tsx +20 -0
- package/src/pages/console/data/connectors.tsx +27 -3
- package/src/pages/console/data/datasets.tsx +30 -1
- package/src/pages/console/data/lake-health.tsx +299 -0
- package/src/pages/console/data/messages.ts +143 -2
- package/src/pages/console/data/pipelines.tsx +91 -3
- package/src/pages/console/data/projections.tsx +23 -4
- package/src/pages/console/data/shared.tsx +1 -0
- 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 +2 -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 +17 -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-4mprsd2n.js.map +0 -10
- package/dist/chunk-fw2bm6dq.js.map +0 -182
- package/dist/chunk-zxthr2q5.js +0 -1487
- package/dist/chunk-zxthr2q5.js.map +0 -18
- /package/dist/{chunk-j9653e83.js.map → chunk-fwb9mxwm.js.map} +0 -0
- /package/dist/{chunk-km25essq.js.map → chunk-kes4ygmz.js.map} +0 -0
- /package/dist/{chunk-kwbw4dyk.js.map → chunk-ryed2jq8.js.map} +0 -0
|
@@ -4,7 +4,8 @@ import { Search, Workflow } from "lucide-react"
|
|
|
4
4
|
import { useMemo } from "react"
|
|
5
5
|
import { useSearchParams } from "react-router-dom"
|
|
6
6
|
import { SectionPage } from "../../section-page"
|
|
7
|
-
import { PanelEmpty,
|
|
7
|
+
import { PanelEmpty, useLoadFailure } from "../../section-ui"
|
|
8
|
+
import { CardSkeleton, CountSkeleton } from "../skeletons"
|
|
8
9
|
import { CollectionToolbar } from "./components/collection-toolbar"
|
|
9
10
|
import { useWorkflowLiveUpdates } from "./hooks/workflow-live-updates"
|
|
10
11
|
import { humanizeIdentifier } from "./lib/labels"
|
|
@@ -14,7 +15,8 @@ import { WorkflowCard } from "./workflows/workflow-card"
|
|
|
14
15
|
/** Console › Workflows: every workflow with its latest run; each opens its canvas. */
|
|
15
16
|
export function ConsoleWorkflowsPage() {
|
|
16
17
|
useWorkflowLiveUpdates()
|
|
17
|
-
const
|
|
18
|
+
const countQuery = useQuery({ ...listWorkflowsOptions(), retry: false })
|
|
19
|
+
const count = countQuery.data?.length
|
|
18
20
|
return (
|
|
19
21
|
<SectionPage
|
|
20
22
|
section="console"
|
|
@@ -22,7 +24,9 @@ export function ConsoleWorkflowsPage() {
|
|
|
22
24
|
width="wide"
|
|
23
25
|
title="Workflows"
|
|
24
26
|
meta={
|
|
25
|
-
|
|
27
|
+
countQuery.isPending ? (
|
|
28
|
+
<CountSkeleton />
|
|
29
|
+
) : count === undefined ? undefined : (
|
|
26
30
|
<span>{`${count} workflow${count === 1 ? "" : "s"}`}</span>
|
|
27
31
|
)
|
|
28
32
|
}
|
|
@@ -55,11 +59,34 @@ function WorkflowDefinitionsTab() {
|
|
|
55
59
|
)
|
|
56
60
|
}
|
|
57
61
|
|
|
62
|
+
const toolbar = (
|
|
63
|
+
<CollectionToolbar
|
|
64
|
+
search={{
|
|
65
|
+
value: query,
|
|
66
|
+
onChange: updateQuery,
|
|
67
|
+
placeholder: "Search workflows, nodes, triggers, or inputs…",
|
|
68
|
+
}}
|
|
69
|
+
// The header counts every workflow; while searching, this counts the matches.
|
|
70
|
+
actions={
|
|
71
|
+
query.trim() && !workflowsQuery.isPending ? (
|
|
72
|
+
<p className="px-1 text-xs tabular-nums text-muted-foreground">
|
|
73
|
+
{`${filteredWorkflows.length} of ${workflows.length} workflows`}
|
|
74
|
+
</p>
|
|
75
|
+
) : undefined
|
|
76
|
+
}
|
|
77
|
+
/>
|
|
78
|
+
)
|
|
79
|
+
|
|
58
80
|
if (workflowsQuery.isPending) {
|
|
59
81
|
return (
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
82
|
+
<section className="-mt-4 space-y-4">
|
|
83
|
+
{toolbar}
|
|
84
|
+
<div className="grid gap-3 lg:grid-cols-2">
|
|
85
|
+
{Array.from({ length: 4 }, (_, index) => (
|
|
86
|
+
<CardSkeleton key={index} />
|
|
87
|
+
))}
|
|
88
|
+
</div>
|
|
89
|
+
</section>
|
|
63
90
|
)
|
|
64
91
|
}
|
|
65
92
|
|
|
@@ -79,21 +106,7 @@ function WorkflowDefinitionsTab() {
|
|
|
79
106
|
|
|
80
107
|
return (
|
|
81
108
|
<section className="-mt-4 space-y-4">
|
|
82
|
-
|
|
83
|
-
search={{
|
|
84
|
-
value: query,
|
|
85
|
-
onChange: updateQuery,
|
|
86
|
-
placeholder: "Search workflows, nodes, triggers, or inputs…",
|
|
87
|
-
}}
|
|
88
|
-
// The header counts every workflow; while searching, this counts the matches.
|
|
89
|
-
actions={
|
|
90
|
-
query.trim() ? (
|
|
91
|
-
<p className="px-1 text-xs tabular-nums text-muted-foreground">
|
|
92
|
-
{`${filteredWorkflows.length} of ${workflows.length} workflows`}
|
|
93
|
-
</p>
|
|
94
|
-
) : undefined
|
|
95
|
-
}
|
|
96
|
-
/>
|
|
109
|
+
{toolbar}
|
|
97
110
|
|
|
98
111
|
{filteredWorkflows.length === 0 ? (
|
|
99
112
|
<PanelEmpty
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Placeholders the Console's pages share while they load, each the size of what replaces it. A
|
|
3
|
+
* line of text is a `SkeletonText` inside an element with the real text's size; these are the
|
|
4
|
+
* marks and controls of a fixed size.
|
|
5
|
+
*/
|
|
6
|
+
import { Card } from "@sixb/ui/components"
|
|
7
|
+
import { cn } from "@sixb/ui/lib/utils"
|
|
8
|
+
import { ChevronRight } from "lucide-react"
|
|
9
|
+
import { SkeletonText, Stats } from "../section-ui"
|
|
10
|
+
|
|
11
|
+
/** A placeholder of a fixed size, such as an icon tile, a button or a select. */
|
|
12
|
+
export function SkeletonBlock({ className }: { readonly className?: string }) {
|
|
13
|
+
return (
|
|
14
|
+
<span
|
|
15
|
+
aria-hidden
|
|
16
|
+
className={cn("block shrink-0 animate-pulse rounded-md bg-muted", className)}
|
|
17
|
+
/>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Where a `Pill` goes, such as a run's status. */
|
|
22
|
+
export function PillSkeleton() {
|
|
23
|
+
return <SkeletonBlock className="h-5 w-20 rounded-full" />
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** What ends a `PanelRow`: its status pill, and the chevron of a row that opens a page. */
|
|
27
|
+
export function TrailingSkeleton({
|
|
28
|
+
pill = true,
|
|
29
|
+
chevron = false,
|
|
30
|
+
}: {
|
|
31
|
+
readonly pill?: boolean
|
|
32
|
+
readonly chevron?: boolean
|
|
33
|
+
}) {
|
|
34
|
+
return (
|
|
35
|
+
<>
|
|
36
|
+
{pill ? <PillSkeleton /> : null}
|
|
37
|
+
{chevron ? <ChevronRight aria-hidden className="size-4 text-muted-foreground/60" /> : null}
|
|
38
|
+
</>
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* A detail page's facts under its title while it loads: a status pill and a line of text. A line
|
|
44
|
+
* in a flex row sits in its own span, which keeps the text's line height.
|
|
45
|
+
*/
|
|
46
|
+
export function MetaSkeleton({ pill = true }: { readonly pill?: boolean }) {
|
|
47
|
+
return (
|
|
48
|
+
<>
|
|
49
|
+
{pill ? <PillSkeleton /> : null}
|
|
50
|
+
<span>
|
|
51
|
+
<SkeletonText className="w-48" />
|
|
52
|
+
</span>
|
|
53
|
+
</>
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/** A detail page's `Stats` with their labels, before their values arrive. */
|
|
58
|
+
export function StatsSkeleton({ labels }: { readonly labels: readonly string[] }) {
|
|
59
|
+
return (
|
|
60
|
+
<Stats items={labels.map((label) => ({ label, value: <SkeletonText className="w-16" /> }))} />
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** A page's count beside its title while it loads, such as "12 rules". */
|
|
65
|
+
export function CountSkeleton() {
|
|
66
|
+
return (
|
|
67
|
+
<span>
|
|
68
|
+
<SkeletonText className="w-16" />
|
|
69
|
+
</span>
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* A card of a catalog while it loads, shaped like `WorkflowCard` and `ActionCard`: a mark, a name
|
|
75
|
+
* and a line of counts, then a footer with the latest run and its status.
|
|
76
|
+
*/
|
|
77
|
+
export function CardSkeleton() {
|
|
78
|
+
return (
|
|
79
|
+
<Card aria-hidden className="gap-0 overflow-hidden p-0">
|
|
80
|
+
<div className="flex min-w-0 items-center gap-3 p-4">
|
|
81
|
+
<SkeletonBlock className="size-9 rounded-lg" />
|
|
82
|
+
<div className="min-w-0 flex-1">
|
|
83
|
+
<div className="text-sm">
|
|
84
|
+
<SkeletonText className="h-3 w-36" />
|
|
85
|
+
</div>
|
|
86
|
+
<p className="mt-1 text-sm">
|
|
87
|
+
<SkeletonText className="w-56 bg-muted/70" />
|
|
88
|
+
</p>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
<div className="flex min-h-14 items-center justify-between gap-3 border-t border-border px-4 py-3">
|
|
92
|
+
<p className="text-sm">
|
|
93
|
+
<SkeletonText className="w-40 bg-muted/70" />
|
|
94
|
+
</p>
|
|
95
|
+
<PillSkeleton />
|
|
96
|
+
</div>
|
|
97
|
+
</Card>
|
|
98
|
+
)
|
|
99
|
+
}
|
|
@@ -41,6 +41,7 @@ import { useWorkflowRunLiveUpdates } from "./live-updates"
|
|
|
41
41
|
import { RunLogs } from "./logs"
|
|
42
42
|
import { useConsoleMessages } from "./messages"
|
|
43
43
|
import { workflowNodeIoSchemas, workflowSchemas } from "./ontology/workflows/utils"
|
|
44
|
+
import { PillSkeleton, StatsSkeleton } from "./skeletons"
|
|
44
45
|
|
|
45
46
|
type Run = GetWorkflowRunResponse["run"]
|
|
46
47
|
type RunNode = GetWorkflowRunResponse["nodes"][number]
|
|
@@ -97,6 +98,25 @@ function WorkflowRunDetail({ runId }: { readonly runId: string }) {
|
|
|
97
98
|
id={runId}
|
|
98
99
|
icon={Workflow}
|
|
99
100
|
error={runQuery.error}
|
|
101
|
+
loading={{
|
|
102
|
+
icon: <IconTile icon={Workflow} size="lg" />,
|
|
103
|
+
meta: (
|
|
104
|
+
<>
|
|
105
|
+
<PillSkeleton />
|
|
106
|
+
<span className="font-mono text-xs">{runId}</span>
|
|
107
|
+
</>
|
|
108
|
+
),
|
|
109
|
+
children: (
|
|
110
|
+
<StatsSkeleton
|
|
111
|
+
labels={[
|
|
112
|
+
messages.run.started,
|
|
113
|
+
messages.run.took,
|
|
114
|
+
messages.run.queued,
|
|
115
|
+
messages.run.finished,
|
|
116
|
+
]}
|
|
117
|
+
/>
|
|
118
|
+
),
|
|
119
|
+
}}
|
|
100
120
|
/>
|
|
101
121
|
)
|
|
102
122
|
}
|
|
@@ -249,6 +249,10 @@ export function ConsoleIndexPage() {
|
|
|
249
249
|
/**
|
|
250
250
|
* A detail page while its subject loads, or once it could not be: "Not found" for a 404 alone, so
|
|
251
251
|
* a refusal or an outage says what it is.
|
|
252
|
+
*
|
|
253
|
+
* While it loads it takes the loaded page's shape, so nothing moves when the subject arrives:
|
|
254
|
+
* `loading` gives the header's mark, facts and actions and the body's placeholders, and a page
|
|
255
|
+
* that fills the frame edge to edge passes its whole loading view as `workspace`.
|
|
252
256
|
*/
|
|
253
257
|
export function DetailFallback({
|
|
254
258
|
section,
|
|
@@ -258,6 +262,8 @@ export function DetailFallback({
|
|
|
258
262
|
id,
|
|
259
263
|
icon,
|
|
260
264
|
error,
|
|
265
|
+
loading,
|
|
266
|
+
workspace,
|
|
261
267
|
}: {
|
|
262
268
|
readonly section: AppSectionId
|
|
263
269
|
readonly page: string
|
|
@@ -268,22 +274,46 @@ export function DetailFallback({
|
|
|
268
274
|
readonly icon: ComponentType<{ readonly className?: string }>
|
|
269
275
|
/** `null` while it loads. */
|
|
270
276
|
readonly error: unknown
|
|
277
|
+
/** Without `children`, the body is two placeholder rows. */
|
|
278
|
+
readonly loading?: Pick<SectionPageProps, "icon" | "meta" | "actions" | "width"> & {
|
|
279
|
+
readonly children?: ReactNode
|
|
280
|
+
}
|
|
281
|
+
/** The loading view of a `SectionWorkspace` page, drawn in the workspace's frame. */
|
|
282
|
+
readonly workspace?: ReactNode
|
|
271
283
|
}) {
|
|
272
284
|
const failure = useLoadFailure(error, { id })
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
285
|
+
|
|
286
|
+
if (error) {
|
|
287
|
+
return (
|
|
288
|
+
<SectionPage section={section} page={page} back={back} title={failure.title}>
|
|
289
|
+
<Panel>
|
|
277
290
|
<PanelEmpty
|
|
278
291
|
tone="error"
|
|
279
292
|
icon={icon}
|
|
280
293
|
title={failure.title}
|
|
281
294
|
description={failure.description}
|
|
282
295
|
/>
|
|
283
|
-
|
|
296
|
+
</Panel>
|
|
297
|
+
</SectionPage>
|
|
298
|
+
)
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (workspace) {
|
|
302
|
+
return (
|
|
303
|
+
<SectionWorkspace section={section} page={page}>
|
|
304
|
+
{workspace}
|
|
305
|
+
</SectionWorkspace>
|
|
306
|
+
)
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
const { children, ...frame } = loading ?? {}
|
|
310
|
+
return (
|
|
311
|
+
<SectionPage section={section} page={page} back={back} title={name} {...frame}>
|
|
312
|
+
{children ?? (
|
|
313
|
+
<Panel>
|
|
284
314
|
<PanelSkeleton rows={2} />
|
|
285
|
-
|
|
286
|
-
|
|
315
|
+
</Panel>
|
|
316
|
+
)}
|
|
287
317
|
</SectionPage>
|
|
288
318
|
)
|
|
289
319
|
}
|
package/src/pages/section-ui.tsx
CHANGED
|
@@ -162,6 +162,14 @@ export function useLoadFailure(
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
const DURATION_UNITS: Readonly<Record<string, string>> = {
|
|
166
|
+
m: "minute",
|
|
167
|
+
h: "hour",
|
|
168
|
+
d: "day",
|
|
169
|
+
w: "week",
|
|
170
|
+
y: "year",
|
|
171
|
+
}
|
|
172
|
+
|
|
165
173
|
/** Dates and times in the reader's locale. */
|
|
166
174
|
export function useFormat() {
|
|
167
175
|
const locale = useLocale()
|
|
@@ -183,6 +191,18 @@ export function useFormat() {
|
|
|
183
191
|
if (!date) return unknown
|
|
184
192
|
return date.toLocaleString(locale, { dateStyle: "medium", timeStyle: "short" })
|
|
185
193
|
},
|
|
194
|
+
/** A setting such as "7d" as "7 days", in the reader's language. Anything else stays as is. */
|
|
195
|
+
duration(value: string): string {
|
|
196
|
+
const [, amount, unit] = value.match(/^(\d+)([mhdwy])$/) ?? []
|
|
197
|
+
if (amount === undefined || unit === undefined) return value
|
|
198
|
+
|
|
199
|
+
const durationUnit = DURATION_UNITS[unit]
|
|
200
|
+
return new Intl.NumberFormat(locale, {
|
|
201
|
+
style: "unit",
|
|
202
|
+
unit: durationUnit,
|
|
203
|
+
unitDisplay: "long",
|
|
204
|
+
}).format(Number(amount))
|
|
205
|
+
},
|
|
186
206
|
/** "now", "5 minutes ago", "yesterday", in the reader's language. */
|
|
187
207
|
relative(timestamp: string): string {
|
|
188
208
|
const date = parse(timestamp)
|
|
@@ -389,23 +409,86 @@ export function Pill({ tone, children }: { readonly tone?: Tone; readonly childr
|
|
|
389
409
|
)
|
|
390
410
|
}
|
|
391
411
|
|
|
392
|
-
/**
|
|
393
|
-
|
|
412
|
+
/**
|
|
413
|
+
* A placeholder for a line of text. It is inline, so inside an element with the real text's size
|
|
414
|
+
* the line keeps that text's height, and the content takes its place without anything moving.
|
|
415
|
+
* A flex container makes it a flex item, which drops that line height: wrap it in a `<span>`
|
|
416
|
+
* carrying the text's classes there.
|
|
417
|
+
*/
|
|
418
|
+
export function SkeletonText({ className }: { readonly className?: string }) {
|
|
394
419
|
return (
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
</span>
|
|
403
|
-
</div>
|
|
404
|
-
))}
|
|
405
|
-
</>
|
|
420
|
+
<span
|
|
421
|
+
aria-hidden
|
|
422
|
+
className={cn(
|
|
423
|
+
"inline-block h-2.5 max-w-full animate-pulse rounded bg-muted align-middle",
|
|
424
|
+
className
|
|
425
|
+
)}
|
|
426
|
+
/>
|
|
406
427
|
)
|
|
407
428
|
}
|
|
408
429
|
|
|
430
|
+
/**
|
|
431
|
+
* The panel body while its rows load, shaped like the `PanelRow`s that replace it: the same
|
|
432
|
+
* padding, the same leading mark, and lines on the title's and meta's own line heights.
|
|
433
|
+
*/
|
|
434
|
+
export function PanelSkeleton({
|
|
435
|
+
rows = 3,
|
|
436
|
+
leading = "tile",
|
|
437
|
+
meta = true,
|
|
438
|
+
trailing,
|
|
439
|
+
interactive = false,
|
|
440
|
+
}: {
|
|
441
|
+
readonly rows?: number
|
|
442
|
+
/** The rows' leading mark: an `IconTile`, a round avatar, or nothing. */
|
|
443
|
+
readonly leading?: "tile" | "avatar" | "none"
|
|
444
|
+
/** Whether the rows have a second line. */
|
|
445
|
+
readonly meta?: boolean
|
|
446
|
+
/** What sits at the rows' end, such as a placeholder for a pill or a button. */
|
|
447
|
+
readonly trailing?: ReactNode
|
|
448
|
+
/** Rows that open something (`href` or `onClick`), which space their end differently. */
|
|
449
|
+
readonly interactive?: boolean
|
|
450
|
+
}) {
|
|
451
|
+
// The meta lines vary in length, as real ones do.
|
|
452
|
+
const widths = ["w-64", "w-52", "w-72", "w-48"]
|
|
453
|
+
const end = trailing ? <div className="flex shrink-0 items-center gap-2">{trailing}</div> : null
|
|
454
|
+
return Array.from({ length: rows }, (_, index) => {
|
|
455
|
+
const body = (
|
|
456
|
+
<>
|
|
457
|
+
{leading === "none" ? null : (
|
|
458
|
+
<span
|
|
459
|
+
className={cn(
|
|
460
|
+
"size-9 shrink-0 animate-pulse bg-muted",
|
|
461
|
+
leading === "avatar" ? "rounded-full" : "rounded-lg"
|
|
462
|
+
)}
|
|
463
|
+
/>
|
|
464
|
+
)}
|
|
465
|
+
<div className="min-w-0 flex-1">
|
|
466
|
+
<div className="text-sm">
|
|
467
|
+
<SkeletonText className="h-3 w-40" />
|
|
468
|
+
</div>
|
|
469
|
+
{meta ? (
|
|
470
|
+
<div className="mt-0.5 text-[0.8125rem]">
|
|
471
|
+
<SkeletonText className={cn("bg-muted/70", widths[index % widths.length])} />
|
|
472
|
+
</div>
|
|
473
|
+
) : null}
|
|
474
|
+
</div>
|
|
475
|
+
</>
|
|
476
|
+
)
|
|
477
|
+
// The same two layouts as `PanelRow`'s.
|
|
478
|
+
return interactive ? (
|
|
479
|
+
<div key={index} aria-hidden className="flex items-center gap-3 pr-3">
|
|
480
|
+
<div className="flex min-w-0 flex-1 items-center gap-3.5 py-3.5 pl-4">{body}</div>
|
|
481
|
+
{end}
|
|
482
|
+
</div>
|
|
483
|
+
) : (
|
|
484
|
+
<div key={index} aria-hidden className="flex items-center gap-3.5 px-4 py-3.5">
|
|
485
|
+
{body}
|
|
486
|
+
{end}
|
|
487
|
+
</div>
|
|
488
|
+
)
|
|
489
|
+
})
|
|
490
|
+
}
|
|
491
|
+
|
|
409
492
|
/** What a panel shows with nothing in it, or when it could not load. */
|
|
410
493
|
export function PanelEmpty({
|
|
411
494
|
icon,
|
|
@@ -5,7 +5,7 @@ import { cn } from "@sixb/ui/lib/utils"
|
|
|
5
5
|
import { useQuery } from "@tanstack/react-query"
|
|
6
6
|
import { CalendarDays, ChevronLeft, ChevronRight } from "lucide-react"
|
|
7
7
|
import { type KeyboardEvent, useEffect, useMemo, useRef, useState } from "react"
|
|
8
|
-
import { PageSection, Panel, PanelEmpty
|
|
8
|
+
import { PageSection, Panel, PanelEmpty } from "../../section-ui"
|
|
9
9
|
import { useActivityMessages } from "./messages"
|
|
10
10
|
import { activityQueryKey, activityYearGrid, utcDay } from "./period"
|
|
11
11
|
|
|
@@ -141,12 +141,16 @@ export function ActivityCalendar({
|
|
|
141
141
|
}
|
|
142
142
|
>
|
|
143
143
|
<Panel footer={messages.hint}>
|
|
144
|
-
{query.
|
|
145
|
-
<PanelSkeleton rows={2} />
|
|
146
|
-
) : query.isError ? (
|
|
144
|
+
{query.isError ? (
|
|
147
145
|
<PanelEmpty tone="error" icon={CalendarDays} title={messages.unavailable} />
|
|
148
146
|
) : (
|
|
149
|
-
|
|
147
|
+
// The grid needs only the year: while its days load, it shows them blank.
|
|
148
|
+
<div
|
|
149
|
+
ref={scroller}
|
|
150
|
+
inert={query.isPending}
|
|
151
|
+
aria-busy={query.isPending}
|
|
152
|
+
className="overflow-x-auto px-4 py-4"
|
|
153
|
+
>
|
|
150
154
|
<div className="min-w-[720px]">
|
|
151
155
|
<div
|
|
152
156
|
aria-hidden
|
|
@@ -178,7 +182,10 @@ export function ActivityCalendar({
|
|
|
178
182
|
</div>
|
|
179
183
|
|
|
180
184
|
<div
|
|
181
|
-
className=
|
|
185
|
+
className={cn(
|
|
186
|
+
"grid flex-1 grid-flow-col grid-rows-7 gap-[3px]",
|
|
187
|
+
query.isPending && "animate-pulse"
|
|
188
|
+
)}
|
|
182
189
|
style={{ gridTemplateColumns: `repeat(${weeks}, minmax(0, 1fr))` }}
|
|
183
190
|
>
|
|
184
191
|
{cells.map((day, index) => {
|
|
@@ -3,14 +3,7 @@ import { Button } from "@sixb/ui/components"
|
|
|
3
3
|
import { cn } from "@sixb/ui/lib/utils"
|
|
4
4
|
import { useInfiniteQuery } from "@tanstack/react-query"
|
|
5
5
|
import { MonitorSmartphone } from "lucide-react"
|
|
6
|
-
import {
|
|
7
|
-
MetaDot,
|
|
8
|
-
PageSection,
|
|
9
|
-
Panel,
|
|
10
|
-
PanelEmpty,
|
|
11
|
-
PanelSkeleton,
|
|
12
|
-
useNumbers,
|
|
13
|
-
} from "../../section-ui"
|
|
6
|
+
import { MetaDot, PageSection, Panel, PanelEmpty, SkeletonText, useNumbers } from "../../section-ui"
|
|
14
7
|
import { useUtcFormat } from "./format"
|
|
15
8
|
import { useActivityMessages } from "./messages"
|
|
16
9
|
import { activityQueryKey } from "./period"
|
|
@@ -68,7 +61,7 @@ export function UserConnections({
|
|
|
68
61
|
}
|
|
69
62
|
>
|
|
70
63
|
{query.isPending ? (
|
|
71
|
-
<
|
|
64
|
+
<ConnectionsSkeleton rows={2} />
|
|
72
65
|
) : query.isError ? (
|
|
73
66
|
<PanelEmpty
|
|
74
67
|
tone="error"
|
|
@@ -142,3 +135,27 @@ export function UserConnections({
|
|
|
142
135
|
</PageSection>
|
|
143
136
|
)
|
|
144
137
|
}
|
|
138
|
+
|
|
139
|
+
/** The sign-ins while they load, laid out like their rows: device and status, facts, a visit. */
|
|
140
|
+
function ConnectionsSkeleton({ rows }: { readonly rows: number }) {
|
|
141
|
+
return (
|
|
142
|
+
<ul aria-hidden className="divide-y divide-border">
|
|
143
|
+
{Array.from({ length: rows }, (_, index) => (
|
|
144
|
+
<li key={index} className="flex flex-col gap-2 px-4 py-3">
|
|
145
|
+
<div className="flex flex-wrap items-center gap-x-2 gap-y-1">
|
|
146
|
+
<span className="text-sm">
|
|
147
|
+
<SkeletonText className="h-3 w-32" />
|
|
148
|
+
</span>
|
|
149
|
+
<SkeletonText className="h-5 w-14 rounded-full" />
|
|
150
|
+
</div>
|
|
151
|
+
<p className="text-xs">
|
|
152
|
+
<SkeletonText className="w-64 bg-muted/70" />
|
|
153
|
+
</p>
|
|
154
|
+
<div className="flex flex-wrap items-center gap-1.5">
|
|
155
|
+
<SkeletonText className="h-7 w-40 rounded-md" />
|
|
156
|
+
</div>
|
|
157
|
+
</li>
|
|
158
|
+
))}
|
|
159
|
+
</ul>
|
|
160
|
+
)
|
|
161
|
+
}
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
PanelEmpty,
|
|
23
23
|
PanelRow,
|
|
24
24
|
PanelSkeleton,
|
|
25
|
+
SkeletonText,
|
|
25
26
|
useLoadFailure,
|
|
26
27
|
useNumbers,
|
|
27
28
|
} from "../../section-ui"
|
|
@@ -38,7 +39,7 @@ import {
|
|
|
38
39
|
parseActivityDay,
|
|
39
40
|
parseActivityRange,
|
|
40
41
|
} from "./period"
|
|
41
|
-
import { ConnectionLine, sharedLinkName, VisitEntries } from "./timeline"
|
|
42
|
+
import { ConnectionLine, sharedLinkName, VisitEntries, VisitEntriesSkeleton } from "./timeline"
|
|
42
43
|
import { UserFilter, useActivityUsers } from "./users"
|
|
43
44
|
|
|
44
45
|
type Visit = ListActivityVisitsResponse["visits"][number]
|
|
@@ -356,7 +357,7 @@ function Visits({
|
|
|
356
357
|
}
|
|
357
358
|
>
|
|
358
359
|
{query.isPending ? (
|
|
359
|
-
<PanelSkeleton rows={4} />
|
|
360
|
+
<PanelSkeleton rows={4} leading="avatar" interactive />
|
|
360
361
|
) : query.isError ? (
|
|
361
362
|
<PanelEmpty tone="error" icon={MousePointerClick} title={messages.unavailable} />
|
|
362
363
|
) : visits.length === 0 ? (
|
|
@@ -442,7 +443,13 @@ function VisitTimeline({
|
|
|
442
443
|
</Panel>
|
|
443
444
|
) : (
|
|
444
445
|
<Panel
|
|
445
|
-
toolbar={
|
|
446
|
+
toolbar={
|
|
447
|
+
timeline ? (
|
|
448
|
+
<VisitHeader timeline={timeline} names={names} />
|
|
449
|
+
) : query.isPending ? (
|
|
450
|
+
<VisitHeaderSkeleton />
|
|
451
|
+
) : undefined
|
|
452
|
+
}
|
|
446
453
|
footer={
|
|
447
454
|
timeline?.truncated ? (
|
|
448
455
|
<>
|
|
@@ -455,7 +462,7 @@ function VisitTimeline({
|
|
|
455
462
|
}
|
|
456
463
|
>
|
|
457
464
|
{query.isPending ? (
|
|
458
|
-
<
|
|
465
|
+
<VisitEntriesSkeleton />
|
|
459
466
|
) : query.isError || !timeline ? (
|
|
460
467
|
<PanelEmpty
|
|
461
468
|
tone="error"
|
|
@@ -525,6 +532,26 @@ function VisitHeader({
|
|
|
525
532
|
)
|
|
526
533
|
}
|
|
527
534
|
|
|
535
|
+
/** The visit's header while it loads: who, when, where from, and the connection it came through. */
|
|
536
|
+
function VisitHeaderSkeleton() {
|
|
537
|
+
return (
|
|
538
|
+
<div aria-hidden className="flex min-w-0 flex-1 flex-col gap-1.5 px-1 py-0.5">
|
|
539
|
+
<div className="text-sm">
|
|
540
|
+
<SkeletonText className="h-3 w-36" />
|
|
541
|
+
</div>
|
|
542
|
+
<div className="text-xs">
|
|
543
|
+
<SkeletonText className="w-52 bg-muted/70" />
|
|
544
|
+
</div>
|
|
545
|
+
<div className="text-xs">
|
|
546
|
+
<SkeletonText className="w-28 bg-muted/70" />
|
|
547
|
+
</div>
|
|
548
|
+
<div className="text-xs leading-5">
|
|
549
|
+
<SkeletonText className="w-60 bg-muted/70" />
|
|
550
|
+
</div>
|
|
551
|
+
</div>
|
|
552
|
+
)
|
|
553
|
+
}
|
|
554
|
+
|
|
528
555
|
function ActorMark({ visit }: { readonly visit: Visit }) {
|
|
529
556
|
const Icon = visit.actor.type === "user" ? UserRound : Link2
|
|
530
557
|
return (
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
MetaDot,
|
|
21
21
|
Panel,
|
|
22
22
|
PanelEmpty,
|
|
23
|
-
PanelSkeleton,
|
|
24
23
|
Pill,
|
|
24
|
+
SkeletonText,
|
|
25
25
|
useLoadFailure,
|
|
26
26
|
useNumbers,
|
|
27
27
|
} from "../../section-ui"
|
|
@@ -69,30 +69,44 @@ export function SettingsActivityThreadPage() {
|
|
|
69
69
|
[setSearchParams, location.state]
|
|
70
70
|
)
|
|
71
71
|
|
|
72
|
-
if (
|
|
72
|
+
if (threadQuery.isError) {
|
|
73
73
|
return (
|
|
74
|
-
<SectionPage
|
|
75
|
-
section="settings"
|
|
76
|
-
page="activity"
|
|
77
|
-
back={back}
|
|
78
|
-
title={threadQuery.error ? failure.title : messages.thread.untitled}
|
|
79
|
-
>
|
|
74
|
+
<SectionPage section="settings" page="activity" back={back} title={failure.title}>
|
|
80
75
|
<Panel>
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
/>
|
|
88
|
-
) : (
|
|
89
|
-
<PanelSkeleton rows={2} />
|
|
90
|
-
)}
|
|
76
|
+
<PanelEmpty
|
|
77
|
+
tone="error"
|
|
78
|
+
icon={Bot}
|
|
79
|
+
title={failure.title}
|
|
80
|
+
description={failure.description}
|
|
81
|
+
/>
|
|
91
82
|
</Panel>
|
|
92
83
|
</SectionPage>
|
|
93
84
|
)
|
|
94
85
|
}
|
|
95
86
|
|
|
87
|
+
// While it loads, the conversation's header holds its place; the transcript loads in its own.
|
|
88
|
+
if (!thread) {
|
|
89
|
+
return (
|
|
90
|
+
<SectionWorkspace section="settings" page="activity">
|
|
91
|
+
<WorkspaceHeader
|
|
92
|
+
back={back}
|
|
93
|
+
icon={<IconTile icon={Bot} />}
|
|
94
|
+
title={<SkeletonText className="h-3 w-48" />}
|
|
95
|
+
meta={
|
|
96
|
+
<span>
|
|
97
|
+
<SkeletonText className="w-36 bg-muted/70" />
|
|
98
|
+
</span>
|
|
99
|
+
}
|
|
100
|
+
actions={
|
|
101
|
+
<span className="max-sm:hidden">
|
|
102
|
+
<Pill tone="muted">{messages.thread.readOnly}</Pill>
|
|
103
|
+
</span>
|
|
104
|
+
}
|
|
105
|
+
/>
|
|
106
|
+
</SectionWorkspace>
|
|
107
|
+
)
|
|
108
|
+
}
|
|
109
|
+
|
|
96
110
|
const owner = thread.ownerPrincipal
|
|
97
111
|
const ownerName = authors.get(`${owner.type}:${owner.id}`) ?? owner.id
|
|
98
112
|
|