Rename peoples to people

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-03-14 14:42:43 +04:00
parent 8a2478fe82
commit 1f0e8316b4
6 changed files with 13 additions and 13 deletions

View File

@@ -101,7 +101,7 @@ function App() {
}
/>
<Route
path="peoples"
path="people"
element={
<Suspense>
<ErrorBoundaryWithLocation>
@@ -111,7 +111,7 @@ function App() {
}
/>
<Route
path="peoples/create"
path="people/create"
element={
<Suspense>
<ErrorBoundaryWithLocation>
@@ -121,7 +121,7 @@ function App() {
}
/>
<Route
path="peoples/:peopleId"
path="people/:peopleId"
element={
<Suspense>
<ErrorBoundaryWithLocation>

View File

@@ -151,13 +151,13 @@ function getNavItems(organizationId?: string): NavItem[] {
title: "Organizations",
icon: Building,
url: organizationId
? `/organizations/${organizationId}/peoples`
? `/organizations/${organizationId}/people`
: undefined,
items: organizationId
? [
{
title: "Peoples",
url: `/organizations/${organizationId}/peoples`,
url: `/organizations/${organizationId}/people`,
icon: Users,
},
{

View File

@@ -200,7 +200,7 @@ function BreadcrumbPeopleList() {
<BreadcrumbSeparator />
<BreadcrumbItem>
<BreadcrumbLink asChild>
<Link to={`/organizations/${organizationId}/peoples`}>People</Link>
<Link to={`/organizations/${organizationId}/people`}>People</Link>
</BreadcrumbLink>
</BreadcrumbItem>
<Outlet />
@@ -242,7 +242,7 @@ function BreadcrumbPeopleOverview() {
<BreadcrumbItem>
<BreadcrumbLink asChild>
<Link
to={`/organizations/${organizationId}/peoples/${data.people.id}`}
to={`/organizations/${organizationId}/people/${data.people.id}`}
>
{data.people.fullName}
</Link>
@@ -416,7 +416,7 @@ export default function ConsoleLayout() {
element={<BreadcrumbCreateFramework />}
/>
</Route>
<Route path="peoples" element={<BreadcrumbPeopleList />}>
<Route path="people" element={<BreadcrumbPeopleList />}>
<Route
path=":peopleId"
element={

View File

@@ -119,7 +119,7 @@ function CreatePeoplePageContent() {
variant: "default",
});
navigate(
`/organizations/${organizationId}/peoples/${response.createPeople.peopleEdge.node.id}`
`/organizations/${organizationId}/people/${response.createPeople.peopleEdge.node.id}`
);
},
onError: (error) => {

View File

@@ -184,7 +184,7 @@ function PeopleListContent({
style={{ borderRadius: "0.5rem" }}
className="gap-2"
>
<Link to={`/organizations/${organizationId}/peoples/create`}>
<Link to={`/organizations/${organizationId}/people/create`}>
<UserPlus className="h-4 w-4" />
Add a people
</Link>
@@ -195,7 +195,7 @@ function PeopleListContent({
{peoples.map((person) => (
<Link
key={person?.id}
to={`/organizations/${organizationId}/peoples/${person?.id}`}
to={`/organizations/${organizationId}/people/${person?.id}`}
className="block"
>
<div className="flex items-center justify-between p-4 rounded-xl border bg-card hover:bg-accent/5 transition-colors">

View File

@@ -172,7 +172,7 @@ function PolicyOverviewPageContent({
<div className="flex items-center gap-1">
<User className="h-3 w-3" />
<Link
to={`/organizations/${organizationId}/peoples/${policy.owner.id}`}
to={`/organizations/${organizationId}/people/${policy.owner.id}`}
className="hover:underline"
>
{policy.owner.fullName}
@@ -358,7 +358,7 @@ function PolicyOverviewPageContent({
<span className="text-sm">Owner</span>
</div>
<Link
to={`/organizations/${organizationId}/peoples/${policy.owner?.id}`}
to={`/organizations/${organizationId}/people/${policy.owner?.id}`}
className="hover:underline"
>
<p className="font-medium">