From ee248276738cf9ba86418f914c64be896da5f02e Mon Sep 17 00:00:00 2001 From: Anthony Ettinger Date: Fri, 22 May 2026 13:24:02 +0000 Subject: [PATCH] fix(github): strip platform-setup CTA from user settings page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /settings/integrations/github page is for end users — install the App on your accounts, view installations, see repos. The "Run one-click setup" button was the only piece of platform-level admin work still showing here. Replaced the big CTA with a small admin-only inline link so admins can still get to /admin/github/setup from any settings page, but no one sees a "configure the platform" button on a per-user surface. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../settings/integrations/github/page.tsx | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/app/(app)/settings/integrations/github/page.tsx b/app/(app)/settings/integrations/github/page.tsx index cc41353d..b52287a0 100644 --- a/app/(app)/settings/integrations/github/page.tsx +++ b/app/(app)/settings/integrations/github/page.tsx @@ -1,9 +1,12 @@ -// Account-level GitHub integration page. Three states: -// 1. Env not configured → admin sees a "Run setup" CTA; -// non-admins see a "not configured" notice. +// Account-level GitHub integration page (user POV — install + manage your +// own GitHub installations). Three states: +// 1. Env not configured → "integration not available yet" notice. +// Admins see a small inline link to /admin. // 2. Configured, not connected → "Install" CTA pointing at github.com/apps/. // 3. Connected → list of installations + their repos with a // client-side filter (sized for 200+). +// +// Platform-level App registration is NOT here. It lives at /admin/github/setup. import Link from "next/link"; import { redirect } from "next/navigation"; @@ -129,21 +132,21 @@ export default async function GithubSettingsPage({ {!configured ? (
-

Integration not configured

+

+ Integration not available yet +

- CrawlProof's GitHub App credentials aren't set on this - deployment yet.{" "} - {isAdmin - ? "Run the one-click setup to register the App on the Profullstack org and get the values to paste into Railway." - : "Ask an admin to run the one-click setup from this page."} + The CrawlProof GitHub App isn't configured on this deployment. + Check back soon.

{isAdmin && ( - - Run one-click setup (admin) - +

+ Admin:{" "} + + register the App at /admin/github/setup + + . +

)}
) : installations.length === 0 ? (