@deck-ui/review 0.2.0 → 0.3.0
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/deliverable-card.tsx +2 -2
- package/src/review-detail.tsx +3 -3
- package/src/review-item.tsx +10 -10
- package/src/review-sidebar.tsx +6 -6
- package/src/review-split.tsx +1 -1
package/package.json
CHANGED
package/src/deliverable-card.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import ReactMarkdown from "react-markdown";
|
|
|
3
3
|
|
|
4
4
|
export function DeliverableCard({ content }: { content: string }) {
|
|
5
5
|
return (
|
|
6
|
-
<div className="rounded-xl border border-
|
|
6
|
+
<div className="rounded-xl border border-border bg-white p-6 shadow-[0_1px_3px_rgba(0,0,0,0.04)]">
|
|
7
7
|
<div className="prose prose-sm prose-stone max-w-none text-foreground">
|
|
8
8
|
<ReactMarkdown>{content}</ReactMarkdown>
|
|
9
9
|
</div>
|
|
@@ -16,7 +16,7 @@ export function UserFeedback({ content }: { content: string }) {
|
|
|
16
16
|
<div className="flex justify-end">
|
|
17
17
|
<div
|
|
18
18
|
className={cn(
|
|
19
|
-
"max-w-[70%] rounded-3xl bg-
|
|
19
|
+
"max-w-[70%] rounded-3xl bg-muted px-5 py-2.5",
|
|
20
20
|
"text-sm text-foreground",
|
|
21
21
|
)}
|
|
22
22
|
>
|
package/src/review-detail.tsx
CHANGED
|
@@ -74,11 +74,11 @@ export function ReviewDetail({
|
|
|
74
74
|
return (
|
|
75
75
|
<div className="flex-1 flex flex-col min-h-0 overflow-hidden">
|
|
76
76
|
{/* Header */}
|
|
77
|
-
<div className="shrink-0 px-4 py-3 border-b border-
|
|
77
|
+
<div className="shrink-0 px-4 py-3 border-b border-border">
|
|
78
78
|
<div className="max-w-3xl mx-auto flex items-center gap-3">
|
|
79
79
|
<button
|
|
80
80
|
onClick={onBack}
|
|
81
|
-
className="flex items-center justify-center size-8 rounded-lg text-muted-foreground hover:text-foreground hover:bg-
|
|
81
|
+
className="flex items-center justify-center size-8 rounded-lg text-muted-foreground hover:text-foreground hover:bg-accent transition-colors duration-200"
|
|
82
82
|
aria-label="Back to Review"
|
|
83
83
|
>
|
|
84
84
|
<ArrowLeft className="size-4" />
|
|
@@ -117,7 +117,7 @@ export function ReviewDetail({
|
|
|
117
117
|
</div>
|
|
118
118
|
|
|
119
119
|
{/* Footer -- input + approve button */}
|
|
120
|
-
<div className="shrink-0 px-4 py-3 border-t border-
|
|
120
|
+
<div className="shrink-0 px-4 py-3 border-t border-border">
|
|
121
121
|
<div className="max-w-3xl mx-auto flex items-center gap-2">
|
|
122
122
|
<Input
|
|
123
123
|
value={feedbackText}
|
package/src/review-item.tsx
CHANGED
|
@@ -12,17 +12,17 @@ function statusIndicator(status: RunStatus) {
|
|
|
12
12
|
case "needs_you":
|
|
13
13
|
return (
|
|
14
14
|
<span className="relative flex size-3 shrink-0">
|
|
15
|
-
<span className="absolute inline-flex size-full rounded-full bg-
|
|
15
|
+
<span className="absolute inline-flex size-full rounded-full bg-foreground" />
|
|
16
16
|
</span>
|
|
17
17
|
);
|
|
18
18
|
case "running":
|
|
19
19
|
return (
|
|
20
|
-
<Loader2 className="size-3.5 shrink-0 animate-spin text-
|
|
20
|
+
<Loader2 className="size-3.5 shrink-0 animate-spin text-muted-foreground" />
|
|
21
21
|
);
|
|
22
22
|
case "done":
|
|
23
23
|
case "approved":
|
|
24
24
|
return (
|
|
25
|
-
<span className="flex size-2.5 shrink-0 rounded-full border-[1.5px] border-
|
|
25
|
+
<span className="flex size-2.5 shrink-0 rounded-full border-[1.5px] border-muted-foreground/40" />
|
|
26
26
|
);
|
|
27
27
|
case "error":
|
|
28
28
|
case "failed":
|
|
@@ -33,7 +33,7 @@ function statusIndicator(status: RunStatus) {
|
|
|
33
33
|
);
|
|
34
34
|
default:
|
|
35
35
|
return (
|
|
36
|
-
<span className="flex size-2.5 shrink-0 rounded-full border-[1.5px] border-
|
|
36
|
+
<span className="flex size-2.5 shrink-0 rounded-full border-[1.5px] border-muted-foreground/30" />
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -81,7 +81,7 @@ export function ReviewItem({ item, onClick }: ReviewItemProps) {
|
|
|
81
81
|
onClick={onClick}
|
|
82
82
|
className={cn(
|
|
83
83
|
"w-full text-left flex items-center gap-3 px-4 py-3 transition-colors duration-200",
|
|
84
|
-
"hover:bg-
|
|
84
|
+
"hover:bg-accent/30",
|
|
85
85
|
)}
|
|
86
86
|
>
|
|
87
87
|
{/* Status indicator */}
|
|
@@ -95,14 +95,14 @@ export function ReviewItem({ item, onClick }: ReviewItemProps) {
|
|
|
95
95
|
className={cn(
|
|
96
96
|
"text-sm truncate",
|
|
97
97
|
isUnreviewed
|
|
98
|
-
? "font-semibold text-
|
|
99
|
-
: "font-normal text-
|
|
98
|
+
? "font-semibold text-foreground"
|
|
99
|
+
: "font-normal text-foreground/70",
|
|
100
100
|
isFailed && "text-red-600",
|
|
101
101
|
)}
|
|
102
102
|
>
|
|
103
103
|
{item.title}
|
|
104
104
|
</p>
|
|
105
|
-
<p className="text-xs text-
|
|
105
|
+
<p className="text-xs text-muted-foreground truncate mt-0.5">
|
|
106
106
|
{displaySubtitle}
|
|
107
107
|
{isRunning && item.title !== item.subtitle && (
|
|
108
108
|
<span className="animate-pulse"> · Running...</span>
|
|
@@ -111,13 +111,13 @@ export function ReviewItem({ item, onClick }: ReviewItemProps) {
|
|
|
111
111
|
</div>
|
|
112
112
|
|
|
113
113
|
{/* Timestamp */}
|
|
114
|
-
<span className="text-xs text-
|
|
114
|
+
<span className="text-xs text-muted-foreground/50 shrink-0">
|
|
115
115
|
{relativeTime(item.createdAt)}
|
|
116
116
|
</span>
|
|
117
117
|
|
|
118
118
|
{/* Right chevron for actionable items */}
|
|
119
119
|
{isUnreviewed && (
|
|
120
|
-
<ChevronRight className="size-4 shrink-0 text-
|
|
120
|
+
<ChevronRight className="size-4 shrink-0 text-muted-foreground" />
|
|
121
121
|
)}
|
|
122
122
|
</button>
|
|
123
123
|
);
|
package/src/review-sidebar.tsx
CHANGED
|
@@ -33,16 +33,16 @@ export function ReviewSidebar({
|
|
|
33
33
|
}, [items]);
|
|
34
34
|
|
|
35
35
|
return (
|
|
36
|
-
<div className="flex flex-col h-full bg-
|
|
36
|
+
<div className="flex flex-col h-full bg-secondary border-r border-border">
|
|
37
37
|
<div className="flex-1 overflow-y-auto px-2 py-3">
|
|
38
38
|
{grouped.map((group) => (
|
|
39
39
|
<div key={group.label} className="mb-1">
|
|
40
40
|
<div className="flex items-center justify-between px-3 py-1">
|
|
41
|
-
<span className="text-[11px] text-
|
|
41
|
+
<span className="text-[11px] text-muted-foreground">
|
|
42
42
|
{group.label}
|
|
43
43
|
</span>
|
|
44
44
|
{group.items.length > 0 && (
|
|
45
|
-
<span className="text-[11px] text-
|
|
45
|
+
<span className="text-[11px] text-muted-foreground/60">
|
|
46
46
|
{group.items.length}
|
|
47
47
|
</span>
|
|
48
48
|
)}
|
|
@@ -55,15 +55,15 @@ export function ReviewSidebar({
|
|
|
55
55
|
className={cn(
|
|
56
56
|
"w-full text-left px-3 py-1.5 rounded-lg transition-colors duration-100 text-[13px] truncate",
|
|
57
57
|
item.id === selectedId
|
|
58
|
-
? "bg-
|
|
59
|
-
: "text-
|
|
58
|
+
? "bg-accent text-foreground"
|
|
59
|
+
: "text-accent-foreground hover:bg-accent/50",
|
|
60
60
|
)}
|
|
61
61
|
>
|
|
62
62
|
{item.title}
|
|
63
63
|
</button>
|
|
64
64
|
))
|
|
65
65
|
) : (
|
|
66
|
-
<p className="px-3 py-1 text-[12px] text-
|
|
66
|
+
<p className="px-3 py-1 text-[12px] text-muted-foreground/60 italic">
|
|
67
67
|
None
|
|
68
68
|
</p>
|
|
69
69
|
)}
|
package/src/review-split.tsx
CHANGED
|
@@ -48,7 +48,7 @@ export function ReviewSplit({
|
|
|
48
48
|
<ReviewDetailPanel item={selectedItem} renderChat={renderChat} />
|
|
49
49
|
) : (
|
|
50
50
|
<div className="flex h-full items-center justify-center bg-white">
|
|
51
|
-
<p className="text-sm text-
|
|
51
|
+
<p className="text-sm text-muted-foreground">{emptyMessage}</p>
|
|
52
52
|
</div>
|
|
53
53
|
)}
|
|
54
54
|
</div>
|