From 444c04dcdeb965b531d7508f5e82af56cfcb00f2 Mon Sep 17 00:00:00 2001
From: Jamie Rasmussen <112953339+jamie-rasmussen@users.noreply.github.com>
Date: Wed, 11 Dec 2024 18:50:14 -0600
Subject: [PATCH] chore(ui): remove some unused code (#3157)
---
.../PagePanelComponents/Home/Browse3.tsx | 138 +-----------------
1 file changed, 1 insertion(+), 137 deletions(-)
diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3.tsx
index 3517f4d3b9c..761fd536930 100644
--- a/weave-js/src/components/PagePanelComponents/Home/Browse3.tsx
+++ b/weave-js/src/components/PagePanelComponents/Home/Browse3.tsx
@@ -1,15 +1,5 @@
import {ApolloProvider} from '@apollo/client';
-import {Home} from '@mui/icons-material';
-import {
- AppBar,
- Box,
- Breadcrumbs,
- Drawer,
- IconButton,
- Link as MaterialLink,
- Toolbar,
- Typography,
-} from '@mui/material';
+import {Box, Drawer} from '@mui/material';
import {
GridColumnVisibilityModel,
GridFilterModel,
@@ -21,9 +11,7 @@ import {LicenseInfo} from '@mui/x-license';
import {makeGorillaApolloClient} from '@wandb/weave/apollo';
import {EVALUATE_OP_NAME_POST_PYDANTIC} from '@wandb/weave/components/PagePanelComponents/Home/Browse3/pages/common/heuristics';
import {opVersionKeyToRefUri} from '@wandb/weave/components/PagePanelComponents/Home/Browse3/pages/wfReactInterface/utilities';
-import _ from 'lodash';
import React, {
- ComponentProps,
FC,
useCallback,
useEffect,
@@ -33,7 +21,6 @@ import React, {
} from 'react';
import useMousetrap from 'react-hook-mousetrap';
import {
- Link as RouterLink,
Redirect,
Route,
Switch,
@@ -199,7 +186,6 @@ export const Browse3: FC<{
`/${URL_BROWSE3}`,
]}>
@@ -211,7 +197,6 @@ export const Browse3: FC<{
};
const Browse3Mounted: FC<{
- hideHeader?: boolean;
headerOffset?: number;
navigateAwayFromProject?: () => void;
}> = props => {
@@ -225,37 +210,6 @@ const Browse3Mounted: FC<{
overflow: 'auto',
flexDirection: 'column',
}}>
- {!props.hideHeader && (
- theme.zIndex.drawer + 1,
- height: '60px',
- flex: '0 0 auto',
- position: 'static',
- }}>
-
-
- theme.palette.getContrastText(theme.palette.primary.main),
- '&:hover': {
- color: theme =>
- theme.palette.getContrastText(theme.palette.primary.dark),
- },
- marginRight: theme => theme.spacing(2),
- }}>
-
-
-
-
-
- )}
@@ -1050,20 +1004,6 @@ const ComparePageBinding = () => {
return ;
};
-const AppBarLink = (props: ComponentProps) => (
- theme.palette.getContrastText(theme.palette.primary.main),
- '&:hover': {
- color: theme =>
- theme.palette.getContrastText(theme.palette.primary.dark),
- },
- }}
- {...props}
- component={RouterLink}
- />
-);
-
const PlaygroundPageBinding = () => {
const params = useParamsDecoded();
return (
@@ -1074,79 +1014,3 @@ const PlaygroundPageBinding = () => {
/>
);
};
-
-const Browse3Breadcrumbs: FC = props => {
- const params = useParamsDecoded();
- const query = useURLSearchParamsDict();
- const filePathParts = query.path?.split('/') ?? [];
- const refFields = query.extra?.split('/') ?? [];
-
- return (
-
- {params.entity && (
-
- {params.entity}
-
- )}
- {params.project && (
-
- {params.project}
-
- )}
- {params.tab && (
-
- {params.tab}
-
- )}
- {params.itemName && (
-
- {params.itemName}
-
- )}
- {params.version && (
-
- {params.version}
-
- )}
- {filePathParts.map((part, idx) => (
-
- {part}
-
- ))}
- {_.range(0, refFields.length, 2).map(idx => (
-
-
- theme.palette.getContrastText(theme.palette.primary.main),
- }}>
- {refFields[idx]}
-
-
- {refFields[idx + 1]}
-
-
- ))}
-
- );
-};