Skip to content

Picture sizes: the label, smallest in the window, the window's texts, a preset and wheel scrolling - #251

Merged
donislawdev merged 18 commits into
mainfrom
picture-label-sizes
Nov 18, 2026
Merged

donislawdev merged 18 commits into
mainfrom
picture-label-sizes

Conversation

@donislawdev

@donislawdev donislawdev commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Four reports about pictures and the window, one about scrolling and three more about the size switch and the explanations, in one branch with a commit each.

The size of a picture and the button under a refusal

  • Breaking: the label drawn inside a picture no longer states the size of the file. It made the smallest size of a picture depend on its own digits, so the size a refusal named could be refused in turn. The pictures of every format with a label move, and the changelog says so.
  • A size refused for a batch now names the size every file of it takes, worked out file by file, so the button under the refusal leads to a run that is accepted. A batch of more than one picture also gets a second button that makes each picture as small as it can be. One picture gets one button, since there the two make the same file.
  • smallest is a way of giving the size in the window: a segment on Several batches and a switch beside the size on Single batch, for pictures only. It stays greyed out until the width and height are set (or declared by the format, as svg does), and the pointer over it says why.

The window's texts

  • A full review of what the window says. English lists name their values (test pattern, rising tone) and settings have readable labels, a switch reads on or off, and the screen's own sentences say what the screen shows.
  • Settings that only apply to a placeholder appear only while the content is a placeholder, on the command line as well (only when content is placeholder).
  • A refusal in the window speaks of batches, boxes and tabs rather than of a recipe, in English and in Polish. The command line keeps its words except where a reason justified a rule by "a recipe".
  • A value to type stands out from the words describing it. In an explanation, screens and all for the groups of picture-sizes, 10mb for a size or {index:04} in a file name are drawn in a code typeface and their own colour. The site shows them as code, and the command line prints them between backticks. Every translation keeps each value in English.

A preset of picture sizes

tfg generate --preset picture-sizes writes a picture at each of 21 common sizes: HD, Full HD, QHD and 4K screens, profile pictures, and the covers, posts and thumbnails YouTube, Facebook, X, LinkedIn, Instagram and Pinterest ask for, read from their help pages and the ITU standards on 2026-11-17. Each is the smallest its format makes, named by its size, and expected to be accepted. --groups, --content placeholder and --format (any picture format) choose the set. A size a format cannot draw is left out and named. The site describes it in every language.

Scrolling

A notch of the mouse wheel moved every scrolling area by the toolkit's fixed 25 units, about half of the three lines a notch moves by default. It now moves as many lines as Windows is set to (Mouse, Lines to scroll at a time), a whole view when set to a screen at a time, three lines on Linux, and macOS is unchanged. Drawing a notch was measured at under a frame, so the steps were the problem, not the speed.

CI

  • Two switches on a setting's kind gained a default, as the linter asks.
  • ubuntu-latest became Ubuntu 26.04, where sha256sum is uutils and GNU's is installed beside it as gnusha256sum. The checksum guard asks for GNU's by that name first, so it keeps holding escaped names to GNU.
  • The site guards that ask the program about every preset share one answer per process, and the picture sizes preset made it cost about a minute under the race detector. The race weights now weigh each of them as if it pays.

Checks

New guards for each piece, each with a canary or broken by hand (all red when broken). Fifteen mutation entries that had stopped pointing at code are re-anchored, and one that never compiled breaks its behaviour again. Stored screens are regenerated, and where only the scrolling area's type name changed, no picture moved.

🤖 Generated with Claude Code

donislawdev and others added 13 commits November 16, 2026 23:15
A picture of a given width and height is now the same picture at every
size asked for, and only the padding around it moves. So the minimum a
refusal names is a size the next run accepts. Before, the byte count drawn
into a compressed picture changed how long it coded to, and asking for the
minimum could be refused again with a larger one.

- format.Request.PictureLabel names the format, the damage and the seed.
  All twelve picture and film formats draw it. Text formats keep the size.
- The shorter label is drawn at a larger scale on some widths, so the AVIF,
  JPEG XL and film ladder ceilings were measured again and raised where they
  kept less than a tenth of headroom.
- New guard: a picture is the same whatever size it is asked for, from the
  registry's picture formats, red on every case before this change. The
  damaged label of an SVG drawing is held to naming its damage.
- The generator golden hashes of labelled pictures moved. Breaking, and
  written in the changelog.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The smallest size a refusal named was the one of the first file that
refused. Each picture of a batch is drawn from its own seed and codes to
its own size, so asking for that number was refused again, and so was a
pdf, wav, zip or tar.gz whose label states its size. The button under
the refusal in the window led to the same second refusal.

- engine: a size below the minimum on a target of one size walks the
  files round, from the one that refused, until all of them accept one
  size, raising it to each refusal's minimum or a byte past a band. The
  format's own refusal goes out unchanged when the batch agrees with it.
  Otherwise the hint, and the reason when the files differ, are worded
  by the engine. Stoppable, nothing held per file, a run that plans is
  untouched.
- engine.OffersSmallest marks a refusal whose target could ask for
  smallest instead: a picture with its width and height known, no damage.
- window: the error area takes a list of fixes, one under another, and
  parts.Remedies is the function the buttons are made from. A second
  button puts smallest in the box.
- format.SmallestRounds is exported for the walk's ceiling.
- Guards: every format at its defaults, at 160x120 and as a placeholder,
  one file and three, each button's value planned again, with a canary
  for the button as it was; both buttons pressed in the window; smallest
  with its label drawn is the picture alone, which the label without a
  size made true.
- CHANGELOG: a Fixed entry, and the smallest entry no longer says the
  label adds up to a kilobyte.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A size below the minimum is no longer refused at the first file: the
engine asks every file of the batch for the size all of them take, which
holds nothing per file but allocates as it plans. A million such plans
are garbage the allocation total cannot tell from the reserved list, and
they took the guard past three minutes. A BMP over 4 GiB is refused by
the format at the first file and walks nothing, so the guard asks that.
Planting the reservation before the first file still turns it red.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Several batches offers Smallest as a fourth way of giving the size, and
Single batch a switch between One size and Smallest, each only for a
format the engine takes smallest for. The window asks
engine.TakesSmallest, the rule checkSmallest refuses by, and keeps no
list of formats of its own.

The switch is a view of the size box rather than a second record.
Choosing Smallest writes the word smallest into the box, leaving it puts
back the last size typed there, and typing either moves the switch - so
the two cannot say different things, the button under a size refusal
needs no rule of its own, and nothing on the way to the run changed. A
format that is not a picture takes Smallest off the switch and the box
gets its size back.

Under a box holding smallest the caption says the size is known after
Preview and comes from the width and height in the format's settings.
The explanation beside the switch is made of one sentence for each way
it offers, so it never names a way the switch does not have.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A setting can now declare the value another setting must have for it to
change anything (format.Condition). The four settings of a placeholder
declare content: placeholder, so the window hides them, and the heading
over them, until Content is placeholder. A value typed into one of them is
kept while it is hidden and is not sent. tfg formats ends their lines with
"only when content is placeholder", and --json carries it as only_when.
The refusal of such a setting on the test pattern reads its list off the
same declaration, with the same words as before.

Several batches lays out a format's settings, and those of the preset it
builds on, through the same function as Single batch, so it gains the
headings of setting blocks and the byte count under a size setting.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An English list shows test pattern, rising tone or file count limit where
it showed test, sweep or count_limit, and settings such as PDF version or
Records per line are no longer spelled out of their keys. The note under
Width and Height and a folded summary of settings use the same words.
Descriptions name values the way the lists do, and the box for the format
of the files inside an archive gives png or csv as examples.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ads on or off

Single batch no longer promises one size. The explanations behind Seed,
Label in each file, Size, Limit to test, Expected outcome and Preset, the
steps on About and the memory texts on Preferences are rewritten against
the code they describe, and name tabs, buttons and menu entries by their
own words, so a renamed tab cannot leave a step pointing nowhere.

A switch is said as on or off in the line a folded section shows and in
its explanation, which no longer says true or false. Polish in the same
commit. New guard: every declared switch, and the placeholder png read
off the screen, with a canary on the line it was written against.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… screen does

The command line and the window now render an engine sentence through
one function, core.Said.render, and the command line is the window with
nothing reworded. The English window words two kinds of value its own
way: a value of a list by the name its menu shows, without the quotes of
a typed value, and a setting by the label above its box. A refusal at the
foot of the form names a format's setting by that label too, which also
fills the place a Polish sentence left empty. The Polish label of Entry
format no longer says it is about an archive.

The command line prints every refusal as before: the refusal sweep gives
the same bytes for the old and the new binary. New guards: every kind of
value reworded by nothing is the command line's text, a corpus of
refusals names its values and settings in the window's words, and the
foot of the form names both settings of a conflict in English and Polish.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The English window says the engine's sentences with the recipe's words in
the screen's: a target is a batch, a key and its value are the box to fill,
a line of the file is the box, and a command to run is the tab or the tool
that does the same. It is a table of phrases in the window's text package,
replaced in a sentence's layout before its values go in, so a value somebody
typed is never reworded, and labels are asked of the window's catalogue when
the sentence is said. core.Wording now lays a sentence out as well as wording
its values, and does so for every sentence inside a value, including a place
in a recipe that prints exactly its sentence.

The command line keeps its words, except the reasons that justified a rule
by a recipe, which now speak of the settings, and the refusal of a control
character in a composed value, which names its place the way every refusal
of a recipe does instead of by a dotted key. Polish says the same things in
its own words.

A new guard holds every layout to keeping its values, every sentence a
screen can show to carrying no word of the recipe in English or in Polish,
every phrase to rewording something, and the refusals of documents written
the way Several batches writes them to reading in the screen's words.

The size-way texts move to a file of their own, and the file they leave is
formatted by gofmt again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Thirteen entries stopped matching anything once the window drew every
declared setting through one function, the fix buttons became a list and the
picture ladders were measured again for a label without a size. A pattern
that matches nothing is skipped, so each of those guards went unproven while
looking proven.

Each entry now breaks the same behaviour at its new place, and each one still
turns its guard red. The seven entries that were already stale before this
branch are left as they are.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
tfg generate --preset picture-sizes writes one picture at each of 21 common
sizes - HD, Full HD, QHD and 4K screens, profile pictures, and the covers,
banners, posts and thumbnails YouTube, Facebook, X, LinkedIn, Instagram and
Pinterest ask for. Every size stands beside the page it was read from, and
the date it was read, in internal/preset/picturesizes.go.

Each picture asks for the smallest size its format makes, is named and
identified by its size alone, so a size keeps its bytes whichever groups are
chosen, and expects to be accepted with dimensions_limit as the rule in play.
A size with several uses is one file whose purpose names them all.

groups picks screens, avatars or social, content draws a placeholder with
the size written on it, and --format takes any picture format. A size the
format's own declaration refuses is left out before anything is planned and
named with the format's reason, and a set left with nothing, a format that is
not a picture and a placeholder for a format without one are each refused as
the setting to change.

What a picture format is now has one rule, Descriptor.IsPicture, which the
engine's smallest, the pictures of a mail message or a page, and the preset
all ask. The content setting is declared once and the preset reuses it.

A new guard reads every picture of the default set back with the standard
library at the size its name says, holds the left-out sizes to being said
and each refusal to naming its setting, and has the preset screen build the
same pictures as the command line with every parameter stated. The site
describes the preset in every language it has.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The toolkit moves a scrolling area by a fixed 25 units for a notch of the
wheel on Windows and Linux, whatever the system is set to, which is about
half of the three lines of text a notch moves by default. A screen of
settings took 32 notches top to bottom, while each notch cost less than a
frame to draw: the steps were short, the window was not slow.

parts.Scroll extends the toolkit's scroll and answers only how far a wheel
moves it: the notches the toolkit hands over, each as many lines of the
window's text as the system is set to, a whole view when it is set to a
screen at a time, and nothing when it is set to nought. Windows is asked at
every notch, so a change in Settings reaches a window already open. Linux
takes three lines, and macOS keeps the deltas its system already scaled.
Every scrolling area of the window is one of these.

New guards turn the wheel on every screen at several settings, read the
toolkit's step out of its own source so a change there is noticed, and
compare the answer Windows gives with the setting in the user's registry.
The guards and probes that recognised an area by its type know the new one,
and the stored screens change only in the name of that type.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Two entries pointed at a line the picture rule and the scrolling area moved,
and one broke the live check with a field the runner no longer has, so it
never compiled. Each now breaks the same behaviour in the code as it is, and
each turns its guard red.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 223 files, which is 123 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: ad479c65-099d-4ed3-8f0f-802f32cdc642
Commits

Reviewing files that changed from the base of the PR and between 055fb1b and c12305b.

Files ignored due to path filters: 168

  • internal/guard/testdata/screens/about.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/catalogue.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-chosen-by-key.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-chosen.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-empty.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-focused.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-hovered.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-menu-hovered.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-menu-keyed.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-menu.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-pdf-settings.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-refused-both.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-refused-setting.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-refused.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-switch-by-key.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-typed.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate-unchecked.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/generate.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/preferences-chosen.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/preferences.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/preset-many-settings.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/preset-menu-setting.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/preset-menu.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/preset-refused.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/recipe-contents.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/recipe-on-a-preset.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/recipe-refused-with-one-batch-filled.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/recipe-refused.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/recipe-two-batches.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/recipe.png is excluded by !**/*.png, !**/*.png
  • internal/guard/testdata/screens/tools-result.png is excluded by !**/*.png, !**/*.png
  • internal/site/presets.go is excluded by !**/site/**
  • web/assets/social-preview.png is excluded by !**/*.png, !**/*.png
  • web/public/ar/docs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ar/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ar/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ar/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ar/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ar/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/assets/social-preview.png is excluded by !**/*.png, !**/*.png, !**/web/public/**
  • web/public/cs/dokumentace/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/cs/formaty/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/cs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/cs/predvolby/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/cs/predvolby/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/cs/predvolby/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/de/dokumentation/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/de/formate/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/de/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/de/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/de/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/de/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/docs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/es/documentacion/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/es/formatos/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/es/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/es/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/es/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/es/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/fr/documentation/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/fr/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/fr/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/fr/prereglages/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/fr/prereglages/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/fr/prereglages/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/hi/docs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/hi/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/hi/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/hi/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/hi/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/hi/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/id/dokumentasi/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/id/format/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/id/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/id/preset/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/id/preset/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/id/preset/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/it/documentazione/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/it/formati/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/it/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/it/preset/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/it/preset/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/it/preset/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ja/docs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ja/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ja/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ja/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ja/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ja/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ko/docs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ko/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ko/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ko/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ko/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ko/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/nl/documentatie/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/nl/formaten/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/nl/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/nl/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/nl/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/nl/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pl/dokumentacja/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pl/formaty/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pl/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pl/presety/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pl/presety/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pl/presety/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pt-br/documentacao/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pt-br/formatos/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pt-br/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pt-br/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pt-br/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/pt-br/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ro/documentatie/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ro/formate/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ro/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ro/presetari/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ro/presetari/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ro/presetari/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ru/docs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ru/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ru/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ru/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ru/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/ru/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/sitemap.xml is excluded by !**/web/public/**
  • web/public/social.html is excluded by !**/*.html, !**/web/public/**
  • web/public/th/docs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/th/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/th/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/th/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/th/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/th/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/tr/bicimler/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/tr/dokumantasyon/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/tr/hazir-ayarlar/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/tr/hazir-ayarlar/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/tr/hazir-ayarlar/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/tr/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/uk/docs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/uk/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/uk/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/uk/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/uk/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/uk/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/vi/dinh-dang/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/vi/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/vi/preset/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/vi/preset/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/vi/preset/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/vi/tai-lieu/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hans/docs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hans/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hans/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hans/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hans/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hans/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hant/docs/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hant/formats/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hant/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hant/presets/empty-and-minimal/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hant/presets/index.html is excluded by !**/*.html, !**/web/public/**
  • web/public/zh-hant/presets/picture-sizes/index.html is excluded by !**/*.html, !**/web/public/**
Files selected for processing: 223

  • .github/race-weights
  • CHANGELOG.md
  • README.md
  • internal/cli/formats.go
  • internal/core/literal.go
  • internal/core/refusal.go
  • internal/core/reworded.go
  • internal/core/said.go
  • internal/core/size.go
  • internal/damage/damage.go
  • internal/engine/batchminimum.go
  • internal/engine/crash.go
  • internal/engine/errors.go
  • internal/engine/filename.go
  • internal/engine/plantarget.go
  • internal/engine/smallest.go
  • internal/format/archive/archive.go
  • internal/format/avif/avif.go
  • internal/format/bmp/bmp.go
  • internal/format/condition.go
  • internal/format/eml/inline.go
  • internal/format/eml/settings.go
  • internal/format/format.go
  • internal/format/gif/gif.go
  • internal/format/htmlfile/pictures.go
  • internal/format/ico/ico.go
  • internal/format/jpg/jpg.go
  • internal/format/jxl/jxl.go
  • internal/format/label.go
  • internal/format/logfile/log.go
  • internal/format/otlp/pitfalls.go
  • internal/format/otlp/properties.go
  • internal/format/pdf/properties.go
  • internal/format/picture/picture.go
  • internal/format/placeholder/settings.go
  • internal/format/png/png.go
  • internal/format/refusals.go
  • internal/format/registry.go
  • internal/format/rtf/pictures.go
  • internal/format/rtf/settings.go
  • internal/format/svgfile/placeholder.go
  • internal/format/svgfile/svg.go
  • internal/format/tiff/tiff.go
  • internal/format/video/choose.go
  • internal/format/video/plan.go
  • internal/format/wav/wav.go
  • internal/format/webp/webp.go
  • internal/guard/actionbarheight_test.go
  • internal/guard/avifladder_test.go
  • internal/guard/cataloguewords_test.go
  • internal/guard/checksumfolder_test.go
  • internal/guard/damagelabel_test.go
  • internal/guard/detailpopup_test.go
  • internal/guard/englishrefusal_test.go
  • internal/guard/filmahead_test.go
  • internal/guard/filmlayout_test.go
  • internal/guard/filmtiles_test.go
  • internal/guard/formcolumns_test.go
  • internal/guard/generatewindow_test.go
  • internal/guard/guitext_test.go
  • internal/guard/jxlladder_test.go
  • internal/guard/labelclaim_test.go
  • internal/guard/literals_test.go
  • internal/guard/mutation/entries.py
  • internal/guard/mutationcoverage_test.go
  • internal/guard/notelemetry_test.go
  • internal/guard/onlywhen_test.go
  • internal/guard/parity_test.go
  • internal/guard/picturecontent_test.go
  • internal/guard/picturefixes_test.go
  • internal/guard/picturesizes_test.go
  • internal/guard/placeholder_test.go
  • internal/guard/placeholderglyphs_test.go
  • internal/guard/planreserve_test.go
  • internal/guard/prefmemory_test.go
  • internal/guard/presetbytes_test.go
  • internal/guard/recipewords_test.go
  • internal/guard/registrywords_test.go
  • internal/guard/sizechoice_test.go
  • internal/guard/smallestheld_test.go
  • internal/guard/smallestway_test.go
  • internal/guard/spacingscale_test.go
  • internal/guard/switchwords_test.go
  • internal/guard/testdata/generator-golden.json
  • internal/guard/testdata/screens/about.xml
  • internal/guard/testdata/screens/catalogue.xml
  • internal/guard/testdata/screens/generate-chosen-by-key.xml
  • internal/guard/testdata/screens/generate-chosen.xml
  • internal/guard/testdata/screens/generate-empty.xml
  • internal/guard/testdata/screens/generate-focused.xml
  • internal/guard/testdata/screens/generate-hovered.xml
  • internal/guard/testdata/screens/generate-menu-hovered.xml
  • internal/guard/testdata/screens/generate-menu-keyed.xml
  • internal/guard/testdata/screens/generate-menu.xml
  • internal/guard/testdata/screens/generate-pdf-settings.xml
  • internal/guard/testdata/screens/generate-refused-both.xml
  • internal/guard/testdata/screens/generate-refused-setting.xml
  • internal/guard/testdata/screens/generate-refused.xml
  • internal/guard/testdata/screens/generate-switch-by-key.xml
  • internal/guard/testdata/screens/generate-typed.xml
  • internal/guard/testdata/screens/generate-unchecked.xml
  • internal/guard/testdata/screens/generate.xml
  • internal/guard/testdata/screens/preferences-chosen.xml
  • internal/guard/testdata/screens/preferences.xml
  • internal/guard/testdata/screens/preset-many-settings.xml
  • internal/guard/testdata/screens/preset-menu-setting.xml
  • internal/guard/testdata/screens/preset-menu.xml
  • internal/guard/testdata/screens/preset-refused.xml
  • internal/guard/testdata/screens/preset.xml
  • internal/guard/testdata/screens/recipe-contents.xml
  • internal/guard/testdata/screens/recipe-on-a-preset.xml
  • internal/guard/testdata/screens/recipe-refused-with-one-batch-filled.xml
  • internal/guard/testdata/screens/recipe-refused.xml
  • internal/guard/testdata/screens/recipe-two-batches.xml
  • internal/guard/testdata/screens/recipe.xml
  • internal/guard/testdata/screens/tools-archive-result.xml
  • internal/guard/testdata/screens/tools-check-result.xml
  • internal/guard/testdata/screens/tools-refused.xml
  • internal/guard/testdata/screens/tools-result.xml
  • internal/guard/testdata/screens/tools-write.xml
  • internal/guard/testdata/screens/tools.xml
  • internal/guard/valuenames_test.go
  • internal/guard/wheel_darwin_test.go
  • internal/guard/wheel_other_test.go
  • internal/guard/wheel_test.go
  • internal/guard/wheel_windows_test.go
  • internal/guard/window_test.go
  • internal/guard/windowwords_test.go
  • internal/guard/words_test.go
  • internal/gui/catalogue/catalogue.go
  • internal/gui/catalogue/controls.go
  • internal/gui/catalogue/fields.go
  • internal/gui/catalogue/palette.go
  • internal/gui/catalogue/screen.go
  • internal/gui/catalogue/words.go
  • internal/gui/parts/applying.go
  • internal/gui/parts/bytecount.go
  • internal/gui/parts/detail.go
  • internal/gui/parts/explanation.go
  • internal/gui/parts/field.go
  • internal/gui/parts/fields.go
  • internal/gui/parts/fixes.go
  • internal/gui/parts/held.go
  • internal/gui/parts/palette.go
  • internal/gui/parts/parts.go
  • internal/gui/parts/property.go
  • internal/gui/parts/reveal.go
  • internal/gui/parts/ring.go
  • internal/gui/parts/rowview.go
  • internal/gui/parts/scroll.go
  • internal/gui/parts/segments.go
  • internal/gui/parts/theme.go
  • internal/gui/parts/tokens.go
  • internal/gui/parts/wheel_darwin.go
  • internal/gui/parts/wheel_other.go
  • internal/gui/run_cgo.go
  • internal/gui/text/choicenames.go
  • internal/gui/text/labels.go
  • internal/gui/text/locale/en.json
  • internal/gui/text/locale/pl.json
  • internal/gui/text/locale/registry/en.json
  • internal/gui/text/locale/registry/pl.json
  • internal/gui/text/locale/said/en.json
  • internal/gui/text/locale/said/pl.json
  • internal/gui/text/preferences.go
  • internal/gui/text/recipewords.go
  • internal/gui/text/registry.go
  • internal/gui/text/registrywords.go
  • internal/gui/text/said.go
  • internal/gui/text/screens.go
  • internal/gui/text/sizeways.go
  • internal/gui/text/text.go
  • internal/gui/wheel_other.go
  • internal/gui/wheel_windows.go
  • internal/gui/window/about.go
  • internal/gui/window/dropping.go
  • internal/gui/window/generate.go
  • internal/gui/window/generatesize.go
  • internal/gui/window/opening.go
  • internal/gui/window/preferences.go
  • internal/gui/window/preset.go
  • internal/gui/window/recipe.go
  • internal/gui/window/recipebase.go
  • internal/gui/window/recipefolds.go
  • internal/gui/window/recipesize.go
  • internal/gui/window/run.go
  • internal/gui/window/runrefuse.go
  • internal/gui/window/sizeword.go
  • internal/gui/window/tools.go
  • internal/preset/emptyandminimal.go
  • internal/preset/picturesizes.go
  • internal/preset/preset.go
  • internal/preset/read.go
  • internal/preset/sizeboundaries.go
  • internal/preset/uploadvalidation.go
  • internal/recipe/compose.go
  • internal/recipe/errors.go
  • internal/tool/tool.go
  • npm/testing-files-generator/README.md
  • python/testing-files-generator/README.md
  • web/content/ar/site.json
  • web/content/cs/site.json
  • web/content/de/site.json
  • web/content/en/site.json
  • web/content/es/site.json
  • web/content/fr/site.json
  • web/content/hi/site.json
  • web/content/id/site.json
  • web/content/it/site.json
  • web/content/ja/site.json
  • web/content/ko/site.json
  • web/content/nl/site.json
  • web/content/pl/site.json
  • web/content/pt-BR/site.json
  • web/content/ro/site.json
  • web/content/ru/site.json
  • web/content/th/site.json
  • web/content/tr/site.json
  • web/content/uk/site.json
  • web/content/vi/site.json
  • web/content/zh-Hans/site.json
  • web/content/zh-Hant/site.json
  • web/social-preview.sha256

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Pre-merge checks: Passed 8 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Clear User-Facing Text Warning The PR adds and changes many user-facing strings (en.json, said/en.json, registry/en.json, Polish counterparts). The check applies, and I found three concrete violations in strings the PR adds. 1. **S… 1. placeholder.OnlyOnAPlaceholder (internal/format/placeholder/settings.go:209; said/en.json and said/pl.json): use the same term as the window label, and keep the CLI value in code form. English: "it only applies when content is placeholde…
Scope, Duplication And Docs Warning Scope: The PR changes 473 files (+26501/-3002) and the CHANGELOG lists features that the PR description does not mention. Verified in the base...head diff: - CHANGELOG.md adds "Placeholder pictures"… 1. Update the PR description so it lists every user-visible change in the CHANGELOG diff. Include placeholder pictures, --number-if-taken and the "Add beside earlier runs" switch, drag-and-drop onto the window, the truncate changes for …
Passed Passed checks: 8 passed

Check name Status Explanation
Tests For Changed Behavior Passed Summary: The PR changes non-UI runtime behavior and adds tests for it. It deletes no tests and adds no skips. The removed assertions are replaced or justified. Changed runtime behavior (diff vs merge-…
No Secrets Or Debug Leftovers Passed The diff of PR #251 (HEAD c12305b against merge-base ce24d1a) adds no flagged content. I checked the changed files and added lines. - Agent and env files: No added or renamed file is CLAUDE.md, C…
No Hardcoded Ui Styling Passed The check applies: PR #251 changes Fyne-based GUI code under internal/gui (parts/, window/, catalogue/, text/, wheel_*.go). I checked the added non-test lines for literal styling on individual control…
No Obvious Performance Problems Passed No clear, concrete performance problem found in the PR's changed code (main...HEAD, 335 files). Checked areas: - **Scrolling (internal/gui/parts/scroll.go, wheel_other.go, internal/gui/wheel_windows.g…
Desktop Robustness Passed The check's failure conditions were compared against the PR's committed Go changes (4a725fe..c12305b, excluding generated site HTML and test data). None of the listed conditions is matched by added co…
Safe File Parsing Passed The PR does not add a new path that reads, imports or exports external files in an unsafe way. I compared the branch with origin/main and inspected the changed code. - **No new parsing of untrusted in…
System Changes Are Reversible Passed The check applies only when the PR adds or changes code that modifies system state (network filters or rules, proxy, firewall, system time, process hooking or injection, Windows services, registry, dr…
No Resource Leaks Passed Result: PASS. No changed code adds a resource that leaks or accumulates over a long run. Scope. I reviewed the non-test Go diff of main...HEAD (about 13.9k lines). I also searched it for tim…
Full details: Tests For Changed Behavior

Explanation

Summary: The PR changes non-UI runtime behavior and adds tests for it. It deletes no tests and adds no skips. The removed assertions are replaced or justified. Changed runtime behavior (diff vs merge-base ce24d1a): - internal/preset/picturesizes.go (+434): new picture-sizes preset. - internal/recipe/outcomes.go (+95), target.go, compose.go, errors.go: refusal logic and wording. - internal/engine/preflight.go (+45): dry-run and preflight path. - internal/format/format.go (+64/-24): size and label rules. - internal/gui/wheel_windows.go, wheel_other.go, parts/wheel_darwin.go, parts/wheel_other.go, parts/scroll.go: wheel scrolling. - internal/site/presets.go: site guard cost. Tests added for this behavior: - internal/guard/picturesizes_test.go (+250), smallestway_test.go (+250), smallestheld_test.go (+166), picturefixes_test.go (+222), picturecut_test.go (+260), picturecontent_test.go (+166), recipewords_test.go (+390), englishrefusal_test.go (+261), numbering_test.go (+378), valuenames_test.go (+177), dropping_test.go (+433), filmcut_test.go (+407). - Scrolling: internal/guard/wheel_test.go (+119), wheel_windows_test.go (+56), wheel_other_test.go (+72), wheel_darwin_test.go (+12). The wheel test includes a canary, so the check catches the old toolkit step. Deleted, skipped, or weakened tests: - No test files were deleted or renamed. - No t.Skip, SkipNow, or similar lines were added. - Some removed assertions exist in avifladder_test.go, jxlladder_test.go, and window_test.go. The avifladder and jxlladder asks for size digits were replaced. The PR description explicitly justifies this: the label no longer states the file size ("Breaking"). The replacements use the new label rule. - windowwords_test.go: the old per-value check was replaced by a stricter check with canaries. The old total threshold (checked < 50) became per-language thresholds (n < 20) plus a check for at least two languages. This is a restructuring, not a clear weakening. - Other test-file removals are refactors that move helpers or reword comments. - The mutation entries.py changes re-anchor existing mutation entries. The PR description states this. Conclusion: Behavior changes are covered by new guard tests. The weakened-assertion condition has a documented justification where it applies.

Full details: No Secrets Or Debug Leftovers

Explanation

The diff of PR #251 (HEAD c12305b against merge-base ce24d1a) adds no flagged content. I checked the changed files and added lines. - Agent and env files: No added or renamed file is CLAUDE.md, CLAUDE.local.md, AGENTS.md, .claude/, or .env*. None of these exist in the HEAD tree. - Credentials and keys: No key-like or secret-like file was added. The scan found no token, API key, AKIA/ghp/sk patterns, or private key blocks in added lines. - Debug leftovers: No added line uses fmt.Print*, pprint, dbg!, println!, Debug/Console.WriteLine, breakpoint(), debugger, or console.log. - E-mails, private IPs, and hosts: No personal e-mail address and no private or internal IP was found. The only URL hosts in added lines are the project site (testingfilesgenerator.donislawdev.com), github.com, schema.org, and donislawdev.com. These are public project and reference URLs. Items noted but not counted as failures: 1. internal/guard/testdata/screens/catalogue.xml, internal/gui/catalogue/controls.go, and internal/guard/* test tables use /home/someone/tfg-out and similar strings. These are synthetic UI test fixtures with a placeholder user name. They do not identify a real machine or user. A reviewer may still prefer a neutral sample path. 2. Comments in several Go files cite CLAUDE.md or docs/CLAUDE.md, for example internal/engine/numbering.go:152, internal/gui/window/runsummary.go:24, and internal/preset/emptyandminimal.go:298. The files are not added. The test comment in mutationcoverage_test.go:434 says CLAUDE.md is not in the repository. These references point to private agent documentation, so the comments should be reworded to remove them.

Resolution

Optional cleanup, not required by the check: replace the /home/someone/... test fixtures with neutral sample paths, and remove or reword the code comments that cite CLAUDE.md so that they stand alone.

Full details: No Hardcoded Ui Styling

Explanation

The check applies: PR #251 changes Fyne-based GUI code under internal/gui (parts/, window/, catalogue/, text/, wheel_*.go). I checked the added non-test lines for literal styling on individual controls. - Sizes, gaps, insets and radii use named tokens from internal/gui/parts/tokens.go (for example Inset, GapLabel, GapField, RadiusMark, TextBody, ControlInset). The new code calls these, for example Padded(Inset, ...) and Column(GapLabel, ...) in explanation and field code. - Colours use named theme roles: ColorNameHeld, ColorNameLiteral, theme.ColorNameSelection, PaletteColour(...). Literal hex values appear only in the central palette maps in parts/theme.go, which is the designated place for them. - The explanation code marks values with TextStyle Monospace and ColorNameLiteral from a shared token, not per-control styling (parts/explanation.go). - The remaining numeric literals in added lines are palette ranks (palette.go), Windows API constants (wheel_windows.go), or logic values, not look-related values on controls. - I found no copy-pasted control blocks in the added code that should become a shared component or loop. The new segmented control (parts/segments.go) is a single reusable component. No hardcoded styling violation was found in the changed UI code.

Full details: No Obvious Performance Problems

Explanation

No clear, concrete performance problem found in the PR's changed code (main...HEAD, 335 files). Checked areas: - Scrolling (internal/gui/parts/scroll.go, wheel_other.go, internal/gui/wheel_windows.go): Each wheel notch calls MeasureText and, on Windows, one SystemParametersInfoW call. Both run on user input, not on a timer or poll. The PR measured a notch as under one frame. - Drop handling (internal/gui/window/dropping.go): The disk read (os.Stat) runs on a worker goroutine and returns to the UI thread through fyne.Do. boxesOf only reads box positions when there are two or more boxes, and that work is linear in the number of boxes. - Smallest gating (internal/engine/smallest.go): SmallestAnswered and sidesKnown are O(1) checks on the properties map. They plan nothing, as the comment states. - Preset (internal/preset/picturesizes.go): A static list of 21 entries. Nothing in it is expensive or quadratic. - Batch refusal walk (internal/engine/batchminimum.go, new): This is the one loop that can grow with the number of files. sizeEveryFileTakes re-plans files after each size raise. Its worst case is roughly (raises + 1) × n planning calls, with raises bounded by SmallestRounds × n. That bound is theoretically quadratic. It runs only when a batch is already refused. Each plan is an unavoidable per-file encode, and typical raise counts are small. The author measured the cost. I judged this speculative rather than a clear problem under the check. Non-blocking observation: if very large batches with many distinct per-file minima ever become a problem, cap the raise count or memoize each file's last accepted size. The current code does not show this as a clear issue.

Full details: Desktop Robustness

Explanation

The check's failure conditions were compared against the PR's committed Go changes (4a725fe..c12305b, excluding generated site HTML and test data). None of the listed conditions is matched by added code. - Assets relative to working directory: No new runtime file loads. The one new asset, inter.outlines in internal/format/placeholder/glyphs, is embedded with //go:embed. No new os.Open, ReadFile, or Getwd calls appear in added lines. - Settings/data writes: The only new settings write is RememberNumbersIfTaken. It calls prefs.SetBool on the toolkit's preferences store (internal/gui/run_cgo.go:145), the same mechanism as the existing SetString writes. The PR adds no new file writer. - Missing or corrupt files: readDropped (dropping.go:202) uses os.Stat and records errors in item.Unread. The new panic(...) calls are init-time declaration guards, not reactions to user data. Plan-time panics are converted to errors by planGuarded (crash.go). - Culture-sensitive numbers/dates: New number handling uses strconv (locale-independent). No new float parsing or time formatting for saved data appears. - Long operations: The smallest-size search is bounded by SmallestRounds = 64 and runs inside the engine run. The run path keeps its existing busy.occupied guard and Cancel. Drop reading is a single os.Stat, not a long job. - Destructive actions: No os.Remove, RemoveAll, or overwrite logic is added. The output-folder numbering renames only the run's own planned files and refuses collisions. - Background work after close: closing.go adds only a RememberNumbersIfTaken call before close. The dropping goroutine is short and tracked by a WaitGroup. - Admin rights: No manifest, requestedExecutionLevel, or elevation change appears. The only manifest-related change is in test code. - Undisclosed network calls: No net, http, or exec usage appears in added Go code. The preset's source pages were read by the author offline. Two items were judged and not counted as failures. The Windows wheel code calls user32.dll through NewLazyDLL at each notch. This is a synchronous system query, not a network or admin call. The PR also keeps existing Forget and settings behaviour unchanged.

Full details: Safe File Parsing

Explanation

The PR does not add a new path that reads, imports or exports external files in an unsafe way. I compared the branch with origin/main and inspected the changed code. - No new parsing of untrusted input. The CSV, XLSX, YAML, JSON and archive writers (internal/format/csvfile/csv.go, internal/format/xlsx/xlsx.go, internal/format/yamlfile, internal/format/archive/archive.go) are not changed by this PR. The archive change only edits help text and a shared FormatShape constant. No new XML, YAML, CSV or ZIP decoder was added. - New os.ReadFile and os.Open calls are test-only. They read repository fixtures, locale files, the embedded font, or files inside a test temp directory. The production code in the PR does not read user-supplied files. - Output escaping is present for new text. - internal/format/svgfile/placeholder.go uses escapeText, which escapes &amp;, &lt; and &gt;, for element content in &lt;title&gt; and &lt;text&gt; only. - internal/site/presets.go withCode runs template.HTMLEscapeString on every piece before it builds template.HTML. - Path handling is pre-existing and not weakened. internal/engine/filename.go still refuses separators, .., absolute paths, volume names and colons. plantarget.go changes only the request index passed to requestFor. - Windows wheel code is fixed-argument. internal/gui/wheel_windows.go calls SystemParametersInfoW through syscall.NewLazyDLL with a fixed uint32 buffer. The reg query and go list calls appear only in internal/guard tests and use fixed arguments. - The new preset is compiled Go data. internal/preset/picturesizes.go does not parse a file at run time. I did not inspect the CI scripts in depth. The sha256sum and gnusha256sum change is in a test guard and not in the parsing path under review.

Full details: System Changes Are Reversible

Explanation

The check applies only when the PR adds or changes code that modifies system state (network filters or rules, proxy, firewall, system time, process hooking or injection, Windows services, registry, drivers). The PR changes picture labels, picture-size presets, window texts, scrolling, and CI. I searched the added lines of the diff against origin/main for registry writes, firewall, proxy, system time, services, hooks, injection, drivers, and related file names. No matches modify system state. The keyword hits for "registry" refer to the internal format registry, a Go data structure, and to test or documentation text. The only Windows system access is in internal/gui/wheel_windows.go. It calls SystemParametersInfoW with SPI_GETWHEELSCROLLLINES, a read-only query, to learn the mouse wheel setting. Its test reads the same setting with reg.exe, also read-only. Nothing is written, and no system state is changed. The check is not applicable, so it passes.

Full details: No Resource Leaks

Explanation

Result: PASS. No changed code adds a resource that leaks or accumulates over a long run. Scope. I reviewed the non-test Go diff of main...HEAD (about 13.9k lines). I also searched it for timers, goroutines, file, stream and process handles, syscalls, caches, and growing collections. Findings by area: - Goroutine (GUI drop reading). internal/gui/.../dropping.read starts one goroutine per drop. It calls d.reading.Add(1) and defer d.reading.Done(). It runs os.Stat once and then ends. There is no unbounded loop and no stop gap. - Windows wheel lookup. SystemWheelLines calls SystemParametersInfoW through a package-level syscall.NewLazyDLL proc. It holds no handle. The lines value is a stack local. - Scrolling wrapper. parts.Scroll embeds container.Scroll. It adds no subscription, ticker, or listener. - Held-option popup. Held.Set, tell, and stop open and close a why-popup. stop runs on every change, hover-out, and selection. The popup is therefore closed in the normal path. I did not confirm close on widget teardown. - Picture writing. writePixels streams one row at a time through a reused row buffer. The label band is capped by maxBandHeight. The image.NewRGBA full-picture allocation in jpg/png picture() is pre-existing context. The PR only adds a placeholder branch that draws into that same buffer. - WebM. pics := f.Choice.Pictures(st) has defer pics.Close(). The Close method predates this PR. - Test-only caches. presetAnswers in internal/guard/sitepresets_test.go is a sync.Once per test binary. It removes its temp directory with defer. - Listings and drop state. listOnce caches one directory listing per run. It is bounded by directory size and freed when the run ends. Counters and maps (Held.why, RunNotes) are bounded by the option set or by one run. - File access. New code adds no os.Open, os.Create, OpenFile, exec.Command, HTTP call, or ticker. Limits. The repository was not built or run. The check relied on static reading of the diff. The GUI teardown path for an open why-popup was not traced.

Full details: Clear User-Facing Text

Explanation

The PR adds and changes many user-facing strings (en.json, said/en.json, registry/en.json, Polish counterparts). The check applies, and I found three concrete violations in strings the PR adds. 1. Same concept, different names (test pattern). The new refusal placeholder.OnlyOnAPlaceholder (said/en.json) reads "it only changes a placeholder, and content is test". The window labels the same value "test pattern" (internal/gui/text/choicenames.go:41, "test": "test pattern"). The PR text also says English lists name their values "test pattern". The Polish text uses "obraz testowy" for the same value, so the two languages also differ from the English window label. 2. Same concept, different names (smallest). Under the same refusal, the two remedy buttons (internal/gui/parts/fixes.go:91-97) use different wording for one concept: - UseSmallestSize: "Use the smallest size, {{.Size}}" - UseSmallestForEach: "Make each picture as small as it can be" The second label does not use the term "smallest". It also does not match the size segment label "Smallest" (SizeWaySmallest). The button text is a full sentence, which makes the pair harder to scan. 3. Error text without a next step. Two new drop-rejection messages say what happened but not what to do: - DropNeither: "{{.Name}} is neither a file nor a folder." - DropTakesFile / DropTakesFolder: "{{.Box}} takes a file. {{.Name}} is a folder." By contrast, DropAimless states the next action ("Drop it onto the box it is for."). Checked and not flagged: the greyed-out "Smallest" control has a tooltip that gives the reason (SmallestNeedsTheSides, used in internal/gui/window/sizeword.go:73). The new SwitchOn/SwitchOff labels, the Polish SizeSmallest text and the SmallestNeedsASize* refusal texts all state the cause and a fix. No new Yes/No confirmation or vague OK/Process button was found in the added strings. I did not review the site text (web/content) or all CLI help strings in depth.

Resolution

  1. placeholder.OnlyOnAPlaceholder (internal/format/placeholder/settings.go:209; said/en.json and said/pl.json): use the same term as the window label, and keep the CLI value in code form. English: "it only applies when content is placeholder, not when content is test pattern (test)". Update the Polish entry to the same meaning so it uses the same term as its window label. 2. Remedy buttons (internal/gui/parts/fixes.go, text.UseSmallestForEach in internal/gui/text/screens.go:334): replace "Make each picture as small as it can be" with "Use each picture's smallest size". Keep "Use the smallest size, {{.Size}}" for the first button, so both buttons name the same concept with "smallest size". 3. Drop messages (internal/gui/text/locale/en.json and pl.json): - DropNeither: "{{.Name}} is neither a file nor a folder. Drop a file or a folder here, or type its path." - DropTakesFile: "{{.Box}} takes a file. {{.Name}} is a folder. Drop a file here, or type its path." - DropTakesFolder: "{{.Box}} takes a folder. {{.Name}} is a file. Drop a folder here, or type its path." Add the matching Polish text in the same form.
Full details: Scope, Duplication And Docs

Explanation

Scope: The PR changes 473 files (+26501/-3002) and the CHANGELOG lists features that the PR description does not mention. Verified in the base...head diff: - CHANGELOG.md adds "Placeholder pictures" (--set content=placeholder on png/jpg/svg with text, background, foreground, guides). The description mentions placeholders only as a preset option. - CHANGELOG.md adds "Generate into the same folder again" (--number-if-taken, a GUI switch "Add beside earlier runs", exit code 5). The description does not mention it. - CHANGELOG.md adds "Drop a folder or a file onto the window" (drag-and-drop on Single batch, Presets, Several batches and Tools). Not in the description. - CHANGELOG.md adds truncate for MP4/WebM films, and for BMP/TIFF/WebP. Not in the description. - CHANGELOG.md Breaking section lists a TIFF header layout change (odd sizes), JPEG XL and film step-size changes, and an AVIF/WebM/MP4 encoder change (gav1d 0.2.6). The description names only the label change. - go.mod bumps golang.org/x/image (now direct) and golang.org/x/sys to v0.50.0. The description does not mention these. The description also says the PR is "Four reports". The CI, Ubuntu 26.04 and checksum changes are listed there, but the items above are not. This matches the warning condition for significant changes not described, and for mixing unrelated work into one feature PR. Breaking changes: The description marks only the label change as "Breaking:" inline. It has no "Breaking changes" section. The TIFF, JPEG XL, AVIF and film byte-output changes are not mentioned there. The description gives no migration or fallback for these changed outputs. The stored-screen regeneration is test data, not user data, so the persisted-data point is weaker. Still, the description does not list all breaking changes. Docs: README.md and CHANGELOG.md were updated for the new CLI flags, the preset and the label change. The docs criterion passes. Duplication: I did not find a clear duplicate of the new helpers. I did not complete a full duplication review of the 301 internal files, so that criterion is not fully verified.

Resolution

  1. Update the PR description so it lists every user-visible change in the CHANGELOG diff. Include placeholder pictures, --number-if-taken and the "Add beside earlier runs" switch, drag-and-drop onto the window, the truncate changes for MP4, WebM, BMP, TIFF and WebP, and the go.mod dependency bumps. 2. Add a "Breaking changes" section to the description. List the label change, the TIFF odd-size layout change, the JPEG XL and film step changes, the AVIF/WebM/MP4 encoder change, and the migration note for regenerated outputs. 3. Preferably split the PR. Keep the picture-size preset, the label change and the smallest size in one PR. Move the drag-and-drop, the number-if-taken feature, the truncate changes, the encoder/dependency bumps and the CI changes into separate PRs, one feature per PR.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

donislawdev and others added 5 commits November 18, 2026 00:36
golangci-lint's exhaustive check found a switch on format.PropertyKind
without the number, size, duration and text kinds and without a default,
in the line that sums up a batch's settings and in the guard of settings
that change nothing. Each now has a default that says those kinds read as
they were written, or ask for their default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
ubuntu-latest became Ubuntu 26.04 in November 2026, where sha256sum is
uutils and GNU's is installed beside it as gnusha256sum (both there by
default, measured in the ubuntu:26.04 image). The checksum guard asks for
gnusha256sum first, so it holds the escaped names to GNU again instead of
failing on a runner without it.

The site guards that ask the program about every preset share one answer
per process, and the picture-sizes preset made it cost 52 to 61 s under
the race detector. The first of them in a part pays it, so all seven are
weighed as if they pay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Under a size refusal a picture with its width and height known was offered
"Use the smallest size" and "Make each picture as small as it can be". For
a single file the two make the same file, byte for byte under the same
name, so the second only made somebody wonder what it changes. It is now
offered for a batch of more than one picture, where the first gives every
file the size all of them accept and the second gives each its own.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The way of giving the size offered Smallest for every picture, and a
picture with no width and height then had smallest refused at Preview,
with nothing on the screen saying smallest needs them. Smallest now
stays on the switch in a quieter ink and cannot be pressed or reached
with the arrows until both are set - or declared by the format, as svg
does - and the pointer over it says why. The explanation beside the
switch says it too, for the keyboard. Asked of the engine by the same
rule a run refuses smallest by, after every change on the form, on
Single batch and Several batches.

A Smallest chosen before a side is emptied again stays chosen, so what
the run makes never changes without a word, and Preview says why it is
refused.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The explanation of the groups of picture-sizes named screens, avatars,
social and all among the words describing them, and nothing told the
names to type from the rest. A value typed as it is now stands between
backticks in the description of a setting, written once: the window
draws it in a code typeface and its own colour, the site in <code>, and
the command line prints the backticks, as command help does.

Marked are the descriptions that name such a value - the groups and
formats of two presets, the picture formats of eml, html and rtf, the
text and colour of a placeholder, the empty date of a PDF, and the size,
range, limit, file name and seed boxes. Every translation keeps each
value in English, since what is typed is the same in every language.
The catalogue gains the explanation, and the catalogue screen the
switch's held states from the change before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@donislawdev
donislawdev merged commit 8f233e0 into main Nov 18, 2026
88 of 89 checks passed
@donislawdev
donislawdev deleted the picture-label-sizes branch November 18, 2026 07:31
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