diff --git a/next.config.ts b/next.config.ts index c1d5c09..61333ee 100644 --- a/next.config.ts +++ b/next.config.ts @@ -59,6 +59,8 @@ const nextConfig: NextConfig = { devIndicators: false, images: { dangerouslyAllowSVG: true, + contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;", + contentDispositionType: "attachment", remotePatterns: [ { protocol: "https", hostname: "avatars.githubusercontent.com" }, { protocol: "https", hostname: "api.dicebear.com" }, diff --git a/src/app/auth/callback/CallbackClient.tsx b/src/app/auth/callback/CallbackClient.tsx index 0d72519..91a8a7d 100644 --- a/src/app/auth/callback/CallbackClient.tsx +++ b/src/app/auth/callback/CallbackClient.tsx @@ -28,7 +28,9 @@ export function CallbackClient() { <>

{error}

- Make sure the mergefi-backend is running and reachable. + {searchParams.get("token") + ? "Make sure the mergefi-backend is running and reachable." + : "Please return to /connect and try signing in again."}

) : ( diff --git a/src/app/auth/callback/page.tsx b/src/app/auth/callback/page.tsx index b4674a1..84636c5 100644 --- a/src/app/auth/callback/page.tsx +++ b/src/app/auth/callback/page.tsx @@ -3,7 +3,13 @@ import { CallbackClient } from "./CallbackClient"; export default function AuthCallbackPage() { return ( - + + Finishing sign-in… + + } + > ); diff --git a/src/app/issues/[id]/IssueActions.tsx b/src/app/issues/[id]/IssueActions.tsx index 3b91ae4..7fd0283 100644 --- a/src/app/issues/[id]/IssueActions.tsx +++ b/src/app/issues/[id]/IssueActions.tsx @@ -102,7 +102,9 @@ export function IssueActions({ bounty }: { bounty: Bounty }) { ? "Payout complete" : bounty.status === "in_review" ? "Awaiting PR merge" - : "No action available"} + : bounty.status === "merged" + ? "Payout pending" + : "No action available"} )}