kanban-lite 1.2.13 → 1.2.15
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/dist/cli.js +226 -2
- package/dist/extension.js +143 -1
- package/dist/mcp-server.js +140 -1
- package/dist/sdk/index.cjs +91 -1
- package/dist/sdk/index.mjs +91 -1
- package/dist/sdk/sdk/KanbanSDK.d.ts +38 -0
- package/dist/sdk/sdk/modules/comments.d.ts +33 -0
- package/dist/sdk/shared/types.d.ts +21 -0
- package/dist/standalone-webview/index.js +14 -14
- package/dist/standalone-webview/index.js.map +1 -1
- package/dist/standalone-webview/style.css +1 -1
- package/dist/standalone.js +143 -1
- package/package.json +1 -1
- package/src/cli/index.ts +33 -1
- package/src/mcp-server/index.ts +52 -0
- package/src/sdk/KanbanSDK.ts +51 -1
- package/src/sdk/modules/comments.ts +91 -0
- package/src/shared/types.ts +9 -0
- package/src/standalone/broadcastService.ts +40 -0
- package/src/standalone/internal/routes/tasks.ts +45 -1
- package/src/webview/App.tsx +31 -0
- package/src/webview/assets/main.css +42 -0
- package/src/webview/components/CommentsSection.tsx +28 -20
|
@@ -46,7 +46,7 @@ export function CommentsSection({ comments, onAddComment, onUpdateComment, onDel
|
|
|
46
46
|
{comments.map(comment => (
|
|
47
47
|
<div
|
|
48
48
|
key={comment.id}
|
|
49
|
-
className=
|
|
49
|
+
className={`card-comment-item${comment.streaming ? ' card-comment-streaming' : ''}`}
|
|
50
50
|
>
|
|
51
51
|
<span className="card-comment-avatar">
|
|
52
52
|
{comment.author.split(/\s+/).filter(Boolean).map(w => w[0]).join('').toUpperCase().slice(0, 2)}
|
|
@@ -54,25 +54,30 @@ export function CommentsSection({ comments, onAddComment, onUpdateComment, onDel
|
|
|
54
54
|
<div className="card-comment-bubble">
|
|
55
55
|
<div className="card-comment-meta">
|
|
56
56
|
<span className="card-comment-author">{comment.author}</span>
|
|
57
|
+
{comment.streaming && (
|
|
58
|
+
<span className="card-comment-streaming-badge" title="Being written by an agent…">streaming</span>
|
|
59
|
+
)}
|
|
57
60
|
<span className="card-comment-time">{timeAgo(comment.created)}</span>
|
|
58
|
-
|
|
59
|
-
<
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
61
|
+
{!comment.streaming && (
|
|
62
|
+
<div className="card-comment-actions">
|
|
63
|
+
<button
|
|
64
|
+
onClick={() => setEditingId(comment.id)}
|
|
65
|
+
className="p-1 rounded-full transition-colors vscode-hover-bg"
|
|
66
|
+
style={{ color: 'var(--vscode-descriptionForeground)' }}
|
|
67
|
+
title="Edit"
|
|
68
|
+
>
|
|
69
|
+
<Pencil size={11} />
|
|
70
|
+
</button>
|
|
71
|
+
<button
|
|
72
|
+
onClick={() => onDeleteComment(comment.id)}
|
|
73
|
+
className="p-1 rounded-full transition-colors hover:text-red-500"
|
|
74
|
+
style={{ color: 'var(--vscode-descriptionForeground)' }}
|
|
75
|
+
title="Delete"
|
|
76
|
+
>
|
|
77
|
+
<Trash2 size={11} />
|
|
78
|
+
</button>
|
|
79
|
+
</div>
|
|
80
|
+
)}
|
|
76
81
|
</div>
|
|
77
82
|
|
|
78
83
|
{editingId === comment.id ? (
|
|
@@ -88,7 +93,10 @@ export function CommentsSection({ comments, onAddComment, onUpdateComment, onDel
|
|
|
88
93
|
/>
|
|
89
94
|
</div>
|
|
90
95
|
) : (
|
|
91
|
-
<
|
|
96
|
+
<div className="card-comment-content-wrap">
|
|
97
|
+
<CommentBody content={comment.content} />
|
|
98
|
+
{comment.streaming && <span className="card-comment-cursor" aria-hidden="true" />}
|
|
99
|
+
</div>
|
|
92
100
|
)}
|
|
93
101
|
</div>
|
|
94
102
|
</div>
|