feat: updated by review comment

This commit is contained in:
=
2025-04-03 23:28:18 +05:30
parent ee536717c0
commit 6bf9ab5937
4 changed files with 6 additions and 14 deletions
@@ -724,7 +724,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
.string() .string()
.trim() .trim()
.refine((val) => characterValidator([CharacterType.AlphaNumeric, CharacterType.Hyphen])(val), { .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() .optional()
}), }),
@@ -771,9 +771,10 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
CharacterType.Exclamation CharacterType.Exclamation
])(val), ])(val),
{ {
message: "Invalid pattern: only alphanumeric characters, spaces, - are allowed." message: "Invalid pattern: only alphanumeric characters, spaces, -.!, are allowed."
} }
) )
.optional()
}), }),
response: { response: {
200: z.object({ 200: z.object({
@@ -176,5 +176,5 @@ export type TSearchProjectsDTO = {
export type TProjectAccessRequestDTO = { export type TProjectAccessRequestDTO = {
permission: OrgServiceActor; permission: OrgServiceActor;
projectId: string; projectId: string;
comment: string; comment?: string;
}; };
@@ -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:
From the Infisical dashboard, users can view all projects within the organization:
1. Navigate to the main dashboard after logging in 1. Navigate to the main dashboard after logging in
2. The overview page for each product displays two tabs: 2. The overview page for each product displays two tabs:
@@ -58,7 +58,7 @@ const RequestAccessModal = ({ projectId, onPopUpToggle }: RequestAccessModalProp
createNotification({ createNotification({
type: "success", type: "success",
title: "Project Access Request Sent", 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(); onPopUpToggle();
} }
@@ -257,14 +257,7 @@ export const AllProjectView = ({ type, onListViewToggle }: Props) => {
icon={faFolderOpen} icon={faFolderOpen}
className="mb-4 mt-2 w-full text-center text-5xl text-mineshaft-400" className="mb-4 mt-2 w-full text-center text-5xl text-mineshaft-400"
/> />
<div className="text-center font-light"> <div className="text-center font-light">No Projects Found</div>
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> </div>
)} )}
<Modal <Modal