@devries-cameron20 / composio-1 / commits / 8700f1e55
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

docs: fix small UI issues across docs site

- Add rel="noopener noreferrer" to external link in toolkit detail page - Add error.tsx and global-error.tsx for graceful error handling - Add smooth scroll with reduced-motion support - Remove tap highlight on mobile Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

Sushmithamallesh committed Feb 3, 2026 at 16:21 UTC 8700f1e5529dc2aaae903cfd3ed0be33293a5599
4 files changed +103
docs/app/error.tsx new
+45
@@ -0,0 +1,45 @@
1 +'use client';
2 +
3 +import Link from 'next/link';
4 +
5 +export default function Error({
6 + reset,
7 +}: {
8 + error: Error & { digest?: string };
9 + reset: () => void;
10 +}) {
11 + return (
12 + <div className="flex min-h-[85vh] flex-col items-center justify-center px-4">
13 + <div className="relative">
14 + <div className="absolute -inset-4 rounded-full bg-gradient-to-r from-fd-primary/20 via-fd-primary/5 to-transparent blur-2xl" />
15 + <h1 className="relative text-[120px] sm:text-[150px] font-bold leading-none tracking-tighter text-fd-foreground/10 select-none">
16 + 500
17 + </h1>
18 + </div>
19 +
20 + <div className="mt-2 text-center max-w-md">
21 + <h2 className="text-xl font-semibold text-fd-foreground">
22 + Something went wrong
23 + </h2>
24 + <p className="mt-2 text-fd-muted-foreground text-sm">
25 + An unexpected error occurred. Try again or head back to the docs.
26 + </p>
27 + </div>
28 +
29 + <div className="mt-8 flex flex-wrap justify-center gap-3">
30 + <button
31 + onClick={reset}
32 + className="inline-flex items-center gap-2 rounded-lg bg-fd-primary px-4 py-2 text-sm font-medium text-fd-primary-foreground transition-colors hover:bg-fd-primary/90"
33 + >
34 + Try again
35 + </button>
36 + <Link
37 + href="/"
38 + className="inline-flex items-center gap-2 rounded-lg border border-fd-border bg-fd-background px-4 py-2 text-sm font-medium transition-colors hover:bg-fd-accent"
39 + >
40 + Home
41 + </Link>
42 + </div>
43 + </div>
44 + );
45 +}
docs/app/global-error.tsx new
+42
@@ -0,0 +1,42 @@
1 +'use client';
2 +
3 +export default function GlobalError({
4 + reset,
5 +}: {
6 + error: Error & { digest?: string };
7 + reset: () => void;
8 +}) {
9 + return (
10 + <html lang="en">
11 + <body style={{ margin: 0, fontFamily: 'Inter, system-ui, sans-serif' }}>
12 + <div style={{ display: 'flex', minHeight: '100vh', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', padding: '1rem' }}>
13 + <h1 style={{ fontSize: '6rem', fontWeight: 700, letterSpacing: '-0.05em', color: 'rgba(0,0,0,0.1)', margin: 0, lineHeight: 1 }}>
14 + 500
15 + </h1>
16 + <div style={{ marginTop: '0.5rem', textAlign: 'center', maxWidth: '28rem' }}>
17 + <h2 style={{ fontSize: '1.25rem', fontWeight: 600, margin: 0 }}>
18 + Something went wrong
19 + </h2>
20 + <p style={{ marginTop: '0.5rem', color: '#666', fontSize: '0.875rem' }}>
21 + An unexpected error occurred. Try again or head back to the docs.
22 + </p>
23 + </div>
24 + <div style={{ marginTop: '2rem', display: 'flex', gap: '0.75rem' }}>
25 + <button
26 + onClick={reset}
27 + style={{ padding: '0.5rem 1rem', fontSize: '0.875rem', fontWeight: 500, borderRadius: '0.5rem', border: 'none', background: '#171414', color: '#fff', cursor: 'pointer' }}
28 + >
29 + Try again
30 + </button>
31 + <a
32 + href="/"
33 + style={{ padding: '0.5rem 1rem', fontSize: '0.875rem', fontWeight: 500, borderRadius: '0.5rem', border: '1px solid #e5e0df', background: '#fff', color: '#171414', textDecoration: 'none' }}
34 + >
35 + Home
36 + </a>
37 + </div>
38 + </div>
39 + </body>
40 + </html>
41 + );
42 +}
docs/app/global.css
+15
@@ -66,6 +66,21 @@
66 Design Tokens
67 ========================================================================== */
68
69 +/* ==========================================================================
70 + Global Defaults
71 + ========================================================================== */
72 +
73 +html {
74 + scroll-behavior: smooth;
75 + -webkit-tap-highlight-color: transparent;
76 +}
77 +
78 +@media (prefers-reduced-motion: reduce) {
79 + html {
80 + scroll-behavior: auto;
81 + }
82 +}
83 +
84 :root {
85 /* Brand */
86 --composio-orange: #ea580c;
docs/components/toolkits/toolkit-detail.tsx
+1
@@ -267,6 +267,7 @@ export function ToolkitDetail({ toolkit, tools, triggers, path }: ToolkitDetailP
267 <Link
268 href={`https://platform.composio.dev/auth?next_page=${encodeURIComponent(`/tool-router?toolkits=${toolkit.slug}`)}`}
269 target="_blank"
270 + rel="noopener noreferrer"
271 className="inline-flex items-center gap-1.5 rounded-md border border-orange-500/30 bg-orange-500/10 px-3 py-1.5 text-sm font-medium text-orange-600 transition-colors hover:bg-orange-500/20 dark:text-orange-400"
272 >
273 Try {(toolkit.name?.trim() || toolkit.slug)}