feat: simplify ask UI copy and note shortcuts

This commit is contained in:
Erik Kotsiuba
2026-04-19 16:32:27 +02:00
parent fcd1f1bce5
commit 9ab368ad6b
7 changed files with 39 additions and 19 deletions
+19
View File
@@ -103,3 +103,22 @@ test("ctrl+c dismisses the flow from both navigation and editing modes", () => {
kind: "dismiss",
});
});
test("note shortcuts use n for option notes and Shift+N for question notes", () => {
const navigation = createInitialState({
questions: [
{
id: "q1",
prompt: "Question?",
options: [{ value: "a", label: "A" }],
},
],
});
assert.deepEqual(getInputCommand(navigation, "n"), {
kind: "openOptionNote",
});
assert.deepEqual(getInputCommand(navigation, "N"), {
kind: "openQuestionNote",
});
});