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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-sidebar",
3
- "version": "0.1.11",
3
+ "version": "0.1.13",
4
4
  "description": "Visual sidebar for managing todos, tasks, and context alongside Claude Code",
5
5
  "author": "Tyler Nishida",
6
6
  "license": "MIT",
@@ -990,27 +990,28 @@ export class RawSidebar {
990
990
 
991
991
  // === INBOX SECTION ===
992
992
  const inboxTasks = this.getTasksForSection("inbox");
993
- if (inboxTasks.length > 0 || inputMode === "add") {
994
- const count = inboxTasks.length > 0 ? ` (${inboxTasks.length})` : '';
995
- lines.push(`${bg} ${bold}${text}Inbox${count}${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
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
- // Add new task input (in inbox section)
999
- if (inputMode === "add") {
1000
- inputLineRow = lines.length + 1;
1001
- this.inputRow = inputLineRow;
1002
- const wrappedLines = wrapText(inputBuffer, maxContentWidth - 2);
1003
- if (wrappedLines.length === 0) wrappedLines.push('');
1004
- wrappedLines.forEach((line, i) => {
1005
- const prefix = i === 0 ? ' [ ] ' : ' ';
1006
- const padding = ' '.repeat(Math.max(0, maxContentWidth - 2 - line.length));
1007
- lines.push(`${bg} ${prefix}${text}${line}${padding}${ansi.reset}`);
1008
- });
1009
- } else if (this.focused && selectedSection === "inbox") {
1010
- lines.push(`${bg} ${ansi.gray} [ ] press a to add${ansi.reset}${bg}${ansi.clearToEnd}${ansi.reset}`);
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
- } else {
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)