diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/LeaderboardPage/LeaderboardHeader.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/LeaderboardPage/LeaderboardHeader.tsx deleted file mode 100644 index acf5a0af928..00000000000 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/LeaderboardPage/LeaderboardHeader.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import React from 'react'; -import styled from 'styled-components'; - -interface LeaderboardHeaderProps { - title: string; -} - -export const LeaderboardHeader: React.FC = ({ - title, -}) => ( - - {title} - -); - -const HeaderContainer = styled.div` - background-color: #2c3e50; - color: white; - padding: 24px; - border-radius: 8px; -`; - -const Title = styled.h1` - margin: 0; - font-size: 28px; -`; diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/LeaderboardPage/LeaderboardPage.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/LeaderboardPage/LeaderboardPage.tsx index b267371f939..838b3128b80 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/LeaderboardPage/LeaderboardPage.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/LeaderboardPage/LeaderboardPage.tsx @@ -24,7 +24,7 @@ const DEFAULT_DESCRIPTION = `# Leaderboard`; export const LeaderboardPageContent: React.FC = props => { const {entity, project} = props; - const [description, setDescription] = useState(""); + const [description, setDescription] = useState(''); const {loading, data} = useLeaderboardData(entity, project); // const setDescription = useCallback((newDescription: string) => { diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/LeaderboardPage/fakeData.ts b/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/LeaderboardPage/fakeData.ts deleted file mode 100644 index 172b9b68576..00000000000 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/pages/LeaderboardPage/fakeData.ts +++ /dev/null @@ -1,22 +0,0 @@ -const generateRandomScore = () => - Math.round((Math.random() * 30 + 70) * 100) / 100; - -const metrics = ['Accuracy', 'F1 Score', 'Precision', 'Recall', 'AUC-ROC']; -const models = Array.from({length: 200}, (_, i) => `Model ${i + 1}`); - -const generateScores = () => { - const scores: {[key: string]: number} = {}; - metrics.forEach(metric => { - scores[metric] = generateRandomScore(); - }); - return scores; -}; - -export const fakeLeaderboardData = { - models, - metrics, - scores: models.reduce((acc, model) => { - acc[model] = generateScores(); - return acc; - }, {} as {[key: string]: {[key: string]: number}}), -};