feat: update admin interface with new requests link and enhance UI elements

This commit is contained in:
Marco Pedone 2026-03-30 11:30:35 +02:00
parent b9219fbbfe
commit 3455fc8e93
4 changed files with 21 additions and 2 deletions

View file

@ -566,6 +566,7 @@ const Main = () => {
// se superato periodo interruzione, ma non interrotto, non scaduto e non in conferma, mostra avviso
if (
!isAdmin &&
!servizio.acceptedInterr &&
isBefore(
new Date(),

View file

@ -336,13 +336,21 @@ export const RichiesteTable = ({ data }: RichiesteTableProps) => {
return (
<Popover>
<PopoverTrigger asChild>
<Button size="sm" variant="outline">
<Button
className="data-[state=open]:border-primary data-[state=open]:bg-primary/10"
size="sm"
variant="outline"
>
{annunci.length} Annunci
</Button>
</PopoverTrigger>
<PopoverContent
align="end"
className="max-h-[50vh] w-[80vw] overflow-y-auto sm:max-h-full"
className="max-h-[50vh] w-[80vw] overflow-y-auto sm:max-h-220"
collisionPadding={{
top: 20,
bottom: 20,
}}
>
<PopoverHeader>
<PopoverTitle>Annunci Inseriti</PopoverTitle>

View file

@ -745,6 +745,11 @@ export const en: LangDict = {
icon: { className: "stroke-green-500", icon: "users" },
title: "Users",
},
{
href: "/area-riservata/admin/richieste",
icon: { className: "stroke-purple-500", icon: "search" },
title: "Requests",
},
{
href: "/area-riservata/admin/chats",
icon: { className: "", icon: "messages" },

View file

@ -741,6 +741,11 @@ export const it: LangDict = {
icon: { className: "stroke-green-500", icon: "users" },
title: "Utenti",
},
{
href: "/area-riservata/admin/richieste",
icon: { className: "stroke-purple-500", icon: "search" },
title: "Richieste",
},
{
href: "/area-riservata/admin/chats",
icon: { className: "", icon: "messages" },