From 298acb1e9150174d36da4310b0f700e1418bff72 Mon Sep 17 00:00:00 2001 From: guru_sainath Date: Tue, 7 Oct 2025 00:24:09 +0530 Subject: [PATCH] [MOB-1221] dev: updated god mode ui #7879 --- .../authentication/github/form.tsx | 35 +++++++++++++++---- .../authentication/google/form.tsx | 35 +++++++++++++++---- 2 files changed, 56 insertions(+), 14 deletions(-) diff --git a/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx b/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx index 6a521b2a3..ff328f701 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx @@ -4,6 +4,7 @@ import { FC, useState } from "react"; import { isEmpty } from "lodash-es"; import Link from "next/link"; import { useForm } from "react-hook-form"; +import { Monitor } from "lucide-react"; // plane internal packages import { API_BASE_URL } from "@plane/constants"; import { Button, getButtonStyling } from "@plane/propel/button"; @@ -102,7 +103,7 @@ export const InstanceGithubConfigForm: FC = (props) => { }, ]; - const GITHUB_SERVICE_FIELD: TCopyField[] = [ + const GITHUB_COMMON_SERVICE_DETAILS: TCopyField[] = [ { key: "Origin_URL", label: "Origin URL", @@ -122,6 +123,9 @@ export const InstanceGithubConfigForm: FC = (props) => { ), }, + ]; + + const GITHUB_SERVICE_DETAILS: TCopyField[] = [ { key: "Callback_URI", label: "Callback URI", @@ -209,12 +213,29 @@ export const InstanceGithubConfigForm: FC = (props) => { -
-
-
Plane-provided details for GitHub
- {GITHUB_SERVICE_FIELD.map((field) => ( - - ))} +
+
Plane-provided details for GitHub
+ +
+ {/* common service details */} +
+ {GITHUB_COMMON_SERVICE_DETAILS.map((field) => ( + + ))} +
+ + {/* web service details */} +
+
+ + Web +
+
+ {GITHUB_SERVICE_DETAILS.map((field) => ( + + ))} +
+
diff --git a/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx b/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx index e4b7fd628..24077e571 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx @@ -3,6 +3,7 @@ import { FC, useState } from "react"; import { isEmpty } from "lodash-es"; import Link from "next/link"; import { useForm } from "react-hook-form"; +import { Monitor } from "lucide-react"; // plane internal packages import { API_BASE_URL } from "@plane/constants"; import { Button, getButtonStyling } from "@plane/propel/button"; @@ -91,7 +92,7 @@ export const InstanceGoogleConfigForm: FC = (props) => { }, ]; - const GOOGLE_SERVICE_DETAILS: TCopyField[] = [ + const GOOGLE_COMMON_SERVICE_DETAILS: TCopyField[] = [ { key: "Origin_URL", label: "Origin URL", @@ -111,6 +112,9 @@ export const InstanceGoogleConfigForm: FC = (props) => {

), }, + ]; + + const GOOGLE_SERVICE_DETAILS: TCopyField[] = [ { key: "Callback_URI", label: "Callback URI", @@ -196,12 +200,29 @@ export const InstanceGoogleConfigForm: FC = (props) => {
-
-
-
Plane-provided details for Google
- {GOOGLE_SERVICE_DETAILS.map((field) => ( - - ))} +
+
Plane-provided details for Google
+ +
+ {/* common service details */} +
+ {GOOGLE_COMMON_SERVICE_DETAILS.map((field) => ( + + ))} +
+ + {/* web service details */} +
+
+ + Web +
+
+ {GOOGLE_SERVICE_DETAILS.map((field) => ( + + ))} +
+