Skip to content

Replace MsBox.Avalonia with a custom message box - #107

Merged
voytas merged 1 commit into
mainfrom
feature/custom-message-box
Dec 3, 2026
Merged

voytas merged 1 commit into
mainfrom
feature/custom-message-box

Conversation

@voytas

@voytas voytas commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

What

  • Adds MessageBoxView, a small window with a Material icon, a selectable wrapped message, and an OK button.
    • Errors show a red close-circle icon (SpectrumBrightRed); warnings show a yellow alert icon (SpectrumYellow).
    • The window sizes itself to the content (300–500 px wide) and can't be resized. Enter or Esc closes it.
  • MessageDialogs now uses this window instead of MessageBoxManager.
  • Removes the MessageBox.Avalonia package from Directory.Packages.props and Spectron.csproj.

Why

MessageDialogs was the only consumer of MsBox.Avalonia, and it only needed a simple OK-only dialog. A small custom window drops a third-party dependency, which is one less package to keep in step with Avalonia upgrades.

Notes for reviewers

  • The behaviour is the same as before: the dialog opens modally, centred on the active window. If no window is active, it opens centred on the screen, and the call still waits until it's closed.
  • The icon control is named MessageIcon so it doesn't hide Window.Icon.
  • The build has no warnings and all non-integration tests pass. The dialog hasn't been checked visually in the running app yet.

🤖 Generated with Claude Code

Add a small MessageBoxView window (icon, selectable wrapped message, OK
button) and use it from MessageDialogs for errors and warnings. Drop the
MessageBox.Avalonia package dependency.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-03T15:30:21.429691Z 844e0a7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@voytas
voytas merged commit b4d6b24 into main Dec 3, 2026
7 checks passed
@voytas
voytas deleted the feature/custom-message-box branch December 3, 2026 15:34
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