From 4c1d6608a05b1d68449be4dd3c197e18dea71402 Mon Sep 17 00:00:00 2001 From: Nabi Date: Mon, 20 Jul 2026 17:05:20 +0430 Subject: [PATCH 01/26] fix: disable edit navigation for pending agents --- .../Tables/AgentsTable/AgentsTableRow.tsx | 15 +++++++++++---- src/components/Tables/AgentsTable/index.tsx | 2 +- src/pages/settings/Agents/AgentsPage.tsx | 6 ++++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/src/components/Tables/AgentsTable/AgentsTableRow.tsx b/src/components/Tables/AgentsTable/AgentsTableRow.tsx index 21d2b0c4d534..12af60999680 100644 --- a/src/components/Tables/AgentsTable/AgentsTableRow.tsx +++ b/src/components/Tables/AgentsTable/AgentsTableRow.tsx @@ -40,7 +40,8 @@ export default function AgentsTableRow({item, rowIndex, shouldUseNarrowTableLayo const avatarSize = shouldUseNarrowTableLayout ? CONST.AVATAR_SIZE.DEFAULT : CONST.AVATAR_SIZE.SMALL; const isPendingDeletion = item.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE; - const isPendingAddOrDelete = item.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD || isPendingDeletion; + const isPendingAdd = item.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD; + const isPendingAddOrDelete = isPendingAdd || isPendingDeletion; const areActionsDisabled = isPendingAddOrDelete || item.accountID <= 0 || !item.login; const accessibilityLabel = [item.displayName, item.login].filter(Boolean).join(', '); const selectedButtonInnerStyle = item.selected ? styles.buttonDefaultHovered : undefined; @@ -79,12 +80,18 @@ export default function AgentsTableRow({item, rowIndex, shouldUseNarrowTableLayo @@ -115,7 +122,7 @@ export default function AgentsTableRow({item, rowIndex, shouldUseNarrowTableLayo