Skip to content

Commit f436420

Browse files
authored
Remove dart3-compatible badge + search checkbox (#8975)
1 parent 1ca19e2 commit f436420

File tree

25 files changed

+3
-78
lines changed

25 files changed

+3
-78
lines changed

app/lib/frontend/templates/package.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,10 @@ d.Node renderPkgHeader(PackagePageData data) {
116116
!data.isLatestStable || showPrereleaseVersion || showPreviewVersion;
117117

118118
final pkgView = data.toPackageView();
119-
final isNullSafe = pkgView.tags.contains(PackageVersionTags.isNullSafe);
120119
final metadataNode = packageHeaderNode(
121120
packageName: package.name!,
122121
publisherId: package.publisherId,
123122
published: data.version.created!,
124-
isNullSafe: isNullSafe,
125-
isDart3Compatible: pkgView.tags.contains(
126-
PackageVersionTags.isDart3Compatible,
127-
),
128123
isDart3Incompatible: pkgView.tags.contains(
129124
PackageVersionTags.isDart3Incompatible,
130125
),

app/lib/frontend/templates/package_misc.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ final nameMatchBadgeNode = packageBadgeNode(
3535
color: 'name-match',
3636
);
3737

38-
/// Renders the Dart 3 compatible badge.
39-
final dart3CompatibleNode = packageBadgeNode(
40-
label: 'Dart 3 compatible',
41-
title: 'Package is compatible with Dart 3.',
42-
);
43-
4438
/// Renders the Dart 3 incompatible badge.
4539
final dart3IncompatibleNode = packageBadgeNode(
4640
label: 'Dart 3 incompatible',

app/lib/frontend/templates/views/pkg/header.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ d.Node packageHeaderNode({
1212
required String packageName,
1313
required String? publisherId,
1414
required DateTime published,
15-
required bool isNullSafe,
16-
required bool isDart3Compatible,
1715
required bool isDart3Incompatible,
1816
required LatestReleases? releases,
1917
}) {
@@ -22,7 +20,6 @@ d.Node packageHeaderNode({
2220
d.span(child: d.xAgoTimestamp(published)),
2321
d.text(' '),
2422
if (publisherId != null) ..._publisher(publisherId),
25-
if (isDart3Compatible) dart3CompatibleNode,
2623
if (isDart3Incompatible) dart3IncompatibleNode,
2724
if (releases != null) ..._releases(packageName, releases),
2825
]);

app/lib/frontend/templates/views/pkg/index.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,6 @@ d.Node _searchFormContainer({
149149
searchForm: searchForm,
150150
title: 'Show only packages with screenshots.',
151151
),
152-
_tagBasedCheckbox(
153-
tagPrefix: 'is',
154-
tagValue: 'dart3-compatible',
155-
label: 'Dart 3 compatible',
156-
searchForm: searchForm,
157-
title: 'Show only packages compatible with Dart 3.',
158-
),
159152
_tagBasedCheckbox(
160153
tagPrefix: 'is',
161154
tagValue: 'plugin',

app/lib/frontend/templates/views/pkg/package_list.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,6 @@ d.Node _packageItem(
9191
required bool isLiked,
9292
}) {
9393
final isFlutterFavorite = view.tags.contains(PackageTags.isFlutterFavorite);
94-
final isDart3Compatible = view.tags.contains(
95-
PackageVersionTags.isDart3Compatible,
96-
);
9794
final isDart3Incompatible = view.tags.contains(
9895
PackageVersionTags.isDart3Incompatible,
9996
);
@@ -153,7 +150,6 @@ d.Node _packageItem(
153150
if (licenseNode != null)
154151
d.span(classes: ['packages-metadata-block'], child: licenseNode),
155152
if (isFlutterFavorite) flutterFavoriteBadgeNode,
156-
if (isDart3Compatible) dart3CompatibleNode,
157153
if (isDart3Incompatible) dart3IncompatibleNode,
158154
]);
159155

app/test/frontend/golden/pkg_index_page.html

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -353,23 +353,6 @@ <h3 class="search-form-section-header foldable-button">
353353
</label>
354354
</div>
355355
</div>
356-
<div class="search-form-linked-checkbox" title="Show only packages compatible with Dart 3.">
357-
<div class="mdc-form-field">
358-
<div class="mdc-checkbox">
359-
<input id="search-form-checkbox-is-dart3-compatible" class="mdc-checkbox__native-control" type="checkbox"/>
360-
<div class="mdc-checkbox__background">
361-
<svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24">
362-
<path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
363-
</svg>
364-
<div class="mdc-checkbox__mixedmark"></div>
365-
</div>
366-
<div class="mdc-checkbox__ripple"></div>
367-
</div>
368-
<label for="search-form-checkbox-is-dart3-compatible">
369-
<a href="/packages?q=sdk%3Adart+is%3Adart3-compatible" rel="nofollow" data-action="filter-is-dart3-compatible" data-tag="is:dart3-compatible">Dart 3 compatible</a>
370-
</label>
371-
</div>
372-
</div>
373356
<div class="search-form-linked-checkbox" title="Show only Flutter plugins.">
374357
<div class="mdc-form-field">
375358
<div class="mdc-checkbox">

app/test/frontend/golden/search_page.html

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -354,23 +354,6 @@ <h3 class="search-form-section-header foldable-button">
354354
</label>
355355
</div>
356356
</div>
357-
<div class="search-form-linked-checkbox" title="Show only packages compatible with Dart 3.">
358-
<div class="mdc-form-field">
359-
<div class="mdc-checkbox">
360-
<input id="search-form-checkbox-is-dart3-compatible" class="mdc-checkbox__native-control" type="checkbox"/>
361-
<div class="mdc-checkbox__background">
362-
<svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24">
363-
<path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"/>
364-
</svg>
365-
<div class="mdc-checkbox__mixedmark"></div>
366-
</div>
367-
<div class="mdc-checkbox__ripple"></div>
368-
</div>
369-
<label for="search-form-checkbox-is-dart3-compatible">
370-
<a href="/packages?q=is%3Adart3-compatible+foobar&amp;sort=top" rel="nofollow" data-action="filter-is-dart3-compatible" data-tag="is:dart3-compatible">Dart 3 compatible</a>
371-
</label>
372-
</div>
373-
</div>
374357
<div class="search-form-linked-checkbox" title="Show only Flutter plugins.">
375358
<div class="mdc-form-field">
376359
<div class="mdc-checkbox">

app/test/task/testdata/goldens/packages/oxygen.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ <h1 class="title pub-monochrome-icon-hoverable">
133133
<span>
134134
<a class="-x-ago" href="" title="%%short-dateformat%%" role="button" data-timestamp="%%time-ago-millis%%">%%time-ago%%</a>
135135
</span>
136-
<span class="package-badge" title="Package is compatible with Dart 3.">Dart 3 compatible</span>
137136
</div>
138137
<div class="detail-tags-and-like">
139138
<div class="detail-tags">

app/test/task/testdata/goldens/packages/oxygen/changelog.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ <h1 class="title pub-monochrome-icon-hoverable">
133133
<span>
134134
<a class="-x-ago" href="" title="%%short-dateformat%%" role="button" data-timestamp="%%time-ago-millis%%">%%time-ago%%</a>
135135
</span>
136-
<span class="package-badge" title="Package is compatible with Dart 3.">Dart 3 compatible</span>
137136
</div>
138137
<div class="detail-tags-and-like">
139138
<div class="detail-tags">

app/test/task/testdata/goldens/packages/oxygen/example.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ <h1 class="title pub-monochrome-icon-hoverable">
133133
<span>
134134
<a class="-x-ago" href="" title="%%short-dateformat%%" role="button" data-timestamp="%%time-ago-millis%%">%%time-ago%%</a>
135135
</span>
136-
<span class="package-badge" title="Package is compatible with Dart 3.">Dart 3 compatible</span>
137136
</div>
138137
<div class="detail-tags-and-like">
139138
<div class="detail-tags">

0 commit comments

Comments
 (0)