Skip to content
Merged
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
23 changes: 23 additions & 0 deletions app/(app)/[owner]/[repo]/actions/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use client";

import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";

interface ErrorProps {
error: Error & { digest?: string };
reset: () => void;
}

export default function Error({ error, reset }: ErrorProps) {
return (
<div className="flex min-h-[50vh] items-center justify-center p-6">
<Alert variant="destructive" className="max-w-md">
<AlertTitle>Something went wrong</AlertTitle>
<AlertDescription>{error.message}</AlertDescription>
<Button variant="outline" className="mt-4" onClick={reset}>
Retry
</Button>
</Alert>
</div>
);
}
11 changes: 11 additions & 0 deletions app/(app)/[owner]/[repo]/actions/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { SkeletonBlock } from "@/components/ui/skeleton";

export default function Loading() {
return (
<div className="space-y-3 p-6">
{Array.from({ length: 5 }).map((_, i) => (
<SkeletonBlock key={i} className="h-16 w-full" />
))}
</div>
);
}
11 changes: 11 additions & 0 deletions app/(app)/[owner]/[repo]/commits/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { SkeletonBlock } from "@/components/ui/skeleton";

export default function Loading() {
return (
<div className="space-y-3 p-6">
{Array.from({ length: 5 }).map((_, i) => (
<SkeletonBlock key={i} className="h-12 w-full" />
))}
</div>
);
}
23 changes: 23 additions & 0 deletions app/(app)/[owner]/[repo]/issues/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use client";

import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";

interface ErrorProps {
error: Error & { digest?: string };
reset: () => void;
}

export default function Error({ error, reset }: ErrorProps) {
return (
<div className="flex min-h-[50vh] items-center justify-center p-6">
<Alert variant="destructive" className="max-w-md">
<AlertTitle>Something went wrong</AlertTitle>
<AlertDescription>{error.message}</AlertDescription>
<Button variant="outline" className="mt-4" onClick={reset}>
Retry
</Button>
</Alert>
</div>
);
}
11 changes: 11 additions & 0 deletions app/(app)/[owner]/[repo]/issues/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { SkeletonBlock } from "@/components/ui/skeleton";

export default function Loading() {
return (
<div className="space-y-3 p-6">
{Array.from({ length: 5 }).map((_, i) => (
<SkeletonBlock key={i} className="h-16 w-full" />
))}
</div>
);
}
23 changes: 23 additions & 0 deletions app/(app)/[owner]/[repo]/pulls/error.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
"use client";

import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
import { Button } from "@/components/ui/button";

interface ErrorProps {
error: Error & { digest?: string };
reset: () => void;
}

export default function Error({ error, reset }: ErrorProps) {
return (
<div className="flex min-h-[50vh] items-center justify-center p-6">
<Alert variant="destructive" className="max-w-md">
<AlertTitle>Something went wrong</AlertTitle>
<AlertDescription>{error.message}</AlertDescription>
<Button variant="outline" className="mt-4" onClick={reset}>
Retry
</Button>
</Alert>
</div>
);
}
11 changes: 11 additions & 0 deletions app/(app)/[owner]/[repo]/pulls/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { SkeletonBlock } from "@/components/ui/skeleton";

export default function Loading() {
return (
<div className="space-y-3 p-6">
{Array.from({ length: 5 }).map((_, i) => (
<SkeletonBlock key={i} className="h-16 w-full" />
))}
</div>
);
}
Loading