From 08e6baf4bcadf7e3852d45470987a49335b3edb8 Mon Sep 17 00:00:00 2001 From: Sarah Zakarias Date: Mon, 21 Oct 2024 12:34:49 +0000 Subject: [PATCH 1/2] Add tooltip to 30 days downloads label --- app/lib/frontend/templates/views/pkg/labeled_scores.dart | 1 + 1 file changed, 1 insertion(+) diff --git a/app/lib/frontend/templates/views/pkg/labeled_scores.dart b/app/lib/frontend/templates/views/pkg/labeled_scores.dart index 47b39fedc9..5dea47f521 100644 --- a/app/lib/frontend/templates/views/pkg/labeled_scores.dart +++ b/app/lib/frontend/templates/views/pkg/labeled_scores.dart @@ -30,6 +30,7 @@ d.Node labeledScoresNode({ ), requestContext.experimentalFlags.showDownloadCounts ? d.div( + attributes: {'title': '30 days total download counts'}, classes: ['packages-score', 'packages-score-downloads'], child: _labeledScore( 'downloads', From 784714c19ee113e46f2ad14d410fa3d3bcf0edae Mon Sep 17 00:00:00 2001 From: Sarah Zakarias Date: Tue, 22 Oct 2024 07:45:30 +0000 Subject: [PATCH 2/2] comment --- app/lib/frontend/templates/views/pkg/labeled_scores.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/lib/frontend/templates/views/pkg/labeled_scores.dart b/app/lib/frontend/templates/views/pkg/labeled_scores.dart index 5dea47f521..661c3aef76 100644 --- a/app/lib/frontend/templates/views/pkg/labeled_scores.dart +++ b/app/lib/frontend/templates/views/pkg/labeled_scores.dart @@ -30,7 +30,10 @@ d.Node labeledScoresNode({ ), requestContext.experimentalFlags.showDownloadCounts ? d.div( - attributes: {'title': '30 days total download counts'}, + attributes: { + 'title': + 'Number of downloads of this package during the past 30 days' + }, classes: ['packages-score', 'packages-score-downloads'], child: _labeledScore( 'downloads',