Repository navigation
Picture sizes: the label, smallest in the window, the window's texts, a preset and wheel scrolling - #251
Conversation
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]>
|
Important Review skippedToo 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.
|
| Check name | Status | Explanation |
|---|---|---|
| Tests For Changed Behavior | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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, andinternal/guard/*test tables use/home/someone/tfg-outand 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 citeCLAUDE.mdordocs/CLAUDE.md, for exampleinternal/engine/numbering.go:152,internal/gui/window/runsummary.go:24, andinternal/preset/emptyandminimal.go:298. The files are not added. The test comment inmutationcoverage_test.go:434says 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
#251changes 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.outlinesininternal/format/placeholder/glyphs, is embedded with//go:embed. No newos.Open,ReadFile, orGetwdcalls appear in added lines. - Settings/data writes: The only new settings write isRememberNumbersIfTaken. It callsprefs.SetBoolon the toolkit's preferences store (internal/gui/run_cgo.go:145), the same mechanism as the existingSetStringwrites. The PR adds no new file writer. - Missing or corrupt files:readDropped(dropping.go:202) usesos.Statand records errors initem.Unread. The newpanic(...)calls are init-time declaration guards, not reactions to user data. Plan-time panics are converted to errors byplanGuarded(crash.go). - Culture-sensitive numbers/dates: New number handling usesstrconv(locale-independent). No new float parsing or time formatting for saved data appears. - Long operations: The smallest-size search is bounded bySmallestRounds = 64and runs inside the engine run. The run path keeps its existingbusy.occupiedguard and Cancel. Drop reading is a singleos.Stat, not a long job. - Destructive actions: Noos.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.goadds only aRememberNumbersIfTakencall before close. Thedroppinggoroutine 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: Nonet,http, orexecusage 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 callsuser32.dllthroughNewLazyDLLat each notch. This is a synchronous system query, not a network or admin call. The PR also keeps existingForgetand 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 sharedFormatShapeconstant. No new XML, YAML, CSV or ZIP decoder was added. - Newos.ReadFileandos.Opencalls 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.gousesescapeText, which escapes&,<and>, for element content in<title>and<text>only. -internal/site/presets.gowithCoderunstemplate.HTMLEscapeStringon every piece before it buildstemplate.HTML. - Path handling is pre-existing and not weakened.internal/engine/filename.gostill refuses separators,.., absolute paths, volume names and colons.plantarget.gochanges only the request index passed torequestFor. - Windows wheel code is fixed-argument.internal/gui/wheel_windows.gocallsSystemParametersInfoWthroughsyscall.NewLazyDLLwith a fixeduint32buffer. Thereg queryandgo listcalls appear only ininternal/guardtests and use fixed arguments. - The new preset is compiled Go data.internal/preset/picturesizes.godoes not parse a file at run time. I did not inspect the CI scripts in depth. Thesha256sumandgnusha256sumchange 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.readstarts one goroutine per drop. It callsd.reading.Add(1)anddefer d.reading.Done(). It runsos.Statonce and then ends. There is no unbounded loop and no stop gap. - Windows wheel lookup.SystemWheelLinescallsSystemParametersInfoWthrough a package-levelsyscall.NewLazyDLLproc. It holds no handle. Thelinesvalue is a stack local. - Scrolling wrapper.parts.Scrollembedscontainer.Scroll. It adds no subscription, ticker, or listener. - Held-option popup.Held.Set,tell, andstopopen and close a why-popup.stopruns 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.writePixelsstreams one row at a time through a reusedrowbuffer. The label band is capped bymaxBandHeight. Theimage.NewRGBAfull-picture allocation injpg/pngpicture()is pre-existing context. The PR only adds a placeholder branch that draws into that same buffer. - WebM.pics := f.Choice.Pictures(st)hasdefer pics.Close(). TheClosemethod predates this PR. - Test-only caches.presetAnswersininternal/guard/sitepresets_test.gois async.Onceper test binary. It removes its temp directory withdefer. - Listings and drop state.listOncecaches 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 noos.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,DropAimlessstates 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 newSwitchOn/SwitchOfflabels, the PolishSizeSmallesttext and theSmallestNeedsASize*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
- 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.
- 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 (
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.mdadds "Placeholder pictures" (--set content=placeholderon png/jpg/svg with text, background, foreground, guides). The description mentions placeholders only as a preset option. -CHANGELOG.mdadds "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.mdadds "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.mdaddstruncatefor MP4/WebM films, and for BMP/TIFF/WebP. Not in the description. -CHANGELOG.mdBreaking 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.modbumpsgolang.org/x/image(now direct) andgolang.org/x/systo 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
- Update the PR description so it lists every user-visible change in the CHANGELOG diff. Include placeholder pictures,
--number-if-takenand the "Add beside earlier runs" switch, drag-and-drop onto the window, thetruncatechanges 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.
- Update the PR description so it lists every user-visible change in the CHANGELOG diff. Include placeholder pictures,
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.
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]>
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
smallestis 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
only when content is placeholder).screensandallfor the groups ofpicture-sizes,10mbfor 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-sizeswrites 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 placeholderand--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
ubuntu-latestbecame Ubuntu 26.04, wheresha256sumis uutils and GNU's is installed beside it asgnusha256sum. The checksum guard asks for GNU's by that name first, so it keeps holding escaped names to GNU.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