eleftherias commited on
Commit
e93b9a5
·
1 Parent(s): a466b7a

Remove broken details link

Browse files
frontend/src/pages/LeaderboardPage/components/Leaderboard/utils/columnUtils.js CHANGED
@@ -19,42 +19,42 @@ import OpenInNewIcon from "@mui/icons-material/OpenInNew";
19
  import { alpha } from "@mui/material/styles";
20
  import InfoIconWithTooltip from "../../../../../components/shared/InfoIconWithTooltip";
21
 
22
- const DatabaseIcon = () => (
23
- <svg
24
- className="mr-1.5 text-gray-400 group-hover:text-red-500"
25
- xmlns="http://www.w3.org/2000/svg"
26
- aria-hidden="true"
27
- focusable="false"
28
- role="img"
29
- width="1.4em"
30
- height="1.4em"
31
- preserveAspectRatio="xMidYMid meet"
32
- viewBox="0 0 25 25"
33
- >
34
- <ellipse
35
- cx="12.5"
36
- cy="5"
37
- fill="currentColor"
38
- fillOpacity="0.25"
39
- rx="7.5"
40
- ry="2"
41
- ></ellipse>
42
- <path
43
- d="M12.5 15C16.6421 15 20 14.1046 20 13V20C20 21.1046 16.6421 22 12.5 22C8.35786 22 5 21.1046 5 20V13C5 14.1046 8.35786 15 12.5 15Z"
44
- fill="currentColor"
45
- opacity="0.5"
46
- ></path>
47
- <path
48
- d="M12.5 7C16.6421 7 20 6.10457 20 5V11.5C20 12.6046 16.6421 13.5 12.5 13.5C8.35786 13.5 5 12.6046 5 11.5V5C5 6.10457 8.35786 7 12.5 7Z"
49
- fill="currentColor"
50
- opacity="0.5"
51
- ></path>
52
- <path
53
- d="M5.23628 12C5.08204 12.1598 5 12.8273 5 13C5 14.1046 8.35786 15 12.5 15C16.6421 15 20 14.1046 20 13C20 12.8273 19.918 12.1598 19.7637 12C18.9311 12.8626 15.9947 13.5 12.5 13.5C9.0053 13.5 6.06886 12.8626 5.23628 12Z"
54
- fill="currentColor"
55
- ></path>
56
- </svg>
57
- );
58
 
59
  const HighlightedText = ({ text, searchValue }) => {
60
  if (!searchValue) return text;
@@ -274,10 +274,10 @@ const RankIndicator = ({ rank, previousRank, mode }) => {
274
  );
275
  };
276
 
277
- const getDetailsUrl = (modelName) => {
278
- const formattedName = modelName.replace("/", "__");
279
- return `https://huggingface.co/datasets/llm-security-leaderboard/${formattedName}-details`;
280
- };
281
 
282
  const HeaderLabel = ({ label, tooltip, className, isSorted }) => (
283
  <Tooltip
@@ -610,29 +610,29 @@ export const createColumns = (
610
  }}
611
  />
612
  </Link>
613
- <Link
614
- href={getDetailsUrl(modelName)}
615
- target="_blank"
616
- rel="noopener noreferrer"
617
- aria-label={`View detailed evaluation results for ${modelName}`}
618
- title={TABLE_TOOLTIPS.EVAL_RESULTS(modelName)}
619
- sx={{
620
- textDecoration: "none",
621
- "&:hover": {
622
- textDecoration: "underline",
623
- "& svg": {
624
- color: "text.primary",
625
- },
626
- },
627
- display: "flex",
628
- alignItems: "center",
629
- color: "text.secondary",
630
- flexShrink: 0,
631
- mr: 0,
632
- }}
633
- >
634
- <DatabaseIcon />
635
- </Link>
636
  </Box>
637
  </Box>
638
  );
 
19
  import { alpha } from "@mui/material/styles";
20
  import InfoIconWithTooltip from "../../../../../components/shared/InfoIconWithTooltip";
21
 
22
+ // const DatabaseIcon = () => (
23
+ // <svg
24
+ // className="mr-1.5 text-gray-400 group-hover:text-red-500"
25
+ // xmlns="http://www.w3.org/2000/svg"
26
+ // aria-hidden="true"
27
+ // focusable="false"
28
+ // role="img"
29
+ // width="1.4em"
30
+ // height="1.4em"
31
+ // preserveAspectRatio="xMidYMid meet"
32
+ // viewBox="0 0 25 25"
33
+ // >
34
+ // <ellipse
35
+ // cx="12.5"
36
+ // cy="5"
37
+ // fill="currentColor"
38
+ // fillOpacity="0.25"
39
+ // rx="7.5"
40
+ // ry="2"
41
+ // ></ellipse>
42
+ // <path
43
+ // d="M12.5 15C16.6421 15 20 14.1046 20 13V20C20 21.1046 16.6421 22 12.5 22C8.35786 22 5 21.1046 5 20V13C5 14.1046 8.35786 15 12.5 15Z"
44
+ // fill="currentColor"
45
+ // opacity="0.5"
46
+ // ></path>
47
+ // <path
48
+ // d="M12.5 7C16.6421 7 20 6.10457 20 5V11.5C20 12.6046 16.6421 13.5 12.5 13.5C8.35786 13.5 5 12.6046 5 11.5V5C5 6.10457 8.35786 7 12.5 7Z"
49
+ // fill="currentColor"
50
+ // opacity="0.5"
51
+ // ></path>
52
+ // <path
53
+ // d="M5.23628 12C5.08204 12.1598 5 12.8273 5 13C5 14.1046 8.35786 15 12.5 15C16.6421 15 20 14.1046 20 13C20 12.8273 19.918 12.1598 19.7637 12C18.9311 12.8626 15.9947 13.5 12.5 13.5C9.0053 13.5 6.06886 12.8626 5.23628 12Z"
54
+ // fill="currentColor"
55
+ // ></path>
56
+ // </svg>
57
+ // );
58
 
59
  const HighlightedText = ({ text, searchValue }) => {
60
  if (!searchValue) return text;
 
274
  );
275
  };
276
 
277
+ // const getDetailsUrl = (modelName) => {
278
+ // const formattedName = modelName.replace("/", "__");
279
+ // return `https://huggingface.co/datasets/llm-security-leaderboard/${formattedName}-details`;
280
+ // };
281
 
282
  const HeaderLabel = ({ label, tooltip, className, isSorted }) => (
283
  <Tooltip
 
610
  }}
611
  />
612
  </Link>
613
+ {/*<Link*/}
614
+ {/* href={getDetailsUrl(modelName)}*/}
615
+ {/* target="_blank"*/}
616
+ {/* rel="noopener noreferrer"*/}
617
+ {/* aria-label={`View detailed evaluation results for ${modelName}`}*/}
618
+ {/* title={TABLE_TOOLTIPS.EVAL_RESULTS(modelName)}*/}
619
+ {/* sx={{*/}
620
+ {/* textDecoration: "none",*/}
621
+ {/* "&:hover": {*/}
622
+ {/* textDecoration: "underline",*/}
623
+ {/* "& svg": {*/}
624
+ {/* color: "text.primary",*/}
625
+ {/* },*/}
626
+ {/* },*/}
627
+ {/* display: "flex",*/}
628
+ {/* alignItems: "center",*/}
629
+ {/* color: "text.secondary",*/}
630
+ {/* flexShrink: 0,*/}
631
+ {/* mr: 0,*/}
632
+ {/* }}*/}
633
+ {/*>*/}
634
+ {/* <DatabaseIcon />*/}
635
+ {/*</Link>*/}
636
  </Box>
637
  </Box>
638
  );