Skip to content

Commit 87e9bd5

Browse files
committed
moves app footer
1 parent 4e1b9ee commit 87e9bd5

9 files changed

Lines changed: 127 additions & 351 deletions

File tree

src/components/Home/FavoritesSection/FavoritesSection.tsx

Lines changed: 0 additions & 170 deletions
This file was deleted.

src/components/Home/PipelineSection/PipelineRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Badge } from "@/components/ui/badge";
1313
import { Button } from "@/components/ui/button";
1414
import { Checkbox } from "@/components/ui/checkbox";
1515
import { Icon } from "@/components/ui/icon";
16-
import { BlockStack, InlineStack } from "@/components/ui/layout";
16+
import { InlineStack } from "@/components/ui/layout";
1717
import {
1818
Popover,
1919
PopoverContent,

src/components/Home/PipelineSection/PipelineSection.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@ export const PipelineSection = withSuspenseWrapper(() => {
213213
</Table>
214214

215215
{totalPages > 1 && (
216-
<InlineStack align="space-between" blockAlign="center" className="w-full">
216+
<InlineStack
217+
align="space-between"
218+
blockAlign="center"
219+
className="w-full"
220+
>
217221
<InlineStack gap="2" blockAlign="center">
218222
<Button
219223
variant="outline"

src/components/Home/RecentlyViewedSection/RecentlyViewedSection.tsx

Lines changed: 0 additions & 79 deletions
This file was deleted.

src/components/Home/RunSection/RunRow.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
TooltipContent,
1515
TooltipTrigger,
1616
} from "@/components/ui/tooltip";
17-
import { Paragraph } from "@/components/ui/typography";
1817
import useToastNotification from "@/hooks/useToastNotification";
1918
import { useBackend } from "@/providers/BackendProvider";
2019
import { APP_ROUTES } from "@/routes/router";
@@ -94,17 +93,23 @@ const RunRow = ({ run }: { run: PipelineRunResponse }) => {
9493
return (
9594
<TableRow
9695
onClick={handleRowClick}
97-
className="cursor-pointer text-gray-500 text-xs"
96+
className="cursor-pointer text-gray-500 text-xs h-10"
9897
>
9998
<TableCell>
10099
<InlineStack gap="2" blockAlign="center" wrap="nowrap">
101100
<StatusIcon status={overallStatus} />
102-
<Paragraph className="truncate max-w-100 text-sm" title={name}>
101+
<span
102+
className="truncate max-w-100 text-sm text-foreground"
103+
title={name}
104+
>
103105
{name}
104-
</Paragraph>
105-
<Paragraph tone="subdued" className="text-sm" title={runId}>
106+
</span>
107+
<span
108+
className="text-sm text-muted-foreground shrink-0"
109+
title={runId}
110+
>
106111
#{runId}
107-
</Paragraph>
112+
</span>
108113
</InlineStack>
109114
</TableCell>
110115
<TableCell>

src/components/layout/RootLayout.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Outlet } from "@tanstack/react-router";
1+
import { Outlet, useLocation } from "@tanstack/react-router";
22
import { TanStackRouterDevtools } from "@tanstack/router-devtools";
33
import { ToastContainer } from "react-toastify";
44

@@ -11,6 +11,8 @@ import AppMenu from "./AppMenu";
1111

1212
const RootLayout = () => {
1313
useDocumentTitle();
14+
const { pathname } = useLocation();
15+
const isDashboard = pathname.startsWith("/dashboard");
1416

1517
return (
1618
<BackendProvider>
@@ -24,7 +26,7 @@ const RootLayout = () => {
2426
<Outlet />
2527
</main>
2628

27-
<AppFooter />
29+
{!isDashboard && <AppFooter />}
2830

2931
{import.meta.env.VITE_ENABLE_ROUTER_DEVTOOLS === "true" && (
3032
<TanStackRouterDevtools />

src/routes/Dashboard/Dashboard.tsx

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)