refactor(ask): reorganize ask flow internals

This commit is contained in:
Erik Kotsiuba
2026-04-17 19:58:58 +02:00
parent c1ac241655
commit 87cbfa546e
25 changed files with 2448 additions and 1639 deletions
+28
View File
@@ -0,0 +1,28 @@
export const UI_DIMENSIONS = {
boxMinWidth: 10,
callLabelTruncateWidth: 50,
editorContentPadding: 5,
editorIndentedPadding: 7,
editorMinWidth: 8,
previewWideMinWidth: 90,
previewMinRightWidth: 24,
previewLeftMinWidth: 22,
previewLeftMaxWidth: 34,
previewLeftRatio: 0.34,
} as const;
export const UI_TEXT = {
questionNoteTitle: "Question note",
reviewTitle: "Review your answers",
readyToSubmit: "Ready to submit your answers?",
unanswered: "→ (unanswered)",
footerInput: " Enter submit · Esc save and close · Tab/←→ save and navigate",
footerNote: " Enter save · Esc save and close · Tab/←→ save and navigate",
footerSubmit: " ↑↓ select · Enter confirm · Esc cancel",
footerMulti:
" ⇆ tab · ↑↓ select · Space toggle · Enter continue · N option note · Ctrl+N question note · Esc dismiss · 1-9 quick toggle",
footerDefault:
" ⇆ tab · ↑↓ select · Enter confirm · N option note · Ctrl+N question note · Esc dismiss",
hintSave: "{newLineHint} newline · Enter save · Esc save and close",
hintSubmit: "{newLineHint} newline · Enter submit · Esc save and close",
} as const;