Skip to content

feat(iso): ask for volume labels before conversion - #1677

Merged
KnifeLemon merged 2 commits into
KnifeLemon:mainfrom
Feraris20:feat/iso-label-prompt-1492
Dec 1, 2026
Merged

KnifeLemon merged 2 commits into
KnifeLemon:mainfrom
Feraris20:feat/iso-label-prompt-1492

Conversation

@Feraris20

@Feraris20 Feraris20 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

  • New feature or improvement
  • Translation
  • Documentation

How was it tested?

  • dotnet format --verify-no-changes
  • Focused dotnet test runs on Windows and Ubuntu: label validation, persistence, CLI behavior, real folder/Joliet and ZIP/UDF conversions, and batch cancellation.
  • Layout checks across all 23 languages, both filesystems and 100%/150% UI zoom verify that the window, input and buttons stay in place.
  • Tried the prompt and label validation in the Windows portable build.

macOS has not been tested. Linux UI checks used headless Avalonia.

Screenshots (UI changes)

iso-label-prompt-dark

Checklist

  • New UI strings are in all src/Filee.App/Assets/i18n/*.json files
  • No new third-party code or binaries
  • The PR does one thing

@github-actions github-actions Bot added the feature New features label Nov 18, 2026
@KnifeLemon

Copy link
Copy Markdown
Owner

@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 ProcessRunnerOutputTests.A_PDF_without_its_end_marker_does_not_end_the_run ("probed 1 times"). That's a timing flake on busy runners, fixed on main by #1664, so it should pass after the rebase. Mark it ready for review when you're done.

@Feraris20
Feraris20 force-pushed the feat/iso-label-prompt-1492 branch from 20e9137 to 4a5a62f Compare November 21, 2026 21:49
@Feraris20
Feraris20 marked this pull request as ready for review November 21, 2026 21:50
@Feraris20

Copy link
Copy Markdown
Contributor Author

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 KnifeLemon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

  1. 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.
  2. presets.iso_label_hint is no longer used. The editor shows IsoLabelHint now, so the old key stays in all 23 language files with nothing reading it. Please remove it.
  3. 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.

adnan-bhaldar pushed a commit to adnan-bhaldar/Filee that referenced this pull request Nov 26, 2026
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>
@Feraris20

Feraris20 commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Moved the error above the checkbox and removed the unused hint key from all 23 languages. All 14 focused checks passed on both Windows and Ubuntu. Light and dark preset-editor screenshots are ready.
iso-label-editor-dark
iso-label-editor-light

@KnifeLemon KnifeLemon left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_hint is 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.

@KnifeLemon
KnifeLemon merged commit a6242e3 into KnifeLemon:main Dec 1, 2026
24 of 26 checks passed
KnifeLemon added a commit to YusufMntm/Filee that referenced this pull request Dec 1, 2026
…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>
KnifeLemon added a commit to YusufMntm/Filee that referenced this pull request Dec 1, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants