Skip to content

Commit 6979e63

Browse files
committed
restyle loop list rows to match templates
1 parent 1aed4f2 commit 6979e63

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

packages/ui/src/features/loops/components/LoopRow.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ export function LoopRow({
2525
creatorLookupComplete?: boolean;
2626
}) {
2727
const description = loop.description.trim();
28-
const triggerLabel = loop.triggers.length === 1 ? "trigger" : "triggers";
29-
const triggerSummary =
30-
loop.triggers.length === 0
31-
? "No triggers configured"
32-
: `${loop.triggers.length} ${triggerLabel}`;
3328

3429
let creatorLabel: string | null = null;
3530
if (loop.visibility === "team" && creatorError) {
@@ -46,7 +41,7 @@ export function LoopRow({
4641
: "Created by a former organization member";
4742
}
4843

49-
const metadata = [triggerSummary];
44+
const metadata: string[] = [];
5045
const notificationDestinations = summarizeNotificationDestinations(
5146
loop.notifications,
5247
);
@@ -71,14 +66,16 @@ export function LoopRow({
7166
<Badge color={loopStatusColor(loop)}>{loopStatusLabel(loop)}</Badge>
7267
<Badge color="gray">{loop.visibility}</Badge>
7368
</Flex>
74-
<Text className="text-[12px] text-gray-11 leading-snug">
75-
{metadata.join(" · ")}
76-
</Text>
7769
{description ? (
78-
<Text className="truncate text-[12px] text-gray-10 leading-snug">
70+
<Text className="truncate text-[12px] text-gray-11 leading-snug">
7971
{description}
8072
</Text>
8173
) : null}
74+
{metadata.length > 0 ? (
75+
<Text className="text-(--accent-11) text-[11px] leading-snug">
76+
{metadata.join(" · ")}
77+
</Text>
78+
) : null}
8279
</Flex>
8380
</Flex>
8481
<Flex align="center" gap="3" className="shrink-0">

0 commit comments

Comments
 (0)