Skip to content

Add issue shortcut buttons on TorchAgent page #6771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 59 additions & 6 deletions torchci/components/TorchAgentPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ export const TorchAgentPage = () => {
const session = useSession();
const theme = useTheme();

const featureRequestUrl =
"https://github.com/pytorch/test-infra/issues/new?title=" +
encodeURIComponent("[TorchAgent][featurerequest]") +
"&body=" +
encodeURIComponent("Please describe your feature request here.");
const bugReportUrl =
"https://github.com/pytorch/test-infra/issues/new?title=" +
encodeURIComponent("[TorchAgent][bug]") +
"&body=" +
encodeURIComponent("Please describe the bug you encountered.");

const [query, setQuery] = useState("");
const [isLoading, setIsLoading] = useState(false);
const [response, setResponse] = useState("");
Expand Down Expand Up @@ -761,6 +772,27 @@ export const TorchAgentPage = () => {
TorchAgent
</Typography>

<Box sx={{ display: "flex", justifyContent: "flex-end", mb: 2 }}>
<Button
variant="outlined"
component="a"
href={featureRequestUrl}
target="_blank"
sx={{ mr: 1 }}
>
Feature Request
</Button>
<Button
variant="outlined"
color="error"
component="a"
href={bugReportUrl}
target="_blank"
>
Report Bug
</Button>
</Box>

<Typography
variant="body1"
paragraph
Expand All @@ -773,12 +805,12 @@ export const TorchAgentPage = () => {
borderColor: "divider",
}}
>
Welcome to TorchAgent, your intelligent assistant for PyTorch
infrastructure analysis and monitoring. This tool helps you create
custom time-series visualizations, analyze CI/CD metrics, and gain
insights into the PyTorch development workflow. Simply describe what
you&apos;d like to explore, and TorchAgent will generate the appropriate
queries and dashboards for you. Data we have access to:
Hi, I&apos;m TorchAgent, your intelligent assistant for PyTorch
infrastructure analysis and monitoring. I can help you create custom
time-series visualizations, analyze CI/CD metrics, and gain insights
into the PyTorch development workflow. Simply describe what you&apos;d
like to explore, and I will generate the appropriate queries and
dashboards for you. Data I have access to:
<ul>
<li>
PyTorch GitHub repository data (comments, issues, PRs, including
Expand Down Expand Up @@ -927,6 +959,27 @@ export const TorchAgentPage = () => {
</Box>
)}
</ResultsSection>

<Box sx={{ display: "flex", justifyContent: "flex-end", mt: 2 }}>
<Button
variant="outlined"
component="a"
href={featureRequestUrl}
target="_blank"
sx={{ mr: 1 }}
>
Feature Request
</Button>
<Button
variant="outlined"
color="error"
component="a"
href={bugReportUrl}
target="_blank"
>
Report Bug
</Button>
</Box>
</TorchAgentPageContainer>
);
};