Skip to content

Commit 070a131

Browse files
committed
Updates runs and pipelines designs
1 parent 04c01c1 commit 070a131

5 files changed

Lines changed: 33 additions & 35 deletions

File tree

src/components/Home/PipelineSection/PipelineRow.tsx

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const PipelineRow = withSuspenseWrapper(
107107

108108
return (
109109
<TableRow
110-
className="cursor-pointer hover:bg-muted/50 group"
110+
className="cursor-pointer hover:bg-muted/50 group text-xs h-10"
111111
onClick={handleRowClick}
112112
>
113113
<TableCell onClick={(e) => e.stopPropagation()}>
@@ -119,38 +119,36 @@ const PipelineRow = withSuspenseWrapper(
119119
/>
120120
</TableCell>
121121
<TableCell className="truncate max-w-96" title={name}>
122-
<BlockStack gap="0">
122+
<InlineStack gap="1" blockAlign="center">
123123
{name && name.length > MAX_TITLE_LENGTH ? (
124124
<TooltipProvider>
125125
<Tooltip>
126126
<TooltipTrigger asChild>
127-
<Paragraph>
127+
<span className="text-sm truncate">
128128
<HighlightText
129129
text={name.slice(0, MAX_TITLE_LENGTH) + "..."}
130130
query={searchQuery}
131131
/>
132-
</Paragraph>
132+
</span>
133133
</TooltipTrigger>
134134
<TooltipContent>{name}</TooltipContent>
135135
</Tooltip>
136136
</TooltipProvider>
137137
) : (
138-
<Paragraph>
138+
<span className="text-sm truncate">
139139
<HighlightText text={name ?? ""} query={searchQuery} />
140-
</Paragraph>
140+
</span>
141141
)}
142142
<MatchBadges
143143
matchedFields={matchedFields}
144144
matchedComponentNames={matchedComponentNames}
145145
searchQuery={searchQuery}
146146
componentQuery={componentQuery}
147147
/>
148-
</BlockStack>
148+
</InlineStack>
149149
</TableCell>
150150
<TableCell>
151-
<Paragraph tone="subdued" size="xs">
152-
{formattedDate}
153-
</Paragraph>
151+
<span className="text-xs text-muted-foreground">{formattedDate}</span>
154152
</TableCell>
155153
<TableCell className="max-w-64">
156154
{tags && tags.length > 0 && <TagList tags={tags} />}
@@ -161,8 +159,8 @@ const PipelineRow = withSuspenseWrapper(
161159
<TableCell>
162160
{name && <PipelineRunsButton pipelineName={name} />}
163161
</TableCell>
164-
<TableCell className="w-0">
165-
<InlineStack gap="1" blockAlign="center">
162+
<TableCell className="w-16">
163+
<InlineStack gap="1" blockAlign="center" wrap="nowrap">
166164
{name && <FavoriteToggle type="pipeline" id={name} name={name} />}
167165
<ConfirmationDialog
168166
trigger={
@@ -195,7 +193,7 @@ const PipelineRow = withSuspenseWrapper(
195193
<Paragraph>{props.name}</Paragraph>
196194
</TableCell>
197195
<TableCell>
198-
<Paragraph tone="subdued" size="xs">
196+
<Paragraph tone="subdued" size="sm">
199197
{formattedDate}
200198
</Paragraph>
201199
</TableCell>

src/components/Home/PipelineSection/PipelineSection.tsx

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { LoadingScreen } from "@/components/shared/LoadingScreen";
55
import NewPipelineButton from "@/components/shared/NewPipelineButton";
66
import QuickStartCards from "@/components/shared/QuickStart/QuickStartCards";
77
import { withSuspenseWrapper } from "@/components/shared/SuspenseWrapper";
8-
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
98
import { Button } from "@/components/ui/button";
109
import { Checkbox } from "@/components/ui/checkbox";
1110
import { Icon } from "@/components/ui/icon";
@@ -165,22 +164,12 @@ export const PipelineSection = withSuspenseWrapper(() => {
165164

166165
return (
167166
<BlockStack gap="4" className="w-full">
168-
<Alert variant="destructive">
169-
<Icon name="Terminal" />
170-
<AlertTitle>Heads up!</AlertTitle>
171-
<AlertDescription>
172-
Your pipelines are stored in your browser&apos;s local storage.
173-
Clearing your browser data or cookies will delete all saved pipelines.
174-
Consider exporting important pipelines to files for backup.
175-
</AlertDescription>
176-
</Alert>
177-
178167
<PipelineFiltersBar
179168
filters={filterBarProps}
180169
actions={<QuickStartButton />}
181170
/>
182171

183-
<Table>
172+
<Table className="text-sm">
184173
<TableHeader>
185174
<TableRow className="text-xs">
186175
<TableHead className="w-10">
@@ -224,7 +213,7 @@ export const PipelineSection = withSuspenseWrapper(() => {
224213
</Table>
225214

226215
{totalPages > 1 && (
227-
<InlineStack gap="2" align="space-between" blockAlign="center">
216+
<InlineStack align="space-between" blockAlign="center" className="w-full">
228217
<InlineStack gap="2" blockAlign="center">
229218
<Button
230219
variant="outline"
@@ -241,10 +230,10 @@ export const PipelineSection = withSuspenseWrapper(() => {
241230
<Icon name="ChevronLeft" />
242231
Previous
243232
</Button>
233+
<Text size="sm" tone="subdued">
234+
Page {currentPage} of {totalPages}
235+
</Text>
244236
</InlineStack>
245-
<Text size="sm" tone="subdued">
246-
Page {currentPage} of {totalPages}
247-
</Text>
248237
<Button
249238
variant="outline"
250239
onClick={goToNextPage}
@@ -256,10 +245,6 @@ export const PipelineSection = withSuspenseWrapper(() => {
256245
</InlineStack>
257246
)}
258247

259-
<Button onClick={fetchUserPipelines} className="mt-6 max-w-96">
260-
Refresh
261-
</Button>
262-
263248
{selectedPipelines.size > 0 && (
264249
<BulkActionsBar
265250
selectedPipelines={Array.from(selectedPipelines)}

src/routes/Dashboard/DashboardLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const SIDEBAR_ITEMS: SidebarItem[] = [
2121

2222
export function DashboardLayout() {
2323
return (
24-
<div className="container mx-auto p-6 max-w-6xl">
24+
<div className="w-full px-8 py-6">
2525
<BlockStack gap="6">
2626
<InlineStack gap="2" blockAlign="center">
2727
<Heading level={1}>Dashboard</Heading>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { PipelineSection } from "@/components/Home/PipelineSection/PipelineSection";
2+
import { BlockStack } from "@/components/ui/layout";
3+
import { Text } from "@/components/ui/typography";
4+
5+
export function DashboardPipelinesView() {
6+
return (
7+
<BlockStack gap="4">
8+
<Text as="h2" size="lg" weight="semibold">
9+
Pipelines
10+
</Text>
11+
<PipelineSection />
12+
</BlockStack>
13+
);
14+
}

src/routes/router.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { BASE_URL, IS_GITHUB_PAGES } from "@/utils/constants";
1919
import RootLayout from "../components/layout/RootLayout";
2020
import { DashboardFavoritesView } from "./Dashboard/DashboardFavoritesView";
2121
import { DashboardLayout } from "./Dashboard/DashboardLayout";
22+
import { DashboardPipelinesView } from "./Dashboard/DashboardPipelinesView";
2223
import { DashboardRecentlyViewedView } from "./Dashboard/DashboardRecentlyViewedView";
2324
import { DashboardRunsView } from "./Dashboard/DashboardRunsView";
2425
import Editor from "./Editor";
@@ -119,7 +120,7 @@ const dashboardRunsRoute = createRoute({
119120
const dashboardPipelinesRoute = createRoute({
120121
getParentRoute: () => dashboardRoute,
121122
path: "/pipelines",
122-
component: ComingSoon,
123+
component: DashboardPipelinesView,
123124
});
124125

125126
const dashboardComponentsRoute = createRoute({

0 commit comments

Comments
 (0)