Skip to content

Commit b18a93a

Browse files
authored
[torchagent] cleaner UI for bug report/ feature request (#6775)
1 parent 007e89b commit b18a93a

File tree

2 files changed

+25
-39
lines changed

2 files changed

+25
-39
lines changed

torchci/components/TorchAgentPage.tsx

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -869,27 +869,6 @@ export const TorchAgentPage = () => {
869869
</Box>
870870
)}
871871
</ResultsSection>
872-
873-
<Box sx={{ display: "flex", justifyContent: "flex-end", mt: 2 }}>
874-
<Button
875-
variant="outlined"
876-
component="a"
877-
href={featureRequestUrl}
878-
target="_blank"
879-
sx={{ mr: 1 }}
880-
>
881-
Feature Request
882-
</Button>
883-
<Button
884-
variant="outlined"
885-
color="error"
886-
component="a"
887-
href={bugReportUrl}
888-
target="_blank"
889-
>
890-
Report Bug
891-
</Button>
892-
</Box>
893872
</TorchAgentPageContainer>
894873
)}
895874
</Box>

torchci/components/TorchAgentPage/HeaderSection.tsx

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
2+
import BugReportIcon from "@mui/icons-material/BugReport";
3+
import LightbulbIcon from "@mui/icons-material/Lightbulb";
24
import { Box, Button, Tooltip, Typography } from "@mui/material";
35
import React from "react";
46
import { ScrollToBottomButton } from "./styles";
@@ -36,24 +38,29 @@ export const HeaderSection: React.FC<HeaderSectionProps> = ({
3638
</Typography>
3739

3840
<Box sx={{ display: "flex", justifyContent: "flex-end", mb: 2 }}>
39-
<Button
40-
variant="outlined"
41-
component="a"
42-
href={featureRequestUrl}
43-
target="_blank"
44-
sx={{ mr: 1 }}
45-
>
46-
Feature Request
47-
</Button>
48-
<Button
49-
variant="outlined"
50-
color="error"
51-
component="a"
52-
href={bugReportUrl}
53-
target="_blank"
54-
>
55-
Report Bug
56-
</Button>
41+
<Tooltip title="Create feature request">
42+
<Button
43+
variant="outlined"
44+
component="a"
45+
href={featureRequestUrl}
46+
target="_blank"
47+
sx={{ mr: 1, minWidth: "auto", p: 1 }}
48+
>
49+
<LightbulbIcon />
50+
</Button>
51+
</Tooltip>
52+
<Tooltip title="Report bug">
53+
<Button
54+
variant="outlined"
55+
color="error"
56+
component="a"
57+
href={bugReportUrl}
58+
target="_blank"
59+
sx={{ minWidth: "auto", p: 1 }}
60+
>
61+
<BugReportIcon />
62+
</Button>
63+
</Tooltip>
5764
</Box>
5865
</>
5966
);

0 commit comments

Comments
 (0)