Skip to content

feat(apps): add presets visibility and icon styles - #168

Merged
wflixu merged 1 commit into
wflixu:devfrom
SonneFish:codex/pr166-apps
Nov 2, 2026
Merged

wflixu merged 1 commit into
wflixu:devfrom
SonneFish:codex/pr166-apps

Conversation

@SonneFish

@SonneFish SonneFish commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add 26 app presets, per-app visibility in the Finder toolbar and context menu, and three icon styles: none, simple, and original. Terminal presets open a selected file's containing folder by default; each app can follow its preset or explicitly enable/disable this behavior. Preserve these options through SwiftData save/reload and IPC, while retaining compatibility with older menu payloads.

This is an independent part of #166, split at the maintainer’s request and targeting dev.

Acceptance criteria

  • Presets are ordered by installation/addition status, have unique bundle IDs and resolvable SF Symbols, and use the correct WebStorm identifier.
  • Per-app visibility applies to both default and custom menu layouts.
  • The automatic/on/off option, visibility, and new-instance setting survive saving, reloading through a fresh ModelContext, and IPC encoding/decoding.
  • New payload fields have backward-compatible decoding defaults. Symbol caches distinguish name, size, and light/dark appearance.
  • New settings and preset names have Spanish, French, Japanese, and Simplified Chinese entries. The edit sheet uses a native SwiftUI Form.

Validation

  • Xcode 27 build-for-testing: the app, Finder extension, and test targets build independently (arm64, code signing disabled).
  • All 67 tests pass in the temporary SwiftPM library test host. Coverage includes terminal target resolution, preset identifiers and symbols, appearance caching, old payload decoding, visibility, and six save/reload/IPC cases combining the three-state option with two visibility configurations.
  • scripts/check-localization.py --languages es fr ja zh-Hans passes for both catalogs. Existing catalog entries retain their formatting.
  • The combined branches build successfully; all 68 tests in 12 suites pass in the temporary library test host.
  • git diff --check passes. Fork-specific signing, bundle identifiers, App Groups, and packaging scripts are excluded.
  • GitHub Actions builds and tests complete for this branch: run 41402809122 is action_required, awaiting maintainer approval via Approve and run; tests have not executed.
  • Use the signed, sandboxed app to verify terminal opening immediately after first folder authorization, light/dark switching, all three icon styles, preset addition, and visibility settings.

Risks and limitations

The library test host does not reproduce the sandbox/TCC environment or Finder's cross-process rendering. Workspace icon preloading and heartbeat optimization are handled by #167; this PR builds independently against dev.

The regular local Xcode test host exited before executing tests. The temporary SwiftPM library host compiles the same production sources, excluding the app entry point; its results do not replace end-to-end testing of the signed app.

Acknowledgements

The preset catalog, three icon styles, and terminal containing-folder behavior reference OpenInTerminal.

Related PRs

Split from #166 at the maintainer's suggestion:

Each PR targets dev and builds independently. Combining them in the order above was verified to merge without conflicts.

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