mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-12-05 13:56:25 +00:00
feat(p2): name the busy send choices "Steer" and "Follow up"
Some checks are pending
Some checks are pending
This commit is contained in:
parent
fbde969450
commit
d36266e066
3 changed files with 4 additions and 4 deletions
|
|
@ -143,7 +143,7 @@ node:
|
|||
in a new branch instead. The composer has one Send button: a tap sends (steers while a run is busy); a long press
|
||||
on it (touch), a right-click, the Menu key or Shift+F10, or ArrowUp while it has focus opens its menu of both ways
|
||||
to send (Elanor's `Menu`, opened by Send's own handlers: a trigger would open on the click that sends): Send and
|
||||
"Send in a new branch" while idle, steering and "Queue as a follow-up" while a run is busy (owner decisions: one
|
||||
"Send in a new branch" while idle, "Steer" and "Follow up" while a run is busy (owner decisions: one
|
||||
button, no second control; Elanor's component; it replaced the Steer toggle). Alt+Enter is the second way at once.
|
||||
The menu takes the focus and gives it back when it closes (Escape returns to Send); opened from the keyboard or a
|
||||
mouse its first item has it. On a phone the keyboard closes while the menu is open. Under the session in the sidebar, from two branches on, one row per
|
||||
|
|
|
|||
|
|
@ -1258,8 +1258,8 @@ function SessionChat({ sessionId, conversationId }: { sessionId: string; convers
|
|||
);
|
||||
const sends: { send: SendChoice; alternate?: SendChoice } = busy
|
||||
? {
|
||||
send: { label: "Steer the current run", run: () => send("steer") },
|
||||
alternate: { label: "Queue as a follow-up", run: () => send("followUp") },
|
||||
send: { label: "Steer", run: () => send("steer") },
|
||||
alternate: { label: "Follow up", run: () => send("followUp") },
|
||||
}
|
||||
: {
|
||||
send: { label: "Send", run: () => send("steer") },
|
||||
|
|
|
|||
|
|
@ -501,7 +501,7 @@ describe("branches in the browser", { skip: !browserTests }, () => {
|
|||
await browser.click(".composer button.send");
|
||||
await browser.wait(`document.querySelector('.composer button.stop')`);
|
||||
await browser.evaluate(input("while busy"));
|
||||
assert.deepEqual(await rightClick(), ["Steer the current run", "Queue as a follow-up"]);
|
||||
assert.deepEqual(await rightClick(), ["Steer", "Follow up"]);
|
||||
await key("Escape", 27);
|
||||
await browser.wait(`!document.querySelector('.send-options')`);
|
||||
await browser.click(".composer button.stop");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue