diff --git a/artifacts/tx-os/src/pages/admin.tsx b/artifacts/tx-os/src/pages/admin.tsx index 7d87f04f..38fc3649 100644 --- a/artifacts/tx-os/src/pages/admin.tsx +++ b/artifacts/tx-os/src/pages/admin.tsx @@ -67,6 +67,7 @@ import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Switch } from "@/components/ui/switch"; import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet"; +import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"; import { useToast } from "@/hooks/use-toast"; import { cn } from "@/lib/utils"; import { formatDate as formatDateUtil, formatWeekday as formatWeekdayUtil } from "@/lib/i18n-format"; @@ -2782,23 +2783,52 @@ function GroupDetailEditor({ groupId, onClose, onSaved }: { groupId: number; onC {tab === "roles" && (

{t("admin.groups.rolesHint")}

- {roles?.map((r) => ( - - ))} + {roles?.map((r) => { + const primaryDesc = lang === "ar" ? r.descriptionAr : r.descriptionEn; + const secondaryDesc = lang === "ar" ? r.descriptionEn : r.descriptionAr; + const secondaryDir = lang === "ar" ? "ltr" : "rtl"; + const heading = primaryDesc || secondaryDesc || r.name; + const showSecondary = !!(primaryDesc && secondaryDesc); + return ( + + + + + +
+ {r.descriptionAr &&
{r.descriptionAr}
} + {r.descriptionEn &&
{r.descriptionEn}
} +
{r.name}
+
+
+
+ ); + })} {(!roles || roles.length === 0) && (

{t("admin.groups.rolesEmpty")}

)}