From 0262180fa7a892e2874e4398ec4dedc8aa831ebe Mon Sep 17 00:00:00 2001 From: KillariDev <13102010+KillariDev@users.noreply.github.com> Date: Tue, 19 May 2026 07:24:30 +0000 Subject: [PATCH] Hide security pool manager addresses - Remove manager address from security pool overview and workflow - Update tests to assert the manager field is no longer shown --- ui/ts/components/SecurityPoolWorkflowSection.tsx | 3 --- ui/ts/components/SecurityPoolsOverviewSection.tsx | 3 --- ui/ts/tests/securityPoolWorkflowSection.test.tsx | 1 + ui/ts/tests/securityPoolsSection.test.ts | 1 + 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/ui/ts/components/SecurityPoolWorkflowSection.tsx b/ui/ts/components/SecurityPoolWorkflowSection.tsx index 9b8860ac..3cffa7e8 100644 --- a/ui/ts/components/SecurityPoolWorkflowSection.tsx +++ b/ui/ts/components/SecurityPoolWorkflowSection.tsx @@ -592,9 +592,6 @@ export function SecurityPoolWorkflowSection({ priceValidUntilTimestamp={currentPoolOracleManagerDetails?.priceValidUntilTimestamp} /> - - - {loadedSelectedPool.systemState === 'operational' ? undefined : ( <> {loadedSelectedPool.forkOwnSecurityPool ? 'Own escalation fork' : 'Parent / Zoltar fork'} diff --git a/ui/ts/components/SecurityPoolsOverviewSection.tsx b/ui/ts/components/SecurityPoolsOverviewSection.tsx index 1602b911..3cb31bca 100644 --- a/ui/ts/components/SecurityPoolsOverviewSection.tsx +++ b/ui/ts/components/SecurityPoolsOverviewSection.tsx @@ -171,9 +171,6 @@ export function SecurityPoolsOverviewSection({ totalRepDeposit={pool.totalRepDeposit} totalSecurityBondAllowance={pool.totalSecurityBondAllowance} /> - - - {pool.truthAuctionAddress === zeroAddress ? undefined : ( diff --git a/ui/ts/tests/securityPoolWorkflowSection.test.tsx b/ui/ts/tests/securityPoolWorkflowSection.test.tsx index 7a8b2e2f..0870f032 100644 --- a/ui/ts/tests/securityPoolWorkflowSection.test.tsx +++ b/ui/ts/tests/securityPoolWorkflowSection.test.tsx @@ -419,6 +419,7 @@ describe('SecurityPoolWorkflowSection', () => { expect(documentQueries.queryByText(/^Blocked:/)).toBeNull() expect(documentQueries.queryByText('Oracle Status')).toBeNull() expect(documentQueries.queryByText('After market end')).toBeNull() + expect(documentQueries.queryByText('Manager')).toBeNull() expect(documentQueries.queryByText('Truth Auction')).toBeNull() expect(documentQueries.getByText('Security Multiplier')).not.toBeNull() const directoryButton = documentQueries.getByRole('tab', { name: 'Directory' }) diff --git a/ui/ts/tests/securityPoolsSection.test.ts b/ui/ts/tests/securityPoolsSection.test.ts index 4a69719c..989d9de7 100644 --- a/ui/ts/tests/securityPoolsSection.test.ts +++ b/ui/ts/tests/securityPoolsSection.test.ts @@ -577,6 +577,7 @@ void describe('SecurityPoolsSection', () => { cleanupRenderedComponent = renderedComponent.cleanup const metricLabels = Array.from(document.body.querySelectorAll('.metric-label')).map(element => element.textContent?.trim() ?? '') + expect(metricLabels.includes('Manager')).toBe(false) expect(metricLabels.includes('Truth Auction')).toBe(false) })