Skip to content

Commit ebb42b3

Browse files
authored
feat: task detail UI cleanup (#18)
1 parent 74ee98d commit ebb42b3

File tree

11 files changed

+657
-548
lines changed

11 files changed

+657
-548
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"yaml": "^2.8.1"
6060
},
6161
"dependencies": {
62+
"@phosphor-icons/react": "^2.1.10",
6263
"@posthog/agent": "^1.4.0",
6364
"@radix-ui/react-icons": "^1.3.2",
6465
"@radix-ui/themes": "^3.2.1",

pnpm-lock.yaml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/renderer/components/Combobox.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ interface ComboboxProps {
1616
searchPlaceholder?: string;
1717
emptyMessage?: string;
1818
size?: "1" | "2" | "3";
19-
variant?: "classic" | "surface" | "soft" | "ghost";
19+
variant?: "classic" | "surface" | "soft" | "ghost" | "outline";
2020
renderItem?: (item: ComboboxItem) => ReactNode;
21+
icon?: ReactNode;
2122
side?: "top" | "bottom" | "left" | "right";
2223
align?: "start" | "center" | "end";
2324
}
@@ -32,6 +33,7 @@ export function Combobox({
3233
size = "2",
3334
variant = "surface",
3435
renderItem,
36+
icon,
3537
side = "bottom",
3638
align = "start",
3739
}: ComboboxProps) {
@@ -54,7 +56,10 @@ export function Combobox({
5456
<Popover.Trigger>
5557
<Button variant={variant} size={size} color="gray">
5658
<Flex justify="between" align="center" gap="2" width="100%">
57-
<Text size={size}>{displayValue}</Text>
59+
<Flex align="center" gap="2">
60+
{icon}
61+
<Text size={size}>{displayValue}</Text>
62+
</Flex>
5863
<ChevronDownIcon />
5964
</Flex>
6065
</Button>

0 commit comments

Comments
 (0)