Feat: God Mode UI Updates and More Config Settings (#2877)
* feat: Images in Plane config screen. * feat: Enable/ Disable Magic Login config toggle. * style: UX copy and design updates across all screens. * style: SSO and OAuth Screen revamp. * style: Enter God Mode button for Profile Settings sidebar. * fix: update input type to password for password fields.
This commit is contained in:
parent
bf060cc8eb
commit
398f35d36d
19 changed files with 672 additions and 360 deletions
|
|
@ -33,33 +33,68 @@ export const AdminAuthWrapper: FC<IAdminAuthWrapper> = observer(({ children }) =
|
|||
// if user does not have admin access to the instance
|
||||
if (isUserInstanceAdmin !== undefined && isUserInstanceAdmin === false) {
|
||||
return (
|
||||
<div className={`h-screen w-full flex items-center justify-center overflow-hidden`}>
|
||||
<div className="w-3/5 h-2/3 bg-custom-background-90">
|
||||
<div className="grid h-full place-items-center p-4">
|
||||
<div className="space-y-8 text-center">
|
||||
<div className="space-y-2">
|
||||
<Image src={AccessDeniedImg} height="220" width="550" alt="AccessDeniedImg" />
|
||||
<h3 className="text-3xl font-semibold">Access denied!</h3>
|
||||
<div className="mx-auto text-base text-custom-text-100">
|
||||
<p>Sorry, but you do not have permission to view this page.</p>
|
||||
<p>
|
||||
If you think there{"’"}s a mistake contact <span className="font-semibold">support.</span>
|
||||
</p>
|
||||
</div>
|
||||
<div className={`my-8 w-full flex flex-col gap-4 items-center justify-center overflow-hidden`}>
|
||||
<div className="w-3/5 bg-custom-background-90">
|
||||
<div className="grid h-full place-items-center p-2 pb-0">
|
||||
<div className="text-center">
|
||||
<Image src={AccessDeniedImg} height="250" width="550" alt="AccessDeniedImg" />
|
||||
<h3 className="text-3xl font-semibold">God mode needs a god role</h3>
|
||||
<p className="text-base text-custom-text-300">Doesn’t look like you have that role.</p>
|
||||
</div>
|
||||
<div className="flex flex-col gap-2 my-8 text-center">
|
||||
<div>
|
||||
<p className="font-medium text-xs text-custom-text-400 tracking-tight">Do we have a god role?</p>
|
||||
<p className="text-custom-text-300 text-sm">Yes.</p>
|
||||
</div>
|
||||
<div className="flex items-center justify-center gap-2">
|
||||
<Link href={`/${redirectWorkspaceSlug}`}>
|
||||
<a>
|
||||
<Button variant="primary" size="sm">
|
||||
<LayoutGrid width={16} height={16} />
|
||||
Back to Dashboard
|
||||
</Button>
|
||||
<div>
|
||||
<p className="font-medium text-xs text-custom-text-400 tracking-tight">Do we call it god role?</p>
|
||||
<p className="text-custom-text-300 text-sm">No. Obviously not.</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="font-medium text-xs text-custom-text-400 tracking-tight">Can you get it?</p>
|
||||
<p className="text-custom-text-300 text-sm">Maybe. Ask your god.</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="font-medium text-xs text-custom-text-400 tracking-tight">
|
||||
Are we being intentionally cryptic?
|
||||
</p>
|
||||
<p className="text-custom-text-300 text-sm">Yes.</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="font-medium text-xs text-custom-text-400 tracking-tight">
|
||||
Is this for the security of your workspaces?
|
||||
</p>
|
||||
<p className="text-custom-text-300 text-sm">Absolutely!</p>
|
||||
</div>
|
||||
<div>
|
||||
<p className="font-medium text-xs text-custom-text-400 tracking-tight">
|
||||
Are you the god here and still seeing this?
|
||||
</p>
|
||||
<p className="text-custom-text-300 text-sm">
|
||||
Sorry, God.{" "}
|
||||
<a
|
||||
href="https://discord.com/channels/1031547764020084846/1094927053867995176"
|
||||
target="_blank"
|
||||
className="text-custom-primary-100 font-medium hover:underline"
|
||||
rel="noreferrer"
|
||||
>
|
||||
Talk to us.
|
||||
</a>
|
||||
</Link>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex items-center justify-center gap-2">
|
||||
<Link href={`/${redirectWorkspaceSlug}`}>
|
||||
<a>
|
||||
<Button variant="primary" size="sm">
|
||||
<LayoutGrid width={16} height={16} />
|
||||
To the workspace
|
||||
</Button>
|
||||
</a>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue