refactor: rename recipients route to people, update all frontend references

This commit is contained in:
2026-06-16 11:26:21 +02:00
parent d67f31cf54
commit ecc3cf1b55
37 changed files with 553 additions and 194 deletions
+6 -6
View File
@@ -1,7 +1,7 @@
import { getI18n } from "@/i18n/server"
import { AssetService } from "@/services/asset.service"
import { ItemService } from "@/services/item.service"
import { RecipientService } from "@/services/recipient.service"
import { PersonService } from "@/services/person.service"
import Card from "./_components/card"
@@ -10,7 +10,7 @@ export default async function Home() {
const copy = dictionary.dashboardHome
const totalItems = await ItemService.findAllItemsCount()
const totalAssets = await AssetService.findAllAssetsCount()
const totalRecipients = await RecipientService.findAllRecipientsCount()
const totalPeople = await PersonService.findAllPeopleCount()
return (
<div className="container mx-auto p-4">
@@ -65,10 +65,10 @@ export default async function Home() {
}
/>
<Card
title={copy.cards.recipients.title}
total={totalRecipients}
countLabel={copy.cards.recipients.countLabel}
href="/recipients"
title={copy.cards.people.title}
total={totalPeople}
countLabel={copy.cards.people.countLabel}
href="/people"
icon={
<svg
xmlns="http://www.w3.org/2000/svg"