fix(window): the "operation in progress" notice goes once nothing runs #398
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!398
Loading…
Reference in a new issue
No description provided.
Delete branch "Jiro113/LongshotLauncher:busy-notice"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closing the launcher during an operation (a cleanup, a mod install, a folder change…) shows "An operation is in progress. Let it finish or cancel it before closing the launcher." at the top of the window. That notice stayed after the operation had ended, until Ignore was pressed.
What
busy_notice(src/main.rs) sets the notice and remembers it in a newbusy-noticeproperty of the window. It is used for the two notices about a running operation: "An operation is in progress…" when closing, and "Use Cancel on the build screen…" when going back during a build step.navigation-lockedturns false (ui/main.slint), the window clears the notice if it is still that one; a notice set since (an error, for example) stays.Rebased on main
3898cb1. #292 had meanwhile translated both notices (i18n::nowand the catalogs), so the translation this PR first carried is gone from it, and main's formatting of src/storage/reclaim.rs made its formatting commit unneeded. What is left is the clearing.Screenshots (French, 1280×800, drawn by the software renderer in a test, taken before the rebase): in the comment below. The clearing is unchanged by the rebase.
Tests
navigation_tests::the_busy_notice_goes_when_the_operation_ends_and_a_later_notice_staysbuilds the window, starts a cleanup, sets the notice, ends the cleanup: the notice is gone; with an error set after the busy notice, the error stays. It fails when the clearing line is undone, and when thenotice == busy-noticecheck is dropped. It callsbusy_noticedirectly: the close handler and the Escape path on the build screen are not covered by a test.cargo fmt --checkandcargo clippy --locked --workspace --all-targets -- -D warningspass on Windows.cargo teston Windows: 334 pass, 1 fails (update::releases::tests::release_py_fixture_verifies_exact_bytes_only, which fails on main on this PC too).scripts/translations.py: 15 catalogs valid. Tooling'stest_release.pypasses.navigation-lockedincludesfolders-open); the notice now goes when the dialog closes.🤖 Generated with Claude Code
Screenshots (French, 1280×800, software renderer in a test, not committed): the notice while a cleanup runs, then the same window once the cleanup has ended.
Possibly related, for context:
@review
Recommendation: Request changes. It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first). (L2) The new test and screenshots support the notice-clearing behavior, but the actual close and back actions have not been exercised during an operation. The pull request is also still marked WIP.The launcher clears a busy notice when navigation unlocks, preserves a later notice, and translates the two busy messages. The storage change only formats existing Windows code.
Blocking (1): must change before merging.
@fixor@rebasetry first). (for the author)Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
src/main.rs:327: The real window-close and build-screen back paths have not been exercised during an operation. (more on the line) Do: Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.Checks: Still running: 5 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven end to end: the author reports a passing software-window test and French screenshots, but no run through the real close or build-screen back action during an operation. This is not a performance change.
Other systems: The notice and lock are shared across launcher operations on Windows and Linux; the clearing logic is UI-level and does not change the operations themselves. Regional French and Spanish catalogs fall back to their parent catalogs. Linux CI is still running.
Switches: None.
Reviewed:
c41dbd1ee9againstf41fd1dca6: Read AGENTS.md, CONTRIBUTING.md, the commit log and diffs, src/main.rs, ui/main.slint, src/storage/reclaim.rs, and the relevant locale and operation-completion code. Skimmed the changed translation entries and the reported runs. No review checklist or pull request template was present.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run during this review. The author reports 278 passing Windows tests, existing failures, one failure attributed to a running game, passing formatting and Clippy, and valid translation catalogs; CI is still running.
Overlaps and merge order: None identified from the supplied information.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
@ -309,3 +325,3 @@ui.set_notice("An operation is in progress. Let it finish or cancel it before closing the launcher.".into());busy_notice(&ui, STILL_RUNNING);}CloseRequestResponse::KeepWindowShownL1 (should fix): The real window-close and build-screen back paths have not been exercised during an operation.
When: The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends.
Do: Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.
WIP: fix(window): the "operation in progress" notice goes once nothing runs, and is translatedto fix(window): the "operation in progress" notice goes once nothing runs, and is translated@review
Recommendation: Request changes. It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first). (L2) The notice-clearing logic is covered by a focused test, but the real close and build-screen back paths still need an end-to-end run. The pull request also conflicts with its base and cannot merge as reported.The launcher clears an operation notice when navigation unlocks while preserving a later notice, and translates the two operation messages. The change adds a small amount of UI state and a focused test.
Blocking (1): must change before merging.
@fixor@rebasetry first). (for the author)Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
src/main.rs:327: The real window-close and build-screen back paths have not been exercised during an operation. When: The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends. Do: Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.Since the last review (on
c41dbd1ee9)Still open: L1 (The real window-close and build-screen back paths have not been exercised during an operat…); L2 (It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first).)Checks: Still running: 5 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven: the reported test exercises the clearing logic directly, and French screenshots show the notice during and after a simulated cleanup; the real close and back paths have not been exercised.
Other systems: The notice and navigation lock are shared across launcher operations and both Windows and Linux. The reported test used a software-rendered window; a real operation has not been checked.
Switches: None.
Reviewed:
c41dbd1ee9againstf41fd1dca6: Read repository rules, commit log, code diff and ledger-related close, back and navigation-lock paths. Skimmed translation diffs and the changed files; full-file command output was truncated, so not all of their contents were read.; nothing run (a code review).Checked and fine:
Testing: Reported Windows formatting and Clippy checks passed; the reported test run had failures also seen on main and one attributed to a running game. Linux CI is still running. No commands or tests from the project were run for this review.
Overlaps and merge order: None found.
Automated code review by BeanBot (gpt-6.1-terra), asked for by Jiro113. Nothing was run; a maintainer decides.
Recommendation: Request changes. It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first). (L2) The notice-clearing behavior has a focused test, but the real close and back paths still need an end-to-end run. The pull request also conflicts with its base and cannot be merged as reported.The launcher clears an operation notice when navigation unlocks, preserves a later notice, and translates the two operation messages. The change adds a small amount of UI state and a focused test.
Blocking (1): must change before merging.
@fixor@rebasetry first). (for the author)Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
src/main.rs:327: The real window-close and build-screen back paths have not been exercised during an operation. When: The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends. Do: Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.Since the last review (on
c41dbd1ee9)Still open: L1 (The real window-close and build-screen back paths have not been exercised during an operat…); L2 (It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first).)Checks: Still running: 5 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven for the real window paths: the reported test exercises the clearing logic directly, and the French screenshots show the notice during and after a cleanup. The close and build-screen back actions during real operations have not been exercised.
Other systems: The notice and navigation-lock logic is shared across launcher operations and platforms. Windows test results and software-rendered French screenshots are reported; Linux and real-operation UI runs are not reported.
Switches: None.
Reviewed:
c41dbd1ee9againstf41fd1dca6: Read AGENTS.md and CONTRIBUTING.md, the commit list, the code diff, and the changed translation entries. Inspected the affected close, back, notice and navigation-lock references; the complete changed code files and their callers were not read in full. No review checklist or pull request template was found.; nothing run (a code review).Checked and fine:
Testing: No commands that execute project code or tests were run. The author reports Windows formatting and Clippy passes, translation validation, and test failures also seen on main except for one test affected by an open game process; CI is still running.
Overlaps and merge order: None identified.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as Jiro113 took it out of WIP. Nothing was run; a maintainer decides.
fix(window): the "operation in progress" notice goes once nothing runs, and is translatedto fix(window): the "operation in progress" notice goes once nothing runsc41dbd1ee960585ec0deRebased on main
3898cb1(backup of the old head:c41dbd1), for L2.#292 already translates both notices, so this PR now only clears the busy notice once nothing runs: one commit, src/main.rs and ui/main.slint. The catalogs,
Locale.tin the banner and the reclaim.rs formatting commit are gone. Same test, still failing without the clearing or without thenotice == busy-noticecheck.L1 (the real close and back actions during an operation, in another language): not run yet; I will post it here once done.
@review
Recommendation: Approve. The code is ready: only testing is left (a run of the change itself). The notice-clearing logic and its focused test cover the intended state change, and the rebase resolves the conflict. The real close and build-screen back paths still need the requested UI run. Recommend approval; not approved on the forge.
The launcher clears an operation notice when navigation unlocks while retaining a different later notice. The change is small and keeps the existing translated messages.
Testing before merging (1) (the change behaves the same on every system: one run of the change itself is enough; it doesn't hold the recommendation)
src/main.rs:327: The real window-close and build-screen back paths have not been exercised during an operation. When: The new test calls busy_notice directly, so it does not check that the actual actions show the translated notice and that it clears after the operation ends. Do: Run the launcher once with a non-English language, attempt to close during a real operation, and verify the notice appears and clears; also exercise back during a non-building busy build step.Since the last review (on
c41dbd1ee9)Resolved: L2 (It conflicts with its base branch: bring it up to date (
@fixor@rebasetry first).)Still open: L1 (The real window-close and build-screen back paths have not been exercised during an operat…)
Checks: Still running: 5 checks.
More: does it help, other systems, switches, what was read
Does it help: Unproven: the reported test exercises the clearing and preservation logic directly, but the real close and back actions during an operation have not been run.
Other systems: The same navigation lock covers cleanup, folder changes, mods, builds and updates on Windows and Linux. The clearing logic is shared UI code; the reported test uses a software-rendered window on Windows.
Switches: None.
Reviewed:
60585ec0deagainst3898cb1bb0: Read AGENTS.md and CONTRIBUTING.md, the current diff and commit, and the relevant notice, navigation and close-handler code. Skimmed the remaining portions of src/main.rs and ui/main.slint and the earlier diff; no review checklist or pull request template was found.; nothing run (a code review).Checked and fine:
Testing: No commands or tests were run during review. The author reports Windows formatting, Clippy and UI test results; CI is still running.
Overlaps and merge order: None found in the supplied information.
Automated code review by BeanBot (gpt-6.1-terra), asked for by Jiro113. Nothing was run; a maintainer decides.
L1, run on Windows 11 with the debug build of
60585ec, French (the system language), a temporary launcher home (LONGSHOT_LAUNCHER_HOME) holding a synthetic previous-launcher RomFS extraction of 50,000 small files:WM_CLOSEposted to it, the message the title bar and Alt+F4 send). The launcher stayed open and showed the notice, in French.Not run: going back on the build screen during a busy step other than Building ("Use Cancel on the build screen…"). Reaching that step needs a real game copy, which this PC's test home doesn't have. That path calls the same
busy_noticeand is cleared by the same handler.60585ec0de593a4125b2