feat: add review shortcut confirmation setting

This commit is contained in:
Erik Kotsiuba
2026-04-29 02:40:29 +02:00
parent 2bf85b3f6f
commit 67891d147f
16 changed files with 385 additions and 54 deletions
+28
View File
@@ -111,6 +111,34 @@ test("submit screen stacks review above actions on narrow screens", () => {
]);
});
test("submit screen can show a review shortcut hint below the actions", () => {
const state = createInitialState({
questions: [
{
id: "q1",
label: "Color",
prompt: "Pick one color.",
options: [{ value: "blue", label: "Blue" }],
},
],
});
const lines: string[] = [];
renderSubmitScreen(
lines,
state,
plainTheme(),
UI_DIMENSIONS.submitWideMinWidth - 14,
"Press 1, 2, or 3 twice to confirm a review action."
);
assert.equal(
lines.includes(" Press 1, 2, or 3 twice to confirm a review"),
true
);
assert.equal(lines.includes(" action."), true);
});
test("submit screen shows notes only for answered questions in submit mode", () => {
let state = createInitialState({
questions: [