feat(quick-pane): promote chats into full sessions
This commit is contained in:
@@ -242,9 +242,9 @@ test("Quick Pane uses native dimensions and request-first compact layout", async
|
||||
},
|
||||
{
|
||||
width: 640,
|
||||
height: 240,
|
||||
height: 360,
|
||||
minWidth: 520,
|
||||
minHeight: 240,
|
||||
minHeight: 360,
|
||||
transparent: true,
|
||||
},
|
||||
);
|
||||
@@ -257,7 +257,7 @@ test("Quick Pane uses native dimensions and request-first compact layout", async
|
||||
);
|
||||
assert.match(nativeSource, /get_or_create_quick_pane/);
|
||||
assert.match(nativeSource, /fn resize_quick_pane/);
|
||||
assert.match(nativeSource, /height\.clamp\(240\.0, 520\.0\)/);
|
||||
assert.match(nativeSource, /height\.clamp\(360\.0, 520\.0\)/);
|
||||
assert.match(source, /new ResizeObserver\(resizeToContent\)/);
|
||||
assert.match(source, /invoke\("resize_quick_pane", \{ height \}\)/);
|
||||
assert.doesNotMatch(source, /onCloseRequested/);
|
||||
@@ -267,7 +267,10 @@ test("Quick Pane uses native dimensions and request-first compact layout", async
|
||||
assert.match(source, /className=\{`quick-pane-exchange/);
|
||||
assert.match(source, /onOpen=\{handleModelMenuOpen\}/);
|
||||
assert.match(source, /onClose=\{handleModelMenuClose\}/);
|
||||
assert.match(source, /requestPaneResize\(520\)/);
|
||||
assert.match(source, /requestPaneResize\(QUICK_PANE_MAX_HEIGHT\)/);
|
||||
assert.match(source, /const QUICK_PANE_MIN_HEIGHT = 360/);
|
||||
assert.match(source, /const QUICK_PANE_MAX_HEIGHT = 520/);
|
||||
assert.match(source, /height = clampQuickPaneHeight\(height\)/);
|
||||
assert.match(source, /if \(modelMenuOpenRef\.current\) return;/);
|
||||
assert.match(source, /submittedPromptTurnsRef/);
|
||||
assert.match(source, /function elapsedLabel/);
|
||||
@@ -324,6 +327,17 @@ test("Quick Pane uses native dimensions and request-first compact layout", async
|
||||
stylesheet,
|
||||
/\.quick-pane-header-actions\s*\{[^}]*overflow:\s*(?:hidden|clip)/,
|
||||
);
|
||||
assert.match(
|
||||
stylesheet,
|
||||
/\.quick-pane-toolbar-control\s*\{[\s\S]*?height:\s*27px[\s\S]*?padding:\s*0 8px[\s\S]*?border:[\s\S]*?border-radius:[\s\S]*?background:[\s\S]*?font:/,
|
||||
);
|
||||
assert.match(stylesheet, /\.quick-pane-toolbar-control:hover:not\(:disabled\)/);
|
||||
assert.match(stylesheet, /\.quick-pane-toolbar-control:focus-visible/);
|
||||
assert.match(stylesheet, /\.quick-pane-toolbar-control:disabled/);
|
||||
assert.match(source, /triggerClassName="quick-pane-toolbar-control"/);
|
||||
assert.match(source, /controlClassName="quick-pane-toolbar-control"/);
|
||||
assert.match(source, /className="quick-pane-toolbar-control quick-pane-action"/);
|
||||
assert.match(source, /className="quick-pane-toolbar-control quick-pane-close"/);
|
||||
assert.match(stylesheet, /#f0a347/);
|
||||
assert.doesNotMatch(stylesheet, /#8aa9d6|#46494f|#23252a/);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user