Skip to content

Commit

Permalink
feat: enhance SSE enablement message and improve layout for secret sy…
Browse files Browse the repository at this point in the history
…ncing
  • Loading branch information
nimish-ks committed Jan 31, 2025
1 parent 65cad4e commit 5a041bf
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions frontend/app/[team]/apps/[app]/syncing/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,28 @@ export default function Syncing({ params }: { params: { team: string; app: strin
return (
<div className="w-full space-y-8 pt-8 text-black dark:text-white">
{data?.sseEnabled === false && (
<div className="flex flex-col gap-4 h-96 max-w-screen-md mx-auto items-center justify-center">
<div className="space-y-1 text-center">
<div className="text-black dark:text-white text-3xl font-semibold">Enable SSE</div>
<p className="text-neutral-500 text-lg">
Server-side encryption (SSE) is not yet enabled for this app. SSE is required to allow
automatic syncing of secrets.
</p>
<p className="text-neutral-500 text-lg">Click the button below to enable SSE</p>
<>
<div className="flex flex-col gap-4 h-64 max-w-screen-md mx-auto items-center justify-center">
<div className="space-y-1 text-center">
<div className="text-black dark:text-white text-2xl font-semibold">Enable Secret Syncing</div>
<p className="text-neutral-500">
Server-side encryption (SSE) is not yet enabled for this app. SSE is required to allow
automatic syncing of secrets.
</p>
</div>
<EnableSSEDialog appId={params.app} />
</div>
<EnableSSEDialog appId={params.app} />
</div>
{userCanCreateSyncs && (
<div className="cursor-not-allowed" title="Enable SSE above to start creating syncs">
<div className="opacity-50 pointer-events-none">
<SyncOptions
appId={params.app}
defaultOpen={openCreateSyncPanel || (data.syncs && data.syncs.length === 0)}
/>
</div>
</div>
)}
</>
)}
{data?.sseEnabled === true && (
<>
Expand Down

0 comments on commit 5a041bf

Please sign in to comment.