Skip to content

Add launch-at-login settings - #28

Merged
EClinick merged 4 commits into
masterfrom
task/ec/launch-at-login-settings
Aug 14, 2026
Merged

EClinick merged 4 commits into
masterfrom
task/ec/launch-at-login-settings

Conversation

@EClinick

Copy link
Copy Markdown
Owner

Summary

  • add a native Settings window with General and Updates sections
  • add an SMAppService-backed Open Juice at Login toggle with approval and error states
  • split the popover footer into Stats and Settings buttons without ellipses
  • rotate the Juice Dev bundle ID to avoid the broken macOS menu-bar identity and make helper registration identity-aware

Verification

  • make test (459 tests in 51 suites passed)
  • make app (signed universal x86_64 and arm64 Juice Dev app verified)

Copilot AI lite review requested due to automatic review settings August 14, 2026 19:49
@vercel

vercel Bot commented Aug 14, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
website Ignored Ignored Preview Aug 14, 2026 8:19pm

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 92d79aa6f0

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +64 to +65
if enabled {
try service.register()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Refuse login registration from ejectable app locations

When Juice is opened directly from its DMG and this registration succeeds, SMAppService.mainApp records the mounted app as the login item; after the volume is ejected, the enabled item cannot launch Juice at the next sign-in. The repository already treats direct-from-DMG execution as supported enough to show an install-location instruction for the helper, so this controller should likewise require a stable installed location before registering and direct the user to install the app instead.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 7962475. Enabling launch at login now requires Juice to be under /Applications, reports a clear install instruction otherwise, and has regression coverage.

@EClinick

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 79624755c7

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

window.styleMask = [.titled, .closable, .miniaturizable]
window.contentMinSize = Self.contentSize
window.contentMaxSize = Self.contentSize
let restoredFrame = window.setFrameAutosaveName(autosaveName)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Center the settings window when no saved frame exists

setFrameAutosaveName returns whether the autosave name was accepted, not whether a frame was restored. With this unique name it therefore normally returns true even on the first launch, so window.center() is skipped and the new Settings window opens at AppKit's default origin near the screen corner. Check for an existing/restorable saved frame separately before deciding not to center.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 440484d. The presenter now checks setFrameUsingName before configuring autosave, centers only when no saved frame was restored, and the regression test verifies the initial center path is not repeated when the retained window reopens.

@EClinick

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 440484d860

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Sources/Juice/JuiceSettingsView.swift Outdated
Comment on lines +116 to +118
.disabled(
launchAtLogin.isChanging
|| launchAtLogin.requiresApproval)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Allow canceling a pending login registration

When registration enters .requiresApproval—including after the user disables Juice in System Settings—isEnabled makes this toggle appear off, but this modifier also disables it. The user therefore cannot invoke setEnabled(false) to unregister the pending login item, leaving Juice permanently registered and showing the approval notice; keep a cancellation path available for this state.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 0a70461. The switch now represents registration state (enabled or awaiting approval), remains interactive while approval is pending, and turning it off unregisters the pending item. Added a regression test for the requiresApproval-to-notRegistered cancellation path; the full 461-test suite passes.

@EClinick

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 0a70461c92

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@EClinick
EClinick merged commit 8bf2889 into master Aug 14, 2026
2 checks passed
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.

2 participants