Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: updated by review comment

=6bf9ab59377e
diff --git a/backend/src/server/routes/v1/project-router.ts b/backend/src/server/routes/v1/project-router.ts
index 1cff95a8fb..030d9c91c1 100644
--- a/backend/src/server/routes/v1/project-router.ts
+++ b/backend/src/server/routes/v1/project-router.ts
@@ -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({
diff --git a/backend/src/services/project/project-types.ts b/backend/src/services/project/project-types.ts
index ce6e764855..30519005d8 100644
--- a/backend/src/services/project/project-types.ts
+++ b/backend/src/services/project/project-types.ts
@@ -176,5 +176,5 @@ export type TSearchProjectsDTO = {
export type TProjectAccessRequestDTO = {
permission: OrgServiceActor;
projectId: string;
- comment: string;
+ comment?: string;
};
diff --git a/docs/documentation/platform/access-controls/project-access-requests.mdx b/docs/documentation/platform/access-controls/project-access-requests.mdx
index 4d124f1f9c..38812c0037 100644
--- a/docs/documentation/platform/access-controls/project-access-requests.mdx
+++ b/docs/documentation/platform/access-controls/project-access-requests.mdx
@@ -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:
diff --git a/frontend/src/pages/organization/SecretManagerOverviewPage/components/AllProjectView.tsx b/frontend/src/pages/organization/SecretManagerOverviewPage/components/AllProjectView.tsx
index 2bf6a38347..d5dbc15b96 100644
--- a/frontend/src/pages/organization/SecretManagerOverviewPage/components/AllProjectView.tsx
+++ b/frontend/src/pages/organization/SecretManagerOverviewPage/components/AllProjectView.tsx
@@ -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