cc-sidebar 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/RawSidebar.tsx +21 -23
package/package.json
CHANGED
|
@@ -990,27 +990,28 @@ export class RawSidebar {
|
|
|
990
990
|
|
|
991
991
|
// === INBOX SECTION ===
|
|
992
992
|
const inboxTasks = this.getTasksForSection("inbox");
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
993
|
+
const inboxCount = inboxTasks.length > 0 ? ` (${inboxTasks.length})` : '';
|
|
994
|
+
lines.push(`${bg} ${bold}${text}Inbox${inboxCount}${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
|
|
995
|
+
|
|
996
|
+
if (inboxTasks.length > 0) {
|
|
996
997
|
inboxTasks.forEach((task, index) => renderTask(task, index, "inbox"));
|
|
998
|
+
}
|
|
997
999
|
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
}
|
|
1012
|
-
lines.push(bgLine);
|
|
1000
|
+
// Add new task input (in inbox section)
|
|
1001
|
+
if (inputMode === "add") {
|
|
1002
|
+
inputLineRow = lines.length + 1;
|
|
1003
|
+
this.inputRow = inputLineRow;
|
|
1004
|
+
const wrappedLines = wrapText(inputBuffer, maxContentWidth - 2);
|
|
1005
|
+
if (wrappedLines.length === 0) wrappedLines.push('');
|
|
1006
|
+
wrappedLines.forEach((line, i) => {
|
|
1007
|
+
const prefix = i === 0 ? ' [ ] ' : ' ';
|
|
1008
|
+
const padding = ' '.repeat(Math.max(0, maxContentWidth - 2 - line.length));
|
|
1009
|
+
lines.push(`${bg} ${prefix}${text}${line}${padding}${ansi.reset}`);
|
|
1010
|
+
});
|
|
1011
|
+
} else if (inboxTasks.length === 0) {
|
|
1012
|
+
lines.push(`${bg} ${ansi.gray} [ ] press a to add${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
|
|
1013
1013
|
}
|
|
1014
|
+
lines.push(bgLine);
|
|
1014
1015
|
|
|
1015
1016
|
// === CLARIFIED SECTION ===
|
|
1016
1017
|
const clarifiedTasks = this.getTasksForSection("clarified");
|
|
@@ -1022,15 +1023,12 @@ export class RawSidebar {
|
|
|
1022
1023
|
|
|
1023
1024
|
// === IN PROGRESS SECTION ===
|
|
1024
1025
|
// Show the active task (sent from sidebar)
|
|
1025
|
-
lines.push(`${bg} ${bold}${text}In Progress${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
|
|
1026
|
-
|
|
1027
1026
|
if (activeTask) {
|
|
1027
|
+
lines.push(`${bg} ${bold}${text}In Progress${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
|
|
1028
1028
|
const content = activeTask.content.slice(0, maxContentWidth);
|
|
1029
1029
|
lines.push(`${bg} ${ansi.green}▸ ${content}${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
|
|
1030
|
-
|
|
1031
|
-
lines.push(`${bg} ${muted} (nothing active)${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
|
|
1030
|
+
lines.push(bgLine);
|
|
1032
1031
|
}
|
|
1033
|
-
lines.push(bgLine);
|
|
1034
1032
|
|
|
1035
1033
|
// === REVIEW SECTION ===
|
|
1036
1034
|
// Tasks here are awaiting user confirmation (same task that moved through the flow)
|