Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: send test email error message update and scrollbar improvement. (#4589)

Prateek Shouryadbba991dd3a1
diff --git a/admin/app/ai/page.tsx b/admin/app/ai/page.tsx
index 0979bbabe6..a54ce6d8c4 100644
--- a/admin/app/ai/page.tsx
+++ b/admin/app/ai/page.tsx
@@ -19,14 +19,14 @@ const InstanceAIPage = observer(() => {
return (
<>
<PageHeader title="Artificial Intelligence - God Mode" />
- <div className="relative container mx-auto w-full h-full p-8 py-4 space-y-6 flex flex-col">
- <div className="border-b border-custom-border-100 pb-3 space-y-1 flex-shrink-0">
+ <div className="relative container mx-auto w-full h-full p-4 py-4 space-y-6 flex flex-col">
+ <div className="border-b border-custom-border-100 mx-4 py-4 space-y-1 flex-shrink-0">
<div className="text-xl font-medium text-custom-text-100">AI features for all your workspaces</div>
<div className="text-sm font-normal text-custom-text-300">
Configure your AI API credentials so Plane AI features are turned on for all your workspaces.
</div>
</div>
- <div className="flex-grow overflow-hidden overflow-y-auto">
+ <div className="flex-grow overflow-hidden overflow-y-scroll vertical-scrollbar scrollbar-md px-4">
{formattedConfig ? (
<InstanceAIForm config={formattedConfig} />
) : (
diff --git a/admin/app/authentication/page.tsx b/admin/app/authentication/page.tsx
index 25be147ca6..d1e6fb0ba1 100644
--- a/admin/app/authentication/page.tsx
+++ b/admin/app/authentication/page.tsx
@@ -119,14 +119,14 @@ const InstanceAuthenticationPage = observer(() => {
return (
<>
<PageHeader title="Authentication - God Mode" />
- <div className="relative container mx-auto w-full h-full p-8 py-4 space-y-6 flex flex-col">
- <div className="border-b border-custom-border-100 pb-3 space-y-1 flex-shrink-0">
+ <div className="relative container mx-auto w-full h-full p-4 py-4 space-y-6 flex flex-col">
+ <div className="border-b border-custom-border-100 mx-4 py-4 space-y-1 flex-shrink-0">
<div className="text-xl font-medium text-custom-text-100">Manage authentication for your instance</div>
<div className="text-sm font-normal text-custom-text-300">
Configure authentication modes for your team and restrict sign ups to be invite only.
</div>
</div>
- <div className="flex-grow overflow-hidden overflow-y-auto">
+ <div className="flex-grow overflow-hidden overflow-y-scroll vertical-scrollbar scrollbar-md px-4">
{formattedConfig ? (
<div className="space-y-3">
<div className="text-lg font-medium">Authentication modes</div>
diff --git a/admin/app/email/page.tsx b/admin/app/email/page.tsx
index de776b1750..198020d4d6 100644
--- a/admin/app/email/page.tsx
+++ b/admin/app/email/page.tsx
@@ -19,8 +19,8 @@ const InstanceEmailPage = observer(() => {
return (
<>
<PageHeader title="Email - God Mode" />
- <div className="relative container mx-auto w-full h-full p-8 py-4 space-y-6 flex flex-col">
- <div className="border-b border-custom-border-100 pb-3 space-y-1 flex-shrink-0">
+ <div className="relative container mx-auto w-full h-full p-4 py-4 space-y-6 flex flex-col">
+ <div className="border-b border-custom-border-100 mx-4 py-4 space-y-1 flex-shrink-0">
<div className="text-xl font-medium text-custom-text-100">Secure emails from your own instance</div>
<div className="text-sm font-normal text-custom-text-300">
Plane can send useful emails to you and your users from your own instance without talking to the Internet.
@@ -30,7 +30,7 @@ const InstanceEmailPage = observer(() => {
</div>
</div>
</div>
- <div className="flex-grow overflow-hidden overflow-y-auto">
+ <div className="flex-grow overflow-hidden overflow-y-scroll vertical-scrollbar scrollbar-md px-4">
{formattedConfig ? (
<InstanceEmailForm config={formattedConfig} />
) : (
diff --git a/admin/app/email/test-email-modal.tsx b/admin/app/email/test-email-modal.tsx
index 0feea41286..6d5cb8032d 100644
--- a/admin/app/email/test-email-modal.tsx
+++ b/admin/app/email/test-email-modal.tsx
@@ -51,7 +51,7 @@ export const SendTestEmailModal: FC<Props> = (props) => {
setSendEmailStep(ESendEmailSteps.SUCCESS);
})
.catch((error) => {
- setError(error?.message || "Failed to send email");
+ setError(error?.error || "Failed to send email");
setSendEmailStep(ESendEmailSteps.FAILED);
})
.finally(() => {
diff --git a/admin/app/general/page.tsx b/admin/app/general/page.tsx
index bab2a94fcf..5aaea9f8e7 100644
--- a/admin/app/general/page.tsx
+++ b/admin/app/general/page.tsx
@@ -10,15 +10,15 @@ function GeneralPage() {
console.log("instance", instance);
return (
<>
- <div className="relative container mx-auto w-full h-full p-8 py-4 space-y-6 flex flex-col">
- <div className="border-b border-custom-border-100 pb-3 space-y-1 flex-shrink-0">
+ <div className="relative container mx-auto w-full h-full p-4 py-4 space-y-6 flex flex-col">
+ <div className="border-b border-custom-border-100 mx-4 py-4 space-y-1 flex-shrink-0">
<div className="text-xl font-medium text-custom-text-100">General settings</div>
<div className="text-sm font-normal text-custom-text-300">
Change the name of your instance and instance admin e-mail addresses. Enable or disable telemetry in your
instance.
</div>
</div>
- <div className="flex-grow overflow-hidden overflow-y-auto">
+ <div className="flex-grow overflow-hidden overflow-y-scroll vertical-scrollbar scrollbar-md px-4">
{instance && instanceAdmins && (
<GeneralConfigurationForm instance={instance} instanceAdmins={instanceAdmins} />
)}
diff --git a/admin/app/image/page.tsx b/admin/app/image/page.tsx
index 5c1b838bed..ceaad61f24 100644
--- a/admin/app/image/page.tsx
+++ b/admin/app/image/page.tsx
@@ -19,14 +19,14 @@ const InstanceImagePage = observer(() => {
return (
<>
<PageHeader title="Image - God Mode" />
- <div className="relative container mx-auto w-full h-full p-8 py-4 space-y-6 flex flex-col">
- <div className="border-b border-custom-border-100 pb-3 space-y-1 flex-shrink-0">
+ <div className="relative container mx-auto w-full h-full p-4 py-4 space-y-6 flex flex-col">
+ <div className="border-b border-custom-border-100 mx-4 py-4 space-y-1 flex-shrink-0">
<div className="text-xl font-medium text-custom-text-100">Third-party image libraries</div>
<div className="text-sm font-normal text-custom-text-300">
Let your users search and choose images from third-party libraries
</div>
</div>
- <div className="flex-grow overflow-hidden overflow-y-auto">
+ <div className="flex-grow overflow-hidden overflow-y-scroll vertical-scrollbar scrollbar-md px-4">
{formattedConfig ? (
<InstanceImageConfigForm config={formattedConfig} />
) : (