Skip to content

NEW badges for AV1, v210 and the preview view-mode control (task #133) - #284

Merged
StuartCameronCode merged 1 commit into
mainfrom
stuart/133-new-badges-for-1-8-0-features-outside-th
Nov 28, 2026
Merged

StuartCameronCode merged 1 commit into
mainfrom
stuart/133-new-badges-for-1-8-0-features-outside-th

Conversation

@StuartCameronCode

Copy link
Copy Markdown
Owner

Adds NEW badges for the 1.8.0 features that sit outside the filter schemas. Task #131's docs audit found that these got no badge.

Change

  • Codecs: VideoCodec.sinceAppVersion marks AV1 (SVT-AV1) and v210 as 1.8.0. These show a badge:
    • each codec's radio in Settings → Output, including when it is disabled, so the user sees it next to the reason
    • the Video Codec heading
    • the Output tab (SettingsDialog.isOutputTabNew)
    • the toolbar's Settings button, which now reads SettingsDialog.hasNew (Output or Add-ons)
  • Preview: ComparisonViewMode.sinceAppVersion = '1.8.0' badges the Original / Split / Processed control.
  • Shared badge widget: a new NewCornerBadge replaces the copies of the badge styling in Crop Detect and the Add-ons tab label. They look the same as before.
  • Docs: FILTER_SCHEMA.md gains an "Outside the schemas" table, and CLAUDE.md gains one sentence on it.

1.7.0 is the last public release, so this must merge before 1.8.0 ships.

Testing

  • New new_badges_outside_schemas_test.dart (11 tests):
    • the values are pinned, and none is ahead of the pubspec version
    • badges show after updating from 1.7 to 1.8, but not on a fresh install or after updating from 1.8 to 1.9
    • it pumps the real SettingsDialog and checks the radios, the heading and the Output tab label (no overflow)
    • the preview control's badge stays inside the preview
  • The badge, comparison and whats-new tests pass (63). flutter analyze has no warnings or errors in the touched files.
  • Locally, the push gate failed only tests that need the worker binary or deps bundle; CI runs those.
  • Not checked by eye in the running app.

🤖 Generated with Claude Code

… (task #133)

Things added in 1.8.0 outside the filter schemas had no NEW badge. They
now take hard-coded stamps, read through WhatsNewService.isNew like
CropDetectPanel's and AddonsSettingsTab's:

- VideoCodec.sinceAppVersion: AV1 and v210 = 1.8.0. Badges their radios
  (disabled ones too), the Video Codec heading, the Output tab label and
  the toolbar's Settings button (SettingsDialog.isOutputTabNew / hasNew,
  which the Settings button now reads instead of the Add-ons stamp alone).
- ComparisonViewMode.sinceAppVersion = 1.8.0: badges the preview's
  Original / Split / Processed control.
- NewCornerBadge: the overlaid corner badge, shared by the Add-ons and
  Output tab labels, Crop Detect and the view-mode control.

new_badges_outside_schemas_test.dart pins the stamps and checks the
badges on an upgrade, a fresh install and the next feature release,
pumping the real Settings dialog and preview widget. FILTER_SCHEMA.md
and CLAUDE.md document stamps outside the schemas.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@StuartCameronCode
StuartCameronCode merged commit 76811ce into main Nov 28, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant