Skip to content

fix(desktop): clarify windows update and administrator recovery - #874

Merged
nixuuu merged 1 commit into
devfrom
fix/windows-jest-issue
Nov 16, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/windows-jest-issue

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 16, 2026

Copy link
Copy Markdown
Member

Change

Windows installations that need administrator approval currently leave users guessing how to update. Local Restart to update now offers Show installer with four steps: reveal the downloaded installer, close Canopy, run the installer as administrator, and reopen Canopy normally. The file comes from the accepted updater download; the renderer cannot choose a path. Cancelling keeps Canopy running, and a missing installer directs users to download it again.

When PostgreSQL explicitly refuses administrator privileges, startup reports that cause and tells users to reopen Canopy without Run as administrator, instead of waiting for a generic readiness timeout. Other startup failures retain their existing diagnosis. Remote updates still fail before service shutdown when elevation is needed.

Fixes: #479

Verification

  • 23 affected tests passed through check:tmp, including real child-process stderr split across chunks, unrelated startup failures, and remote elevation rejection without shutdown.
  • Desktop package typecheck, lint on edited TypeScript files, formatting, and diff checks passed.
  • Startup screen inspected in a real browser with a mocked desktop bridge: light/dark, 1080 px and 390 px widths; no horizontal overflow.
  • Full repository verification remains with CI. Native Windows dialog layout, Explorer selection, and the manual UAC installation flow were not exercised on this Linux host.

Copy audit

Before: administrator approval plus a reinstall recommendation, and a generic startup timeout. After: concrete installer instructions and a specific explanation when the database rejects administrator privileges.

Checked sentence lengths, active voice, glossary, action labels, error recovery, repetition, dependency explanations, and text cues; no humorous copy or new empty states. Audit §8 item 9 is covered for the startup screen at desktop/phone widths; the native Windows dialog remains a manual Windows check because this host runs Linux. The change adds no user-provided names or variable-length labels.

Guide local manual updates through the downloaded installer and explain PostgreSQL's administrator refusal instead of a readiness timeout.

Fixes: #479
@nixuuu
nixuuu enabled auto-merge (squash) November 16, 2026 14:27
@nixuuu
nixuuu merged commit 7e426f7 into dev Nov 16, 2026
15 checks passed
@nixuuu
nixuuu deleted the fix/windows-jest-issue branch November 16, 2026 14:33
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