@@ -40,6 +40,17 @@ export const TorchAgentPage = () => {
40
40
const session = useSession ( ) ;
41
41
const theme = useTheme ( ) ;
42
42
43
+ const featureRequestUrl =
44
+ "https://github.com/pytorch/test-infra/issues/new?title=" +
45
+ encodeURIComponent ( "[TorchAgent][featurerequest]" ) +
46
+ "&body=" +
47
+ encodeURIComponent ( "Please describe your feature request here." ) ;
48
+ const bugReportUrl =
49
+ "https://github.com/pytorch/test-infra/issues/new?title=" +
50
+ encodeURIComponent ( "[TorchAgent][bug]" ) +
51
+ "&body=" +
52
+ encodeURIComponent ( "Please describe the bug you encountered." ) ;
53
+
43
54
const [ query , setQuery ] = useState ( "" ) ;
44
55
const [ isLoading , setIsLoading ] = useState ( false ) ;
45
56
const [ response , setResponse ] = useState ( "" ) ;
@@ -761,6 +772,27 @@ export const TorchAgentPage = () => {
761
772
TorchAgent
762
773
</ Typography >
763
774
775
+ < Box sx = { { display : "flex" , justifyContent : "flex-end" , mb : 2 } } >
776
+ < Button
777
+ variant = "outlined"
778
+ component = "a"
779
+ href = { featureRequestUrl }
780
+ target = "_blank"
781
+ sx = { { mr : 1 } }
782
+ >
783
+ Feature Request
784
+ </ Button >
785
+ < Button
786
+ variant = "outlined"
787
+ color = "error"
788
+ component = "a"
789
+ href = { bugReportUrl }
790
+ target = "_blank"
791
+ >
792
+ Report Bug
793
+ </ Button >
794
+ </ Box >
795
+
764
796
< Typography
765
797
variant = "body1"
766
798
paragraph
@@ -927,6 +959,27 @@ export const TorchAgentPage = () => {
927
959
</ Box >
928
960
) }
929
961
</ ResultsSection >
962
+
963
+ < Box sx = { { display : "flex" , justifyContent : "flex-end" , mt : 2 } } >
964
+ < Button
965
+ variant = "outlined"
966
+ component = "a"
967
+ href = { featureRequestUrl }
968
+ target = "_blank"
969
+ sx = { { mr : 1 } }
970
+ >
971
+ Feature Request
972
+ </ Button >
973
+ < Button
974
+ variant = "outlined"
975
+ color = "error"
976
+ component = "a"
977
+ href = { bugReportUrl }
978
+ target = "_blank"
979
+ >
980
+ Report Bug
981
+ </ Button >
982
+ </ Box >
930
983
</ TorchAgentPageContainer >
931
984
) ;
932
985
} ;
0 commit comments