fix(assistant): prevent panel focus capture
This commit is contained in:
1 parent
20fd49f082
commit
74c7754890
2 files changed
+19
-19
No files matched your search
@@ -31,6 +31,9 @@ fields, selectors, and editable content.
|
|||||||
The **Assistant** board widget embeds the same persisted conversation and full interaction surface directly
|
The **Assistant** board widget embeds the same persisted conversation and full interaction surface directly
|
||||||
on a dashboard. By default it follows the current conversation. Widget settings can instead pin a specific
|
on a dashboard. By default it follows the current conversation. Widget settings can instead pin a specific
|
||||||
conversation; the conversation picker stays hidden until **Pinned conversation** is selected.
|
conversation; the conversation picker stays hidden until **Pinned conversation** is selected.
|
||||||
|
The Shift+A panel is non-modal: opening it focuses its composer, but it does not capture focus from the board.
|
||||||
|
Users can continue typing in an Assistant widget or interacting with other dashboard controls while the panel
|
||||||
|
is open.
|
||||||
|
|
||||||
When the assistant is unavailable, its command-menu result remains visible but disabled and explains that
|
When the assistant is unavailable, its command-menu result remains visible but disabled and explains that
|
||||||
an administrator must configure and enable it.
|
an administrator must configure and enable it.
|
||||||
|
|||||||
@@ -43,7 +43,6 @@ import {
|
|||||||
Collapse,
|
Collapse,
|
||||||
Combobox,
|
Combobox,
|
||||||
Divider,
|
Divider,
|
||||||
FocusTrap,
|
|
||||||
Group,
|
Group,
|
||||||
Image,
|
Image,
|
||||||
Loader,
|
Loader,
|
||||||
@@ -2608,24 +2607,22 @@ export const AssistantPanel = ({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{opened && (
|
{opened && (
|
||||||
<FocusTrap active>
|
<dialog className={classes.floatingPanel} aria-label={t("title")} open>
|
||||||
<dialog className={classes.floatingPanel} aria-label={t("title")} open>
|
<AssistantConversationSurface
|
||||||
<AssistantConversationSurface
|
isRunning={isRunning}
|
||||||
isRunning={isRunning}
|
pendingAction={pendingAction}
|
||||||
pendingAction={pendingAction}
|
modelId={modelId}
|
||||||
modelId={modelId}
|
models={models}
|
||||||
models={models}
|
modelOptionsLoading={modelOptionsLoading}
|
||||||
modelOptionsLoading={modelOptionsLoading}
|
reasoning={reasoning}
|
||||||
reasoning={reasoning}
|
isRefreshing={isRefreshing}
|
||||||
isRefreshing={isRefreshing}
|
onRefresh={onRefresh}
|
||||||
onRefresh={onRefresh}
|
onModelChange={onModelChange}
|
||||||
onModelChange={onModelChange}
|
onReasoningChange={onReasoningChange}
|
||||||
onReasoningChange={onReasoningChange}
|
autoFocusComposer
|
||||||
autoFocusComposer
|
onMinimize={onClose}
|
||||||
onMinimize={onClose}
|
/>
|
||||||
/>
|
</dialog>
|
||||||
</dialog>
|
|
||||||
</FocusTrap>
|
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user