Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

Add tooltip for LeaderboardSubmissionButton

hunteraraujo1b9ec31d8446
diff --git a/frontend/lib/views/task_queue/leaderboard_submission_button.dart b/frontend/lib/views/task_queue/leaderboard_submission_button.dart
index 9a99201fac..dfa9d917b3 100644
--- a/frontend/lib/views/task_queue/leaderboard_submission_button.dart
+++ b/frontend/lib/views/task_queue/leaderboard_submission_button.dart
@@ -10,7 +10,7 @@ class LeaderboardSubmissionButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
- return SizedBox(
+ final button = SizedBox(
height: 50,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
@@ -44,5 +44,13 @@ class LeaderboardSubmissionButton extends StatelessWidget {
),
),
);
+
+ return isDisabled
+ ? Tooltip(
+ message:
+ "You must complete a test suite before submitting to the leaderboard.",
+ child: button,
+ )
+ : button;
}
}