Skip to content

Avalonia: Implement missing features#4662

Merged
Gabriel Dufresne (GabrielDuf) merged 23 commits intomainfrom
missingFeatureAvalonia
Apr 29, 2026
Merged

Avalonia: Implement missing features#4662
Gabriel Dufresne (GabrielDuf) merged 23 commits intomainfrom
missingFeatureAvalonia

Conversation

@GabrielDuf
Copy link
Copy Markdown
Contributor

This branch implements several features that were previously missing from the Avalonia port, bringing it closer to WinUI parity.

What's included:

  • System tray icon — Windows tray with full status parity (busy/idle states, context menu)
  • App integrity check — runs at startup; shows a colored warning dialog on violation
  • Missing dependency dialogs — shown at startup when required dependencies are absent
  • WinGet repair & malfunction detection — detects broken WinGet and offers repair from the
    Installed Packages page and Package Manager settings page
  • Package screenshots — displayed in the Package Details window
  • "Close apps before installing" tab — added to the Install Options window, using comma/Enter
    as delimiters (no Add button, matching WinUI behavior)
  • Operation failed dialog — shows colored output and a retry button
  • Download-only install operations — wired up in the operation registry
  • Bundle integrity report dialog — converted from inline code to proper .axaml view
  • Create .ps1 script — added to the Package Bundles page
  • CLI argument handler — for settings manipulation via command line

Port WinUI CLIHandler to the Avalonia entry point: --import-settings,
--export-settings, --enable-setting, --disable-setting,
--set-setting-value, and the --enable/disable-secure-setting family
all exit before the Avalonia app starts, matching WinUI behaviour.
--help opens the CLI reference page in the default browser.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
After managers finish loading, run IntegrityTester.CheckIntegrity() and
show a modal dialog when files are missing or corrupt. Mirrors the
WinUI behaviour in App.xaml.cs. Skipped when
DisableIntegrityChecks setting is set.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add AskLocationAndDownloadAsync (single package, save-file dialog) and
DownloadSelectedAsync (bulk, folder-picker dialog) to
AvaloniaPackageOperationHelper, mirroring WinUI's
AppOperationHelper.AskLocationAndDownload / Download.

Wire the previously-stubbed toolbar and context-menu click handlers on
all four package pages: Discover, Updates, Installed, and Bundles.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add missing Avalonia, Avalonia.Media using directives and remove
the incorrect .Unwrap() call on InvokeAsync — Avalonia's dispatcher
already awaits the inner Task when a Func<Task> is passed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Port the batch script export from WinUI: add a toolbar button that
opens a save-file picker for a .ps1 file, iterates ImportedPackage
entries to collect kill/pre/install/post commands, writes a full
PowerShell installer script with ASCII-art header and per-command
success/failure reporting, then shows a success banner and opens the
file in Explorer.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Detect WinGet malfunction after installed-packages load (ready manager,
  zero packages loaded) and surface a dismissable WinGetWarningBanner
  with a "Repair WinGet" action button, respecting the
  DisableWinGetMalfunctionDetector setting
- Implement HandleBrokenWinGetAsync() in AvaloniaPackageOperationHelper:
  runs the elevated PowerShell repair sequence, shows a success/error
  banner, and reloads upgradable/installed package lists on success
- Wire the existing "Reset WinGet" button in the Package Manager settings
  page to the new helper (replacing the previous TODO stub)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
After the integrity check, call GetMissingDependenciesAsync() and show
a modal dialog for each missing dependency, in order. Each dialog:
- Displays the dependency name, description, and the manual install command
- Offers an Install button that runs the dependency's installer, waits
  for it to finish, then prompts Restart or Continue
- On the final dependency, restarting launches a new UniGetUI process and
  shuts down the current one (matching WinUI behaviour)
- Tracks first/repeat attempts via the DependencyManagement dictionary
  setting; shows "Don't show again" checkbox on repeat attempts

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace all programmatic new Window {} dialog constructions with proper
.axaml + .axaml.cs dialog views in Views/DialogPages/, picking up the
app-wide Background="{DynamicResource AppDialogBackground}" and full
Fluent theme styling instead of clashing unstyled system windows.

New views:
- IntegrityViolationDialog — startup integrity failure notice
- MissingDependencyDialog  — per-dependency install/skip/restart flow
- DiscardBundleChangesDialog — confirm discarding unsaved bundle edits
- BundleSecurityReportDialog — show stripped/allowed security report
- SimpleErrorDialog — generic error message with OK button

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Use StatusWarningForeground (amber in dark, dark-amber in light) on the
body text, matching the WinUI SystemControlErrorTextForegroundBrush.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… failure

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…when ScreenshotCount changes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…elimiter

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@GabrielDuf Gabriel Dufresne (GabrielDuf) merged commit c8368d1 into main Apr 29, 2026
1 check passed
@GabrielDuf Gabriel Dufresne (GabrielDuf) deleted the missingFeatureAvalonia branch April 29, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants