fix(tui): render input bar in task detail view (#477)
The task detail view was setting inputMode for status/assign/priority/ comment but never rendering the input bar — keystrokes were captured but invisible. Add input bar rendering before the footer in renderTaskDetail().
This commit is contained in:
parent
1acbf8e053
commit
034865201e
|
|
@ -535,6 +535,19 @@ function renderTaskDetail() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Input bar (when editing from task detail)
|
||||||
|
if (state.inputMode) {
|
||||||
|
const label = state.inputLabel || 'Input';
|
||||||
|
const cursor = state.inputBuffer + '\u2588';
|
||||||
|
process.stdout.write(`\n ${ansi.bold(ansi.yellow(label + ':'))} ${cursor}\n`);
|
||||||
|
if (state.inputMode === 'edit-status') {
|
||||||
|
process.stdout.write(ansi.dim(' inbox/assigned/in_progress/review/done/failed esc cancel') + '\n');
|
||||||
|
} else {
|
||||||
|
process.stdout.write(ansi.dim(' enter submit esc cancel') + '\n');
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Footer
|
// Footer
|
||||||
if (state.actionMessage) process.stdout.write('\n' + ansi.green(` ${state.actionMessage}`) + '\n');
|
if (state.actionMessage) process.stdout.write('\n' + ansi.green(` ${state.actionMessage}`) + '\n');
|
||||||
process.stdout.write('\n' + ansi.dim(' esc back [s]tatus [a]ssign [p]riority [c]omment [r]efresh [q]uit') + '\n');
|
process.stdout.write('\n' + ansi.dim(' esc back [s]tatus [a]ssign [p]riority [c]omment [r]efresh [q]uit') + '\n');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue