Skip to content

Commit 298acb1

Browse files
authored
[MOB-1221] dev: updated god mode ui #7879
1 parent f9e21c5 commit 298acb1

File tree

2 files changed

+56
-14
lines changed

2 files changed

+56
-14
lines changed

apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { FC, useState } from "react";
44
import { isEmpty } from "lodash-es";
55
import Link from "next/link";
66
import { useForm } from "react-hook-form";
7+
import { Monitor } from "lucide-react";
78
// plane internal packages
89
import { API_BASE_URL } from "@plane/constants";
910
import { Button, getButtonStyling } from "@plane/propel/button";
@@ -102,7 +103,7 @@ export const InstanceGithubConfigForm: FC<Props> = (props) => {
102103
},
103104
];
104105

105-
const GITHUB_SERVICE_FIELD: TCopyField[] = [
106+
const GITHUB_COMMON_SERVICE_DETAILS: TCopyField[] = [
106107
{
107108
key: "Origin_URL",
108109
label: "Origin URL",
@@ -122,6 +123,9 @@ export const InstanceGithubConfigForm: FC<Props> = (props) => {
122123
</>
123124
),
124125
},
126+
];
127+
128+
const GITHUB_SERVICE_DETAILS: TCopyField[] = [
125129
{
126130
key: "Callback_URI",
127131
label: "Callback URI",
@@ -209,12 +213,29 @@ export const InstanceGithubConfigForm: FC<Props> = (props) => {
209213
</div>
210214
</div>
211215
</div>
212-
<div className="col-span-2 md:col-span-1">
213-
<div className="flex flex-col gap-y-4 px-6 pt-1.5 pb-4 bg-custom-background-80/60 rounded-lg">
214-
<div className="pt-2 text-xl font-medium">Plane-provided details for GitHub</div>
215-
{GITHUB_SERVICE_FIELD.map((field) => (
216-
<CopyField key={field.key} label={field.label} url={field.url} description={field.description} />
217-
))}
216+
<div className="col-span-2 md:col-span-1 flex flex-col gap-y-6">
217+
<div className="pt-2 text-xl font-medium">Plane-provided details for GitHub</div>
218+
219+
<div className="flex flex-col gap-y-4">
220+
{/* common service details */}
221+
<div className="flex flex-col gap-y-4 px-6 py-4 bg-custom-background-80 rounded-lg">
222+
{GITHUB_COMMON_SERVICE_DETAILS.map((field) => (
223+
<CopyField key={field.key} label={field.label} url={field.url} description={field.description} />
224+
))}
225+
</div>
226+
227+
{/* web service details */}
228+
<div className="flex flex-col rounded-lg overflow-hidden">
229+
<div className="px-6 py-3 bg-custom-background-80/60 font-medium text-xs uppercase flex items-center gap-x-3 text-custom-text-200">
230+
<Monitor className="w-3 h-3" />
231+
Web
232+
</div>
233+
<div className="px-6 py-4 flex flex-col gap-y-4 bg-custom-background-80">
234+
{GITHUB_SERVICE_DETAILS.map((field) => (
235+
<CopyField key={field.key} label={field.label} url={field.url} description={field.description} />
236+
))}
237+
</div>
238+
</div>
218239
</div>
219240
</div>
220241
</div>

apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { FC, useState } from "react";
33
import { isEmpty } from "lodash-es";
44
import Link from "next/link";
55
import { useForm } from "react-hook-form";
6+
import { Monitor } from "lucide-react";
67
// plane internal packages
78
import { API_BASE_URL } from "@plane/constants";
89
import { Button, getButtonStyling } from "@plane/propel/button";
@@ -91,7 +92,7 @@ export const InstanceGoogleConfigForm: FC<Props> = (props) => {
9192
},
9293
];
9394

94-
const GOOGLE_SERVICE_DETAILS: TCopyField[] = [
95+
const GOOGLE_COMMON_SERVICE_DETAILS: TCopyField[] = [
9596
{
9697
key: "Origin_URL",
9798
label: "Origin URL",
@@ -111,6 +112,9 @@ export const InstanceGoogleConfigForm: FC<Props> = (props) => {
111112
</p>
112113
),
113114
},
115+
];
116+
117+
const GOOGLE_SERVICE_DETAILS: TCopyField[] = [
114118
{
115119
key: "Callback_URI",
116120
label: "Callback URI",
@@ -196,12 +200,29 @@ export const InstanceGoogleConfigForm: FC<Props> = (props) => {
196200
</div>
197201
</div>
198202
</div>
199-
<div className="col-span-2 md:col-span-1">
200-
<div className="flex flex-col gap-y-4 px-6 pt-1.5 pb-4 bg-custom-background-80/60 rounded-lg">
201-
<div className="pt-2 text-xl font-medium">Plane-provided details for Google</div>
202-
{GOOGLE_SERVICE_DETAILS.map((field) => (
203-
<CopyField key={field.key} label={field.label} url={field.url} description={field.description} />
204-
))}
203+
<div className="col-span-2 md:col-span-1 flex flex-col gap-y-6">
204+
<div className="pt-2 text-xl font-medium">Plane-provided details for Google</div>
205+
206+
<div className="flex flex-col gap-y-4">
207+
{/* common service details */}
208+
<div className="flex flex-col gap-y-4 px-6 py-4 bg-custom-background-80 rounded-lg">
209+
{GOOGLE_COMMON_SERVICE_DETAILS.map((field) => (
210+
<CopyField key={field.key} label={field.label} url={field.url} description={field.description} />
211+
))}
212+
</div>
213+
214+
{/* web service details */}
215+
<div className="flex flex-col rounded-lg overflow-hidden">
216+
<div className="px-6 py-3 bg-custom-background-80/60 font-medium text-xs uppercase flex items-center gap-x-3 text-custom-text-200">
217+
<Monitor className="w-3 h-3" />
218+
Web
219+
</div>
220+
<div className="px-6 py-4 flex flex-col gap-y-4 bg-custom-background-80">
221+
{GOOGLE_SERVICE_DETAILS.map((field) => (
222+
<CopyField key={field.key} label={field.label} url={field.url} description={field.description} />
223+
))}
224+
</div>
225+
</div>
205226
</div>
206227
</div>
207228
</div>

0 commit comments

Comments
 (0)