Repository navigation
feat: error page on failed connection, test connection button, macOS notifications (#12, #4, #8) - #22
Closed
nesquena-hermes wants to merge 3 commits into
Closed
nesquena-hermes wants to merge 3 commits into
nesquena-hermes wants to merge 3 commits into
Conversation
added 3 commits
April 17, 2026 03:43
…able notif ID, HTML escaping, unreachable else branch, clean up Entitlements
…te CHANGELOG to v1.0.6
Collaborator
Author
|
Merged manually via squash commit 77f188f to main (GitHub API blocked workflow file update via OAuth). All changes are on main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #12, closes #4, closes #8.
Changes
Error page instead of white screen (#12)
Implements
webView(_:didFailProvisionalNavigation:withError:). When the WebView can't reach the server, a clean error page loads showing the target URL, mode-specific fix instructions, and a Try Again button. Direct mode tells you to runbash start.sh. SSH mode tells you to check the tunnel.Test Connection button in Preferences (#4)
New button bottom-left of the Preferences window. Makes a HEAD request to the current Target URL with a 5s timeout. Shows
✓ Connected(green) or✗ Unreachable(red) inline. Tests the URL as typed, before saving — so you can verify before committing.macOS notifications (#8)
Injects a debounced MutationObserver into the WebView. When DOM changes settle after 2 seconds and the window is in the background (
document.hiddenis true), it posts a message to Swift viaWKScriptMessageHandler. Swift fires aUNUserNotificationCenternotification. Permission is requested lazily on first trigger — no startup prompt.Files changed
BrowserWindowController.swift— error page handler, notification script + message handler, UserNotifications importPreferencesWindowController.swift— Test Connection button + result label + testConnection methodEntitlements.plist— explicit no-sandbox declarationbuild.sh+ CI workflow — NSUserNotificationUsageDescription added to Info.plistCHANGELOG.md— unreleased sectionNeeds local build test
Same as last time —
swift build+bash build.shon Mac to verify compile.