feat: updated by review comment

This commit is contained in:
=
2025-04-03 23:28:04 +05:30
parent ee536717c0
commit 6bf9ab5937
4 changed files with 6 additions and 14 deletions

View File

@@ -724,7 +724,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
.string()
.trim()
.refine((val) => characterValidator([CharacterType.AlphaNumeric, CharacterType.Hyphen])(val), {
message: "Invalid pattern: only alphanumeric characters, spaces, - are allowed."
message: "Invalid pattern: only alphanumeric characters, - are allowed."
})
.optional()
}),
@@ -771,9 +771,10 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
CharacterType.Exclamation
])(val),
{
message: "Invalid pattern: only alphanumeric characters, spaces, - are allowed."
message: "Invalid pattern: only alphanumeric characters, spaces, -.!, are allowed."
}
)
.optional()
}),
response: {
200: z.object({

View File

@@ -176,5 +176,5 @@ export type TSearchProjectsDTO = {
export type TProjectAccessRequestDTO = {
permission: OrgServiceActor;
projectId: string;
comment: string;
comment?: string;
};

View File

@@ -10,8 +10,6 @@ Users can request access to these projects by submitting a request that automati
From the Infisical dashboard, users can view all projects within the organization:
From the Infisical dashboard, users can view all projects within the organization:
1. Navigate to the main dashboard after logging in
2. The overview page for each product displays two tabs:

View File

@@ -58,7 +58,7 @@ const RequestAccessModal = ({ projectId, onPopUpToggle }: RequestAccessModalProp
createNotification({
type: "success",
title: "Project Access Request Sent",
text: "Project admins will receive an email and will grant you access."
text: "Projects admins will receive an email of your request"
});
onPopUpToggle();
}
@@ -257,14 +257,7 @@ export const AllProjectView = ({ type, onListViewToggle }: Props) => {
icon={faFolderOpen}
className="mb-4 mt-2 w-full text-center text-5xl text-mineshaft-400"
/>
<div className="text-center font-light">
You are not part of any projects in this organization yet. When you are, they will
appear here.
</div>
<div className="mt-0.5 text-center font-light">
Create a new project, or ask other organization members to give you necessary
permissions.
</div>
<div className="text-center font-light">No Projects Found</div>
</div>
)}
<Modal