+
{currentOrg?.name?.charAt(0)}
-
+
{currentOrg?.name}
{isProjectRelated && (
<>
-
{currentWorkspace?.name}
+
+ {currentWorkspace?.name}
+
>
)}
{isOrganizationRelated && (
diff --git a/frontend/src/components/signup/UserInfoStep.tsx b/frontend/src/components/signup/UserInfoStep.tsx
index 7af9ccc8f..994ad5a72 100644
--- a/frontend/src/components/signup/UserInfoStep.tsx
+++ b/frontend/src/components/signup/UserInfoStep.tsx
@@ -245,6 +245,7 @@ export default function UserInfoStep({
placeholder="Infisical"
onChange={(e) => setOrganizationName(e.target.value)}
value={organizationName}
+ maxLength={64}
isRequired
className="h-12"
/>
diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx
index 8df1d15d2..7b0eeddbf 100644
--- a/frontend/src/layouts/AppLayout/AppLayout.tsx
+++ b/frontend/src/layouts/AppLayout/AppLayout.tsx
@@ -28,6 +28,7 @@ import {
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { yupResolver } from "@hookform/resolvers/yup";
import { DropdownMenuTrigger } from "@radix-ui/react-dropdown-menu";
+import { twMerge } from "tailwind-merge";
import * as yup from "yup";
import { useNotificationContext } from "@app/components/context/Notifications/NotificationProvider";
@@ -99,7 +100,7 @@ const supportOptions = [
];
const formSchema = yup.object({
- name: yup.string().required().label("Project Name").trim(),
+ name: yup.string().required().label("Project Name").trim().max(64, "Too long, maximum length is 64 characters"),
addMembers: yup.bool().required().label("Add Members")
});
@@ -273,13 +274,16 @@ export const AppLayout = ({ children }: LayoutProps) => {
)}
-
+
-
+
{currentOrg?.name.charAt(0)}
{currentOrg?.name}
@@ -323,7 +327,7 @@ export const AppLayout = ({ children }: LayoutProps) => {
)
}
>
-
+
{org.name}
@@ -422,7 +426,7 @@ export const AppLayout = ({ children }: LayoutProps) => {