Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Refine organization settings action copy
rcourtmana815ef932494
diff --git a/docs/release-control/v6/internal/subsystems/organization-settings.md b/docs/release-control/v6/internal/subsystems/organization-settings.mdindex b1680c1ec3..04e9ae3240 100644--- a/docs/release-control/v6/internal/subsystems/organization-settings.md+++ b/docs/release-control/v6/internal/subsystems/organization-settings.md@@ -129,6 +129,10 @@ that same presentation boundary: the shared organization presentation helpersmust describe server capability and settings availability directly, rather thanfalling back to generic `feature not available` or transport-style `failed toload` copy.+The same helper also owns organization action notifications and confirmations:+success and failure messages for renaming, membership changes, and sharing+operations should stay specific and customer-facing, not terse operator jargon+or bare transport wording.The organization access surface now follows that extracted-owner pattern too:the panel is the shell, `useOrganizationAccessPanelState.ts` owns themembership runtime, and the loading, management, and members views each livediff --git a/frontend-modern/src/utils/__tests__/organizationSettingsPresentation.test.ts b/frontend-modern/src/utils/__tests__/organizationSettingsPresentation.test.tsindex 086f18c008..2a6435d563 100644--- a/frontend-modern/src/utils/__tests__/organizationSettingsPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/organizationSettingsPresentation.test.ts@@ -77,10 +77,12 @@ describe('organizationSettingsPresentation', () => {it('returns canonical organization admin validation and error copy', () => {expect(getOrganizationDisplayNameRequiredMessage()).toBe('Display name is required');expect(getOrganizationDisplayNameUpdateErrorMessage()).toBe(- 'Failed to update organization name',+ 'Unable to update the organization name.',);expect(getOrganizationDisplayNameUpdateErrorMessage('bad request')).toBe('bad request');- expect(getOrganizationDisplayNameUpdatedMessage()).toBe('Organization name updated');+ expect(getOrganizationDisplayNameUpdatedMessage()).toBe(+ 'Organization name has been updated.',+ );expect(getOrganizationOverviewManageRequiredMessage()).toBe('Admin or owner role required to update organization details.',);@@ -92,20 +94,24 @@ describe('organizationSettingsPresentation', () => {'Admin or owner role required to manage organization access.',);expect(getOrganizationAccessRoleUpdatedMessage('alice', 'admin')).toBe(- 'Updated alice to admin',+ 'Updated alice to the admin role.',+ );+ expect(getOrganizationMemberRoleUpdateErrorMessage()).toBe(+ 'Unable to update the member role.',);- expect(getOrganizationMemberRoleUpdateErrorMessage()).toBe('Failed to update member role');expect(getOrganizationMemberRoleUpdateErrorMessage('conflict')).toBe('conflict');expect(getOrganizationAccessMemberAddedMessage('alice', 'viewer')).toBe(- 'Added alice as viewer',+ 'Added alice as viewer.',);- expect(getOrganizationAddMemberErrorMessage()).toBe('Failed to add member');+ expect(getOrganizationAddMemberErrorMessage()).toBe('Unable to add the member.');expect(getOrganizationAddMemberErrorMessage('duplicate')).toBe('duplicate');expect(getOrganizationMemberRemoveConfirmMessage('alice', 'Pulse Org')).toBe('Remove alice from Pulse Org?',);- expect(getOrganizationAccessMemberRemovedMessage('alice')).toBe('Removed alice');- expect(getOrganizationRemoveMemberErrorMessage()).toBe('Failed to remove member');+ expect(getOrganizationAccessMemberRemovedMessage('alice')).toBe(+ 'Removed alice from the organization.',+ );+ expect(getOrganizationRemoveMemberErrorMessage()).toBe('Unable to remove the member.');expect(getOrganizationRemoveMemberErrorMessage('forbidden')).toBe('forbidden');});@@ -118,11 +124,11 @@ describe('organizationSettingsPresentation', () => {expect(getOrganizationShareTargetOrgDifferentMessage()).toBe('Target organization must differ from the current organization',);- expect(getOrganizationShareCreateSuccessMessage()).toBe('Resource shared successfully');- expect(getOrganizationShareCreateErrorMessage()).toBe('Failed to create share');+ expect(getOrganizationShareCreateSuccessMessage()).toBe('Resource has been shared.');+ expect(getOrganizationShareCreateErrorMessage()).toBe('Unable to create the share.');expect(getOrganizationShareCreateErrorMessage('duplicate')).toBe('duplicate');- expect(getOrganizationShareDeleteSuccessMessage()).toBe('Share removed');- expect(getOrganizationShareDeleteErrorMessage()).toBe('Failed to delete share');+ expect(getOrganizationShareDeleteSuccessMessage()).toBe('Share has been removed.');+ expect(getOrganizationShareDeleteErrorMessage()).toBe('Unable to remove the share.');expect(getOrganizationShareDeleteErrorMessage('forbidden')).toBe('forbidden');});});diff --git a/frontend-modern/src/utils/organizationSettingsPresentation.ts b/frontend-modern/src/utils/organizationSettingsPresentation.tsindex 87aa9b4003..d99f8cc9bd 100644--- a/frontend-modern/src/utils/organizationSettingsPresentation.ts+++ b/frontend-modern/src/utils/organizationSettingsPresentation.ts@@ -45,11 +45,11 @@ export function getOrganizationDisplayNameRequiredMessage(): string {}export function getOrganizationDisplayNameUpdateErrorMessage(message?: string): string {- return message || 'Failed to update organization name';+ return message || 'Unable to update the organization name.';}export function getOrganizationDisplayNameUpdatedMessage(): string {- return 'Organization name updated';+ return 'Organization name has been updated.';}export function getOrganizationOverviewManageRequiredMessage(): string {@@ -72,22 +72,22 @@ export function getOrganizationAccessRoleUpdatedMessage(userId: string,role: OrganizationRole,): string {- return `Updated ${userId} to ${role}`;+ return `Updated ${userId} to the ${role} role.`;}export function getOrganizationMemberRoleUpdateErrorMessage(message?: string): string {- return message || 'Failed to update member role';+ return message || 'Unable to update the member role.';}export function getOrganizationAccessMemberAddedMessage(userId: string,role: OrganizationRole,): string {- return `Added ${userId} as ${role}`;+ return `Added ${userId} as ${role}.`;}export function getOrganizationAddMemberErrorMessage(message?: string): string {- return message || 'Failed to add member';+ return message || 'Unable to add the member.';}export function getOrganizationMemberRemoveConfirmMessage(@@ -98,11 +98,11 @@ export function getOrganizationMemberRemoveConfirmMessage(}export function getOrganizationAccessMemberRemovedMessage(userId: string): string {- return `Removed ${userId}`;+ return `Removed ${userId} from the organization.`;}export function getOrganizationRemoveMemberErrorMessage(message?: string): string {- return message || 'Failed to remove member';+ return message || 'Unable to remove the member.';}export function getOrganizationOutgoingSharesEmptyState(): string {@@ -130,17 +130,17 @@ export function getOrganizationShareTargetOrgDifferentMessage(): string {}export function getOrganizationShareCreateSuccessMessage(): string {- return 'Resource shared successfully';+ return 'Resource has been shared.';}export function getOrganizationShareCreateErrorMessage(message?: string): string {- return message || 'Failed to create share';+ return message || 'Unable to create the share.';}export function getOrganizationShareDeleteSuccessMessage(): string {- return 'Share removed';+ return 'Share has been removed.';}export function getOrganizationShareDeleteErrorMessage(message?: string): string {- return message || 'Failed to delete share';+ return message || 'Unable to remove the share.';}