diff --git a/webui/src/features/admin/TenantSettingsPanel.tsx b/webui/src/features/admin/TenantSettingsPanel.tsx index 8d60ab8..432dee5 100644 --- a/webui/src/features/admin/TenantSettingsPanel.tsx +++ b/webui/src/features/admin/TenantSettingsPanel.tsx @@ -1,3 +1,4 @@ +import { DescriptionList } from "@govoplan/core-webui"; import { useEffect, useState } from "react"; import { ActionBlockerHint, @@ -167,11 +168,11 @@ export default function TenantSettingsPanel({ onChange={setEnabledLanguages} />

i18n:govoplan-tenancy.tenant_languages_help{" "}{TENANCY_INTERFACE_I18N.defaultLanguageRequired}

-
+
i18n:govoplan-tenancy.tenant.3ca93c78
{draft.name || "-"}
i18n:govoplan-tenancy.slug.094da9b9
{draft.slug || "-"}
i18n:govoplan-tenancy.available.7c62a142
{draft.available_languages.map((item) => item.code.toUpperCase()).join(", ") || "-"}
-
+ ); diff --git a/webui/src/features/admin/TenantsPanel.tsx b/webui/src/features/admin/TenantsPanel.tsx index 30d075d..6607482 100644 --- a/webui/src/features/admin/TenantsPanel.tsx +++ b/webui/src/features/admin/TenantsPanel.tsx @@ -1,3 +1,4 @@ +import { DescriptionItem, DescriptionList } from "@govoplan/core-webui"; import { useEffect, useMemo, useRef, useState } from "react"; import { Pencil, Plus, Search, Trash2 } from "lucide-react"; import type { FormGrid, ApiSettings, AuthInfo, TenantAdminItem } from "@govoplan/core-webui"; @@ -314,15 +315,15 @@ export default function TenantsPanel({ setViewing(null)} className="" footer={}> - {viewing && <>
-
i18n:govoplan-tenancy.tenant.3ca93c78
{viewing.name}
i18n:govoplan-tenancy.slug.094da9b9
{viewing.slug}
-
i18n:govoplan-tenancy.status.bae7d5be
{viewing.is_active ? "i18n:govoplan-tenancy.active.a733b809" : "i18n:govoplan-tenancy.suspended.794696a7"}
i18n:govoplan-tenancy.default_locale.b99d021f
{viewing.default_locale}
-
i18n:govoplan-tenancy.created.accf40c8
{formatDateTime(viewing.created_at)}
i18n:govoplan-tenancy.updated.f2f8570d
{formatDateTime(viewing.updated_at)}
-
i18n:govoplan-tenancy.custom_groups.1f7b7c8f
{viewing.effective_governance.allow_custom_groups ? "i18n:govoplan-tenancy.allowed.77c7b490" : "i18n:govoplan-tenancy.denied.63b16bd4"} ({overrideLabel(fromOverride(viewing.allow_custom_groups))})
-
i18n:govoplan-tenancy.custom_roles.e78ef63d
{viewing.effective_governance.allow_custom_roles ? "i18n:govoplan-tenancy.allowed.77c7b490" : "i18n:govoplan-tenancy.denied.63b16bd4"} ({overrideLabel(fromOverride(viewing.allow_custom_roles))})
-
i18n:govoplan-tenancy.api_keys.94fcf3c2
{viewing.effective_governance.allow_api_keys ? "i18n:govoplan-tenancy.allowed.77c7b490" : "i18n:govoplan-tenancy.denied.63b16bd4"} ({overrideLabel(fromOverride(viewing.allow_api_keys))})
-
i18n:govoplan-tenancy.objects.72a83add
{viewing.counts.users ?? 0}{" "}i18n:govoplan-tenancy.users.81651889{" "}{viewing.counts.groups ?? 0}{" "}i18n:govoplan-tenancy.groups.07551586{" "}{viewing.counts.campaigns ?? 0}{" "}i18n:govoplan-tenancy.campaigns.2282ffeb{" "}{viewing.counts.files ?? 0}{" "}i18n:govoplan-tenancy.files_lowercase.7c9a1026
-
{viewing.description &&

{viewing.description}

}} + {viewing && <> + i18n:govoplan-tenancy.tenant.3ca93c78}>{viewing.name}i18n:govoplan-tenancy.slug.094da9b9}>{viewing.slug} + i18n:govoplan-tenancy.status.bae7d5be}>{viewing.is_active ? "i18n:govoplan-tenancy.active.a733b809" : "i18n:govoplan-tenancy.suspended.794696a7"}i18n:govoplan-tenancy.default_locale.b99d021f}>{viewing.default_locale} + i18n:govoplan-tenancy.created.accf40c8}>{formatDateTime(viewing.created_at)}i18n:govoplan-tenancy.updated.f2f8570d}>{formatDateTime(viewing.updated_at)} + i18n:govoplan-tenancy.custom_groups.1f7b7c8f}>{viewing.effective_governance.allow_custom_groups ? "i18n:govoplan-tenancy.allowed.77c7b490" : "i18n:govoplan-tenancy.denied.63b16bd4"} ({overrideLabel(fromOverride(viewing.allow_custom_groups))}) + i18n:govoplan-tenancy.custom_roles.e78ef63d}>{viewing.effective_governance.allow_custom_roles ? "i18n:govoplan-tenancy.allowed.77c7b490" : "i18n:govoplan-tenancy.denied.63b16bd4"} ({overrideLabel(fromOverride(viewing.allow_custom_roles))}) + i18n:govoplan-tenancy.api_keys.94fcf3c2}>{viewing.effective_governance.allow_api_keys ? "i18n:govoplan-tenancy.allowed.77c7b490" : "i18n:govoplan-tenancy.denied.63b16bd4"} ({overrideLabel(fromOverride(viewing.allow_api_keys))}) + i18n:govoplan-tenancy.objects.72a83add}>{viewing.counts.users ?? 0}{" "}i18n:govoplan-tenancy.users.81651889{" "}{viewing.counts.groups ?? 0}{" "}i18n:govoplan-tenancy.groups.07551586{" "}{viewing.counts.campaigns ?? 0}{" "}i18n:govoplan-tenancy.campaigns.2282ffeb{" "}{viewing.counts.files ?? 0}{" "}i18n:govoplan-tenancy.files_lowercase.7c9a1026 + {viewing.description &&

{viewing.description}

}}
setConfirmSuspend(null)} onConfirm={() => void suspend()} />