feat(quick-pane): polish compact chat controls
This commit is contained in:
@@ -11,7 +11,7 @@ test("Quick Pane polls snapshots, renders answers, and gates manual transcript h
|
||||
assert.match(source, /setInterval\(\(\) => void refresh\(\), 800\)/);
|
||||
assert.match(source, /<ReactMarkdown remarkPlugins=\{\[remarkGfm\]\}>/);
|
||||
assert.match(source, /className="quick-pane-notice escalation"/);
|
||||
assert.match(source, /className="quick-pane-notice continue"/);
|
||||
assert.match(source, /className="quick-pane-assistant-footer"/);
|
||||
assert.match(source, /Continue in full session/);
|
||||
assert.match(source, /Quick Pane transcript:/);
|
||||
assert.doesNotMatch(source, /maximumSeconds|Quick time budget/);
|
||||
@@ -212,9 +212,9 @@ test("Quick Pane uses native dimensions and request-first compact layout", async
|
||||
},
|
||||
{
|
||||
width: 640,
|
||||
height: 360,
|
||||
height: 240,
|
||||
minWidth: 520,
|
||||
minHeight: 360,
|
||||
minHeight: 240,
|
||||
transparent: true,
|
||||
},
|
||||
);
|
||||
@@ -227,13 +227,18 @@ 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\(360\.0, 520\.0\)/);
|
||||
assert.match(nativeSource, /height\.clamp\(240\.0, 520\.0\)/);
|
||||
assert.match(source, /new ResizeObserver\(resizeToContent\)/);
|
||||
assert.match(source, /invoke\("resize_quick_pane", \{ height \}\)/);
|
||||
assert.doesNotMatch(source, /onCloseRequested/);
|
||||
assert.match(source, /className="quick-pane-drag-strip"/);
|
||||
assert.match(source, /startDragging\(\)/);
|
||||
assert.match(source, /className="quick-pane-request"/);
|
||||
assert.match(source, /className="quick-pane-exchange"/);
|
||||
assert.match(source, /className="quick-pane-composer"/);
|
||||
assert.match(source, /className="quick-pane-composer-actions"/);
|
||||
assert.match(source, /replaceChat\(false, true\)/);
|
||||
assert.match(source, /replaceChat\(false, false\)/);
|
||||
assert.match(source, /className="quick-pane-send"/);
|
||||
assert.match(source, /ref=\{inputRef\}/);
|
||||
assert.match(source, /focusInput\(\)/);
|
||||
@@ -245,12 +250,18 @@ test("Quick Pane uses native dimensions and request-first compact layout", async
|
||||
assert.match(source, /event\.preventDefault\(\);\s*void run\(\);/);
|
||||
assert.match(
|
||||
stylesheet,
|
||||
/\.quick-pane-exchange[\s\S]*?flex: 1 1 auto[\s\S]*?overflow-y: auto/,
|
||||
/\.quick-pane-exchange[\s\S]*?flex: 1 1 auto[\s\S]*?overflow: hidden/,
|
||||
);
|
||||
assert.match(
|
||||
stylesheet,
|
||||
/\.quick-pane-transcript[\s\S]*?flex: 1 1 auto[\s\S]*?overflow-y: auto/,
|
||||
);
|
||||
assert.match(
|
||||
stylesheet,
|
||||
/\.quick-pane-composer[\s\S]*?height: 120px[\s\S]*?min-height: 110px[\s\S]*?max-height: 130px/,
|
||||
);
|
||||
assert.match(stylesheet, /\.quick-pane-drag-strip[\s\S]*?height: 8px/);
|
||||
assert.match(stylesheet, /\.quick-pane-composer-actions[\s\S]*?position: absolute/);
|
||||
assert.match(stylesheet, /\.quick-pane-send[\s\S]*?position: absolute/);
|
||||
assert.match(stylesheet, /@media \(max-width: 400px\)/);
|
||||
assert.match(stylesheet, /html,[\s\S]*?#root\s*\{[\s\S]*?overflow: hidden/);
|
||||
|
||||
Reference in New Issue
Block a user