Skip to content

Update notice and Report a problem link - #15

Draft
betoxf wants to merge 2 commits into
mainfrom
feat/feedback-update-notice
Draft

betoxf wants to merge 2 commits into
mainfrom
feat/feedback-update-notice

Conversation

@betoxf

@betoxf betoxf commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Summary

Nobody has reported a problem yet, but the app gave people no easy way to report one, and no way to learn that a fix was out. This PR adds both, in the settings panel process only. The background service is unchanged.

  • Update notice: the panel reads which version GitHub's releases/latest page redirects to. It uses curl, the same approach as the license refresh, and sends nothing about the computer. It checks when the panel starts and then once a day by the clock while the icon keeps it running, retrying hourly while offline. The version is parsed into three numbers and compared numerically. The panel only gets a version re-formatted from those numbers, and the Download button always opens the fixed releases URL. Turn it off with check_updates = false. Microsoft Store installs skip it.
  • Report a problem: in the panel footer and the icon menu. It opens issues/new?template=bug_report.yml with the version and systems fields filled in. Nothing else goes into the link: no names, pairing code or logs.
  • Panel height: the page now sends resize when its height changes, so a notice that arrives after the first paint isn't cut off.
  • Docs: the README, PRICING.md, ARCHITECTURE.md and the comment in license.rs now mention the update check next to the license renewal. The CHANGELOG has an Unreleased entry.

User-visible behavior

  • Before: no update notice. The footer read "⌃⌥Esc brings the pointer home · Free for personal use".
  • After:
    • The footer has two lines: the Esc hint, then "Free for personal use · Report a problem".
    • When a newer version is out, a "MagicInput x.y.z is available [Download]" row appears above the footer.
    • The icon menu gains "Report a Problem…", plus "Update to x.y.z…" when a newer version is out.

Validation

  • cargo test: 23 passed, including 3 new ones for reading the redirect, comparing versions, and the report link and encoding.
  • cargo build on macOS, and cargo check --target x86_64-pc-windows-gnu. Clippy shows no new warnings.
  • Real app on macOS: a local build labelled 0.6.1, with a separate config so the real install wasn't touched, showed "MagicInput 0.6.2 is available" with Download. The footer wasn't cut off.
  • Panel test page in a browser, Mac and Windows strings: the notice appearing later sends exactly one resize (458 → 510 px), and the Report and Download buttons send the right messages.
  • Live check: curl -fsSI …/releases/latest returns location: …/releases/tag/v0.6.2.
  • Tray menu items not yet seen on screen.
  • Prefilled bug form not yet seen while signed in to GitHub. The sign-in redirect keeps the query.
  • Windows not run on real hardware.
  • Dark appearance of the new row not checked.
  • No pairing codes or personal content in logs or screenshots.

Risk

  • Protocol change: none.
  • Permissions, signing or packaging: none.
  • Privacy wording (must fix before release): the check is on by default. The website's MagicInput page ("only talks to your other computer") and /magicinput/privacy live in the bullfighterstudio repo and need the same update as the README in this PR.
  • Follow-up: the report link needs a GitHub account. A no-account path through the site's contact form would need a website change.

🤖 Generated with Claude Code

betoxf and others added 2 commits November 16, 2026 12:10
The settings panel asks GitHub which version the latest-release page
redirects to (curl, nothing about the computer is sent) when it starts and
once a day while the icon keeps it running. If it's newer, the panel shows
"MagicInput x.y.z is available" with a Download button and the icon menu
gets "Update to x.y.z…". check_updates = false turns it off; Store
installs skip it. The panel now tells the app when its height changes so
the notice is never clipped.

"Report a problem" in the footer and the icon menu opens a GitHub bug
report with the MagicInput and system versions filled in (no names,
pairing code or logs).

README, PRICING, ARCHITECTURE and the license comment now mention the
update check alongside the license renewal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A check that fails (no network yet at login) is retried an hour later
instead of a day later, and the daily interval follows the clock so sleep
doesn't push it back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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