Repository navigation
feat(iso): ask for volume labels before conversion - #1677
Conversation
|
@Feraris20, #1675 is merged, so this can be rebased on main now and only the prompt changes will remain. The red Windows checks here were |
20e9137 to
4a5a62f
Compare
|
Rebased on main; only the prompt changes remain. Both previously failing Windows tests now pass. Focused checks passed on Windows and Ubuntu, including label validation, cancellation and layout stability. Marked ready for review; CI is running. |
KnifeLemon
left a comment
There was a problem hiding this comment.
Thanks, @Feraris20! The prompt follows the "Choose pages" pattern well: one window per input, cancelling any of them starts nothing, the save dialog is asked once for the whole batch, and the answers go into a clone, so the saved preset stays as it is. Keeping room for both error messages so the window never moves is a nice touch.
A few things:
- The error sits under the checkbox. In the preset editor the error text now comes after Ask every time, away from the label box it's about. Please put the error grid right under the label box and its counter, and the checkbox after it.
presets.iso_label_hintis no longer used. The editor showsIsoLabelHintnow, so the old key stays in all 23 language files with nothing reading it. Please remove it.- A screenshot of the preset editor. The PR shows the dialog, but not the ISO section of the preset editor with the counter and the checkbox. Please add one, in light and dark.
CI: the red Windows check is SetupWindowTests.Every_state_renders_and_fits(language: "tr") in Filee.Setup.Tests, which this PR doesn't touch, so I've re-run that job.
Two tests that raced on busy runners:
- SetupWindowTests: the fake runner reports 62% from its own thread, and
one round of pumping sometimes checked before it arrived ("Expected 62,
actual 0", seen on KnifeLemon#1799 and KnifeLemon#1677). PumpUntil waits for it, up to 10 s.
- WebDropJobTests.A_job_cancelled_before_it_runs...: the job could finish
before the Cancel right after Enqueue (seen on KnifeLemon#1831). The stream now
waits on the test's gate, which never opens, so the Cancel always wins.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
KnifeLemon
left a comment
There was a problem hiding this comment.
Thanks, @Feraris20. All three points are in 108f2ea:
- In the preset editor, the error now comes right after the label box and its counter, with Ask every time below it. The test checks that order in light and dark.
presets.iso_label_hintis gone from all 23 files, and the test makes sure it stays gone.- Thanks for the light and dark screenshots of the editor.
CI: the one red job, portable (ubuntu-24.04, linux-x64), failed in TrashOriginalTests.A_source_another_job_still_has_to_convert_is_kept_until_that_one_is_done. That's a timing test this PR doesn't touch, and the Package on Ubuntu 22.04 (linux-x64) job only failed because it followed that one. I've re-run both.
…nistic A_source_another_job_still_has_to_convert_is_kept_until_that_one_is_done queued the same file twice and expected the first job to keep the source with notice.trash_original_busy. The worker sometimes finished the first job before the second was queued, so nothing else needed the source, the first job trashed it and the notice never came (failed CI on KnifeLemon#1677). FakeConverter gets a Gate task it waits for before converting. The test holds the first job on it until both jobs are queued, then lets it go. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…2.6.0 fields KnifeLemon#1947 (upscale.tileSize) and KnifeLemon#1677 (archive.askIsoVolumeLabel) joined the shared-preset allow-list while KnifeLemon#1951 was open, so A_field_added_to_the_allow_list_says_which_filee_first_reads_it fails on main (250 against 249). A preset with either field needs 2.6.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>


What does this change?
Adds an optional Ask every time setting for ISO volume labels, off by default. Before conversion, each folder or archive gets a label prompt prefilled with the saved label or the source name fitted to the selected filesystem.
The dialog shows a live counter and format-specific validation without moving controls or resizing the window. Cancelling a label or save-location dialog starts none of the batch. Answers leave the saved preset unchanged; watch folders and the CLI remain noninteractive.
Part of #1492. Depends on #1675: this stays in draft until that PR merges, then will be rebased so only the prompt changes remain in the diff.
Type of change
How was it tested?
dotnet format --verify-no-changesdotnet testruns on Windows and Ubuntu: label validation, persistence, CLI behavior, real folder/Joliet and ZIP/UDF conversions, and batch cancellation.macOS has not been tested. Linux UI checks used headless Avalonia.
Screenshots (UI changes)
Checklist
src/Filee.App/Assets/i18n/*.jsonfiles