Skip to content

Commit a70e028

Browse files
authored
feat(kiloclaw): friendly 404 page byte installs (#3675)
feat(install): friendly not found page for the install route
1 parent c21ae68 commit a70e028

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import Link from 'next/link';
2+
import { Button } from '@/components/ui/button';
3+
import { Card, CardHeader, CardTitle, CardDescription, CardFooter } from '@/components/ui/card';
4+
5+
/**
6+
* Friendly not-found for the install route. Rendered when the install page
7+
* calls notFound(): unknown source, a byte missing or removed upstream, a
8+
* failed signature verification, or a slug mismatch. Replaces the bare default
9+
* 404 with a clear message and a way back into the app.
10+
*/
11+
export default function InstallNotFound() {
12+
return (
13+
<div className="mx-auto flex min-h-[60vh] w-full max-w-lg items-center px-6 py-12">
14+
<Card className="w-full text-left">
15+
<CardHeader>
16+
<CardTitle className="text-xl break-words">This install link isn’t available</CardTitle>
17+
<CardDescription className="leading-relaxed">
18+
This ClawByte could not be found, or it is no longer available. It may have been
19+
removed, or the link may be incorrect. You can browse the catalog on kilo.ai, or head
20+
back to your chat.
21+
</CardDescription>
22+
</CardHeader>
23+
<CardFooter className="justify-end">
24+
<Button asChild>
25+
<Link href="/claw/chat">Back to chat</Link>
26+
</Button>
27+
</CardFooter>
28+
</Card>
29+
</div>
30+
);
31+
}

0 commit comments

Comments
 (0)