Skip to content

feat: show the DSHMC donation prompt in ControlApp - #579

Merged
nefarius merged 1 commit into
masterfrom
feat/controlapp-donation-dialog
Sep 26, 2026
Merged

nefarius merged 1 commit into
masterfrom
feat/controlapp-donation-dialog

Conversation

@nefarius

@nefarius nefarius commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Wire HasAcknowledgedDonationDialog so first launch can ask for support, and add a Donate link on About.

Summary by CodeRabbit

  • New Features
    • A donation prompt now appears at startup until acknowledged. You can indicate that you’ve donated or may donate to dismiss future prompts, or open the donations page.
    • Added a Donate link to the About page.
  • Bug Fixes
    • Startup continues to the update check even if showing the donation prompt fails.

Wire HasAcknowledgedDonationDialog so first launch can ask for support, and add a Donate link on About.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: 70632702-03ff-490e-a30a-b0f7e75e06d1

📥 Commits

Reviewing files that changed from the base of the PR and between e56b9a4 and 3725adb.

📒 Files selected for processing (7)
  • ControlApp.Tests/DonationPromptTests.cs
  • ControlApp/App.xaml.cs
  • ControlApp/Models/DonationPromptPolicy.cs
  • ControlApp/README.md
  • ControlApp/Services/DonationPromptService.cs
  • ControlApp/Views/Pages/AboutPage.xaml
  • ControlApp/Views/Windows/MainWindow.xaml.cs

Included review availability: This review used your included allowance. 2 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.


📝 Walkthrough

Walkthrough

The application adds a startup donation prompt with policy-based handling of dialog choices and acknowledgement persistence. It also adds a Donate button to the About page and documents the acknowledgement setting.

Changes

Donation Prompt

Layer / File(s) Summary
Donation prompt policy and service
ControlApp/Models/DonationPromptPolicy.cs, ControlApp/Services/DonationPromptService.cs, ControlApp.Tests/DonationPromptTests.cs
The policy determines whether to show the prompt, acknowledge it, or open donations. The service displays the prompt and handles its result. Tests cover policy decisions, configuration round-tripping, and service outcomes.
Startup registration and invocation
ControlApp/App.xaml.cs, ControlApp/Views/Windows/MainWindow.xaml.cs
The application registers the prompt service as a singleton. MainWindow runs it before the startup update check and logs prompt failures separately.
About page donation link and configuration description
ControlApp/Views/Pages/AboutPage.xaml, ControlApp/README.md
The About page adds a Donate button. The README describes the acknowledgement setting and retains its false default.

Priority: ⬇️ Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant MainWindow
  participant DonationPromptService
  participant DonationPromptPolicy
  participant ContentDialog
  participant Shell
  participant Configuration
  MainWindow->>DonationPromptService: ShowIfNeededAsync()
  DonationPromptService->>DonationPromptPolicy: Check acknowledgement state
  DonationPromptService->>ContentDialog: Display donation prompt
  ContentDialog-->>DonationPromptService: Return selected options
  DonationPromptService->>DonationPromptPolicy: Check open and acknowledgement choices
  DonationPromptService->>Shell: Open donations URL when selected
  DonationPromptService->>Configuration: Persist acknowledgement when selected
Loading

Merge Risk: ⚪ Minimal · up to 3725a

The donation prompt and acknowledgement flow have no identified issue requiring a change before merge.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding the DSHMC donation prompt to ControlApp. It matches the implementation and PR objectives.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

A rabbit found a prompt at dawn,
With choices clear and buttons bright.
A checked box saves the answer,
A chosen link opens the way.
The rabbit hops, content and light.

Comment @coderabbitai help to get the list of available commands.

@nefarius
nefarius merged commit 8c2fcd5 into master Sep 26, 2026
5 checks passed
@nefarius
nefarius deleted the feat/controlapp-donation-dialog branch September 26, 2026 16:52
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