Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 78 additions & 28 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"@tanstack/react-router": "^1.170.16",
"@tanstack/react-start": "^1.168.26",
"@tanstack/router-plugin": "^1.168.18",
"@vercel/analytics": "^2.0.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
Expand Down
34 changes: 28 additions & 6 deletions app/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Scripts,
} from "@tanstack/react-router";
import { useEffect, type ReactNode } from "react";
import { Analytics } from "@vercel/analytics/react";

import appCss from "../styles.css?url";
import { reportLovableError } from "../lib/lovable-error-reporting";
Expand Down Expand Up @@ -47,12 +48,18 @@ function ErrorComponent({ error, reset }: { error: Error; reset: () => void }) {
<p className="mt-2 text-sm text-muted-foreground">Try again or head home.</p>
<div className="mt-6 flex flex-wrap justify-center gap-2">
<button
onClick={() => { router.invalidate(); reset(); }}
onClick={() => {
router.invalidate();
reset();
}}
className="rounded bg-primary px-4 py-2 text-sm text-primary-foreground hover:opacity-90"
>
Try again
</button>
<a href="/" className="rounded border border-border px-4 py-2 text-sm text-foreground hover:border-foreground/30">
<a
href="/"
className="rounded border border-border px-4 py-2 text-sm text-foreground hover:border-foreground/30"
>
Go home
</a>
</div>
Expand All @@ -67,16 +74,30 @@ export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()(
{ charSet: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ title: "PacificaPilot — Terminal-native AI trading agent for Pacifica" },
{ name: "description", content: "PacificaPilot is a terminal-native AI trading agent for Pacifica perpetual futures. Open source, local-first, MIT." },
{ property: "og:title", content: "PacificaPilot — Terminal-native AI trading agent for Pacifica" },
{ property: "og:description", content: "Terminal-native AI trading agent for Pacifica perpetual futures. Local-first, MIT." },
{
name: "description",
content:
"PacificaPilot is a terminal-native AI trading agent for Pacifica perpetual futures. Open source, local-first, MIT.",
},
{
property: "og:title",
content: "PacificaPilot — Terminal-native AI trading agent for Pacifica",
},
{
property: "og:description",
content:
"Terminal-native AI trading agent for Pacifica perpetual futures. Local-first, MIT.",
},
{ property: "og:type", content: "website" },
{ name: "twitter:card", content: "summary_large_image" },
],
links: [
{ rel: "preconnect", href: "https://fonts.googleapis.com" },
{ rel: "preconnect", href: "https://fonts.gstatic.com", crossOrigin: "anonymous" },
{ rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap" },
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap",
},
{ rel: "stylesheet", href: appCss },
{ rel: "icon", href: "/favicon.ico", type: "image/x-icon" },
],
Expand All @@ -96,6 +117,7 @@ function RootShell({ children }: { children: ReactNode }) {
</head>
<body className="bg-background">
{children}
<Analytics />
<Scripts />
</body>
</html>
Expand Down