From bc516294b3fe37cdc51b9c476242326072629777 Mon Sep 17 00:00:00 2001 From: Raphael Bessin Date: Wed, 21 Jan 2026 11:57:35 -0500 Subject: [PATCH 1/3] #3883 added button --- .../ProjectDetailPage/ProjectViewContainer/BOMTab.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx b/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx index 7d01000ba0..79d3bef5f8 100644 --- a/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx +++ b/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx @@ -1,5 +1,5 @@ import { Box } from '@mui/system'; -import { MaterialPreview, Project, isGuest } from 'shared'; +import { MaterialPreview, Project, isGuest, isAtMostRank } from 'shared'; import { NERButton } from '../../../components/NERButton'; import WarningIcon from '@mui/icons-material/Warning'; import { Tooltip, useTheme } from '@mui/material'; @@ -93,6 +93,11 @@ const BOMTab = ({ project }: { project: Project }) => { > Show All Columns + {isAtMostRank('MEMBER', user.role) ? null : ( + {}} disabled={false}> + Copy Existing BOM + + )} From 6324fb4d764d533ecab55ed7fd869e254b628461 Mon Sep 17 00:00:00 2001 From: Raphael Bessin Date: Wed, 21 Jan 2026 14:32:23 -0500 Subject: [PATCH 2/3] #3883 fixed button disable rather than hide when user doesn't have required rank --- .../ProjectDetailPage/ProjectViewContainer/BOMTab.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx b/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx index 79d3bef5f8..54d5a892d7 100644 --- a/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx +++ b/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx @@ -93,11 +93,9 @@ const BOMTab = ({ project }: { project: Project }) => { > Show All Columns - {isAtMostRank('MEMBER', user.role) ? null : ( - {}} disabled={false}> - Copy Existing BOM - - )} + {}} disabled={isAtMostRank('MEMBER', user.role)}> + Copy Existing BOM + From 3ae89b1e4c63eeaa4573abe182cc007f60d83df2 Mon Sep 17 00:00:00 2001 From: Raphael Bessin Date: Thu, 22 Jan 2026 11:16:27 -0500 Subject: [PATCH 3/3] #3883 changed Copy Existing BOM button to use isGuest --- .../pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx b/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx index 54d5a892d7..d459a64534 100644 --- a/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx +++ b/src/frontend/src/pages/ProjectDetailPage/ProjectViewContainer/BOMTab.tsx @@ -1,5 +1,5 @@ import { Box } from '@mui/system'; -import { MaterialPreview, Project, isGuest, isAtMostRank } from 'shared'; +import { MaterialPreview, Project, isGuest } from 'shared'; import { NERButton } from '../../../components/NERButton'; import WarningIcon from '@mui/icons-material/Warning'; import { Tooltip, useTheme } from '@mui/material'; @@ -93,7 +93,7 @@ const BOMTab = ({ project }: { project: Project }) => { > Show All Columns - {}} disabled={isAtMostRank('MEMBER', user.role)}> + {}} disabled={isGuest(user.role)}> Copy Existing BOM