⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
feat: add instance user administration panel (#1400)
Tin Severc51e98342c41
diff --git a/apps/web/src/components/admin/user-management-panel.tsx b/apps/web/src/components/admin/user-management-panel.tsxnew file mode 100644index 000000000..f7e381445--- /dev/null+++ b/apps/web/src/components/admin/user-management-panel.tsx@@ -0,0 +1,696 @@+import {+ BanIcon,+ CheckCircle2Icon,+ ChevronLeftIcon,+ ChevronRightIcon,+ EllipsisIcon,+ PencilIcon,+ RefreshCwIcon,+ SearchIcon,+ ShieldCheckIcon,+ Trash2Icon,+ UserRoundCheckIcon,+ UsersRoundIcon,+} from "lucide-react";+import { type FormEvent, useEffect, useState } from "react";+import { useTranslation } from "react-i18next";+import useAuth from "@/components/providers/auth-provider/hooks/use-auth";+import {+ AlertDialog,+ AlertDialogClose,+ AlertDialogDescription,+ AlertDialogFooter,+ AlertDialogHeader,+ AlertDialogPopup,+ AlertDialogTitle,+} from "@/components/ui/alert-dialog";+import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";+import { Badge } from "@/components/ui/badge";+import { Button } from "@/components/ui/button";+import {+ Dialog,+ DialogClose,+ DialogDescription,+ DialogFooter,+ DialogHeader,+ DialogPanel,+ DialogPopup,+ DialogTitle,+} from "@/components/ui/dialog";+import { Field, FieldLabel } from "@/components/ui/field";+import { Input } from "@/components/ui/input";+import {+ InputGroup,+ InputGroupAddon,+ InputGroupInput,+} from "@/components/ui/input-group";+import {+ Menu,+ MenuItem,+ MenuPopup,+ MenuSeparator,+ MenuTrigger,+} from "@/components/ui/menu";+import {+ Select,+ SelectItem,+ SelectPopup,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { Skeleton } from "@/components/ui/skeleton";+import {+ Table,+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow,+} from "@/components/ui/table";+import useDeleteAdminUser from "@/hooks/mutations/admin/use-delete-admin-user";+import useToggleAdminUserStatus from "@/hooks/mutations/admin/use-toggle-admin-user-status";+import useUpdateAdminUser from "@/hooks/mutations/admin/use-update-admin-user";+import useAdminUsers, {+ ADMIN_USERS_PAGE_SIZE,+ type AdminUser,+} from "@/hooks/queries/admin/use-admin-users";+import { formatDateMedium } from "@/lib/format";++type PendingAction = {+ type: "deactivate" | "reactivate" | "delete";+ user: AdminUser;+};++type EditValues = {+ name: string;+ email: string;+ role: "admin" | "user";+};++function getUserInitials(name: string) {+ return (+ name+ .split(/\s+/)+ .filter(Boolean)+ .slice(0, 2)+ .map((part) => part[0]?.toUpperCase())+ .join("") || "?"+ );+}++function UserManagementPanel() {+ const { t } = useTranslation();+ const { user: currentUser } = useAuth();+ const [search, setSearch] = useState("");+ const [debouncedSearch, setDebouncedSearch] = useState("");+ const [page, setPage] = useState(0);+ const [editingUser, setEditingUser] = useState<AdminUser | null>(null);+ const [pendingAction, setPendingAction] = useState<PendingAction | null>(+ null,+ );+ const [editValues, setEditValues] = useState<EditValues>({+ name: "",+ email: "",+ role: "user",+ });++ const { data, isLoading, isFetching, isError, refetch } = useAdminUsers(+ debouncedSearch,+ page,+ );+ const { mutateAsync: updateUser, isPending: isUpdating } =+ useUpdateAdminUser();+ const { mutateAsync: toggleUserStatus, isPending: isTogglingStatus } =+ useToggleAdminUserStatus();+ const { mutateAsync: deleteUser, isPending: isDeleting } =+ useDeleteAdminUser();++ useEffect(() => {+ const timeout = window.setTimeout(() => {+ setDebouncedSearch(search);+ setPage(0);+ }, 250);++ return () => window.clearTimeout(timeout);+ }, [search]);++ useEffect(() => {+ if (!editingUser) return;+ setEditValues({+ name: editingUser.name,+ email: editingUser.email,+ role: editingUser.role === "admin" ? "admin" : "user",+ });+ }, [editingUser]);++ const total = data?.total ?? 0;+ const isSearchActive = debouncedSearch.trim().length > 0;+ const pageCount = Math.max(1, Math.ceil(total / ADMIN_USERS_PAGE_SIZE));+ const isBusy = isTogglingStatus || isDeleting;++ useEffect(() => {+ if (page >= pageCount) {+ setPage(pageCount - 1);+ }+ }, [page, pageCount]);++ const handleEditSubmit = async (event: FormEvent<HTMLFormElement>) => {+ event.preventDefault();+ if (!editingUser) return;++ const name = editValues.name.trim();+ const email = editValues.email.trim().toLowerCase();+ if (!name || !email) return;++ try {+ await updateUser({+ userId: editingUser.id,+ name,+ email,+ role:+ editingUser.id === currentUser?.id+ ? editingUser.role === "admin"+ ? "admin"+ : "user"+ : editValues.role,+ });+ setEditingUser(null);+ } catch {+ return;+ }+ };++ const handleConfirmedAction = async () => {+ if (!pendingAction) return;++ try {+ if (pendingAction.type === "delete") {+ await deleteUser(pendingAction.user.id);+ } else {+ const deactivate = pendingAction.type === "deactivate";+ await toggleUserStatus({+ userId: pendingAction.user.id,+ deactivate,+ });+ }+ setPendingAction(null);+ } catch {+ return;+ }+ };++ return (+ <div className="mx-auto flex w-full max-w-6xl flex-col gap-6">+ <header className="flex flex-col gap-2">+ <div className="flex items-center gap-3">+ <div className="flex size-10 items-center justify-center rounded-xl border bg-sidebar text-muted-foreground shadow-xs/5">+ <UsersRoundIcon aria-hidden="true" />+ </div>+ <div className="min-w-0">+ <div className="flex items-center gap-2">+ <h1 className="text-2xl font-semibold tracking-tight">+ {t("settings:adminUsers.title")}+ </h1>+ <Badge variant="outline" size="sm">+ {t("settings:adminUsers.instanceBadge")}+ </Badge>+ </div>+ <p className="text-sm text-muted-foreground">+ {t("settings:adminUsers.subtitle")}+ </p>+ </div>+ </div>+ </header>++ <section className="overflow-hidden rounded-xl border bg-card shadow-xs/5">+ <div className="flex flex-col gap-4 border-b bg-sidebar/40 p-4 sm:flex-row sm:items-center sm:justify-between">+ <div className="flex items-center gap-3">+ <div>+ <h2 className="text-sm font-medium">+ {t("settings:adminUsers.directoryTitle")}+ </h2>+ <p className="text-xs text-muted-foreground">+ {isSearchActive+ ? t("settings:adminUsers.searchCount", { count: total })+ : t("settings:adminUsers.userCount", { count: total })}+ </p>+ </div>+ {isFetching && !isLoading ? (+ <RefreshCwIcon+ aria-label={t("settings:adminUsers.refreshing")}+ className="animate-spin text-muted-foreground"+ />+ ) : null}+ </div>++ <InputGroup className="w-full sm:w-72">+ <InputGroupInput+ type="search"+ value={search}+ onChange={(event) => setSearch(event.target.value)}+ placeholder={t("settings:adminUsers.searchPlaceholder")}+ aria-label={t("settings:adminUsers.searchLabel")}+ />+ <InputGroupAddon align="inline-start">+ <SearchIcon aria-hidden="true" />+ </InputGroupAddon>+ </InputGroup>+ </div>++ <div className="overflow-x-auto">+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead className="ps-6">+ {t("settings:adminUsers.columns.user")}+ </TableHead>+ <TableHead>{t("settings:adminUsers.columns.role")}</TableHead>+ <TableHead>{t("settings:adminUsers.columns.status")}</TableHead>+ <TableHead>{t("settings:adminUsers.columns.joined")}</TableHead>+ <TableHead className="w-px pe-6">+ <span className="sr-only">+ {t("settings:adminUsers.columns.actions")}+ </span>+ </TableHead>+ </TableRow>+ </TableHeader>+ <TableBody>+ {isLoading+ ? ["first", "second", "third", "fourth", "fifth"].map(+ (skeleton) => (+ <TableRow key={skeleton}>+ <TableCell className="ps-6 py-3" colSpan={5}>+ <Skeleton className="h-9 w-full" />+ </TableCell>+ </TableRow>+ ),+ )+ : null}++ {!isLoading && isError ? (+ <TableRow>+ <TableCell colSpan={5} className="h-56 text-center">+ <div className="flex flex-col items-center gap-3">+ <p className="text-sm text-muted-foreground">+ {t("settings:adminUsers.loadError")}+ </p>+ <Button+ type="button"+ variant="outline"+ size="sm"+ onClick={() => refetch()}+ >+ <RefreshCwIcon aria-hidden="true" />+ {t("settings:adminUsers.retry")}+ </Button>+ </div>+ </TableCell>+ </TableRow>+ ) : null}++ {!isLoading && !isError && data?.users.length === 0 ? (+ <TableRow>+ <TableCell colSpan={5} className="h-56 text-center">+ <div className="flex flex-col items-center gap-2">+ <div className="flex size-10 items-center justify-center rounded-full bg-muted text-muted-foreground">+ <UsersRoundIcon aria-hidden="true" />+ </div>+ <p className="text-sm font-medium">+ {t("settings:adminUsers.emptyTitle")}+ </p>+ <p className="max-w-sm text-xs text-muted-foreground">+ {t("settings:adminUsers.emptyDescription")}+ </p>+ {search ? (+ <Button+ type="button"+ variant="ghost"+ size="sm"+ onClick={() => setSearch("")}+ >+ {t("settings:adminUsers.clearSearch")}+ </Button>+ ) : null}+ </div>+ </TableCell>+ </TableRow>+ ) : null}++ {!isLoading && !isError+ ? data?.users.map((managedUser) => {+ const isSelf = managedUser.id === currentUser?.id;+ const isAdmin = managedUser.role === "admin";+ const isDeactivated = managedUser.banned === true;++ return (+ <TableRow key={managedUser.id}>+ <TableCell className="ps-6 py-3">+ <div className="flex items-center gap-3">+ <Avatar className="size-9 border bg-muted">+ {managedUser.image ? (+ <AvatarImage+ src={managedUser.image}+ alt={managedUser.name}+ />+ ) : null}+ <AvatarFallback className="text-xs font-medium">+ {getUserInitials(managedUser.name)}+ </AvatarFallback>+ </Avatar>+ <div className="min-w-0">+ <div className="flex items-center gap-2">+ <span className="truncate text-sm font-medium">+ {managedUser.name}+ </span>+ {isSelf ? (+ <span className="text-xs text-muted-foreground">+ {t("settings:adminUsers.you")}+ </span>+ ) : null}+ </div>+ <span className="block max-w-72 truncate text-xs text-muted-foreground">+ {managedUser.email}+ </span>+ </div>+ </div>+ </TableCell>+ <TableCell className="py-3">+ <Badge+ variant={isAdmin ? "outline" : "secondary"}+ className="gap-1"+ >+ {isAdmin ? (+ <ShieldCheckIcon aria-hidden="true" />+ ) : (+ <UserRoundCheckIcon aria-hidden="true" />+ )}+ {t(+ isAdmin+ ? "settings:adminUsers.roles.admin"+ : "settings:adminUsers.roles.user",+ )}+ </Badge>+ </TableCell>+ <TableCell className="py-3">+ <div className="flex items-center gap-2 text-xs">+ <span+ aria-hidden="true"+ className={`size-1.5 rounded-full ${+ isDeactivated+ ? "bg-destructive"+ : "bg-emerald-500"+ }`}+ />+ <span+ className={+ isDeactivated+ ? "text-destructive"+ : "text-muted-foreground"+ }+ >+ {t(+ isDeactivated+ ? "settings:adminUsers.status.deactivated"+ : "settings:adminUsers.status.active",+ )}+ </span>+ </div>+ </TableCell>+ <TableCell className="py-3 text-sm text-muted-foreground tabular-nums">+ {formatDateMedium(managedUser.createdAt)}+ </TableCell>+ <TableCell className="pe-6 py-3 text-right">+ <Menu>+ <MenuTrigger+ render={+ <Button+ type="button"+ variant="ghost"+ size="icon"+ aria-label={t(+ "settings:adminUsers.actions.open",+ { name: managedUser.name },+ )}+ />+ }+ >+ <EllipsisIcon aria-hidden="true" />+ </MenuTrigger>+ <MenuPopup align="end">+ <MenuItem+ closeOnClick+ onClick={() => setEditingUser(managedUser)}+ >+ <PencilIcon aria-hidden="true" />+ {t("settings:adminUsers.actions.edit")}+ </MenuItem>+ {!isSelf ? (+ <>+ <MenuSeparator />+ <MenuItem+ closeOnClick+ onClick={() =>+ setPendingAction({+ type: isDeactivated+ ? "reactivate"+ : "deactivate",+ user: managedUser,+ })+ }+ >+ {isDeactivated ? (+ <CheckCircle2Icon aria-hidden="true" />+ ) : (+ <BanIcon aria-hidden="true" />+ )}+ {t(+ isDeactivated+ ? "settings:adminUsers.actions.reactivate"+ : "settings:adminUsers.actions.deactivate",+ )}+ </MenuItem>+ <MenuItem+ closeOnClick+ variant="destructive"+ onClick={() =>+ setPendingAction({+ type: "delete",+ user: managedUser,+ })+ }+ >+ <Trash2Icon aria-hidden="true" />+ {t("common:actions.delete")}+ </MenuItem>+ </>+ ) : null}+ </MenuPopup>+ </Menu>+ </TableCell>+ </TableRow>+ );+ })+ : null}+ </TableBody>+ </Table>+ </div>++ {!isLoading && !isError ? (+ <div className="flex items-center justify-between gap-4 border-t bg-sidebar/30 px-4 py-3">+ <p className="text-xs text-muted-foreground tabular-nums">+ {t("settings:adminUsers.pagination", {+ current: page + 1,+ total: pageCount,+ })}+ </p>+ <div className="flex items-center gap-2">+ <Button+ type="button"+ variant="outline"+ size="sm"+ disabled={page === 0 || isFetching}+ onClick={() => setPage((value) => Math.max(0, value - 1))}+ >+ <ChevronLeftIcon aria-hidden="true" />+ {t("settings:adminUsers.previous")}+ </Button>+ <Button+ type="button"+ variant="outline"+ size="sm"+ disabled={page + 1 >= pageCount || isFetching}+ onClick={() => setPage((value) => value + 1)}+ >+ {t("settings:adminUsers.next")}+ <ChevronRightIcon aria-hidden="true" />+ </Button>+ </div>+ </div>+ ) : null}+ </section>++ <Dialog+ open={editingUser !== null}+ onOpenChange={(open) => {+ if (!open && !isUpdating) setEditingUser(null);+ }}+ >+ <DialogPopup className="sm:max-w-md">+ <form className="contents" onSubmit={handleEditSubmit}>+ <DialogHeader>+ <DialogTitle>{t("settings:adminUsers.edit.title")}</DialogTitle>+ <DialogDescription>+ {t("settings:adminUsers.edit.description")}+ </DialogDescription>+ </DialogHeader>+ <DialogPanel>+ <div className="flex flex-col gap-4">+ <Field>+ <FieldLabel htmlFor="admin-user-name">+ {t("settings:adminUsers.edit.name")}+ </FieldLabel>+ <Input+ id="admin-user-name"+ name="name"+ type="text"+ required+ value={editValues.name}+ onChange={(event) =>+ setEditValues((values) => ({+ ...values,+ name: event.target.value,+ }))+ }+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="admin-user-email">+ {t("settings:adminUsers.edit.email")}+ </FieldLabel>+ <Input+ id="admin-user-email"+ name="email"+ type="email"+ required+ value={editValues.email}+ onChange={(event) =>+ setEditValues((values) => ({+ ...values,+ email: event.target.value,+ }))+ }+ />+ </Field>+ <Field>+ <FieldLabel htmlFor="admin-user-role">+ {t("settings:adminUsers.edit.role")}+ </FieldLabel>+ <Select+ items={{+ user: t("settings:adminUsers.roles.user"),+ admin: t("settings:adminUsers.roles.admin"),+ }}+ value={editValues.role}+ disabled={editingUser?.id === currentUser?.id}+ onValueChange={(value) => {+ if (value === "admin" || value === "user") {+ setEditValues((values) => ({ ...values, role: value }));+ }+ }}+ >+ <SelectTrigger id="admin-user-role">+ <SelectValue>+ {t(+ editValues.role === "admin"+ ? "settings:adminUsers.roles.admin"+ : "settings:adminUsers.roles.user",+ )}+ </SelectValue>+ </SelectTrigger>+ <SelectPopup>+ <SelectItem value="user">+ {t("settings:adminUsers.roles.user")}+ </SelectItem>+ <SelectItem value="admin">+ {t("settings:adminUsers.roles.admin")}+ </SelectItem>+ </SelectPopup>+ </Select>+ {editingUser?.id === currentUser?.id ? (+ <p className="text-xs text-muted-foreground">+ {t("settings:adminUsers.edit.selfRoleHint")}+ </p>+ ) : null}+ </Field>+ </div>+ </DialogPanel>+ <DialogFooter>+ <DialogClose+ render={<Button type="button" variant="ghost" />}+ disabled={isUpdating}+ >+ {t("common:actions.cancel")}+ </DialogClose>+ <Button type="submit" disabled={isUpdating}>+ {isUpdating+ ? t("settings:adminUsers.edit.saving")+ : t("settings:adminUsers.edit.save")}+ </Button>+ </DialogFooter>+ </form>+ </DialogPopup>+ </Dialog>++ <AlertDialog+ open={pendingAction !== null}+ onOpenChange={(open) => {+ if (!open && !isBusy) setPendingAction(null);+ }}+ >+ <AlertDialogPopup>+ <AlertDialogHeader>+ <AlertDialogTitle>+ {pendingAction+ ? t(`settings:adminUsers.confirm.${pendingAction.type}.title`)+ : ""}+ </AlertDialogTitle>+ <AlertDialogDescription>+ {pendingAction+ ? t(+ `settings:adminUsers.confirm.${pendingAction.type}.description`,+ { name: pendingAction.user.name },+ )+ : ""}+ </AlertDialogDescription>+ </AlertDialogHeader>+ <AlertDialogFooter>+ <AlertDialogClose+ render={<Button type="button" variant="ghost" />}+ disabled={isBusy}+ >+ {t("common:actions.cancel")}+ </AlertDialogClose>+ <Button+ type="button"+ variant={+ pendingAction?.type === "reactivate" ? "default" : "destructive"+ }+ disabled={isBusy}+ onClick={handleConfirmedAction}+ >+ {isBusy+ ? t("settings:adminUsers.confirm.working")+ : pendingAction+ ? t(+ `settings:adminUsers.confirm.${pendingAction.type}.action`,+ )+ : ""}+ </Button>+ </AlertDialogFooter>+ </AlertDialogPopup>+ </AlertDialog>+ </div>+ );+}++export default UserManagementPanel;diff --git a/apps/web/src/fetchers/admin/delete-admin-user.ts b/apps/web/src/fetchers/admin/delete-admin-user.tsnew file mode 100644index 000000000..fa33d37d0--- /dev/null+++ b/apps/web/src/fetchers/admin/delete-admin-user.ts@@ -0,0 +1,11 @@+import { authClient } from "@/lib/auth-client";++export async function deleteAdminUser(userId: string) {+ const { data, error } = await authClient.admin.removeUser({ userId });++ if (error) {+ throw new Error(error.message ?? "");+ }++ return data;+}diff --git a/apps/web/src/fetchers/admin/get-admin-access.ts b/apps/web/src/fetchers/admin/get-admin-access.tsnew file mode 100644index 000000000..7d060211d--- /dev/null+++ b/apps/web/src/fetchers/admin/get-admin-access.ts@@ -0,0 +1,13 @@+import { authClient } from "@/lib/auth-client";++export async function getAdminAccess() {+ const { data, error } = await authClient.admin.hasPermission({+ permissions: { user: ["list"] },+ });++ if (error) {+ return false;+ }++ return data?.success === true;+}diff --git a/apps/web/src/fetchers/admin/get-admin-users.ts b/apps/web/src/fetchers/admin/get-admin-users.tsnew file mode 100644index 000000000..bc3a4b1d4--- /dev/null+++ b/apps/web/src/fetchers/admin/get-admin-users.ts@@ -0,0 +1,90 @@+import { authClient } from "@/lib/auth-client";+import {+ ADMIN_USERS_PAGE_SIZE,+ type AdminUser,+ type AdminUsersResult,+} from "./types";++const SEARCH_BATCH_SIZE = 100;++async function listMatchingUsers(+ search: string,+ searchField: "email" | "name",+): Promise<AdminUser[]> {+ const users: AdminUser[] = [];+ let offset = 0;++ while (true) {+ const { data, error } = await authClient.admin.listUsers({+ query: {+ searchValue: search,+ searchField,+ searchOperator: "contains",+ limit: SEARCH_BATCH_SIZE,+ offset,+ sortBy: "createdAt",+ sortDirection: "desc",+ },+ });++ if (error) {+ throw new Error(error.message ?? "");+ }++ const batch = (data?.users ?? []) as AdminUser[];+ users.push(...batch);+ offset += batch.length;++ if (batch.length === 0 || offset >= (data?.total ?? offset)) {+ return users;+ }+ }+}++export async function getAdminUsers(+ search: string,+ page: number,+): Promise<AdminUsersResult> {+ const normalizedSearch = search.trim();++ if (!normalizedSearch) {+ const { data, error } = await authClient.admin.listUsers({+ query: {+ limit: ADMIN_USERS_PAGE_SIZE,+ offset: page * ADMIN_USERS_PAGE_SIZE,+ sortBy: "createdAt",+ sortDirection: "desc",+ },+ });++ if (error) {+ throw new Error(error.message ?? "");+ }++ return data as AdminUsersResult;+ }++ const results = await Promise.all(+ (["name", "email"] as const).map((searchField) =>+ listMatchingUsers(normalizedSearch, searchField),+ ),+ );+ const usersById = new Map<string, AdminUser>();++ for (const users of results) {+ for (const user of users) {+ usersById.set(user.id, user);+ }+ }++ const sortedUsers = [...usersById.values()].sort(+ (left, right) =>+ new Date(right.createdAt).getTime() - new Date(left.createdAt).getTime(),+ );+ const start = page * ADMIN_USERS_PAGE_SIZE;++ return {+ users: sortedUsers.slice(start, start + ADMIN_USERS_PAGE_SIZE),+ total: sortedUsers.length,+ };+}diff --git a/apps/web/src/fetchers/admin/toggle-admin-user-status.ts b/apps/web/src/fetchers/admin/toggle-admin-user-status.tsnew file mode 100644index 000000000..ff71c5190--- /dev/null+++ b/apps/web/src/fetchers/admin/toggle-admin-user-status.ts@@ -0,0 +1,20 @@+import { authClient } from "@/lib/auth-client";+import type { ToggleAdminUserStatusRequest } from "./types";++export async function toggleAdminUserStatus({+ userId,+ deactivate,+}: ToggleAdminUserStatusRequest) {+ const result = deactivate+ ? await authClient.admin.banUser({+ userId,+ banReason: "Deactivated by an instance administrator",+ })+ : await authClient.admin.unbanUser({ userId });++ if (result.error) {+ throw new Error(result.error.message ?? "");+ }++ return result.data;+}diff --git a/apps/web/src/fetchers/admin/types.ts b/apps/web/src/fetchers/admin/types.tsnew file mode 100644index 000000000..f8f2a7917--- /dev/null+++ b/apps/web/src/fetchers/admin/types.ts@@ -0,0 +1,32 @@+export const ADMIN_USERS_PAGE_SIZE = 20;++export type AdminUser = {+ id: string;+ name: string;+ email: string;+ emailVerified: boolean;+ image?: string | null;+ createdAt: Date;+ updatedAt: Date;+ role?: string | null;+ banned: boolean | null;+ banReason?: string | null;+ banExpires?: Date | null;+};++export type AdminUsersResult = {+ users: AdminUser[];+ total: number;+};++export type UpdateAdminUserRequest = {+ userId: string;+ name: string;+ email: string;+ role: "admin" | "user";+};++export type ToggleAdminUserStatusRequest = {+ userId: string;+ deactivate: boolean;+};diff --git a/apps/web/src/fetchers/admin/update-admin-user.ts b/apps/web/src/fetchers/admin/update-admin-user.tsnew file mode 100644index 000000000..8cac24a90--- /dev/null+++ b/apps/web/src/fetchers/admin/update-admin-user.ts@@ -0,0 +1,20 @@+import { authClient } from "@/lib/auth-client";+import type { UpdateAdminUserRequest } from "./types";++export async function updateAdminUser({+ userId,+ name,+ email,+ role,+}: UpdateAdminUserRequest) {+ const { data, error } = await authClient.admin.updateUser({+ userId,+ data: { name, email, role },+ });++ if (error) {+ throw new Error(error.message ?? "");+ }++ return data;+}diff --git a/apps/web/src/hooks/mutations/admin/use-delete-admin-user.ts b/apps/web/src/hooks/mutations/admin/use-delete-admin-user.tsnew file mode 100644index 000000000..82a1da24b--- /dev/null+++ b/apps/web/src/hooks/mutations/admin/use-delete-admin-user.ts@@ -0,0 +1,27 @@+import { useMutation, useQueryClient } from "@tanstack/react-query";+import { useTranslation } from "react-i18next";+import { deleteAdminUser } from "@/fetchers/admin/delete-admin-user";+import { ADMIN_USERS_QUERY_KEY } from "@/hooks/queries/admin/use-admin-users";+import { toast } from "@/lib/toast";++function useDeleteAdminUser() {+ const { t } = useTranslation();+ const queryClient = useQueryClient();++ return useMutation({+ mutationFn: deleteAdminUser,+ onSuccess: () => {+ toast.success(t("settings:adminUsers.toast.deleted"));+ queryClient.invalidateQueries({ queryKey: ADMIN_USERS_QUERY_KEY });+ },+ onError: (error) => {+ toast.error(+ error instanceof Error && error.message+ ? error.message+ : t("settings:adminUsers.toast.actionError"),+ );+ },+ });+}++export default useDeleteAdminUser;diff --git a/apps/web/src/hooks/mutations/admin/use-toggle-admin-user-status.ts b/apps/web/src/hooks/mutations/admin/use-toggle-admin-user-status.tsnew file mode 100644index 000000000..66315ddda--- /dev/null+++ b/apps/web/src/hooks/mutations/admin/use-toggle-admin-user-status.ts@@ -0,0 +1,33 @@+import { useMutation, useQueryClient } from "@tanstack/react-query";+import { useTranslation } from "react-i18next";+import { toggleAdminUserStatus } from "@/fetchers/admin/toggle-admin-user-status";+import { ADMIN_USERS_QUERY_KEY } from "@/hooks/queries/admin/use-admin-users";+import { toast } from "@/lib/toast";++function useToggleAdminUserStatus() {+ const { t } = useTranslation();+ const queryClient = useQueryClient();++ return useMutation({+ mutationFn: toggleAdminUserStatus,+ onSuccess: (_, variables) => {+ toast.success(+ t(+ variables.deactivate+ ? "settings:adminUsers.toast.deactivated"+ : "settings:adminUsers.toast.reactivated",+ ),+ );+ queryClient.invalidateQueries({ queryKey: ADMIN_USERS_QUERY_KEY });+ },+ onError: (error) => {+ toast.error(+ error instanceof Error && error.message+ ? error.message+ : t("settings:adminUsers.toast.actionError"),+ );+ },+ });+}++export default useToggleAdminUserStatus;diff --git a/apps/web/src/hooks/mutations/admin/use-update-admin-user.ts b/apps/web/src/hooks/mutations/admin/use-update-admin-user.tsnew file mode 100644index 000000000..30fcbc77d--- /dev/null+++ b/apps/web/src/hooks/mutations/admin/use-update-admin-user.ts@@ -0,0 +1,27 @@+import { useMutation, useQueryClient } from "@tanstack/react-query";+import { useTranslation } from "react-i18next";+import { updateAdminUser } from "@/fetchers/admin/update-admin-user";+import { ADMIN_USERS_QUERY_KEY } from "@/hooks/queries/admin/use-admin-users";+import { toast } from "@/lib/toast";++function useUpdateAdminUser() {+ const { t } = useTranslation();+ const queryClient = useQueryClient();++ return useMutation({+ mutationFn: updateAdminUser,+ onSuccess: () => {+ toast.success(t("settings:adminUsers.toast.updated"));+ queryClient.invalidateQueries({ queryKey: ADMIN_USERS_QUERY_KEY });+ },+ onError: (error) => {+ toast.error(+ error instanceof Error && error.message+ ? error.message+ : t("settings:adminUsers.toast.updateError"),+ );+ },+ });+}++export default useUpdateAdminUser;diff --git a/apps/web/src/hooks/queries/admin/use-admin-access.ts b/apps/web/src/hooks/queries/admin/use-admin-access.tsnew file mode 100644index 000000000..3c21496c3--- /dev/null+++ b/apps/web/src/hooks/queries/admin/use-admin-access.ts@@ -0,0 +1,14 @@+import { useQuery } from "@tanstack/react-query";+import { getAdminAccess } from "@/fetchers/admin/get-admin-access";++export const ADMIN_ACCESS_QUERY_KEY = ["admin", "access"] as const;++function useAdminAccess() {+ return useQuery({+ queryKey: ADMIN_ACCESS_QUERY_KEY,+ queryFn: getAdminAccess,+ staleTime: 5 * 60 * 1000,+ });+}++export default useAdminAccess;diff --git a/apps/web/src/hooks/queries/admin/use-admin-users.test.ts b/apps/web/src/hooks/queries/admin/use-admin-users.test.tsnew file mode 100644index 000000000..e42ca9846--- /dev/null+++ b/apps/web/src/hooks/queries/admin/use-admin-users.test.ts@@ -0,0 +1,132 @@+import { beforeEach, describe, expect, it, type Mock, vi } from "vitest";+import { getAdminUsers } from "@/fetchers/admin/get-admin-users";+import { authClient } from "@/lib/auth-client";++vi.mock("@/lib/auth-client", () => ({+ authClient: {+ admin: {+ listUsers: vi.fn(),+ },+ },+}));++const listUsers = authClient.admin.listUsers as Mock;++const ada = {+ id: "ada",+ name: "Ada Lovelace",+ email: "[email protected]",+ emailVerified: true,+ createdAt: new Date("2026-01-02T00:00:00.000Z"),+ updatedAt: new Date("2026-01-02T00:00:00.000Z"),+ role: "admin",+ banned: false,+};++const grace = {+ id: "grace",+ name: "Grace Hopper",+ email: "[email protected]",+ emailVerified: true,+ createdAt: new Date("2026-02-02T00:00:00.000Z"),+ updatedAt: new Date("2026-02-02T00:00:00.000Z"),+ role: "user",+ banned: false,+};++describe("fetchAdminUsers", () => {+ beforeEach(() => {+ listUsers.mockReset();+ });++ it("loads a paginated page in newest-first order", async () => {+ listUsers.mockResolvedValue({+ data: { users: [grace], total: 41 },+ error: null,+ });++ await expect(getAdminUsers("", 1)).resolves.toEqual({+ users: [grace],+ total: 41,+ });+ expect(listUsers).toHaveBeenCalledWith({+ query: {+ limit: 20,+ offset: 20,+ sortBy: "createdAt",+ sortDirection: "desc",+ },+ });+ });++ it("searches names and emails, then removes duplicate users", async () => {+ listUsers+ .mockResolvedValueOnce({+ data: { users: [ada, grace], total: 2 },+ error: null,+ })+ .mockResolvedValueOnce({+ data: { users: [ada], total: 1 },+ error: null,+ });++ await expect(getAdminUsers(" a ", 0)).resolves.toEqual({+ users: [grace, ada],+ total: 2,+ });+ expect(listUsers).toHaveBeenNthCalledWith(1, {+ query: expect.objectContaining({+ searchValue: "a",+ searchField: "name",+ }),+ });+ expect(listUsers).toHaveBeenNthCalledWith(2, {+ query: expect.objectContaining({+ searchValue: "a",+ searchField: "email",+ }),+ });+ });++ it("paginates complete search results beyond the first API batch", async () => {+ const firstBatch = Array.from({ length: 100 }, (_, index) => ({+ ...ada,+ id: `user-${index}`,+ email: `user-${index}@example.com`,+ }));+ const finalUser = {+ ...ada,+ id: "user-100",+ email: "[email protected]",+ };++ listUsers+ .mockResolvedValueOnce({+ data: { users: firstBatch, total: 101 },+ error: null,+ })+ .mockResolvedValueOnce({+ data: { users: [], total: 0 },+ error: null,+ })+ .mockResolvedValueOnce({+ data: { users: [finalUser], total: 101 },+ error: null,+ });++ await expect(getAdminUsers("user", 5)).resolves.toEqual({+ users: [finalUser],+ total: 101,+ });+ expect(listUsers).toHaveBeenNthCalledWith(+ 3,+ expect.objectContaining({+ query: expect.objectContaining({+ searchField: "name",+ limit: 100,+ offset: 100,+ }),+ }),+ );+ });+});diff --git a/apps/web/src/hooks/queries/admin/use-admin-users.ts b/apps/web/src/hooks/queries/admin/use-admin-users.tsnew file mode 100644index 000000000..098c063f3--- /dev/null+++ b/apps/web/src/hooks/queries/admin/use-admin-users.ts@@ -0,0 +1,18 @@+import { useQuery } from "@tanstack/react-query";+import { getAdminUsers } from "@/fetchers/admin/get-admin-users";++export {+ ADMIN_USERS_PAGE_SIZE,+ type AdminUser,+} from "@/fetchers/admin/types";++export const ADMIN_USERS_QUERY_KEY = ["admin", "users"] as const;+function useAdminUsers(search: string, page: number) {+ return useQuery({+ queryKey: [...ADMIN_USERS_QUERY_KEY, search, page],+ queryFn: () => getAdminUsers(search, page),+ placeholderData: (previousData) => previousData,+ });+}++export default useAdminUsers;diff --git a/apps/web/src/routeTree.gen.ts b/apps/web/src/routeTree.gen.tsindex 57f8e9444..7206c05b9 100644--- a/apps/web/src/routeTree.gen.ts+++ b/apps/web/src/routeTree.gen.ts@@ -32,6 +32,7 @@ import { Route as LayoutAuthenticatedDashboardIndexRouteImport } from './routes/import { Route as LayoutAuthenticatedDashboardInvitationsRouteImport } from './routes/_layout/_authenticated/dashboard/invitations'import { Route as LayoutAuthenticatedDashboardSettingsRouteImport } from './routes/_layout/_authenticated/dashboard/settings'import { Route as LayoutAuthenticatedDashboardSettingsAccountRouteImport } from './routes/_layout/_authenticated/dashboard/settings/account'+import { Route as LayoutAuthenticatedDashboardSettingsAdminRouteImport } from './routes/_layout/_authenticated/dashboard/settings/admin'import { Route as LayoutAuthenticatedDashboardSettingsProjectsRouteImport } from './routes/_layout/_authenticated/dashboard/settings/projects'import { Route as LayoutAuthenticatedDashboardSettingsWorkspaceRouteImport } from './routes/_layout/_authenticated/dashboard/settings/workspace'import { Route as LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteImport } from './routes/_layout/_authenticated/dashboard/workspace/$workspaceId'@@ -40,6 +41,7 @@ import { Route as LayoutAuthenticatedDashboardSettingsAccountDeveloperRouteImporimport { Route as LayoutAuthenticatedDashboardSettingsAccountInformationRouteImport } from './routes/_layout/_authenticated/dashboard/settings/account/information'import { Route as LayoutAuthenticatedDashboardSettingsAccountNotificationsRouteImport } from './routes/_layout/_authenticated/dashboard/settings/account/notifications'import { Route as LayoutAuthenticatedDashboardSettingsAccountPreferencesRouteImport } from './routes/_layout/_authenticated/dashboard/settings/account/preferences'+import { Route as LayoutAuthenticatedDashboardSettingsAdminUsersRouteImport } from './routes/_layout/_authenticated/dashboard/settings/admin/users'import { Route as LayoutAuthenticatedDashboardSettingsWorkspaceBillingRouteImport } from './routes/_layout/_authenticated/dashboard/settings/workspace/billing'import { Route as LayoutAuthenticatedDashboardSettingsWorkspaceGeneralRouteImport } from './routes/_layout/_authenticated/dashboard/settings/workspace/general'import { Route as LayoutAuthenticatedDashboardSettingsWorkspaceLabelsRouteImport } from './routes/_layout/_authenticated/dashboard/settings/workspace/labels'@@ -180,6 +182,12 @@ const LayoutAuthenticatedDashboardSettingsAccountRoute =path: '/account',getParentRoute: () => LayoutAuthenticatedDashboardSettingsRoute,} as any)+const LayoutAuthenticatedDashboardSettingsAdminRoute =+ LayoutAuthenticatedDashboardSettingsAdminRouteImport.update({+ id: '/admin',+ path: '/admin',+ getParentRoute: () => LayoutAuthenticatedDashboardSettingsRoute,+ } as any)const LayoutAuthenticatedDashboardSettingsProjectsRoute =LayoutAuthenticatedDashboardSettingsProjectsRouteImport.update({id: '/projects',@@ -228,6 +236,12 @@ const LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute =path: '/preferences',getParentRoute: () => LayoutAuthenticatedDashboardSettingsAccountRoute,} as any)+const LayoutAuthenticatedDashboardSettingsAdminUsersRoute =+ LayoutAuthenticatedDashboardSettingsAdminUsersRouteImport.update({+ id: '/users',+ path: '/users',+ getParentRoute: () => LayoutAuthenticatedDashboardSettingsAdminRoute,+ } as any)const LayoutAuthenticatedDashboardSettingsWorkspaceBillingRoute =LayoutAuthenticatedDashboardSettingsWorkspaceBillingRouteImport.update({id: '/billing',@@ -379,6 +393,7 @@ export interface FileRoutesByFullPath {'/dashboard/settings': typeof LayoutAuthenticatedDashboardSettingsRouteWithChildren'/dashboard/': typeof LayoutAuthenticatedDashboardIndexRoute'/dashboard/settings/account': typeof LayoutAuthenticatedDashboardSettingsAccountRouteWithChildren+ '/dashboard/settings/admin': typeof LayoutAuthenticatedDashboardSettingsAdminRouteWithChildren'/dashboard/settings/projects': typeof LayoutAuthenticatedDashboardSettingsProjectsRouteWithChildren'/dashboard/settings/workspace': typeof LayoutAuthenticatedDashboardSettingsWorkspaceRouteWithChildren'/dashboard/workspace/$workspaceId': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteWithChildren@@ -387,6 +402,7 @@ export interface FileRoutesByFullPath {'/dashboard/settings/account/information': typeof LayoutAuthenticatedDashboardSettingsAccountInformationRoute'/dashboard/settings/account/notifications': typeof LayoutAuthenticatedDashboardSettingsAccountNotificationsRoute'/dashboard/settings/account/preferences': typeof LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute+ '/dashboard/settings/admin/users': typeof LayoutAuthenticatedDashboardSettingsAdminUsersRoute'/dashboard/settings/workspace/billing': typeof LayoutAuthenticatedDashboardSettingsWorkspaceBillingRoute'/dashboard/settings/workspace/general': typeof LayoutAuthenticatedDashboardSettingsWorkspaceGeneralRoute'/dashboard/settings/workspace/labels': typeof LayoutAuthenticatedDashboardSettingsWorkspaceLabelsRoute@@ -425,6 +441,7 @@ export interface FileRoutesByTo {'/dashboard/settings': typeof LayoutAuthenticatedDashboardSettingsRouteWithChildren'/dashboard': typeof LayoutAuthenticatedDashboardIndexRoute'/dashboard/settings/account': typeof LayoutAuthenticatedDashboardSettingsAccountRouteWithChildren+ '/dashboard/settings/admin': typeof LayoutAuthenticatedDashboardSettingsAdminRouteWithChildren'/dashboard/settings/projects': typeof LayoutAuthenticatedDashboardSettingsProjectsRouteWithChildren'/dashboard/settings/workspace': typeof LayoutAuthenticatedDashboardSettingsWorkspaceRouteWithChildren'/dashboard/workspace/create': typeof LayoutAuthenticatedDashboardWorkspaceCreateRoute@@ -432,6 +449,7 @@ export interface FileRoutesByTo {'/dashboard/settings/account/information': typeof LayoutAuthenticatedDashboardSettingsAccountInformationRoute'/dashboard/settings/account/notifications': typeof LayoutAuthenticatedDashboardSettingsAccountNotificationsRoute'/dashboard/settings/account/preferences': typeof LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute+ '/dashboard/settings/admin/users': typeof LayoutAuthenticatedDashboardSettingsAdminUsersRoute'/dashboard/settings/workspace/billing': typeof LayoutAuthenticatedDashboardSettingsWorkspaceBillingRoute'/dashboard/settings/workspace/general': typeof LayoutAuthenticatedDashboardSettingsWorkspaceGeneralRoute'/dashboard/settings/workspace/labels': typeof LayoutAuthenticatedDashboardSettingsWorkspaceLabelsRoute@@ -475,6 +493,7 @@ export interface FileRoutesById {'/_layout/_authenticated/dashboard/settings': typeof LayoutAuthenticatedDashboardSettingsRouteWithChildren'/_layout/_authenticated/dashboard/': typeof LayoutAuthenticatedDashboardIndexRoute'/_layout/_authenticated/dashboard/settings/account': typeof LayoutAuthenticatedDashboardSettingsAccountRouteWithChildren+ '/_layout/_authenticated/dashboard/settings/admin': typeof LayoutAuthenticatedDashboardSettingsAdminRouteWithChildren'/_layout/_authenticated/dashboard/settings/projects': typeof LayoutAuthenticatedDashboardSettingsProjectsRouteWithChildren'/_layout/_authenticated/dashboard/settings/workspace': typeof LayoutAuthenticatedDashboardSettingsWorkspaceRouteWithChildren'/_layout/_authenticated/dashboard/workspace/$workspaceId': typeof LayoutAuthenticatedDashboardWorkspaceWorkspaceIdRouteWithChildren@@ -483,6 +502,7 @@ export interface FileRoutesById {'/_layout/_authenticated/dashboard/settings/account/information': typeof LayoutAuthenticatedDashboardSettingsAccountInformationRoute'/_layout/_authenticated/dashboard/settings/account/notifications': typeof LayoutAuthenticatedDashboardSettingsAccountNotificationsRoute'/_layout/_authenticated/dashboard/settings/account/preferences': typeof LayoutAuthenticatedDashboardSettingsAccountPreferencesRoute+ '/_layout/_authenticated/dashboard/settings/admin/users': typeof LayoutAuthenticatedDashboardSettingsAdminUsersRoute'/_layout/_authenticated/dashboard/settings/workspace/billing': typeof LayoutAuthenticatedDashboardSettingsWorkspaceBillingRoute'/_layout/_authenticated/dashboard/settings/workspace/general': typeof LayoutAuthenticatedDashboardSettingsWorkspaceGeneralRoute'/_layout/_authenticated/dashboard/settings/workspace/labels': typeof LayoutAuthenticatedDashboardSettingsWorkspaceLabelsRoute@@ -525,6 +545,7 @@ export interface FileRouteTypes {| '/dashboard/settings'| '/dashboard/'| '/dashboard/settings/account'+ | '/dashboard/settings/admin'| '/dashboard/settings/projects'| '/dashboard/settings/workspace'| '/dashboard/workspace/$workspaceId'@@ -533,6 +554,7 @@ export interface FileRouteTypes {| '/dashboard/settings/account/information'| '/dashboard/settings/account/notifications'| '/dashboard/settings/account/preferences'+ | '/dashboard/settings/admin/users'| '/dashboard/settings/workspace/billing'| '/dashboard/settings/workspace/general'| '/dashboard/settings/workspace/labels'@@ -571,6 +593,7 @@ export interface FileRouteTypes {| '/dashboard/settings'| '/dashboard'| '/dashboard/settings/account'+ | '/dashboard/settings/admin'| '/dashboard/settings/projects'| '/dashboard/settings/workspace'| '/dashboard/workspace/create'@@ -578,6 +601,7 @@ export interface FileRouteTypes {| '/dashboard/settings/account/information'| '/dashboard/settings/account/notifications'| '/dashboard/settings/account/preferences'+ | '/dashboard/settings/admin/users'| '/dashboard/settings/workspace/billing'| '/dashboard/settings/workspace/general'| '/dashboard/settings/workspace/labels'@@ -620,6 +644,7 @@ export interface FileRouteTypes {| '/_layout/_authenticated/dashboard/settings'| '/_layout/_authenticated/dashboard/'| '/_layout/_authenticated/dashboard/settings/account'+ | '/_layout/_authenticated/dashboard/settings/admin'| '/_layout/_authenticated/dashboard/settings/projects'| '/_layout/_authenticated/dashboard/settings/workspace'| '/_layout/_authenticated/dashboard/workspace/$workspaceId'@@ -628,6 +653,7 @@ export interface FileRouteTypes {| '/_layout/_authenticated/dashboard/settings/account/information'| '/_layout/_authenticated/dashboard/settings/account/notifications'| '/_layout/_authenticated/dashboard/settings/account/preferences'+ | '/_layout/_authenticated/dashboard/settings/admin/users'| '/_layout/_authenticated/dashboard/settings/workspace/billing'| '/_layout/_authenticated/dashboard/settings/workspace/general'| '/_layout/_authenticated/dashboard/settings/workspace/labels'@@ -821,6 +847,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof LayoutAuthenticatedDashboardSettingsAccountRouteImportparentRoute: typeof LayoutAuthenticatedDashboardSettingsRoute}+ '/_layout/_authenticated/dashboard/settings/admin': {+ id: '/_layout/_authenticated/dashboard/settings/admin'+ path: '/admin'+ fullPath: '/dashboard/settings/admin'+ preLoaderRoute: typeof LayoutAuthenticatedDashboardSettingsAdminRouteImport+ parentRoute: typeof LayoutAuthenticatedDashboardSettingsRoute+ }'/_layout/_authenticated/dashboard/settings/projects': {id: '/_layout/_authenticated/dashboard/settings/projects'path: '/projects'@@ -877,6 +910,13 @@ declare module '@tanstack/react-router' {preLoaderRoute: typeof LayoutAuthenticatedDashboardSettingsAccountPreferencesRouteImportparentRoute: typeof LayoutAuthenticatedDashboardSettingsAccountRoute}+ '/_layout/_authenticated/dashboard/settings/admin/users': {+ id: '/_layout/_authenticated/dashboard/settings/admin/users'+ path: '/users'+ fullPath: '/dashboard/settings/admin/users'+ preLoaderRoute: typeof LayoutAuthenticatedDashboardSettingsAdminUsersRouteImport+ parentRoute: typeof LayoutAuthenticatedDashboardSettingsAdminRoute+ }'/_layout/_authenticated/dashboard/settings/workspace/billing': {id: '/_layout/_authenticated/dashboard/settings/workspace/billing'path: '/billing'@@ -1023,6 +1063,21 @@ const LayoutAuthenticatedDashboardSettingsAccountRouteWithChildren =LayoutAuthenticatedDashboardSettingsAccountRouteChildren,)+interface LayoutAuthenticatedDashboardSettingsAdminRouteChildren {+ LayoutAuthenticatedDashboardSettingsAdminUsersRoute: typeof LayoutAuthenticatedDashboardSettingsAdminUsersRoute+}++const LayoutAuthenticatedDashboardSettingsAdminRouteChildren: LayoutAuthenticatedDashboardSettingsAdminRouteChildren =+ {+ LayoutAuthenticatedDashboardSettingsAdminUsersRoute:+ LayoutAuthenticatedDashboardSettingsAdminUsersRoute,+ }++const LayoutAuthenticatedDashboardSettingsAdminRouteWithChildren =+ LayoutAuthenticatedDashboardSettingsAdminRoute._addFileChildren(+ LayoutAuthenticatedDashboardSettingsAdminRouteChildren,+ )+interface LayoutAuthenticatedDashboardSettingsProjectsRouteChildren {LayoutAuthenticatedDashboardSettingsProjectsProjectIdGeneralRoute: typeof LayoutAuthenticatedDashboardSettingsProjectsProjectIdGeneralRouteLayoutAuthenticatedDashboardSettingsProjectsProjectIdIntegrationsRoute: typeof LayoutAuthenticatedDashboardSettingsProjectsProjectIdIntegrationsRoute@@ -1073,6 +1128,7 @@ const LayoutAuthenticatedDashboardSettingsWorkspaceRouteWithChildren =interface LayoutAuthenticatedDashboardSettingsRouteChildren {LayoutAuthenticatedDashboardSettingsAccountRoute: typeof LayoutAuthenticatedDashboardSettingsAccountRouteWithChildren+ LayoutAuthenticatedDashboardSettingsAdminRoute: typeof LayoutAuthenticatedDashboardSettingsAdminRouteWithChildrenLayoutAuthenticatedDashboardSettingsProjectsRoute: typeof LayoutAuthenticatedDashboardSettingsProjectsRouteWithChildrenLayoutAuthenticatedDashboardSettingsWorkspaceRoute: typeof LayoutAuthenticatedDashboardSettingsWorkspaceRouteWithChildren}@@ -1081,6 +1137,8 @@ const LayoutAuthenticatedDashboardSettingsRouteChildren: LayoutAuthenticatedDash{LayoutAuthenticatedDashboardSettingsAccountRoute:LayoutAuthenticatedDashboardSettingsAccountRouteWithChildren,+ LayoutAuthenticatedDashboardSettingsAdminRoute:+ LayoutAuthenticatedDashboardSettingsAdminRouteWithChildren,LayoutAuthenticatedDashboardSettingsProjectsRoute:LayoutAuthenticatedDashboardSettingsProjectsRouteWithChildren,LayoutAuthenticatedDashboardSettingsWorkspaceRoute:diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings.tsxindex be1a303c0..9c496202e 100644--- a/apps/web/src/routes/_layout/_authenticated/dashboard/settings.tsx+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings.tsx@@ -11,6 +11,7 @@ import PageTitle from "@/components/page-title";import { SettingsSidebarProvider } from "@/components/SettingsSidebar";import { Button } from "@/components/ui/button";import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";+import useAdminAccess from "@/hooks/queries/admin/use-admin-access";import useGetProjects from "@/hooks/queries/project/use-get-projects";import useActiveWorkspace from "@/hooks/queries/workspace/use-active-workspace";import { useIsMobile } from "@/hooks/use-mobile";@@ -31,6 +32,7 @@ function SettingsLayout() {const { data: projects } = useGetProjects({workspaceId: workspace?.id ?? "",});+ const { data: hasAdminAccess } = useAdminAccess();const getActiveTab = () => {const pathname = location.pathname;@@ -43,6 +45,9 @@ function SettingsLayout() {if (pathname.includes("/dashboard/settings/projects")) {return "project";}+ if (pathname.includes("/dashboard/settings/admin")) {+ return "admin";+ }return "account";};@@ -113,7 +118,7 @@ function SettingsLayout() {<Tabsvalue={activeTab}- className="w-full pt-4 md:w-[400px] md:pt-2"+ className="w-full max-w-full pt-4 md:w-fit md:pt-2"><TabsList className="bg-sidebar gap-2"><TabsTrigger@@ -150,6 +155,17 @@ function SettingsLayout() {>{t("navigation:sidebar.projects")}</TabsTrigger>+ {hasAdminAccess ? (+ <TabsTrigger+ value="admin"+ className="[&[data-state=active]]:border [&[data-state=active]]:border-border [&[data-state=active]]:rounded-md [&[data-state=active]]:bg-card"+ onClick={() =>+ navigate({ to: "/dashboard/settings/admin/users" })+ }+ >+ {t("settings:administration")}+ </TabsTrigger>+ ) : null}</TabsList></Tabs></div>diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/admin.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/admin.tsxnew file mode 100644index 000000000..45476a87b--- /dev/null+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/admin.tsx@@ -0,0 +1,13 @@+import { createFileRoute, Outlet, redirect } from "@tanstack/react-router";+import { getAdminAccess } from "@/fetchers/admin/get-admin-access";++export const Route = createFileRoute(+ "/_layout/_authenticated/dashboard/settings/admin",+)({+ beforeLoad: async () => {+ if (!(await getAdminAccess())) {+ throw redirect({ to: "/dashboard/settings/account/information" });+ }+ },+ component: Outlet,+});diff --git a/apps/web/src/routes/_layout/_authenticated/dashboard/settings/admin/users.tsx b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/admin/users.tsxnew file mode 100644index 000000000..88283d94a--- /dev/null+++ b/apps/web/src/routes/_layout/_authenticated/dashboard/settings/admin/users.tsx@@ -0,0 +1,21 @@+import { createFileRoute } from "@tanstack/react-router";+import { useTranslation } from "react-i18next";+import UserManagementPanel from "@/components/admin/user-management-panel";+import PageTitle from "@/components/page-title";++export const Route = createFileRoute(+ "/_layout/_authenticated/dashboard/settings/admin/users",+)({+ component: RouteComponent,+});++function RouteComponent() {+ const { t } = useTranslation();++ return (+ <>+ <PageTitle title={t("settings:adminUsers.title")} />+ <UserManagementPanel />+ </>+ );+}diff --git a/apps/web/src/types/user.ts b/apps/web/src/types/user.tsindex 4e671b2e8..eac9b75f9 100644--- a/apps/web/src/types/user.ts+++ b/apps/web/src/types/user.ts@@ -2,4 +2,5 @@ import type { User as BetterAuthUser } from "better-auth/types";export type User = BetterAuthUser & {locale?: string | null;+ role?: string | null;};diff --git a/i18n/az-AZ.json b/i18n/az-AZ.jsonindex c83a7667a..4b21a3408 100644--- a/i18n/az-AZ.json+++ b/i18n/az-AZ.json@@ -1425,6 +1425,86 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/de-DE.json b/i18n/de-DE.jsonindex 19dca8729..31fae6311 100644--- a/i18n/de-DE.json+++ b/i18n/de-DE.json@@ -344,11 +344,91 @@},"settings": {"account": "Konto",+ "administration": "Administration","developer": "Entwicklung","information": "Informationen","notifications": "Benachrichtigungen","preferences": "Einstellungen","apiKeys": "API-Schlüssel",+ "adminUsers": {+ "title": "Benutzerverwaltung",+ "subtitle": "Verwalte alle Konten, die auf dieser Kaneo-Instanz registriert sind.",+ "instanceBadge": "Instanz",+ "directoryTitle": "Benutzerverzeichnis",+ "userCount_one": "{{count}} registrierter Benutzer",+ "userCount_other": "{{count}} registrierte Benutzer",+ "searchCount_one": "{{count}} passender Benutzer",+ "searchCount_other": "{{count}} passende Benutzer",+ "refreshing": "Benutzer werden aktualisiert",+ "searchPlaceholder": "Name oder E-Mail suchen…",+ "searchLabel": "Benutzer suchen",+ "loadError": "Benutzer konnten nicht geladen werden.",+ "retry": "Erneut versuchen",+ "emptyTitle": "Keine Benutzer gefunden",+ "emptyDescription": "Versuche einen anderen Namen oder eine andere E-Mail-Adresse.",+ "clearSearch": "Suche löschen",+ "you": "(du)",+ "previous": "Zurück",+ "next": "Weiter",+ "pagination": "Seite {{current}} von {{total}}",+ "columns": {+ "user": "Benutzer",+ "role": "Globale Rolle",+ "status": "Status",+ "joined": "Registriert",+ "actions": "Aktionen"+ },+ "roles": {+ "admin": "Instanzadministrator",+ "user": "Benutzer"+ },+ "status": {+ "active": "Aktiv",+ "deactivated": "Deaktiviert"+ },+ "actions": {+ "open": "Aktionen für {{name}}",+ "edit": "Konto bearbeiten",+ "deactivate": "Konto deaktivieren",+ "reactivate": "Konto reaktivieren"+ },+ "edit": {+ "title": "Benutzer bearbeiten",+ "description": "Aktualisiere die Identität und den instanzweiten Zugriff dieses Kontos.",+ "name": "Vollständiger Name",+ "email": "E-Mail-Adresse",+ "role": "Globale Rolle",+ "selfRoleHint": "Du kannst deine eigene globale Rolle nicht ändern.",+ "save": "Änderungen speichern",+ "saving": "Wird gespeichert…"+ },+ "confirm": {+ "working": "Wird ausgeführt…",+ "deactivate": {+ "title": "Dieses Konto deaktivieren?",+ "description": "{{name}} wird abgemeldet und kann sich erst wieder anmelden, nachdem ein Administrator das Konto reaktiviert hat.",+ "action": "Konto deaktivieren"+ },+ "reactivate": {+ "title": "Dieses Konto reaktivieren?",+ "description": "{{name}} kann sich danach wieder anmelden und auf die eigenen Arbeitsbereiche zugreifen.",+ "action": "Konto reaktivieren"+ },+ "delete": {+ "title": "Dieses Konto endgültig löschen?",+ "description": "Dadurch werden {{name}}, alle Sitzungen, Mitgliedschaften und zugehörigen Daten endgültig gelöscht. Dies kann nicht rückgängig gemacht werden.",+ "action": "Endgültig löschen"+ }+ },+ "toast": {+ "updated": "Benutzer aktualisiert",+ "updateError": "Benutzer konnte nicht aktualisiert werden",+ "deactivated": "Benutzer deaktiviert",+ "reactivated": "Benutzer reaktiviert",+ "deleted": "Benutzer gelöscht",+ "actionError": "Benutzerstatus konnte nicht aktualisiert werden"+ }+ },"informationPage": {"pageTitle": "Persönliche Informationen","title": "Persönliche Informationen",diff --git a/i18n/el-GR.json b/i18n/el-GR.jsonindex 94175635c..f98b5d1dd 100644--- a/i18n/el-GR.json+++ b/i18n/el-GR.json@@ -1425,6 +1425,86 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/en-US.json b/i18n/en-US.jsonindex b76c51175..f91e4e674 100644--- a/i18n/en-US.json+++ b/i18n/en-US.json@@ -344,11 +344,91 @@},"settings": {"account": "Account",+ "administration": "Administration","developer": "Developer","information": "Information","notifications": "Notifications","preferences": "Preferences","apiKeys": "API Keys",+ "adminUsers": {+ "title": "User management",+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "instanceBadge": "Instance",+ "directoryTitle": "User directory",+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "refreshing": "Refreshing users",+ "searchPlaceholder": "Search name or email…",+ "searchLabel": "Search users",+ "loadError": "Users could not be loaded.",+ "retry": "Retry",+ "emptyTitle": "No users found",+ "emptyDescription": "Try another name or email address.",+ "clearSearch": "Clear search",+ "you": "(you)",+ "previous": "Previous",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "columns": {+ "user": "User",+ "role": "Global role",+ "status": "Status",+ "joined": "Joined",+ "actions": "Actions"+ },+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "actions": {+ "open": "Actions for {{name}}",+ "edit": "Edit account",+ "deactivate": "Deactivate account",+ "reactivate": "Reactivate account"+ },+ "edit": {+ "title": "Edit user",+ "description": "Update this account's identity and instance-wide access.",+ "name": "Full name",+ "email": "Email address",+ "role": "Global role",+ "selfRoleHint": "You cannot change your own global role.",+ "save": "Save changes",+ "saving": "Saving…"+ },+ "confirm": {+ "working": "Working…",+ "deactivate": {+ "title": "Deactivate this account?",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "action": "Deactivate account"+ },+ "reactivate": {+ "title": "Reactivate this account?",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "action": "Reactivate account"+ },+ "delete": {+ "title": "Permanently delete this account?",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "action": "Delete permanently"+ }+ },+ "toast": {+ "updated": "User updated",+ "updateError": "Failed to update user",+ "deactivated": "User deactivated",+ "reactivated": "User reactivated",+ "deleted": "User deleted",+ "actionError": "Failed to update user status"+ }+ },"informationPage": {"pageTitle": "Personal Information","title": "Personal Information",diff --git a/i18n/es-ES.json b/i18n/es-ES.jsonindex 4da80498c..30d8f7f5b 100644--- a/i18n/es-ES.json+++ b/i18n/es-ES.json@@ -1426,6 +1426,88 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_many": "{{count}} matching users",+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_many": "{{count}} registered users",+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/fr-FR.json b/i18n/fr-FR.jsonindex 69bb152aa..7a0849e70 100644--- a/i18n/fr-FR.json+++ b/i18n/fr-FR.json@@ -1426,6 +1426,88 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_many": "{{count}} matching users",+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_many": "{{count}} registered users",+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/hi-IN.json b/i18n/hi-IN.jsonindex a24dff309..65ab3d7a3 100644--- a/i18n/hi-IN.json+++ b/i18n/hi-IN.json@@ -1425,6 +1425,86 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/id-ID.json b/i18n/id-ID.jsonindex c1d5e2f0d..80a3e666f 100644--- a/i18n/id-ID.json+++ b/i18n/id-ID.json@@ -1424,6 +1424,84 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/it-IT.json b/i18n/it-IT.jsonindex fb7bbfaee..b9b65634f 100644--- a/i18n/it-IT.json+++ b/i18n/it-IT.json@@ -1426,6 +1426,88 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_many": "{{count}} matching users",+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_many": "{{count}} registered users",+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/ja-JP.json b/i18n/ja-JP.jsonindex ba3ef4117..b897e63d7 100644--- a/i18n/ja-JP.json+++ b/i18n/ja-JP.json@@ -1424,6 +1424,84 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/ko-KR.json b/i18n/ko-KR.jsonindex 684d7a54c..4b249968b 100644--- a/i18n/ko-KR.json+++ b/i18n/ko-KR.json@@ -1424,6 +1424,84 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/mk-MK.json b/i18n/mk-MK.jsonindex 6dde149f1..33e6e77d9 100644--- a/i18n/mk-MK.json+++ b/i18n/mk-MK.json@@ -1425,6 +1425,86 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/nl-NL.json b/i18n/nl-NL.jsonindex bbc53ab76..193549204 100644--- a/i18n/nl-NL.json+++ b/i18n/nl-NL.json@@ -1425,6 +1425,86 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/pl-PL.json b/i18n/pl-PL.jsonindex 79cab9e5c..d316da923 100644--- a/i18n/pl-PL.json+++ b/i18n/pl-PL.json@@ -1905,6 +1905,90 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_few": "{{count}} matching users",+ "searchCount_many": "{{count}} matching users",+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_few": "{{count}} registered users",+ "userCount_many": "{{count}} registered users",+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"tasks": {diff --git a/i18n/pt-BR.json b/i18n/pt-BR.jsonindex 422af1531..b80fa805d 100644--- a/i18n/pt-BR.json+++ b/i18n/pt-BR.json@@ -1426,6 +1426,88 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_many": "{{count}} matching users",+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_many": "{{count}} registered users",+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/ru-RU.json b/i18n/ru-RU.jsonindex 342229d1e..7540f2424 100644--- a/i18n/ru-RU.json+++ b/i18n/ru-RU.json@@ -1435,6 +1435,90 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_few": "{{count}} matching users",+ "searchCount_many": "{{count}} matching users",+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_few": "{{count}} registered users",+ "userCount_many": "{{count}} registered users",+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/schema.json b/i18n/schema.jsonindex 8bf020f31..a6bad11d0 100644--- a/i18n/schema.json+++ b/i18n/schema.json@@ -1367,6 +1367,9 @@"account": {"type": "string"},+ "administration": {+ "type": "string"+ },"developer": {"type": "string"},@@ -1382,6 +1385,318 @@"apiKeys": {"type": "string"},+ "adminUsers": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "title": {+ "type": "string"+ },+ "subtitle": {+ "type": "string"+ },+ "instanceBadge": {+ "type": "string"+ },+ "directoryTitle": {+ "type": "string"+ },+ "userCount_one": {+ "type": "string"+ },+ "userCount_zero": {+ "type": "string"+ },+ "userCount_two": {+ "type": "string"+ },+ "userCount_few": {+ "type": "string"+ },+ "userCount_many": {+ "type": "string"+ },+ "userCount_other": {+ "type": "string"+ },+ "searchCount_one": {+ "type": "string"+ },+ "searchCount_zero": {+ "type": "string"+ },+ "searchCount_two": {+ "type": "string"+ },+ "searchCount_few": {+ "type": "string"+ },+ "searchCount_many": {+ "type": "string"+ },+ "searchCount_other": {+ "type": "string"+ },+ "refreshing": {+ "type": "string"+ },+ "searchPlaceholder": {+ "type": "string"+ },+ "searchLabel": {+ "type": "string"+ },+ "loadError": {+ "type": "string"+ },+ "retry": {+ "type": "string"+ },+ "emptyTitle": {+ "type": "string"+ },+ "emptyDescription": {+ "type": "string"+ },+ "clearSearch": {+ "type": "string"+ },+ "you": {+ "type": "string"+ },+ "previous": {+ "type": "string"+ },+ "next": {+ "type": "string"+ },+ "pagination": {+ "type": "string"+ },+ "columns": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "user": {+ "type": "string"+ },+ "role": {+ "type": "string"+ },+ "status": {+ "type": "string"+ },+ "joined": {+ "type": "string"+ },+ "actions": {+ "type": "string"+ }+ },+ "required": ["user", "role", "status", "joined", "actions"]+ },+ "roles": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "admin": {+ "type": "string"+ },+ "user": {+ "type": "string"+ }+ },+ "required": ["admin", "user"]+ },+ "status": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "active": {+ "type": "string"+ },+ "deactivated": {+ "type": "string"+ }+ },+ "required": ["active", "deactivated"]+ },+ "actions": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "open": {+ "type": "string"+ },+ "edit": {+ "type": "string"+ },+ "deactivate": {+ "type": "string"+ },+ "reactivate": {+ "type": "string"+ }+ },+ "required": ["open", "edit", "deactivate", "reactivate"]+ },+ "edit": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "title": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "email": {+ "type": "string"+ },+ "role": {+ "type": "string"+ },+ "selfRoleHint": {+ "type": "string"+ },+ "save": {+ "type": "string"+ },+ "saving": {+ "type": "string"+ }+ },+ "required": [+ "title",+ "description",+ "name",+ "email",+ "role",+ "selfRoleHint",+ "save",+ "saving"+ ]+ },+ "confirm": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "working": {+ "type": "string"+ },+ "deactivate": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "title": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "action": {+ "type": "string"+ }+ },+ "required": ["title", "description", "action"]+ },+ "reactivate": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "title": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "action": {+ "type": "string"+ }+ },+ "required": ["title", "description", "action"]+ },+ "delete": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "title": {+ "type": "string"+ },+ "description": {+ "type": "string"+ },+ "action": {+ "type": "string"+ }+ },+ "required": ["title", "description", "action"]+ }+ },+ "required": ["working", "deactivate", "reactivate", "delete"]+ },+ "toast": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "updated": {+ "type": "string"+ },+ "updateError": {+ "type": "string"+ },+ "deactivated": {+ "type": "string"+ },+ "reactivated": {+ "type": "string"+ },+ "deleted": {+ "type": "string"+ },+ "actionError": {+ "type": "string"+ }+ },+ "required": [+ "updated",+ "updateError",+ "deactivated",+ "reactivated",+ "deleted",+ "actionError"+ ]+ }+ },+ "required": [+ "title",+ "subtitle",+ "instanceBadge",+ "directoryTitle",+ "refreshing",+ "searchPlaceholder",+ "searchLabel",+ "loadError",+ "retry",+ "emptyTitle",+ "emptyDescription",+ "clearSearch",+ "you",+ "previous",+ "next",+ "pagination",+ "columns",+ "roles",+ "status",+ "actions",+ "edit",+ "confirm",+ "toast"+ ]+ },"informationPage": {"type": "object","additionalProperties": false,@@ -5690,11 +6005,13 @@},"required": ["account",+ "administration","developer","information","notifications","preferences","apiKeys",+ "adminUsers","informationPage","notificationsPage","preferencesPage",diff --git a/i18n/tr-TR.json b/i18n/tr-TR.jsonindex de703bae1..d34a6bbbb 100644--- a/i18n/tr-TR.json+++ b/i18n/tr-TR.json@@ -1425,6 +1425,86 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/uk-UA.json b/i18n/uk-UA.jsonindex 2719ac32e..4b08f14ac 100644--- a/i18n/uk-UA.json+++ b/i18n/uk-UA.json@@ -1427,6 +1427,90 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_few": "{{count}} matching users",+ "searchCount_many": "{{count}} matching users",+ "searchCount_one": "{{count}} matching user",+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_few": "{{count}} registered users",+ "userCount_many": "{{count}} registered users",+ "userCount_one": "{{count}} registered user",+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/vi-VN.json b/i18n/vi-VN.jsonindex 44384fbd1..2820c45ce 100644--- a/i18n/vi-VN.json+++ b/i18n/vi-VN.json@@ -1424,6 +1424,84 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {diff --git a/i18n/zh-CN.json b/i18n/zh-CN.jsonindex d01899bc4..6e80af28e 100644--- a/i18n/zh-CN.json+++ b/i18n/zh-CN.json@@ -1424,6 +1424,84 @@"number": "Number","text": "Text"}+ },+ "administration": "Administration",+ "adminUsers": {+ "actions": {+ "deactivate": "Deactivate account",+ "edit": "Edit account",+ "open": "Actions for {{name}}",+ "reactivate": "Reactivate account"+ },+ "clearSearch": "Clear search",+ "columns": {+ "actions": "Actions",+ "joined": "Joined",+ "role": "Global role",+ "status": "Status",+ "user": "User"+ },+ "confirm": {+ "deactivate": {+ "action": "Deactivate account",+ "description": "{{name}} will be signed out and unable to sign in until an administrator reactivates the account.",+ "title": "Deactivate this account?"+ },+ "delete": {+ "action": "Delete permanently",+ "description": "This permanently deletes {{name}}, their sessions, memberships, and associated data. This cannot be undone.",+ "title": "Permanently delete this account?"+ },+ "reactivate": {+ "action": "Reactivate account",+ "description": "{{name}} will be able to sign in and access their workspaces again.",+ "title": "Reactivate this account?"+ },+ "working": "Working…"+ },+ "directoryTitle": "User directory",+ "edit": {+ "description": "Update this account's identity and instance-wide access.",+ "email": "Email address",+ "name": "Full name",+ "role": "Global role",+ "save": "Save changes",+ "saving": "Saving…",+ "selfRoleHint": "You cannot change your own global role.",+ "title": "Edit user"+ },+ "emptyDescription": "Try another name or email address.",+ "emptyTitle": "No users found",+ "instanceBadge": "Instance",+ "loadError": "Users could not be loaded.",+ "next": "Next",+ "pagination": "Page {{current}} of {{total}}",+ "previous": "Previous",+ "refreshing": "Refreshing users",+ "retry": "Retry",+ "roles": {+ "admin": "Instance admin",+ "user": "User"+ },+ "searchCount_other": "{{count}} matching users",+ "searchLabel": "Search users",+ "searchPlaceholder": "Search name or email…",+ "status": {+ "active": "Active",+ "deactivated": "Deactivated"+ },+ "subtitle": "Manage every account registered on this Kaneo instance.",+ "title": "User management",+ "toast": {+ "actionError": "Failed to update user status",+ "deactivated": "User deactivated",+ "deleted": "User deleted",+ "reactivated": "User reactivated",+ "updated": "User updated",+ "updateError": "Failed to update user"+ },+ "userCount_other": "{{count}} registered users",+ "you": "(you)"}},"navigation": {