@mcp-b/react-components 0.63.0 → 0.64.1
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/{AgentActivity-DptCj8XQ.d.ts → AgentActivity-Cngwkalq.d.ts} +2 -9
- package/dist/{AgentChatQueue-DG2rGyCI.d.ts → AgentChatQueue-C1TDnVAn.d.ts} +1 -1
- package/dist/{AppTopBar-DwzydmXu.d.ts → AppTopBar-CM57rJID.d.ts} +7 -3
- package/dist/ChatGptSignInScreen-CmbBe09G.js +298 -0
- package/dist/{CodeBlock-BTkag9ms.d.ts → CodeBlock-BDupVceI.d.ts} +1 -1
- package/dist/CodeBlock-dt0L8md0.js +892 -0
- package/dist/{EmployeeChrome--PWdtg4B.d.ts → EmployeeChrome-kegSASjC.d.ts} +6 -5
- package/dist/{ExecutionBoard-DvPGdn4F.d.ts → ExecutionBoard-DBj1Aiva.d.ts} +8 -1
- package/dist/ExecutionResult-CXnGcmM4.js +671 -0
- package/dist/FileTree-CjfzpN6X.js +968 -0
- package/dist/{IconButton-FWsa9562.d.ts → IconButton-DXtGMkMI.d.ts} +7 -5
- package/dist/ManagerOffice-T79utm-P.js +2469 -0
- package/dist/{Menu-FA4P6KrA.d.ts → Menu-DajfQr3T.d.ts} +4 -2
- package/dist/{Message-BUedRDN1.d.ts → Message-BLyl6kWe.d.ts} +2 -2
- package/dist/{PromptInput-Dbe6WgWA.d.ts → PromptInput-DEwFMj6f.d.ts} +5 -8
- package/dist/{ResponsiveSidebarShell-DSAMNDdg.d.ts → ResponsiveSidebarShell-RwvmlMHS.d.ts} +23 -13
- package/dist/SetupChecklist-DwscX3Bw.js +230 -0
- package/dist/{Tabs-BYs-RgJ7.d.ts → Tabs-tyvVX3nc.d.ts} +29 -10
- package/dist/{ThinkChatActivity-zZaSsbC-.d.ts → ThinkChatActivity-C7xnO0Fx.d.ts} +1 -1
- package/dist/{ThinkChatActivitySummary-8MO1VjAJ.d.ts → ThinkChatActivitySummary-Dh4Av7x_.d.ts} +1 -1
- package/dist/{ThinkExecutionRun-DJ2TFDmZ.d.ts → ThinkExecutionRun-QzZVWX75.d.ts} +11 -3
- package/dist/ThinkSchedule-D4Ulsa0-.d.ts +53 -0
- package/dist/{ThinkThreadPicker-BmIZmpae.d.ts → ThinkThreadPicker-O-i2KloZ.d.ts} +1 -1
- package/dist/{Workspace-42LA9Zrb.d.ts → Workspace-B9nuTfIi.d.ts} +1 -1
- package/dist/{WorkspaceAutomation-yDZorXla.d.ts → WorkspaceAutomation-C0fghGLi.d.ts} +3 -3
- package/dist/WorkspaceBrowser-oBJv-Dac.js +985 -0
- package/dist/{WorkspaceConcept-BjrgGE1w.d.ts → WorkspaceConcept-D46cYerS.d.ts} +1 -1
- package/dist/{WorkspaceFile-nK2n0i4S.d.ts → WorkspaceFile-BJC6vlp_.d.ts} +15 -4
- package/dist/WorkspaceFileCommands-SNIjRgtU.d.ts +145 -0
- package/dist/WorkspaceFileTransfer-BRD22nW-.d.ts +159 -0
- package/dist/WorkspaceLink-DDkj-Tq5.js +407 -0
- package/dist/{WorkspaceMessageResponse-BZ-_I18b.js → WorkspaceMessageResponse-CXGOQgpo.js} +111 -24
- package/dist/{agent-tool-runs-DsOp_X2y.js → agent-tool-runs-BXKdcxl8.js} +55 -28
- package/dist/app-bar-outlet-BEIGl9iF.js +35 -0
- package/{LICENSE → dist/assets/desktop/LICENSE.fluent.txt} +1 -1
- package/dist/assets/desktop/LICENSE.mac-icons.txt +7 -0
- package/dist/assets/desktop/README.md +43 -0
- package/dist/assets/desktop/automations.svg +19 -0
- package/dist/assets/desktop/document.svg +24 -0
- package/dist/assets/desktop/folder.png +0 -0
- package/dist/assets/desktop/mail.svg +31 -0
- package/dist/assets/desktop/settings.svg +9 -0
- package/dist/assets/desktop/trash-full.svg +23 -0
- package/dist/assets/desktop/trash.svg +19 -0
- package/dist/attachment-preview-DeRqFjdz.js +68 -0
- package/dist/attempt-CySQHJsF.js +21 -0
- package/dist/command-search-1fjmCBBo.js +34 -0
- package/dist/components/agents-sdk/AIProviderDialog.js +757 -224
- package/dist/components/agents-sdk/AgentActivity.d.ts +2 -2
- package/dist/components/agents-sdk/AgentActivity.js +78 -31
- package/dist/components/agents-sdk/AgentChat.d.ts +3 -3
- package/dist/components/agents-sdk/AgentChat.js +1113 -386
- package/dist/components/agents-sdk/AgentChatQueue.d.ts +1 -1
- package/dist/components/agents-sdk/AgentChatQueue.js +290 -173
- package/dist/components/agents-sdk/AgentComputer.d.ts +270 -0
- package/dist/components/agents-sdk/AgentComputer.js +8045 -0
- package/dist/components/agents-sdk/AgentEvent.js +164 -21
- package/dist/components/agents-sdk/AgentScreenSwitcher.d.ts +46 -0
- package/dist/components/agents-sdk/AgentScreenSwitcher.js +409 -0
- package/dist/components/agents-sdk/AgentToolRunsContext.js +139 -41
- package/dist/components/agents-sdk/BrowserLiveScreen.js +860 -551
- package/dist/components/agents-sdk/BrowserLiveView.d.ts +1 -1
- package/dist/components/agents-sdk/BrowserLiveView.js +244 -88
- package/dist/components/agents-sdk/BrowserReplay.js +298 -133
- package/dist/components/agents-sdk/BrowserRunPanel.d.ts +57 -1
- package/dist/components/agents-sdk/BrowserRunPanel.js +979 -129
- package/dist/components/agents-sdk/DiscordConnectionDialog.js +104 -57
- package/dist/components/agents-sdk/EmployeeApp.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeApp.js +108 -46
- package/dist/components/agents-sdk/EmployeeChat.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChat.js +500 -99
- package/dist/components/agents-sdk/EmployeeChrome.d.ts +1 -1
- package/dist/components/agents-sdk/EmployeeChrome.js +1375 -557
- package/dist/components/agents-sdk/EmployeeSchedules.d.ts +3 -3
- package/dist/components/agents-sdk/EmployeeSchedules.js +281 -64
- package/dist/components/agents-sdk/EmployeeStartScreen.d.ts +2 -2
- package/dist/components/agents-sdk/EmployeeStartScreen.js +185 -52
- package/dist/components/agents-sdk/ExecutionBoard.d.ts +1 -1
- package/dist/components/agents-sdk/ExecutionBoard.js +1661 -462
- package/dist/components/agents-sdk/ManagerAccountActions.js +142 -35
- package/dist/components/agents-sdk/ManagerOffice.d.ts +15 -8
- package/dist/components/agents-sdk/ManagerOffice.js +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.d.ts +1 -1
- package/dist/components/agents-sdk/ManagerOfficeScreens.js +551 -185
- package/dist/components/agents-sdk/McpConnectionRequest.js +332 -117
- package/dist/components/agents-sdk/McpConnectorForm.js +320 -100
- package/dist/components/agents-sdk/McpPluginCatalog.js +697 -249
- package/dist/components/agents-sdk/McpServerIcon.js +57 -14
- package/dist/components/agents-sdk/McpServerPicker.d.ts +1 -1
- package/dist/components/agents-sdk/McpServerPicker.js +542 -158
- package/dist/components/agents-sdk/ModelSelector.js +1151 -253
- package/dist/components/agents-sdk/PromptInputApproval.js +115 -27
- package/dist/components/agents-sdk/PromptInputCommands.d.ts +1 -1
- package/dist/components/agents-sdk/PromptInputCommands.js +33 -46
- package/dist/components/agents-sdk/SlackConnectionDialog.js +38 -14
- package/dist/components/agents-sdk/SubagentRunIndicator.js +118 -25
- package/dist/components/agents-sdk/SubagentRunLanes.js +291 -107
- package/dist/components/agents-sdk/SubagentRunPanel.js +357 -129
- package/dist/components/agents-sdk/SubagentRunSelector.js +123 -26
- package/dist/components/agents-sdk/ThinkChat.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkChat.js +321 -132
- package/dist/components/agents-sdk/ThinkChatActivity.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivity.js +306 -100
- package/dist/components/agents-sdk/ThinkChatActivitySummary.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkChatActivitySummary.js +15 -9
- package/dist/components/agents-sdk/ThinkChatToolPanels.js +1386 -404
- package/dist/components/agents-sdk/ThinkExecutionDetail.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionDetail.js +219 -45
- package/dist/components/agents-sdk/ThinkExecutionRun.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkExecutionRun.js +19 -11
- package/dist/components/agents-sdk/ThinkExecutionStatus.d.ts +5 -3
- package/dist/components/agents-sdk/ThinkExecutionStatus.js +224 -37
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.d.ts +8 -5
- package/dist/components/agents-sdk/ThinkExecutionWorkbench.js +505 -124
- package/dist/components/agents-sdk/ThinkFullApp.js +147 -44
- package/dist/components/agents-sdk/ThinkPendingApproval.js +381 -75
- package/dist/components/agents-sdk/ThinkRecoveryNotice.js +71 -26
- package/dist/components/agents-sdk/ThinkSchedule.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkSchedule.js +124 -1
- package/dist/components/agents-sdk/ThinkScheduleActions.d.ts +3 -3
- package/dist/components/agents-sdk/ThinkScheduleActions.js +363 -132
- package/dist/components/agents-sdk/ThinkScheduleBrowser.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkScheduleBrowser.js +249 -116
- package/dist/components/agents-sdk/ThinkScheduleDetail.d.ts +2 -2
- package/dist/components/agents-sdk/ThinkScheduleDetail.js +311 -90
- package/dist/components/agents-sdk/ThinkScheduleForm.d.ts +6 -2
- package/dist/components/agents-sdk/ThinkScheduleForm.js +1318 -475
- package/dist/components/agents-sdk/ThinkThreadPicker.d.ts +1 -1
- package/dist/components/agents-sdk/ThinkThreadPicker.js +434 -214
- package/dist/components/agents-sdk/TypeSafeConnectionDialog.js +30 -13
- package/dist/components/agents-sdk/WorkbenchBack.js +66 -20
- package/dist/components/agents-sdk/Workspace.d.ts +1 -1
- package/dist/components/agents-sdk/Workspace.js +491 -166
- package/dist/components/agents-sdk/WorkspaceAutomation.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomation.js +1492 -415
- package/dist/components/agents-sdk/WorkspaceAutomationTable.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceAutomationTable.js +1316 -525
- package/dist/components/agents-sdk/WorkspaceBrowser.d.ts +72 -2
- package/dist/components/agents-sdk/WorkspaceBrowser.js +1 -94
- package/dist/components/agents-sdk/WorkspaceConcept.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceCorrespondence.js +619 -178
- package/dist/components/agents-sdk/WorkspaceDesktop.d.ts +45 -0
- package/dist/components/agents-sdk/WorkspaceDesktop.js +240 -0
- package/dist/components/agents-sdk/WorkspaceExplorer.d.ts +52 -1
- package/dist/components/agents-sdk/WorkspaceExplorer.js +267 -85
- package/dist/components/agents-sdk/WorkspaceFile.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceFile.js +30 -9
- package/dist/components/agents-sdk/WorkspaceFileCommands.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileCommands.js +890 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.d.ts +29 -0
- package/dist/components/agents-sdk/WorkspaceFileDetails.js +271 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.d.ts +2 -0
- package/dist/components/agents-sdk/WorkspaceFileTransfer.js +505 -0
- package/dist/components/agents-sdk/WorkspaceFileView.d.ts +18 -3
- package/dist/components/agents-sdk/WorkspaceFileView.js +866 -1
- package/dist/components/agents-sdk/WorkspaceHeader.js +71 -26
- package/dist/components/agents-sdk/WorkspaceLink.js +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceLive.js +126 -73
- package/dist/components/agents-sdk/WorkspaceLocalFolder.d.ts +63 -0
- package/dist/components/agents-sdk/WorkspaceLocalFolder.js +455 -0
- package/dist/components/agents-sdk/WorkspaceMessageResponse.d.ts +1 -1
- package/dist/components/agents-sdk/WorkspaceMessageResponse.js +1 -1
- package/dist/components/agents-sdk/WorkspaceMountManager.js +118 -58
- package/dist/components/agents-sdk/WorkspaceNavigationRestoration.js +90 -54
- package/dist/components/agents-sdk/WorkspacePerson.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspacePerson.js +172 -41
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -2
- package/dist/components/agents-sdk/WorkspaceProject.js +175 -41
- package/dist/components/ai-sdk/Activity.js +768 -192
- package/dist/components/ai-sdk/AgentAttention.js +286 -58
- package/dist/components/ai-sdk/AgentChatMessageEditor.js +193 -68
- package/dist/components/ai-sdk/AgentChatStartScreen.d.ts +1 -1
- package/dist/components/ai-sdk/AgentChatStartScreen.js +368 -80
- package/dist/components/ai-sdk/AgentChatTurnError.js +75 -25
- package/dist/components/ai-sdk/AgentMessageParts.js +0 -1
- package/dist/components/ai-sdk/Approval.js +574 -172
- package/dist/components/ai-sdk/Artifact.d.ts +1 -1
- package/dist/components/ai-sdk/Artifact.js +535 -128
- package/dist/components/ai-sdk/ChainOfThought.d.ts +1 -1
- package/dist/components/ai-sdk/ChainOfThought.js +404 -80
- package/dist/components/ai-sdk/Checkpoint.js +229 -45
- package/dist/components/ai-sdk/CodeBlock.d.ts +1 -1
- package/dist/components/ai-sdk/CodeBlock.js +1 -1
- package/dist/components/ai-sdk/ComposerLink.js +216 -48
- package/dist/components/ai-sdk/ConnectedAppCards.js +229 -52
- package/dist/components/ai-sdk/Context.js +737 -178
- package/dist/components/ai-sdk/Conversation.d.ts +1 -1
- package/dist/components/ai-sdk/Conversation.js +305 -68
- package/dist/components/ai-sdk/ExpansionState.js +74 -15
- package/dist/components/ai-sdk/Goal.js +435 -116
- package/dist/components/ai-sdk/InlineCitation.js +313 -76
- package/dist/components/ai-sdk/MediaPreviewCard.js +451 -135
- package/dist/components/ai-sdk/Message.d.ts +1 -1
- package/dist/components/ai-sdk/Message.js +1010 -195
- package/dist/components/ai-sdk/MessageScroller.d.ts +1 -1
- package/dist/components/ai-sdk/MessageScroller.js +264 -46
- package/dist/components/ai-sdk/MessageScrollerVirtual.js +6 -6
- package/dist/components/ai-sdk/Plan.js +639 -128
- package/dist/components/ai-sdk/PromptInput.d.ts +1 -1
- package/dist/components/ai-sdk/PromptInput.js +2735 -794
- package/dist/components/ai-sdk/PromptInputComposerEditor.d.ts +1 -3
- package/dist/components/ai-sdk/PromptInputComposerEditor.js +188 -83
- package/dist/components/ai-sdk/Queue.js +792 -154
- package/dist/components/ai-sdk/Reasoning.js +268 -69
- package/dist/components/ai-sdk/Sources.js +226 -63
- package/dist/components/ai-sdk/Task.js +294 -71
- package/dist/components/ai-sdk/ToolApproval.js +126 -26
- package/dist/components/ai-sdk/ToolInvocation.js +112 -22
- package/dist/components/extension/ChatGptSignInScreen.js +1 -82
- package/dist/components/extension/CodexModelSelector.d.ts +1 -1
- package/dist/components/extension/CodexModelSelector.js +467 -146
- package/dist/components/extension/ConversationTabPicker.d.ts +1 -1
- package/dist/components/extension/ConversationTabPicker.js +254 -76
- package/dist/components/extension/FirstRunSetup.d.ts +100 -36
- package/dist/components/extension/FirstRunSetup.js +3974 -1016
- package/dist/components/foundations/Accordion.js +186 -41
- package/dist/components/foundations/AlertDialog.js +425 -97
- package/dist/components/foundations/AppIcon.d.ts +13 -13
- package/dist/components/foundations/AppIcon.js +183 -34
- package/dist/components/foundations/Autocomplete.js +408 -89
- package/dist/components/foundations/Avatar.d.ts +100 -2
- package/dist/components/foundations/Avatar.js +204 -44
- package/dist/components/foundations/Button.js +64 -13
- package/dist/components/foundations/Card.js +357 -63
- package/dist/components/foundations/Checkbox.js +82 -17
- package/dist/components/foundations/CheckboxGroup.js +266 -58
- package/dist/components/foundations/Collapsible.d.ts +2 -1
- package/dist/components/foundations/Collapsible.js +129 -26
- package/dist/components/foundations/Combobox.js +408 -89
- package/dist/components/foundations/ContextMenu.d.ts +2 -2
- package/dist/components/foundations/ContextMenu.js +591 -117
- package/dist/components/foundations/DescriptionList.js +159 -28
- package/dist/components/foundations/Dialog.js +373 -89
- package/dist/components/foundations/EmptyState.js +86 -23
- package/dist/components/foundations/Favicon.d.ts +17 -0
- package/dist/components/foundations/Favicon.js +62 -0
- package/dist/components/foundations/Field.js +525 -108
- package/dist/components/foundations/Fieldset.js +115 -23
- package/dist/components/foundations/Form.js +38 -9
- package/dist/components/foundations/FormattedDate.d.ts +19 -5
- package/dist/components/foundations/FormattedDate.js +82 -12
- package/dist/components/foundations/IconButton.d.ts +1 -1
- package/dist/components/foundations/IconButton.js +114 -17
- package/dist/components/foundations/Input.js +38 -9
- package/dist/components/foundations/Kbd.js +55 -10
- package/dist/components/foundations/Label.js +56 -12
- package/dist/components/foundations/LinkButton.js +67 -15
- package/dist/components/foundations/Marker.js +138 -29
- package/dist/components/foundations/Menu.d.ts +1 -1
- package/dist/components/foundations/Menu.js +634 -136
- package/dist/components/foundations/Menubar.d.ts +2 -2
- package/dist/components/foundations/Menubar.js +685 -130
- package/dist/components/foundations/Meter.js +186 -41
- package/dist/components/foundations/NavigationMenu.js +426 -95
- package/dist/components/foundations/NumberField.js +223 -49
- package/dist/components/foundations/Popover.js +398 -88
- package/dist/components/foundations/PreviewCard.js +234 -53
- package/dist/components/foundations/Progress.js +117 -25
- package/dist/components/foundations/RadioGroup.d.ts +13 -5
- package/dist/components/foundations/RadioGroup.js +132 -25
- package/dist/components/foundations/ScrollArea.js +230 -51
- package/dist/components/foundations/SearchField.d.ts +8 -3
- package/dist/components/foundations/SearchField.js +129 -28
- package/dist/components/foundations/Select.js +648 -145
- package/dist/components/foundations/Separator.js +61 -12
- package/dist/components/foundations/Slider.js +260 -57
- package/dist/components/foundations/Stepper.d.ts +1 -1
- package/dist/components/foundations/Stepper.js +561 -127
- package/dist/components/foundations/Switch.js +82 -18
- package/dist/components/foundations/Tabs.d.ts +2 -2
- package/dist/components/foundations/Tabs.js +282 -53
- package/dist/components/foundations/Textarea.js +43 -9
- package/dist/components/foundations/ThemeProvider.js +138 -52
- package/dist/components/foundations/Toast.d.ts +10 -2
- package/dist/components/foundations/Toast.js +322 -75
- package/dist/components/foundations/Toggle.d.ts +5 -2
- package/dist/components/foundations/Toggle.js +51 -10
- package/dist/components/foundations/ToggleGroup.d.ts +3 -3
- package/dist/components/foundations/ToggleGroup.js +215 -59
- package/dist/components/foundations/Toolbar.js +249 -61
- package/dist/components/foundations/Tooltip.d.ts +3 -3
- package/dist/components/foundations/Tooltip.js +311 -55
- package/dist/components/foundations/TransitionSurface.js +43 -9
- package/dist/components/foundations/icons.d.ts +2 -2
- package/dist/components/foundations/icons.js +2 -2
- package/dist/components/general-purpose/AccountSignInDialog.js +99 -17
- package/dist/components/general-purpose/ActionGuide.js +290 -64
- package/dist/components/general-purpose/AppFrame.js +72 -14
- package/dist/components/general-purpose/AppTopBar.d.ts +1 -1
- package/dist/components/general-purpose/AppTopBar.js +349 -60
- package/dist/components/general-purpose/BrandLoading.js +37 -9
- package/dist/components/general-purpose/CommandPalette.d.ts +47 -0
- package/dist/components/general-purpose/CommandPalette.js +271 -0
- package/dist/components/general-purpose/Commit.d.ts +1 -1
- package/dist/components/general-purpose/Commit.js +937 -167
- package/dist/components/general-purpose/EnvironmentVariables.d.ts +1 -1
- package/dist/components/general-purpose/EnvironmentVariables.js +600 -114
- package/dist/components/general-purpose/FileTree.d.ts +20 -7
- package/dist/components/general-purpose/FileTree.js +1 -1
- package/dist/components/general-purpose/ListDetail.d.ts +84 -0
- package/dist/components/general-purpose/ListDetail.js +423 -0
- package/dist/components/general-purpose/NotificationPrompt.js +20 -11
- package/dist/components/general-purpose/PricingBillingToggle.js +33 -6
- package/dist/components/general-purpose/PricingConfirmationDialog.js +126 -42
- package/dist/components/general-purpose/PricingFAQ.js +53 -12
- package/dist/components/general-purpose/PricingPage.js +376 -139
- package/dist/components/general-purpose/PricingPlanCard.js +209 -84
- package/dist/components/general-purpose/PricingUsageCalculator.js +231 -81
- package/dist/components/general-purpose/ResizableSidePanel.js +316 -117
- package/dist/components/general-purpose/ResponsiveSidebarShell.d.ts +1 -1
- package/dist/components/general-purpose/ResponsiveSidebarShell.js +840 -342
- package/dist/components/general-purpose/ScreenStack.d.ts +54 -0
- package/dist/components/general-purpose/ScreenStack.js +427 -0
- package/dist/components/general-purpose/SettingsFormDialog.js +235 -77
- package/dist/components/general-purpose/SetupChecklist.js +1 -1
- package/dist/components/general-purpose/StatusScreen.js +82 -24
- package/dist/components/general-purpose/SwipeActions.d.ts +54 -0
- package/dist/components/general-purpose/SwipeActions.js +357 -0
- package/dist/components/general-purpose/Terminal.d.ts +22 -48
- package/dist/components/general-purpose/Terminal.js +320 -174
- package/dist/components/general-purpose/TestResults.js +975 -196
- package/dist/components/general-purpose/ThemeModeControl.d.ts +3 -1
- package/dist/components/general-purpose/ThemeModeControl.js +66 -23
- package/dist/components/general-purpose/WallpaperPicker.d.ts +33 -0
- package/dist/components/general-purpose/WallpaperPicker.js +180 -0
- package/dist/components/general-purpose/WebPreview.d.ts +5 -7
- package/dist/components/general-purpose/WebPreview.js +770 -203
- package/dist/components/nanites/AgentConnection.js +323 -84
- package/dist/components/nanites/AgentToolDetail.js +233 -53
- package/dist/components/nanites/GithubMotionMark.js +37 -9
- package/dist/components/nanites/NaniteScene.js +535 -323
- package/dist/connected-app-drafts-Bocdg3Z-.js +637 -0
- package/dist/container-width-C43ccJ84.js +17 -0
- package/dist/context-Ddsp8HgD.js +43 -0
- package/dist/{copy-button-B09hHWd1.d.ts → copy-button-C2HRdomn.d.ts} +1 -1
- package/dist/copy-button-DWBVJR6D.js +118 -0
- package/dist/{format-CWaZEp5o.js → format-DL7f2rqp.js} +5 -1
- package/dist/{icons-CReP3qYl.d.ts → icons-B3n7zvU7.d.ts} +10 -2
- package/dist/icons-nLTnB9kd.js +470 -0
- package/dist/{merge-refs-DAh6reu8.js → merge-refs-DTX97mLp.js} +17 -1
- package/dist/motion-CGM3i6lX.js +319 -0
- package/dist/motion-preferences-6qsDIDvH.js +13 -0
- package/dist/{navigation-link-kqMa81v5.js → navigation-link-DMmtdqsM.js} +32 -8
- package/dist/progress-ring-BO649JA9.js +79 -0
- package/dist/provider-logos-Ceu7iYFx.js +362 -0
- package/dist/scheduled-table-source-gGpVJ1TN.js +92 -0
- package/dist/styles/accessibility.css +26 -0
- package/dist/styles/accordion.css +0 -2
- package/dist/styles/activity.css +20 -12
- package/dist/styles/agent-attention.css +31 -10
- package/dist/styles/agent-chat.css +7 -6
- package/dist/styles/agent-computer-motion-reduction.css +118 -0
- package/dist/styles/agent-computer-motion.css +127 -0
- package/dist/styles/agent-computer-phone.css +942 -0
- package/dist/styles/agent-computer.css +1764 -0
- package/dist/styles/agent-connection.css +5 -5
- package/dist/styles/agent-screen-switcher.css +313 -0
- package/dist/styles/app-icon.css +34 -30
- package/dist/styles/app-top-bar.css +33 -18
- package/dist/styles/approval.css +3 -3
- package/dist/styles/artifact.css +1 -1
- package/dist/styles/attachment-preview.css +2 -4
- package/dist/styles/avatar.css +12 -14
- package/dist/styles/base-ui-motion.css +84 -18
- package/dist/styles/base-ui-motion.test.tsx +305 -0
- package/dist/styles/base.css +16 -12
- package/dist/styles/brand.test.ts +7 -20
- package/dist/styles/browser-control-overlay.css +1 -1
- package/dist/styles/browser-live-screen.css +2 -2
- package/dist/styles/browser-live-view.css +1 -1
- package/dist/styles/browser-replay.css +0 -8
- package/dist/styles/browser-run-panel.css +275 -37
- package/dist/styles/button.css +52 -9
- package/dist/styles/card.css +6 -5
- package/dist/styles/chain-of-thought.css +0 -10
- package/dist/styles/checkpoint.css +2 -2
- package/dist/styles/codex-model-selector.css +2 -2
- package/dist/styles/color-contrast.test.ts +18 -1
- package/dist/styles/command-palette.css +110 -0
- package/dist/styles/composer-link.css +11 -7
- package/dist/styles/composition-motion.css +3 -14
- package/dist/styles/context.css +2 -2
- package/dist/styles/conversation-tab-picker.css +7 -0
- package/dist/styles/conversation.css +8 -2
- package/dist/styles/dialog.css +2 -2
- package/dist/styles/employee-app.css +8 -2
- package/dist/styles/employee-chrome.css +4 -4
- package/dist/styles/execution-board.css +206 -114
- package/dist/styles/execution-result.css +2 -2
- package/dist/styles/field.css +187 -4
- package/dist/styles/file-tree.css +218 -40
- package/dist/styles/first-run-setup.css +914 -187
- package/dist/styles/github-motion-mark.css +0 -8
- package/dist/styles/index.css +145 -133
- package/dist/styles/inline-citation.css +5 -4
- package/dist/styles/list-detail.css +57 -0
- package/dist/styles/manager-office.css +6 -8
- package/dist/styles/manager-work.css +4 -2
- package/dist/styles/mcp-plugin-catalog.css +2 -2
- package/dist/styles/mcp-server-picker.css +3 -6
- package/dist/styles/media-preview-card.css +2 -2
- package/dist/styles/menu.css +0 -9
- package/dist/styles/menubar.css +18 -6
- package/dist/styles/message-scroller.css +47 -9
- package/dist/styles/message.css +3 -3
- package/dist/styles/model-selector.css +1 -1
- package/dist/styles/motion-reduction.css +39 -6
- package/dist/styles/pricing-page.css +1 -1
- package/dist/styles/prompt-input.css +29 -29
- package/dist/styles/queue.css +1 -1
- package/dist/styles/recipes.css +212 -28
- package/dist/styles/responsive-sidebar-shell-motion.test.ts +81 -1
- package/dist/styles/responsive-sidebar-shell.css +40 -43
- package/dist/styles/screen-stack.css +123 -0
- package/dist/styles/search-field.css +80 -3
- package/dist/styles/stepper.css +0 -10
- package/dist/styles/streamdown.css +2 -2
- package/dist/styles/subagent-run.css +9 -5
- package/dist/styles/swipe-actions.css +158 -0
- package/dist/styles/tabs.css +80 -23
- package/dist/styles/task.css +7 -1
- package/dist/styles/terminal.css +66 -78
- package/dist/styles/test-results.css +1 -19
- package/dist/styles/textarea.css +2 -1
- package/dist/styles/theme-mode-control.css +154 -26
- package/dist/styles/think-chat-tool-panels.css +1 -1
- package/dist/styles/think-execution-workbench.css +0 -9
- package/dist/styles/think-full-app.css +7 -1
- package/dist/styles/think-schedule.css +81 -54
- package/dist/styles/think-thread-picker.css +28 -37
- package/dist/styles/toast.css +11 -0
- package/dist/styles/toggle-group.css +0 -10
- package/dist/styles/toggle.css +13 -0
- package/dist/styles/tooltip.css +12 -0
- package/dist/styles/transition-surface.css +1 -0
- package/dist/styles/wallpaper-picker.css +224 -0
- package/dist/styles/web-preview.css +47 -18
- package/dist/styles/workspace-automation.css +116 -17
- package/dist/styles/workspace-concepts.css +1 -1
- package/dist/styles/workspace-desktop.css +124 -0
- package/dist/styles/workspace-entity-card.css +3 -1
- package/dist/styles/workspace-explorer.css +499 -5
- package/dist/utils/brand-marks.d.ts +13 -0
- package/dist/utils/brand-marks.js +14 -0
- package/dist/utils/desktop-artwork.d.ts +17 -0
- package/dist/utils/desktop-artwork.js +18 -0
- package/dist/utils/favicon.d.ts +6 -2
- package/dist/utils/favicon.js +16 -4
- package/dist/utils/structured-code.d.ts +1 -1
- package/dist/workspace-assets-DdtnBDU3.js +213 -0
- package/dist/{workspace-concept-panel-C_oYhPSx.d.ts → workspace-concept-panel-BDTBISNO.d.ts} +2 -2
- package/dist/workspace-concept-panel-VkjvFCY_.js +140 -0
- package/dist/workspace-delete-BOY6CMBf.js +183 -0
- package/dist/workspace-drag-B6hMXUNt.js +304 -0
- package/dist/workspace-entity-card-9YcsNiqU.js +178 -0
- package/dist/workspace-media-preview-B4iB5Tvi.js +1295 -0
- package/dist/{workspace-path-L_KmjRjq.js → workspace-path-TZggP-u4.js} +14 -1
- package/dist/{workspace-person-BVkYb3dv.js → workspace-person-ZwPqu5TX.js} +67 -21
- package/dist/workspace-quick-look-9V-UFpjj.js +1562 -0
- package/package.json +9 -3
- package/dist/Avatar-t1YRzdwB.d.ts +0 -101
- package/dist/CodeBlock-DYQdZUH6.js +0 -318
- package/dist/ExecutionResult-2fBkpIGN.js +0 -279
- package/dist/FileTree-CDLOD643.js +0 -323
- package/dist/ManagerOffice-CvVSHnOM.js +0 -1129
- package/dist/SetupChecklist-B-iEta9v.js +0 -78
- package/dist/ThinkSchedule-DPoOYWTQ.d.ts +0 -34
- package/dist/WorkspaceFileView-DwIkehSM.js +0 -783
- package/dist/WorkspaceLink-BeFAXpbI.js +0 -225
- package/dist/app-bar-outlet-CNfNzY4Y.js +0 -6
- package/dist/attachment-preview-1CXJvrmb.js +0 -25
- package/dist/chatgpt-sign-in-button-D8AT6x4c.js +0 -32
- package/dist/connected-app-drafts-DtA2fBK5.js +0 -283
- package/dist/copy-button-DbR932tF.js +0 -45
- package/dist/icons-GoybMAB2.js +0 -141
- package/dist/progress-ring-L2bbF0ji.js +0 -40
- package/dist/provider-logos-DWYY8wNz.js +0 -99
- package/dist/scheduled-table-source-NZR1vFc_.js +0 -38
- package/dist/workspace-assets-F3r6XltC.js +0 -107
- package/dist/workspace-concept-panel-D8oEvR0n.js +0 -66
- package/dist/workspace-delete-CQvv1eDE.js +0 -81
- package/dist/workspace-entity-card-B1aV-jBj.js +0 -61
|
@@ -1,1129 +0,0 @@
|
|
|
1
|
-
import { findCatalogMcpServerCard, getMcpServerIconSrc, providerCardForHref } from "./utils/mcp-server-catalog.js";
|
|
2
|
-
import { t as cx } from "./class-names-BiMDVpUo.js";
|
|
3
|
-
import { B as PauseIcon, C as FileIcon, E as InfoIcon, L as MonitorIcon, P as MessageSquareIcon, Z as SpinnerIcon, _ as DotIcon, d as CheckIcon, f as ChevronDownIcon, k as LinkIcon, lt as XIcon, p as ChevronRightIcon, st as WarningIcon, u as CalendarIcon, w as FolderIcon } from "./icons-GoybMAB2.js";
|
|
4
|
-
import { Button } from "./components/foundations/Button.js";
|
|
5
|
-
import { Collapsible } from "./components/foundations/Collapsible.js";
|
|
6
|
-
import { Tooltip } from "./components/foundations/Tooltip.js";
|
|
7
|
-
import { EmptyState } from "./components/foundations/EmptyState.js";
|
|
8
|
-
import { AppTopBar } from "./components/general-purpose/AppTopBar.js";
|
|
9
|
-
import { Avatar } from "./components/foundations/Avatar.js";
|
|
10
|
-
import { AppIcon } from "./components/foundations/AppIcon.js";
|
|
11
|
-
import { LinkButton } from "./components/foundations/LinkButton.js";
|
|
12
|
-
import { getThinkExecutionRunStatus } from "./components/agents-sdk/ThinkExecutionRun.js";
|
|
13
|
-
import { AgentAttention, AgentAttentionActions, AgentAttentionBody, AgentAttentionHeader } from "./components/ai-sdk/AgentAttention.js";
|
|
14
|
-
import * as React from "react";
|
|
15
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
17
|
-
import { mergeProps } from "@base-ui/react/merge-props";
|
|
18
|
-
//#region src/components/_internal/chrome-profile-colors.ts
|
|
19
|
-
const PALETTE = [
|
|
20
|
-
{
|
|
21
|
-
bg: "#ffab40",
|
|
22
|
-
fg: "#1f1f1f"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
bg: "#43a047",
|
|
26
|
-
fg: "#ffffff"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
bg: "#199da9",
|
|
30
|
-
fg: "#ffffff"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
bg: "#5d93e4",
|
|
34
|
-
fg: "#ffffff"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
bg: "#ffaebd",
|
|
38
|
-
fg: "#1f1f1f"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
bg: "#bd165c",
|
|
42
|
-
fg: "#ffffff"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
bg: "#b71c1c",
|
|
46
|
-
fg: "#ffffff"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
bg: "#2e7d32",
|
|
50
|
-
fg: "#ffffff"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
bg: "#006e78",
|
|
54
|
-
fg: "#ffffff"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
bg: "#1565c0",
|
|
58
|
-
fg: "#ffffff"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
bg: "#5b3689",
|
|
62
|
-
fg: "#ffffff"
|
|
63
|
-
}
|
|
64
|
-
];
|
|
65
|
-
/** FNV-1a, for a stable pick from the same seat across reloads. */
|
|
66
|
-
function hash(seed) {
|
|
67
|
-
let value = 2166136261;
|
|
68
|
-
for (let index = 0; index < seed.length; index++) {
|
|
69
|
-
value ^= seed.charCodeAt(index);
|
|
70
|
-
value = Math.imul(value, 16777619);
|
|
71
|
-
}
|
|
72
|
-
return value >>> 0;
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Deterministic Chrome-style profile color for one identity. Pass the set of
|
|
76
|
-
* `bg` values already assigned to the rest of the roster so two profiles only
|
|
77
|
-
* share a color once the palette is exhausted, exactly as Chrome avoids
|
|
78
|
-
* colors in use by other profiles.
|
|
79
|
-
*/
|
|
80
|
-
function chromeProfileColor(seed, taken) {
|
|
81
|
-
const start = hash(seed) % PALETTE.length;
|
|
82
|
-
for (let offset = 0; offset < PALETTE.length; offset++) {
|
|
83
|
-
const candidate = PALETTE[(start + offset) % PALETTE.length];
|
|
84
|
-
if (!taken?.has(candidate.bg)) return candidate;
|
|
85
|
-
}
|
|
86
|
-
return PALETTE[start];
|
|
87
|
-
}
|
|
88
|
-
//#endregion
|
|
89
|
-
//#region src/components/agents-sdk/ManagerOffice.tsx
|
|
90
|
-
const OfficeContext = React.createContext(null);
|
|
91
|
-
const EmployeeContext = React.createContext(null);
|
|
92
|
-
function useOffice() {
|
|
93
|
-
const value = React.useContext(OfficeContext);
|
|
94
|
-
if (!value) throw new Error("ManagerOffice parts require ManagerOffice.Root.");
|
|
95
|
-
return value;
|
|
96
|
-
}
|
|
97
|
-
function useEmployee() {
|
|
98
|
-
const value = React.useContext(EmployeeContext);
|
|
99
|
-
if (!value) throw new Error("Employee parts require ManagerOffice.Employee.");
|
|
100
|
-
return value;
|
|
101
|
-
}
|
|
102
|
-
const statusLabels = {
|
|
103
|
-
"needs-you": "Waiting on you",
|
|
104
|
-
working: "Working",
|
|
105
|
-
idle: "Idle",
|
|
106
|
-
issue: "Waiting on you",
|
|
107
|
-
offline: "Offline",
|
|
108
|
-
connecting: "Connecting…",
|
|
109
|
-
unavailable: "Unavailable"
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Named positively, so a status added to the union later is disconnected until
|
|
113
|
-
* someone says otherwise. The negative form — "not offline, connecting, or
|
|
114
|
-
* unavailable" — silently admits every new status, and the first thing this
|
|
115
|
-
* component does with a connected employee is read `handoffs`, which a
|
|
116
|
-
* disconnected one does not carry.
|
|
117
|
-
*/
|
|
118
|
-
const CONNECTED_STATUSES = {
|
|
119
|
-
"needs-you": true,
|
|
120
|
-
working: true,
|
|
121
|
-
idle: true,
|
|
122
|
-
issue: true
|
|
123
|
-
};
|
|
124
|
-
function isConnected(employee) {
|
|
125
|
-
return employee.status in CONNECTED_STATUSES;
|
|
126
|
-
}
|
|
127
|
-
function employeeAttentionCount(employee) {
|
|
128
|
-
return isConnected(employee) ? employee.handoffs.length : 0;
|
|
129
|
-
}
|
|
130
|
-
/** The roster spells out what its handoff count measures. */
|
|
131
|
-
function employeeStatusText(employee) {
|
|
132
|
-
const count = employeeAttentionCount(employee);
|
|
133
|
-
const label = statusLabels[employee.status];
|
|
134
|
-
return count ? `${label} · ${count} handoff${count === 1 ? "" : "s"}` : label;
|
|
135
|
-
}
|
|
136
|
-
function EmployeePresence({ employee }) {
|
|
137
|
-
return /* @__PURE__ */ jsx("span", {
|
|
138
|
-
className: "manager-office__nav-status",
|
|
139
|
-
"data-status": employee.status,
|
|
140
|
-
"aria-hidden": "true",
|
|
141
|
-
children: employee.status === "needs-you" || employee.status === "issue" ? /* @__PURE__ */ jsx(WarningIcon, {}) : employee.status === "unavailable" ? /* @__PURE__ */ jsx(XIcon, {}) : employee.status === "working" || employee.status === "connecting" ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : employee.status === "offline" ? /* @__PURE__ */ jsx(MonitorIcon, {}) : /* @__PURE__ */ jsx(PauseIcon, {})
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Each employee is a Chrome profile, so the bubble wears its profile color —
|
|
146
|
-
* the same palette Chrome assigns profiles from. Chrome's pick is per-machine
|
|
147
|
-
* state the host can't read, so the roster re-derives it: a stable hash per
|
|
148
|
-
* seat, skipping colors already worn by earlier roster entries the way Chrome
|
|
149
|
-
* skips colors in use by other profiles.
|
|
150
|
-
*/
|
|
151
|
-
function rosterProfileColors(employees) {
|
|
152
|
-
const taken = /* @__PURE__ */ new Set();
|
|
153
|
-
const colors = /* @__PURE__ */ new Map();
|
|
154
|
-
for (const employee of employees) {
|
|
155
|
-
const color = chromeProfileColor(employee.id, taken);
|
|
156
|
-
taken.add(color.bg);
|
|
157
|
-
colors.set(employee.id, color);
|
|
158
|
-
}
|
|
159
|
-
return colors;
|
|
160
|
-
}
|
|
161
|
-
function EmployeeAvatar({ color, employee, index = 0, size = "sm" }) {
|
|
162
|
-
const variant = index % 4;
|
|
163
|
-
return /* @__PURE__ */ jsx(Avatar.Root, {
|
|
164
|
-
size,
|
|
165
|
-
shape: "rounded",
|
|
166
|
-
className: "manager-office__employee-character",
|
|
167
|
-
"aria-hidden": "true",
|
|
168
|
-
children: /* @__PURE__ */ jsxs(Avatar.Fallback, {
|
|
169
|
-
className: "manager-office__employee-character-fallback",
|
|
170
|
-
style: {
|
|
171
|
-
color: color.fg,
|
|
172
|
-
backgroundColor: "transparent"
|
|
173
|
-
},
|
|
174
|
-
children: [/* @__PURE__ */ jsxs("svg", {
|
|
175
|
-
viewBox: "0 0 36 36",
|
|
176
|
-
focusable: "false",
|
|
177
|
-
role: "presentation",
|
|
178
|
-
style: { fill: color.bg },
|
|
179
|
-
children: [
|
|
180
|
-
/* @__PURE__ */ jsx("rect", {
|
|
181
|
-
x: "5",
|
|
182
|
-
y: "6",
|
|
183
|
-
width: "26",
|
|
184
|
-
height: "25",
|
|
185
|
-
rx: "7"
|
|
186
|
-
}),
|
|
187
|
-
/* @__PURE__ */ jsx("rect", {
|
|
188
|
-
x: "8",
|
|
189
|
-
y: "28",
|
|
190
|
-
width: "8",
|
|
191
|
-
height: "5",
|
|
192
|
-
rx: "2.5",
|
|
193
|
-
opacity: "0.78"
|
|
194
|
-
}),
|
|
195
|
-
/* @__PURE__ */ jsx("rect", {
|
|
196
|
-
x: "20",
|
|
197
|
-
y: "28",
|
|
198
|
-
width: "8",
|
|
199
|
-
height: "5",
|
|
200
|
-
rx: "2.5",
|
|
201
|
-
opacity: "0.78"
|
|
202
|
-
}),
|
|
203
|
-
variant === 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M10 7c.6-3 3.2-5 6.2-5h3.6c3 0 5.6 2 6.2 5Z" }), /* @__PURE__ */ jsx("circle", {
|
|
204
|
-
cx: "18",
|
|
205
|
-
cy: "3",
|
|
206
|
-
r: "1.8"
|
|
207
|
-
})] }) : variant === 1 ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("rect", {
|
|
208
|
-
x: "2.5",
|
|
209
|
-
y: "13",
|
|
210
|
-
width: "4",
|
|
211
|
-
height: "10",
|
|
212
|
-
rx: "2"
|
|
213
|
-
}), /* @__PURE__ */ jsx("rect", {
|
|
214
|
-
x: "29.5",
|
|
215
|
-
y: "13",
|
|
216
|
-
width: "4",
|
|
217
|
-
height: "10",
|
|
218
|
-
rx: "2"
|
|
219
|
-
})] }) : variant === 2 ? /* @__PURE__ */ jsx("path", {
|
|
220
|
-
d: "M11 6V3.5h14V6M15 3.5V1.5h6v2",
|
|
221
|
-
fill: "none",
|
|
222
|
-
stroke: color.bg,
|
|
223
|
-
strokeWidth: "2",
|
|
224
|
-
strokeLinecap: "round",
|
|
225
|
-
strokeLinejoin: "round"
|
|
226
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 7V3l4 3 4-4 4 5Z" }), /* @__PURE__ */ jsx("circle", {
|
|
227
|
-
cx: "26.5",
|
|
228
|
-
cy: "7",
|
|
229
|
-
r: "2"
|
|
230
|
-
})] }),
|
|
231
|
-
/* @__PURE__ */ jsx("g", {
|
|
232
|
-
className: "manager-office__employee-character-face",
|
|
233
|
-
fill: color.fg,
|
|
234
|
-
children: variant === 1 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
235
|
-
/* @__PURE__ */ jsx("rect", {
|
|
236
|
-
className: "manager-office__employee-character-visor",
|
|
237
|
-
x: "10",
|
|
238
|
-
y: "14",
|
|
239
|
-
width: "16",
|
|
240
|
-
height: "8",
|
|
241
|
-
rx: "4",
|
|
242
|
-
opacity: "0.94"
|
|
243
|
-
}),
|
|
244
|
-
/* @__PURE__ */ jsx("circle", {
|
|
245
|
-
cx: "14",
|
|
246
|
-
cy: "18",
|
|
247
|
-
r: "1.5",
|
|
248
|
-
fill: color.bg
|
|
249
|
-
}),
|
|
250
|
-
/* @__PURE__ */ jsx("circle", {
|
|
251
|
-
cx: "22",
|
|
252
|
-
cy: "18",
|
|
253
|
-
r: "1.5",
|
|
254
|
-
fill: color.bg
|
|
255
|
-
})
|
|
256
|
-
] }) : variant === 3 ? /* @__PURE__ */ jsxs("g", {
|
|
257
|
-
className: "manager-office__employee-character-glasses",
|
|
258
|
-
children: [
|
|
259
|
-
/* @__PURE__ */ jsx("circle", {
|
|
260
|
-
className: "manager-office__employee-character-lens",
|
|
261
|
-
cx: "13.5",
|
|
262
|
-
cy: "17",
|
|
263
|
-
r: "3"
|
|
264
|
-
}),
|
|
265
|
-
/* @__PURE__ */ jsx("circle", {
|
|
266
|
-
className: "manager-office__employee-character-lens",
|
|
267
|
-
cx: "22.5",
|
|
268
|
-
cy: "17",
|
|
269
|
-
r: "3"
|
|
270
|
-
}),
|
|
271
|
-
/* @__PURE__ */ jsx("path", {
|
|
272
|
-
className: "manager-office__employee-character-bridge",
|
|
273
|
-
d: "M16.5 17h3"
|
|
274
|
-
})
|
|
275
|
-
]
|
|
276
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
277
|
-
/* @__PURE__ */ jsx("circle", {
|
|
278
|
-
cx: "13.5",
|
|
279
|
-
cy: "17",
|
|
280
|
-
r: "3.2"
|
|
281
|
-
}),
|
|
282
|
-
/* @__PURE__ */ jsx("circle", {
|
|
283
|
-
cx: "22.5",
|
|
284
|
-
cy: "17",
|
|
285
|
-
r: "3.2"
|
|
286
|
-
}),
|
|
287
|
-
/* @__PURE__ */ jsx("circle", {
|
|
288
|
-
cx: "14.5",
|
|
289
|
-
cy: "16",
|
|
290
|
-
r: "1",
|
|
291
|
-
fill: color.bg,
|
|
292
|
-
opacity: "0.72"
|
|
293
|
-
}),
|
|
294
|
-
/* @__PURE__ */ jsx("circle", {
|
|
295
|
-
cx: "23.5",
|
|
296
|
-
cy: "16",
|
|
297
|
-
r: "1",
|
|
298
|
-
fill: color.bg,
|
|
299
|
-
opacity: "0.72"
|
|
300
|
-
})
|
|
301
|
-
] })
|
|
302
|
-
}),
|
|
303
|
-
/* @__PURE__ */ jsx("path", {
|
|
304
|
-
className: "manager-office__employee-character-shine",
|
|
305
|
-
d: "M9 11c2-2 4.7-3 7.7-3",
|
|
306
|
-
fill: "none",
|
|
307
|
-
stroke: color.fg,
|
|
308
|
-
strokeWidth: "1.5",
|
|
309
|
-
strokeLinecap: "round"
|
|
310
|
-
})
|
|
311
|
-
]
|
|
312
|
-
}), /* @__PURE__ */ jsx("span", {
|
|
313
|
-
className: "sigvelo-visually-hidden",
|
|
314
|
-
children: employee.initials
|
|
315
|
-
})]
|
|
316
|
-
})
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* One glyph per manager action, not one glyph per backend state. Both an
|
|
321
|
-
* employee asking for a person (`needs-you`) and one blocked by an issue
|
|
322
|
-
* (`issue`) require the same response here, so the roster presents both as
|
|
323
|
-
* "Waiting on you" with the warning glyph. An unreachable employee remains a
|
|
324
|
-
* distinct shape because there is no work for the manager to resume yet.
|
|
325
|
-
*
|
|
326
|
-
* `working` and `connecting` deliberately share the spinner: both mean "in
|
|
327
|
-
* motion, wait", and mistaking one for the other costs the manager nothing.
|
|
328
|
-
*/
|
|
329
|
-
function ThreadStatusIcon({ status }) {
|
|
330
|
-
return /* @__PURE__ */ jsx("span", {
|
|
331
|
-
className: "manager-office__thread-status",
|
|
332
|
-
"data-status": status,
|
|
333
|
-
"aria-hidden": "true",
|
|
334
|
-
children: status === "running" ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : status === "error" ? /* @__PURE__ */ jsx(WarningIcon, {}) : status === "interrupted" ? /* @__PURE__ */ jsx(PauseIcon, {}) : /* @__PURE__ */ jsx(DotIcon, {})
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
function threadStatusLabel(status) {
|
|
338
|
-
if (status === "attention") return "Update ready";
|
|
339
|
-
if (status === "running") return "Working";
|
|
340
|
-
if (status === "error") return "Issue";
|
|
341
|
-
if (status === "interrupted") return "Stopped";
|
|
342
|
-
return "Updated";
|
|
343
|
-
}
|
|
344
|
-
function relativeTime(timestamp, now) {
|
|
345
|
-
const elapsed = Math.max(0, now - timestamp);
|
|
346
|
-
const minute = 6e4;
|
|
347
|
-
const hour = 60 * minute;
|
|
348
|
-
const day = 24 * hour;
|
|
349
|
-
if (elapsed < minute) return "now";
|
|
350
|
-
if (elapsed < hour) return `${Math.floor(elapsed / minute)}m`;
|
|
351
|
-
if (elapsed < day) return `${Math.floor(elapsed / hour)}h`;
|
|
352
|
-
return `${Math.floor(elapsed / day)}d`;
|
|
353
|
-
}
|
|
354
|
-
function Timestamp({ now, timestamp }) {
|
|
355
|
-
const date = new Date(timestamp);
|
|
356
|
-
return /* @__PURE__ */ jsx("time", {
|
|
357
|
-
dateTime: date.toISOString(),
|
|
358
|
-
title: date.toLocaleString(),
|
|
359
|
-
children: relativeTime(timestamp, now)
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* Deliberately the same three glyphs the employee statuses use: a channel that
|
|
364
|
-
* needs a sign-in is the same kind of event as an employee that needs one, and
|
|
365
|
-
* a manager should not have to learn a second vocabulary for it.
|
|
366
|
-
*/
|
|
367
|
-
function channelStatusIcon(status) {
|
|
368
|
-
if (status === "connected") return /* @__PURE__ */ jsx(CheckIcon, {});
|
|
369
|
-
if (status === "needs-auth") return /* @__PURE__ */ jsx(InfoIcon, {});
|
|
370
|
-
return /* @__PURE__ */ jsx(WarningIcon, {});
|
|
371
|
-
}
|
|
372
|
-
const channelStatusLabels = {
|
|
373
|
-
connected: "Connected",
|
|
374
|
-
"needs-auth": "Needs sign-in",
|
|
375
|
-
error: "Error"
|
|
376
|
-
};
|
|
377
|
-
function ChannelMark({ channel }) {
|
|
378
|
-
if (channel.icon) return /* @__PURE__ */ jsx("span", {
|
|
379
|
-
className: "manager-office__channel-mark",
|
|
380
|
-
children: channel.icon
|
|
381
|
-
});
|
|
382
|
-
const card = findCatalogMcpServerCard({
|
|
383
|
-
id: channel.id,
|
|
384
|
-
name: channel.name
|
|
385
|
-
});
|
|
386
|
-
const src = card ? getMcpServerIconSrc(card) : void 0;
|
|
387
|
-
if (src) return /* @__PURE__ */ jsx("span", {
|
|
388
|
-
className: "manager-office__channel-mark",
|
|
389
|
-
children: /* @__PURE__ */ jsx("img", {
|
|
390
|
-
alt: "",
|
|
391
|
-
className: "sigvelo-brand-mark sigvelo-brand-mark--colorful",
|
|
392
|
-
decoding: "async",
|
|
393
|
-
referrerPolicy: "no-referrer",
|
|
394
|
-
src
|
|
395
|
-
})
|
|
396
|
-
});
|
|
397
|
-
return /* @__PURE__ */ jsx(AppIcon.Fallback, { children: channel.name.slice(0, 1) });
|
|
398
|
-
}
|
|
399
|
-
function ChannelRow({ channel }) {
|
|
400
|
-
return /* @__PURE__ */ jsxs("li", {
|
|
401
|
-
className: "manager-office__channel",
|
|
402
|
-
"data-status": channel.status,
|
|
403
|
-
children: [
|
|
404
|
-
/* @__PURE__ */ jsx(AppIcon.Root, {
|
|
405
|
-
size: "sm",
|
|
406
|
-
"aria-hidden": "true",
|
|
407
|
-
children: /* @__PURE__ */ jsx(ChannelMark, { channel })
|
|
408
|
-
}),
|
|
409
|
-
/* @__PURE__ */ jsxs("span", {
|
|
410
|
-
className: "manager-office__identity",
|
|
411
|
-
children: [/* @__PURE__ */ jsx("strong", {
|
|
412
|
-
className: "sigvelo-truncate",
|
|
413
|
-
children: channel.name
|
|
414
|
-
}), /* @__PURE__ */ jsx("small", {
|
|
415
|
-
className: "sigvelo-truncate",
|
|
416
|
-
children: channel.detail ?? channelStatusLabels[channel.status]
|
|
417
|
-
})]
|
|
418
|
-
}),
|
|
419
|
-
/* @__PURE__ */ jsxs("span", {
|
|
420
|
-
className: "manager-office__channel-status",
|
|
421
|
-
"data-status": channel.status,
|
|
422
|
-
title: channelStatusLabels[channel.status],
|
|
423
|
-
children: [channelStatusIcon(channel.status), /* @__PURE__ */ jsx("span", {
|
|
424
|
-
className: "sigvelo-visually-hidden",
|
|
425
|
-
children: channelStatusLabels[channel.status]
|
|
426
|
-
})]
|
|
427
|
-
})
|
|
428
|
-
]
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
/**
|
|
432
|
-
* A handoff is the one thing on this surface that is waiting on a person, so
|
|
433
|
-
* it gets the surface built for that — `AgentAttention` in its warning tone —
|
|
434
|
-
* rather than another ghost row indistinguishable from the work beneath it.
|
|
435
|
-
* The action is a link into the owning work, because that is where the single
|
|
436
|
-
* approval surface lives; nothing is approved or dismissed from the roster.
|
|
437
|
-
*/
|
|
438
|
-
function HandoffCard({ employee, handoff, renderLink, now, showEmployee }) {
|
|
439
|
-
return /* @__PURE__ */ jsxs(AgentAttention, {
|
|
440
|
-
tone: "attention",
|
|
441
|
-
className: cx("manager-office__handoff", !handoff.request && "manager-office__handoff--bare"),
|
|
442
|
-
children: [
|
|
443
|
-
/* @__PURE__ */ jsx(AgentAttentionHeader, {
|
|
444
|
-
icon: /* @__PURE__ */ jsx(InfoIcon, {}),
|
|
445
|
-
title: handoff.reason,
|
|
446
|
-
description: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
447
|
-
showEmployee ? `${employee.name} · ` : null,
|
|
448
|
-
handoff.workTitle,
|
|
449
|
-
" · ",
|
|
450
|
-
/* @__PURE__ */ jsx(Timestamp, {
|
|
451
|
-
timestamp: handoff.createdAt,
|
|
452
|
-
now
|
|
453
|
-
})
|
|
454
|
-
] })
|
|
455
|
-
}),
|
|
456
|
-
handoff.request ? /* @__PURE__ */ jsx(AgentAttentionBody, {
|
|
457
|
-
className: "manager-office__handoff-ask",
|
|
458
|
-
children: handoff.request
|
|
459
|
-
}) : null,
|
|
460
|
-
/* @__PURE__ */ jsx(AgentAttentionActions, { children: /* @__PURE__ */ jsxs(LinkButton, {
|
|
461
|
-
render: renderLink({
|
|
462
|
-
kind: "handoff",
|
|
463
|
-
employee,
|
|
464
|
-
handoff
|
|
465
|
-
}),
|
|
466
|
-
size: "sm",
|
|
467
|
-
"aria-label": `Open ${handoff.workTitle} to ${handoff.reason.toLowerCase()}`,
|
|
468
|
-
children: [/* @__PURE__ */ jsx(MonitorIcon, {}), "Open browser"]
|
|
469
|
-
}) })
|
|
470
|
-
]
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
/** Dense nested action for an employee alert already signalled by the roster status. */
|
|
474
|
-
function ManagerOfficeSidebarAlert({ className, detail, title, ...props }) {
|
|
475
|
-
return /* @__PURE__ */ jsxs(LinkButton, {
|
|
476
|
-
variant: "ghost",
|
|
477
|
-
color: "neutral",
|
|
478
|
-
size: "sm",
|
|
479
|
-
className: cx("manager-office__sidebar-alert", className),
|
|
480
|
-
...props,
|
|
481
|
-
children: [/* @__PURE__ */ jsxs("span", {
|
|
482
|
-
className: "manager-office__sidebar-alert-copy",
|
|
483
|
-
children: [/* @__PURE__ */ jsx("strong", { children: title }), /* @__PURE__ */ jsxs("span", {
|
|
484
|
-
className: "manager-office__sidebar-alert-meta",
|
|
485
|
-
children: [detail ? /* @__PURE__ */ jsx("small", { children: detail }) : null, /* @__PURE__ */ jsx("span", {
|
|
486
|
-
className: "manager-office__sidebar-alert-status",
|
|
487
|
-
children: "Blocked"
|
|
488
|
-
})]
|
|
489
|
-
})]
|
|
490
|
-
}), /* @__PURE__ */ jsx(ChevronRightIcon, {
|
|
491
|
-
className: "manager-office__sidebar-alert-chevron",
|
|
492
|
-
"aria-hidden": "true"
|
|
493
|
-
})]
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
/**
|
|
497
|
-
* Shared Manager Office rail. Stories and host shells may add employee-owned
|
|
498
|
-
* content, but the Workforce header, roster identity, status language, scrolling,
|
|
499
|
-
* and footer placement stay component-owned and therefore cannot drift.
|
|
500
|
-
*/
|
|
501
|
-
function moveRosterFocus(event, layout) {
|
|
502
|
-
const nextKey = layout === "office" ? "ArrowDown" : "ArrowRight";
|
|
503
|
-
const prevKey = layout === "office" ? "ArrowUp" : "ArrowLeft";
|
|
504
|
-
if (event.key !== nextKey && event.key !== prevKey && event.key !== "Home" && event.key !== "End") return;
|
|
505
|
-
const links = [...event.currentTarget.querySelectorAll("a[href], button")];
|
|
506
|
-
const index = links.findIndex((link) => link === document.activeElement);
|
|
507
|
-
if (index < 0) return;
|
|
508
|
-
event.preventDefault();
|
|
509
|
-
const last = links.length - 1;
|
|
510
|
-
links[event.key === "Home" ? 0 : event.key === "End" ? last : event.key === nextKey ? Math.min(last, index + 1) : Math.max(0, index - 1)]?.focus();
|
|
511
|
-
}
|
|
512
|
-
function ManagerOfficeSidebar({ className, closeSidebarOnCompact, content, employees, renderLink, footer, layout = "office", officeActions, selectedEmployeeId, ...props }) {
|
|
513
|
-
const rosterLabelId = React.useId();
|
|
514
|
-
const profileColors = rosterProfileColors(employees);
|
|
515
|
-
const isChat = layout === "chat";
|
|
516
|
-
return /* @__PURE__ */ jsx(Tooltip.Provider, { children: /* @__PURE__ */ jsxs("nav", {
|
|
517
|
-
className: cx("manager-office__sidebar", className),
|
|
518
|
-
"aria-label": "Workforce",
|
|
519
|
-
"data-layout": layout,
|
|
520
|
-
...props,
|
|
521
|
-
children: [
|
|
522
|
-
/* @__PURE__ */ jsxs("div", {
|
|
523
|
-
className: "manager-office__sidebar-heading",
|
|
524
|
-
children: [/* @__PURE__ */ jsx("strong", { children: "Workforce" }), officeActions ? /* @__PURE__ */ jsx("span", {
|
|
525
|
-
className: "manager-office__sidebar-actions",
|
|
526
|
-
children: officeActions
|
|
527
|
-
}) : null]
|
|
528
|
-
}),
|
|
529
|
-
/* @__PURE__ */ jsx("p", {
|
|
530
|
-
className: "manager-office__nav-label sigvelo-visually-hidden",
|
|
531
|
-
id: rosterLabelId,
|
|
532
|
-
children: "Employees"
|
|
533
|
-
}),
|
|
534
|
-
/* @__PURE__ */ jsx("ul", {
|
|
535
|
-
className: "manager-office__employee-nav",
|
|
536
|
-
role: "list",
|
|
537
|
-
"aria-labelledby": rosterLabelId,
|
|
538
|
-
onKeyDown: (event) => moveRosterFocus(event, layout),
|
|
539
|
-
children: employees.map((employee, index) => {
|
|
540
|
-
const selected = selectedEmployeeId === employee.id;
|
|
541
|
-
const status = employeeStatusText(employee);
|
|
542
|
-
return /* @__PURE__ */ jsx("li", {
|
|
543
|
-
className: "manager-office__employee-group",
|
|
544
|
-
children: /* @__PURE__ */ jsxs(LinkButton, {
|
|
545
|
-
render: renderLink({
|
|
546
|
-
kind: "employee",
|
|
547
|
-
employee
|
|
548
|
-
}),
|
|
549
|
-
onClick: closeSidebarOnCompact,
|
|
550
|
-
variant: "ghost",
|
|
551
|
-
color: "neutral",
|
|
552
|
-
size: "sm",
|
|
553
|
-
className: "manager-office__employee-link",
|
|
554
|
-
"aria-current": selected ? "page" : void 0,
|
|
555
|
-
"aria-label": `Open ${employee.name} · ${status}`,
|
|
556
|
-
title: isChat ? `${employee.name} · ${status}` : void 0,
|
|
557
|
-
children: [/* @__PURE__ */ jsxs("span", {
|
|
558
|
-
className: "manager-office__employee-avatar",
|
|
559
|
-
children: [/* @__PURE__ */ jsx(EmployeeAvatar, {
|
|
560
|
-
employee,
|
|
561
|
-
color: profileColors.get(employee.id),
|
|
562
|
-
index,
|
|
563
|
-
size: isChat ? "sm" : "md"
|
|
564
|
-
}), /* @__PURE__ */ jsx(EmployeePresence, { employee })]
|
|
565
|
-
}), isChat ? null : /* @__PURE__ */ jsxs("span", {
|
|
566
|
-
className: "manager-office__identity",
|
|
567
|
-
children: [/* @__PURE__ */ jsx("strong", {
|
|
568
|
-
className: "sigvelo-truncate",
|
|
569
|
-
children: employee.name
|
|
570
|
-
}), /* @__PURE__ */ jsx("small", {
|
|
571
|
-
className: "sigvelo-truncate",
|
|
572
|
-
children: statusLabels[employee.status]
|
|
573
|
-
})]
|
|
574
|
-
})]
|
|
575
|
-
})
|
|
576
|
-
}, employee.id);
|
|
577
|
-
})
|
|
578
|
-
}),
|
|
579
|
-
content ? /* @__PURE__ */ jsx("div", {
|
|
580
|
-
className: "manager-office__sidebar-content",
|
|
581
|
-
children: content
|
|
582
|
-
}) : null,
|
|
583
|
-
footer ? /* @__PURE__ */ jsx("div", {
|
|
584
|
-
className: "manager-office__sidebar-footer",
|
|
585
|
-
children: footer
|
|
586
|
-
}) : null
|
|
587
|
-
]
|
|
588
|
-
}) });
|
|
589
|
-
}
|
|
590
|
-
function isReviewWork(work) {
|
|
591
|
-
return work.status === "attention" || work.status === "error";
|
|
592
|
-
}
|
|
593
|
-
/** Finished or failed work the manager should open in chat — not a live-tab wait. */
|
|
594
|
-
function reviewWorkFor(employee) {
|
|
595
|
-
const waiting = new Set(employee.handoffs.map((handoff) => handoff.workId));
|
|
596
|
-
return employee.work.filter((work) => isReviewWork(work) && !waiting.has(work.id));
|
|
597
|
-
}
|
|
598
|
-
function workingSetOf(work) {
|
|
599
|
-
return work.workingSet ?? [];
|
|
600
|
-
}
|
|
601
|
-
function workingSetKey(item) {
|
|
602
|
-
return item.kind === "link" ? `link:${item.href}` : `${item.kind}:${item.path}`;
|
|
603
|
-
}
|
|
604
|
-
function safeHttpUrl(url) {
|
|
605
|
-
try {
|
|
606
|
-
const parsed = new URL(url);
|
|
607
|
-
if (parsed.protocol !== "https:" && parsed.protocol !== "http:") return void 0;
|
|
608
|
-
return parsed.href;
|
|
609
|
-
} catch {
|
|
610
|
-
return;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
function workingSetLinkDetail(item) {
|
|
614
|
-
const card = providerCardForHref(item.href);
|
|
615
|
-
if (card) return card.name;
|
|
616
|
-
try {
|
|
617
|
-
return new URL(item.href).hostname.replace(/^www\./u, "");
|
|
618
|
-
} catch {
|
|
619
|
-
return item.href;
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
function WorkingSetMark({ item }) {
|
|
623
|
-
if (item.kind === "file") return /* @__PURE__ */ jsx(FileIcon, {});
|
|
624
|
-
if (item.kind === "folder") return /* @__PURE__ */ jsx(FolderIcon, {});
|
|
625
|
-
const card = providerCardForHref(item.href);
|
|
626
|
-
const src = card ? getMcpServerIconSrc(card) : void 0;
|
|
627
|
-
if (src) return /* @__PURE__ */ jsxs(AppIcon.Root, {
|
|
628
|
-
size: "xs",
|
|
629
|
-
variant: "artwork",
|
|
630
|
-
"aria-hidden": "true",
|
|
631
|
-
children: [/* @__PURE__ */ jsx(AppIcon.Image, {
|
|
632
|
-
src,
|
|
633
|
-
alt: ""
|
|
634
|
-
}), /* @__PURE__ */ jsx(AppIcon.Fallback, { children: (card?.name ?? item.title).slice(0, 1) })]
|
|
635
|
-
});
|
|
636
|
-
return /* @__PURE__ */ jsx(LinkIcon, {});
|
|
637
|
-
}
|
|
638
|
-
function scheduleDetail(schedule) {
|
|
639
|
-
const repeats = schedule.enabled ? schedule.task.schedule : `Paused · ${schedule.task.schedule}`;
|
|
640
|
-
const finishedRuns = schedule.runs.filter((run) => run.completedAt != null);
|
|
641
|
-
if (!finishedRuns.length) return repeats;
|
|
642
|
-
return `${repeats} · ${finishedRuns.filter((run) => {
|
|
643
|
-
const status = getThinkExecutionRunStatus(run);
|
|
644
|
-
return status === "completed" || status === "complete";
|
|
645
|
-
}).length} of ${finishedRuns.length} recent runs completed`;
|
|
646
|
-
}
|
|
647
|
-
/**
|
|
648
|
-
* Where a work link sits decides whether it draws its own surface: a row in a
|
|
649
|
-
* work list is a bounded row, while a lane heading sits inside the lane card,
|
|
650
|
-
* which already draws one.
|
|
651
|
-
*/
|
|
652
|
-
const workLinkClassNames = {
|
|
653
|
-
row: "manager-office__work-link",
|
|
654
|
-
lane: "manager-office__lane-title"
|
|
655
|
-
};
|
|
656
|
-
/** The link onto a work thread, shared by standalone rows and lane headings. */
|
|
657
|
-
function WorkLink({ employee, placement, renderLink, now, showEmployee, work }) {
|
|
658
|
-
return /* @__PURE__ */ jsxs(LinkButton, {
|
|
659
|
-
render: renderLink({
|
|
660
|
-
kind: "work",
|
|
661
|
-
employee,
|
|
662
|
-
work
|
|
663
|
-
}),
|
|
664
|
-
variant: "ghost",
|
|
665
|
-
color: "neutral",
|
|
666
|
-
size: "sm",
|
|
667
|
-
className: workLinkClassNames[placement],
|
|
668
|
-
"aria-label": `Open ${work.title} to ${threadStatusLabel(work.status).toLowerCase()}`,
|
|
669
|
-
children: [
|
|
670
|
-
/* @__PURE__ */ jsx(ThreadStatusIcon, { status: work.status }),
|
|
671
|
-
/* @__PURE__ */ jsxs("span", {
|
|
672
|
-
className: "manager-office__identity",
|
|
673
|
-
children: [/* @__PURE__ */ jsxs("strong", {
|
|
674
|
-
className: "sigvelo-truncate",
|
|
675
|
-
children: [work.title, work.status === "attention" ? /* @__PURE__ */ jsx("span", {
|
|
676
|
-
className: "manager-office__unread-dot",
|
|
677
|
-
"aria-hidden": "true"
|
|
678
|
-
}) : null]
|
|
679
|
-
}), /* @__PURE__ */ jsxs("small", {
|
|
680
|
-
className: "sigvelo-truncate",
|
|
681
|
-
children: [
|
|
682
|
-
showEmployee ? `${employee.name} · ` : null,
|
|
683
|
-
threadStatusLabel(work.status),
|
|
684
|
-
" · ",
|
|
685
|
-
/* @__PURE__ */ jsx(Timestamp, {
|
|
686
|
-
timestamp: work.updatedAt,
|
|
687
|
-
now
|
|
688
|
-
})
|
|
689
|
-
]
|
|
690
|
-
})]
|
|
691
|
-
}),
|
|
692
|
-
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "manager-office__row-chevron" })
|
|
693
|
-
]
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
function workingSetItemCaption(item) {
|
|
697
|
-
if (item.kind === "link") return workingSetLinkDetail(item);
|
|
698
|
-
return item.kind === "folder" ? "Workspace folder" : "Workspace file";
|
|
699
|
-
}
|
|
700
|
-
function WorkingSetAttachment(props) {
|
|
701
|
-
const { caption, label, mark, title } = props;
|
|
702
|
-
const contents = /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
703
|
-
className: "manager-office__working-set-mark",
|
|
704
|
-
"aria-hidden": "true",
|
|
705
|
-
children: mark
|
|
706
|
-
}), /* @__PURE__ */ jsx("strong", {
|
|
707
|
-
className: "sigvelo-truncate",
|
|
708
|
-
children: title
|
|
709
|
-
})] });
|
|
710
|
-
const link = "href" in props ? /* @__PURE__ */ jsx(LinkButton, {
|
|
711
|
-
href: props.href,
|
|
712
|
-
target: "_blank",
|
|
713
|
-
rel: "noreferrer",
|
|
714
|
-
variant: "ghost",
|
|
715
|
-
color: "neutral",
|
|
716
|
-
size: "sm",
|
|
717
|
-
className: "manager-office__working-set-link",
|
|
718
|
-
"aria-label": label,
|
|
719
|
-
children: contents
|
|
720
|
-
}) : /* @__PURE__ */ jsx(LinkButton, {
|
|
721
|
-
render: props.render,
|
|
722
|
-
variant: "ghost",
|
|
723
|
-
color: "neutral",
|
|
724
|
-
size: "sm",
|
|
725
|
-
className: "manager-office__working-set-link",
|
|
726
|
-
"aria-label": label,
|
|
727
|
-
children: contents
|
|
728
|
-
});
|
|
729
|
-
return /* @__PURE__ */ jsxs(Tooltip.Root, { children: [/* @__PURE__ */ jsx(Tooltip.Trigger, { render: link }), /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, {
|
|
730
|
-
side: "bottom",
|
|
731
|
-
sideOffset: 6,
|
|
732
|
-
children: /* @__PURE__ */ jsx(Tooltip.Popup, { children: caption })
|
|
733
|
-
}) })] });
|
|
734
|
-
}
|
|
735
|
-
function WorkingSetItemRow({ employee, item, renderLink, work }) {
|
|
736
|
-
const caption = workingSetItemCaption(item);
|
|
737
|
-
const mark = /* @__PURE__ */ jsx(WorkingSetMark, { item });
|
|
738
|
-
if (item.kind === "link") {
|
|
739
|
-
const href = safeHttpUrl(item.href);
|
|
740
|
-
if (!href) return null;
|
|
741
|
-
return /* @__PURE__ */ jsx("li", {
|
|
742
|
-
className: "manager-office__working-set-item",
|
|
743
|
-
children: /* @__PURE__ */ jsx(WorkingSetAttachment, {
|
|
744
|
-
caption,
|
|
745
|
-
label: `${item.title} (${caption}, opens in a new tab)`,
|
|
746
|
-
href,
|
|
747
|
-
mark,
|
|
748
|
-
title: item.title
|
|
749
|
-
})
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
const location = item.kind === "folder" ? "folder" : "file";
|
|
753
|
-
return /* @__PURE__ */ jsx("li", {
|
|
754
|
-
className: "manager-office__working-set-item",
|
|
755
|
-
children: /* @__PURE__ */ jsx(WorkingSetAttachment, {
|
|
756
|
-
caption,
|
|
757
|
-
label: `Open ${item.title} ${location} in workspace`,
|
|
758
|
-
render: renderLink({
|
|
759
|
-
kind: "workspace",
|
|
760
|
-
employee,
|
|
761
|
-
work,
|
|
762
|
-
path: item.path
|
|
763
|
-
}),
|
|
764
|
-
mark,
|
|
765
|
-
title: item.title
|
|
766
|
-
})
|
|
767
|
-
});
|
|
768
|
-
}
|
|
769
|
-
function WorkLane({ employee, now, renderLink, work }) {
|
|
770
|
-
const titleId = React.useId();
|
|
771
|
-
const workingSet = workingSetOf(work);
|
|
772
|
-
return /* @__PURE__ */ jsxs("article", {
|
|
773
|
-
className: "manager-office__lane",
|
|
774
|
-
"aria-labelledby": titleId,
|
|
775
|
-
children: [
|
|
776
|
-
/* @__PURE__ */ jsx("h3", {
|
|
777
|
-
id: titleId,
|
|
778
|
-
className: "manager-office__lane-heading",
|
|
779
|
-
children: /* @__PURE__ */ jsx(WorkLink, {
|
|
780
|
-
employee,
|
|
781
|
-
now,
|
|
782
|
-
placement: "lane",
|
|
783
|
-
renderLink,
|
|
784
|
-
showEmployee: false,
|
|
785
|
-
work
|
|
786
|
-
})
|
|
787
|
-
}),
|
|
788
|
-
work.summary ? /* @__PURE__ */ jsx("p", {
|
|
789
|
-
className: "manager-office__lane-summary",
|
|
790
|
-
children: work.summary
|
|
791
|
-
}) : null,
|
|
792
|
-
workingSet.length ? /* @__PURE__ */ jsx("ul", {
|
|
793
|
-
className: "manager-office__working-set",
|
|
794
|
-
role: "list",
|
|
795
|
-
"aria-label": "Working set",
|
|
796
|
-
children: workingSet.map((item) => /* @__PURE__ */ jsx(WorkingSetItemRow, {
|
|
797
|
-
employee,
|
|
798
|
-
item,
|
|
799
|
-
renderLink,
|
|
800
|
-
work
|
|
801
|
-
}, workingSetKey(item)))
|
|
802
|
-
}) : null
|
|
803
|
-
]
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
function ManagerOfficeAttention({ className, ...props }) {
|
|
807
|
-
const { employees, renderLink, now } = useOffice();
|
|
808
|
-
const waits = employees.flatMap((employee) => isConnected(employee) ? employee.handoffs.map((handoff) => ({
|
|
809
|
-
employee,
|
|
810
|
-
handoff
|
|
811
|
-
})) : []);
|
|
812
|
-
const reviews = employees.flatMap((employee) => isConnected(employee) ? reviewWorkFor(employee).map((work) => ({
|
|
813
|
-
employee,
|
|
814
|
-
work
|
|
815
|
-
})) : []);
|
|
816
|
-
if (!waits.length && !reviews.length) return /* @__PURE__ */ jsx("div", {
|
|
817
|
-
...props,
|
|
818
|
-
className: cx("manager-office__attention", className),
|
|
819
|
-
"data-recipe": "page",
|
|
820
|
-
children: /* @__PURE__ */ jsx(EmptyState, {
|
|
821
|
-
icon: /* @__PURE__ */ jsx(CheckIcon, {}),
|
|
822
|
-
title: "Nothing needs you",
|
|
823
|
-
description: "Employee connection state remains visible in the roster."
|
|
824
|
-
})
|
|
825
|
-
});
|
|
826
|
-
const both = waits.length > 0 && reviews.length > 0;
|
|
827
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
828
|
-
...props,
|
|
829
|
-
className: cx("manager-office__attention", className),
|
|
830
|
-
"data-recipe": "page",
|
|
831
|
-
children: [waits.length ? /* @__PURE__ */ jsxs("div", {
|
|
832
|
-
className: "manager-office__attention-group",
|
|
833
|
-
children: [both ? /* @__PURE__ */ jsx("h2", {
|
|
834
|
-
className: "manager-office__section-title",
|
|
835
|
-
children: "Needs you in the browser"
|
|
836
|
-
}) : null, /* @__PURE__ */ jsx("ul", {
|
|
837
|
-
className: "manager-office__attention-list sigvelo-stack-list",
|
|
838
|
-
"aria-label": "Waiting on you",
|
|
839
|
-
children: waits.map(({ employee, handoff }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(HandoffCard, {
|
|
840
|
-
employee,
|
|
841
|
-
handoff,
|
|
842
|
-
renderLink,
|
|
843
|
-
now,
|
|
844
|
-
showEmployee: true
|
|
845
|
-
}) }, `${employee.id}:${handoff.id}`))
|
|
846
|
-
})]
|
|
847
|
-
}) : null, reviews.length ? /* @__PURE__ */ jsxs("div", {
|
|
848
|
-
className: "manager-office__attention-group",
|
|
849
|
-
children: [/* @__PURE__ */ jsx("h2", {
|
|
850
|
-
className: "manager-office__section-title",
|
|
851
|
-
children: "Ready for you"
|
|
852
|
-
}), /* @__PURE__ */ jsx("ul", {
|
|
853
|
-
className: "manager-office__work-list sigvelo-stack-list",
|
|
854
|
-
"aria-label": "Ready for you",
|
|
855
|
-
children: reviews.map(({ employee, work }) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(WorkLink, {
|
|
856
|
-
employee,
|
|
857
|
-
work,
|
|
858
|
-
placement: "row",
|
|
859
|
-
renderLink,
|
|
860
|
-
now,
|
|
861
|
-
showEmployee: true
|
|
862
|
-
}) }, `${employee.id}:${work.id}`))
|
|
863
|
-
})]
|
|
864
|
-
}) : null]
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
const employeeDefaults = {
|
|
868
|
-
className: "manager-office__employee-detail",
|
|
869
|
-
"data-recipe": "page"
|
|
870
|
-
};
|
|
871
|
-
/** Scope the selected employee without imposing dossier content or column order. */
|
|
872
|
-
function ManagerOfficeEmployeeRoot({ employee, render, ref, ...props }) {
|
|
873
|
-
const element = useRender({
|
|
874
|
-
defaultTagName: "div",
|
|
875
|
-
render,
|
|
876
|
-
ref,
|
|
877
|
-
props: mergeProps(employeeDefaults, props)
|
|
878
|
-
});
|
|
879
|
-
return /* @__PURE__ */ jsx(EmployeeContext.Provider, {
|
|
880
|
-
value: employee,
|
|
881
|
-
children: element
|
|
882
|
-
});
|
|
883
|
-
}
|
|
884
|
-
function ManagerOfficeEmployeeHeader({ className, ...props }) {
|
|
885
|
-
const employee = useEmployee();
|
|
886
|
-
const { profileColors } = useOffice();
|
|
887
|
-
const profileColor = profileColors.get(employee.id) ?? chromeProfileColor(employee.id);
|
|
888
|
-
return /* @__PURE__ */ jsxs("header", {
|
|
889
|
-
...props,
|
|
890
|
-
className: cx("manager-office__employee-header", className),
|
|
891
|
-
children: [/* @__PURE__ */ jsx(EmployeeAvatar, {
|
|
892
|
-
employee,
|
|
893
|
-
color: profileColor,
|
|
894
|
-
size: "lg"
|
|
895
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
896
|
-
className: "manager-office__briefing",
|
|
897
|
-
children: [
|
|
898
|
-
/* @__PURE__ */ jsx("strong", {
|
|
899
|
-
className: "sigvelo-truncate",
|
|
900
|
-
children: employee.name
|
|
901
|
-
}),
|
|
902
|
-
/* @__PURE__ */ jsx("small", {
|
|
903
|
-
className: "sigvelo-truncate",
|
|
904
|
-
children: employee.email
|
|
905
|
-
}),
|
|
906
|
-
/* @__PURE__ */ jsx("p", {
|
|
907
|
-
className: "manager-office__role",
|
|
908
|
-
children: employee.role
|
|
909
|
-
})
|
|
910
|
-
]
|
|
911
|
-
})]
|
|
912
|
-
});
|
|
913
|
-
}
|
|
914
|
-
function ManagerOfficeHandoffs({ className, ...props }) {
|
|
915
|
-
const employee = useEmployee();
|
|
916
|
-
const { renderLink, now } = useOffice();
|
|
917
|
-
return employee.handoffs.length ? /* @__PURE__ */ jsx("section", {
|
|
918
|
-
...props,
|
|
919
|
-
className: cx("manager-office__employee-handoffs", className),
|
|
920
|
-
"aria-label": "Waiting on you",
|
|
921
|
-
children: employee.handoffs.map((handoff) => /* @__PURE__ */ jsx(HandoffCard, {
|
|
922
|
-
employee,
|
|
923
|
-
handoff,
|
|
924
|
-
renderLink,
|
|
925
|
-
now,
|
|
926
|
-
showEmployee: false
|
|
927
|
-
}, handoff.id))
|
|
928
|
-
}) : null;
|
|
929
|
-
}
|
|
930
|
-
function ManagerOfficeWorkSection({ className, ...props }) {
|
|
931
|
-
const employee = useEmployee();
|
|
932
|
-
const { renderLink, now } = useOffice();
|
|
933
|
-
return /* @__PURE__ */ jsxs("section", {
|
|
934
|
-
...props,
|
|
935
|
-
className: cx("manager-office__section", className),
|
|
936
|
-
children: [/* @__PURE__ */ jsx("header", {
|
|
937
|
-
className: "manager-office__section-header",
|
|
938
|
-
children: /* @__PURE__ */ jsxs("h2", {
|
|
939
|
-
className: "manager-office__section-title",
|
|
940
|
-
children: [/* @__PURE__ */ jsx(MessageSquareIcon, {}), "Work"]
|
|
941
|
-
})
|
|
942
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
943
|
-
className: "manager-office__section-content",
|
|
944
|
-
children: employee.work.length ? /* @__PURE__ */ jsx("ul", {
|
|
945
|
-
className: "manager-office__work-list sigvelo-stack-list",
|
|
946
|
-
children: employee.work.map((work) => /* @__PURE__ */ jsx("li", { children: workingSetOf(work).length ? /* @__PURE__ */ jsx(WorkLane, {
|
|
947
|
-
employee,
|
|
948
|
-
now,
|
|
949
|
-
renderLink,
|
|
950
|
-
work
|
|
951
|
-
}) : /* @__PURE__ */ jsx(WorkLink, {
|
|
952
|
-
employee,
|
|
953
|
-
now,
|
|
954
|
-
placement: "row",
|
|
955
|
-
renderLink,
|
|
956
|
-
showEmployee: false,
|
|
957
|
-
work
|
|
958
|
-
}) }, work.id))
|
|
959
|
-
}) : /* @__PURE__ */ jsx("p", {
|
|
960
|
-
className: "manager-office__section-empty",
|
|
961
|
-
children: "No work yet."
|
|
962
|
-
})
|
|
963
|
-
})]
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
function ManagerOfficeSchedules({ className, ...props }) {
|
|
967
|
-
const employee = useEmployee();
|
|
968
|
-
const { renderLink } = useOffice();
|
|
969
|
-
return /* @__PURE__ */ jsx("section", {
|
|
970
|
-
...props,
|
|
971
|
-
className: cx("manager-office__section", className),
|
|
972
|
-
"aria-label": "Schedules",
|
|
973
|
-
children: /* @__PURE__ */ jsxs(Collapsible.Root, {
|
|
974
|
-
defaultOpen: true,
|
|
975
|
-
children: [/* @__PURE__ */ jsxs(Button, {
|
|
976
|
-
render: /* @__PURE__ */ jsx(Collapsible.Trigger, { unstyled: true }),
|
|
977
|
-
type: "button",
|
|
978
|
-
variant: "ghost",
|
|
979
|
-
color: "neutral",
|
|
980
|
-
size: "sm",
|
|
981
|
-
className: "manager-office__schedule-trigger",
|
|
982
|
-
children: [/* @__PURE__ */ jsxs("span", {
|
|
983
|
-
className: "manager-office__identity",
|
|
984
|
-
children: [/* @__PURE__ */ jsx(CalendarIcon, {}), /* @__PURE__ */ jsx("strong", { children: "Schedules" })]
|
|
985
|
-
}), /* @__PURE__ */ jsx(ChevronDownIcon, { className: "sigvelo-disclosure-chevron" })]
|
|
986
|
-
}), /* @__PURE__ */ jsx(Collapsible.Panel, {
|
|
987
|
-
unstyled: true,
|
|
988
|
-
children: employee.schedules.length ? /* @__PURE__ */ jsx("ul", {
|
|
989
|
-
className: "manager-office__schedule-list sigvelo-stack-list",
|
|
990
|
-
children: employee.schedules.map((schedule) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(LinkButton, {
|
|
991
|
-
render: renderLink({
|
|
992
|
-
kind: "schedule",
|
|
993
|
-
employee,
|
|
994
|
-
schedule
|
|
995
|
-
}),
|
|
996
|
-
variant: "ghost",
|
|
997
|
-
color: "neutral",
|
|
998
|
-
size: "sm",
|
|
999
|
-
className: "manager-office__schedule-link",
|
|
1000
|
-
children: [
|
|
1001
|
-
schedule.enabled ? /* @__PURE__ */ jsx(CalendarIcon, {}) : /* @__PURE__ */ jsx(PauseIcon, {}),
|
|
1002
|
-
/* @__PURE__ */ jsxs("span", {
|
|
1003
|
-
className: "manager-office__identity",
|
|
1004
|
-
children: [/* @__PURE__ */ jsx("strong", {
|
|
1005
|
-
className: "sigvelo-truncate",
|
|
1006
|
-
children: schedule.name
|
|
1007
|
-
}), /* @__PURE__ */ jsx("small", {
|
|
1008
|
-
className: "sigvelo-truncate",
|
|
1009
|
-
children: scheduleDetail(schedule)
|
|
1010
|
-
})]
|
|
1011
|
-
}),
|
|
1012
|
-
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "manager-office__row-chevron" })
|
|
1013
|
-
]
|
|
1014
|
-
}) }, schedule.id))
|
|
1015
|
-
}) : /* @__PURE__ */ jsx("p", {
|
|
1016
|
-
className: "manager-office__section-empty",
|
|
1017
|
-
children: "No schedules yet."
|
|
1018
|
-
})
|
|
1019
|
-
})]
|
|
1020
|
-
})
|
|
1021
|
-
});
|
|
1022
|
-
}
|
|
1023
|
-
function ManagerOfficeChannels({ className, ...props }) {
|
|
1024
|
-
const employee = useEmployee();
|
|
1025
|
-
return /* @__PURE__ */ jsxs("section", {
|
|
1026
|
-
...props,
|
|
1027
|
-
className: cx("manager-office__section", "manager-office__channels", className),
|
|
1028
|
-
children: [/* @__PURE__ */ jsx(AppTopBar.Root, {
|
|
1029
|
-
className: "manager-office__channels-header",
|
|
1030
|
-
"aria-label": "Channels controls",
|
|
1031
|
-
titleAlign: "start",
|
|
1032
|
-
children: /* @__PURE__ */ jsxs(AppTopBar.Title, {
|
|
1033
|
-
className: "manager-office__channels-title",
|
|
1034
|
-
render: /* @__PURE__ */ jsx("h2", { "aria-label": "Channels" }),
|
|
1035
|
-
children: [/* @__PURE__ */ jsx(LinkIcon, { "aria-hidden": "true" }), "Channels"]
|
|
1036
|
-
})
|
|
1037
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
1038
|
-
className: "manager-office__section-content",
|
|
1039
|
-
children: employee.channels.length ? /* @__PURE__ */ jsx("ul", {
|
|
1040
|
-
className: "manager-office__channel-list sigvelo-stack-list",
|
|
1041
|
-
children: employee.channels.map((channel) => /* @__PURE__ */ jsx(ChannelRow, { channel }, channel.id))
|
|
1042
|
-
}) : /* @__PURE__ */ jsx("p", {
|
|
1043
|
-
className: "manager-office__section-empty",
|
|
1044
|
-
children: "Nothing connected yet."
|
|
1045
|
-
})
|
|
1046
|
-
})]
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
function ManagerOfficeMain({ render, ref, ...props }) {
|
|
1050
|
-
return useRender({
|
|
1051
|
-
defaultTagName: "main",
|
|
1052
|
-
render,
|
|
1053
|
-
ref,
|
|
1054
|
-
props: mergeProps({ className: "manager-office__main" }, props)
|
|
1055
|
-
});
|
|
1056
|
-
}
|
|
1057
|
-
function ManagerOfficeColumns({ render, ref, ...props }) {
|
|
1058
|
-
return useRender({
|
|
1059
|
-
defaultTagName: "div",
|
|
1060
|
-
render,
|
|
1061
|
-
ref,
|
|
1062
|
-
props: mergeProps({ className: "manager-office__employee-columns" }, props)
|
|
1063
|
-
});
|
|
1064
|
-
}
|
|
1065
|
-
function ManagerOfficeAside({ render, ref, ...props }) {
|
|
1066
|
-
return useRender({
|
|
1067
|
-
defaultTagName: "aside",
|
|
1068
|
-
render,
|
|
1069
|
-
ref,
|
|
1070
|
-
props: mergeProps({ className: "manager-office__employee-aside" }, props)
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
/** Honest disconnected state; the host chooses when and where to display it. */
|
|
1074
|
-
function ManagerOfficeConnectionState({ employee }) {
|
|
1075
|
-
return /* @__PURE__ */ jsx("div", {
|
|
1076
|
-
"data-recipe": "page",
|
|
1077
|
-
children: /* @__PURE__ */ jsx(EmptyState, {
|
|
1078
|
-
icon: employee.status === "connecting" ? /* @__PURE__ */ jsx(SpinnerIcon, {}) : /* @__PURE__ */ jsx(MonitorIcon, {}),
|
|
1079
|
-
title: `${employee.name} is ${statusLabels[employee.status].toLowerCase()}`,
|
|
1080
|
-
description: employee.statusDescription
|
|
1081
|
-
})
|
|
1082
|
-
});
|
|
1083
|
-
}
|
|
1084
|
-
/** Office data and relative-time boundary; hosts compose their shell and routed content. */
|
|
1085
|
-
function ManagerOfficeRoot({ employees, renderLink, render, ref, ...props }) {
|
|
1086
|
-
const [now, setNow] = React.useState(Date.now);
|
|
1087
|
-
React.useEffect(() => {
|
|
1088
|
-
const interval = window.setInterval(() => setNow(Date.now()), 6e4);
|
|
1089
|
-
return () => window.clearInterval(interval);
|
|
1090
|
-
}, []);
|
|
1091
|
-
const profileColors = React.useMemo(() => rosterProfileColors(employees), [employees]);
|
|
1092
|
-
const value = React.useMemo(() => ({
|
|
1093
|
-
employees,
|
|
1094
|
-
renderLink,
|
|
1095
|
-
now,
|
|
1096
|
-
profileColors
|
|
1097
|
-
}), [
|
|
1098
|
-
employees,
|
|
1099
|
-
renderLink,
|
|
1100
|
-
now,
|
|
1101
|
-
profileColors
|
|
1102
|
-
]);
|
|
1103
|
-
const element = useRender({
|
|
1104
|
-
defaultTagName: "div",
|
|
1105
|
-
render,
|
|
1106
|
-
ref,
|
|
1107
|
-
props: mergeProps({ className: "manager-office" }, props)
|
|
1108
|
-
});
|
|
1109
|
-
return /* @__PURE__ */ jsx(OfficeContext.Provider, {
|
|
1110
|
-
value,
|
|
1111
|
-
children: /* @__PURE__ */ jsx(Tooltip.Provider, { children: element })
|
|
1112
|
-
});
|
|
1113
|
-
}
|
|
1114
|
-
const ManagerOffice = {
|
|
1115
|
-
Root: ManagerOfficeRoot,
|
|
1116
|
-
Main: ManagerOfficeMain,
|
|
1117
|
-
Attention: ManagerOfficeAttention,
|
|
1118
|
-
Employee: ManagerOfficeEmployeeRoot,
|
|
1119
|
-
EmployeeHeader: ManagerOfficeEmployeeHeader,
|
|
1120
|
-
Handoffs: ManagerOfficeHandoffs,
|
|
1121
|
-
Columns: ManagerOfficeColumns,
|
|
1122
|
-
Aside: ManagerOfficeAside,
|
|
1123
|
-
Work: ManagerOfficeWorkSection,
|
|
1124
|
-
Schedules: ManagerOfficeSchedules,
|
|
1125
|
-
Channels: ManagerOfficeChannels,
|
|
1126
|
-
ConnectionState: ManagerOfficeConnectionState
|
|
1127
|
-
};
|
|
1128
|
-
//#endregion
|
|
1129
|
-
export { ManagerOfficeSidebar as n, ManagerOfficeSidebarAlert as r, ManagerOffice as t };
|