About, Hide, Quit and Help say "Memoria"; English declared; dev builds take the sign-in scheme
Human
Prompt
Native level-up, Memoria: adopt the shared menu-name fix and prepare the first works.oficina.memoria Mac release. Read native-levelup/BRIEF.md and follow it (own worktree from fresh origin/main; AGENTS.md; amadan workflow; make ci; no deploys; do not merge; do NOT publish a release). 1. Pin rastrillo/native to main c989034 in all six places (one commit). Add PlainAppNameCommands() FIRST in .commands, "localizations" with Memoria's shipped languages in native/mac-updates.json, Settings navigationTitle "Memoria" (if Memoria has no Settings scene, note it). Optional nit: pass --url-scheme works.oficina.memoria in native/scripts/build-mac.sh for plain dev builds and drop the README advice that led to a build-1 app with a live feed. 2. Release prep: installed copy is net.amadan.oficina.memoria 0.1.0 build 1 with no SUFeedURL; next release build must be >= 3 (appcast at 2); archive becomes works.oficina.memoria-<build>.zip. No extra entitlements. 3. Dry-run the release locally up to (not including) publishing: build with --updates-config, Developer ID sign, notarise if non-interactive, verify launch and the app menu reads About/Hide/Quit "Memoria".
From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.
Summary
PlainAppNameCommands() is first in the Mac .commands (both the Sparkle and the Mac App Store builds), with SidebarCommands() so View > Show Sidebar replaces the hidden alias the Help group took with it. mac-updates.json declares "localizations": ["en"] and the Xcode Mac spec CFBundleLocalizations [en]: Memoria's own strings are English only, so declaring the kit's twelve would give a half-translated app. build-mac.sh passes --url-scheme works.oficina.memoria, so a plain dev build registers the sign-in scheme without --updates-config; the README no longer advises the live feed for dev builds and records the release floor (build >= 3, works.oficina.memoria-<build>.zip). Memoria has no Settings scene, so there is no Settings title to fix; the README says what to do when one is added.
Agent notes
Verified on the built dev app by injecting a dylib that dumps NSApp.mainMenu: About Memoria, Check for Updates..., Hide Memoria (cmd-H), Hide Others, Show All, Quit Memoria (cmd-Q), Help > Memoria Help, View > Show Sidebar. iOS simulator and Mac App Store xcodebuilds succeed. osascript has no assistive access here and lldb attach waits for authorisation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 files changed,
+46
−7
native/README.md+22 −4native/apple/Sources/MemoriaApp/MemoriaApp.swift+9 −1native/mac-updates.json+6 −1native/macos/Info.plist+4 −0native/macos/project.yml+2 −0native/scripts/build-mac.sh+3 −1
CI passed — run details
CI log
=== vet === go vet ./... go vet -tags browser ./internal/memoriatest/ === fmt === === test === go test ./... ? amadan.net/oficina/memoria/cmd/memoria [no test files] ? amadan.net/oficina/memoria/cmd/memoria-contract [no test files] ok amadan.net/oficina/memoria/internal/memoria 11.766s ok amadan.net/oficina/memoria/internal/memoria/chunk (cached) ok amadan.net/oficina/memoria/internal/memoria/fact (cached) ? amadan.net/oficina/memoria/internal/memoria/icons [no test files] ok amadan.net/oficina/memoria/internal/memoria/index (cached) ok amadan.net/oficina/memoria/internal/memoria/notion (cached) ok amadan.net/oficina/memoria/internal/memoria/provider (cached) ok amadan.net/oficina/memoria/internal/memoria/query (cached) ok amadan.net/oficina/memoria/internal/memoria/seal (cached) ok amadan.net/oficina/memoria/internal/memoria/sibling (cached) ? amadan.net/oficina/memoria/internal/memoria/teamstate [no test files] ok amadan.net/oficina/memoria/internal/memoriatest 5.219s ? amadan.net/oficina/memoria/scripts/writeestilo [no test files] ? amadan.net/oficina/memoria/tools/bench [no test files] ? amadan.net/oficina/memoria/tools/drive [no test files] ? amadan.net/oficina/memoria/tools/seed [no test files] ? amadan.net/oficina/memoria/tools/vendorassets [no test files] === migration-check === go tool rastrillo migration check rastrillo migration check: models and migrations agree
diff --git a/native/README.md b/native/README.md| index db47325..6c55200 100644 |
| --- a/native/README.md |
| +++ b/native/README.md |
| @@ -11,10 +11,28 @@ responses and generated answers are held in memory. |
| Every build is `works.oficina.memoria` (Sparkle Mac, App Store Mac and iOS); |
| the iOS review fixture is `works.oficina.memoria.review`. Finder, the Dock, |
| Spotlight and the home screen say "Oficina Memoria"; the app's own windows and |
| -the Mac menu bar say "Memoria". The Sparkle build registers the |
| -`works.oficina.memoria` URL scheme from `url_schemes` in |
| -`native/mac-updates.json`, so build it with `--updates-config mac-updates.json` |
| -when sign-in needs the browser's "Return to Memoria" link. |
| +the Mac menu bar say "Memoria" (`PlainAppNameCommands`, first in the Mac |
| +`.commands`, titles About, Hide, Quit and Help with it). `build-mac.sh` |
| +registers the `works.oficina.memoria` URL scheme on every build, so the |
| +browser's "Return to Memoria" link works in a plain development build. Pass |
| +`--updates-config mac-updates.json` only for a release: it turns on the live |
| +update feed, and a build carrying the feed with a low build number (the script |
| +defaults to build 1) is offered every published release. |
| + |
| +Memoria's own strings are English only, so `mac-updates.json` declares |
| +`"localizations": ["en"]` and the app reads English throughout, the shared |
| +kit's menu and sign-in strings included. When Memoria's strings are |
| +translated, add those languages there and to `CFBundleLocalizations` in |
| +`native/macos/project.yml`. |
| + |
| +The Mac app has no Settings scene yet. When one is added, give its content |
| +`.navigationTitle("Memoria")`: SwiftUI otherwise titles the window |
| +"Oficina Memoria Settings" (rastrillo/native `docs/mac-updates.md`). |
| + |
| +Sparkle releases: the copy on Paul's Mac is `net.amadan.oficina.memoria` |
| +0.1.0 build 1 with no `SUFeedURL`, so it cannot update itself and needs one |
| +manual reinstall. The feed's newest item is build 2, so the next release is |
| +build 3 or later, archived as `works.oficina.memoria-<build>.zip`. |
| Build Mac with `native/scripts/build-mac.sh`; build the simulator app with |
| `native/scripts/build-iphone.sh`. For a physical device use |
diff --git a/native/apple/Sources/MemoriaApp/MemoriaApp.swift b/native/apple/Sources/MemoriaApp/MemoriaApp.swift| index 85fbf57..d3d7710 100644 |
| --- a/native/apple/Sources/MemoriaApp/MemoriaApp.swift |
| +++ b/native/apple/Sources/MemoriaApp/MemoriaApp.swift |
| @@ -22,9 +22,17 @@ import SwiftUI |
| } |
| #if os(macOS) |
| .defaultSize(width: 1120, height: 780) |
| + .commands { |
| + // First, so About, Hide, Quit and Help say "Memoria", not the display |
| + // name "Oficina Memoria", and Check for Updates (after .appInfo) stays. |
| + PlainAppNameCommands() |
| + // The Help group it replaces carried SwiftUI's hidden ⌥⌘S sidebar |
| + // alias; View ▸ Show Sidebar (⌃⌘S) keeps the split view's sidebar. |
| + SidebarCommands() |
| #if canImport(RastrilloMacUpdates) |
| - .commands { NativeUpdateCommands(updater: updater) } |
| + NativeUpdateCommands(updater: updater) |
| #endif |
| + } |
| #endif |
| } |
| } |
diff --git a/native/mac-updates.json b/native/mac-updates.json| index a8e4ad0..ff46bcd 100644 |
| --- a/native/mac-updates.json |
| +++ b/native/mac-updates.json |
| @@ -3,5 +3,10 @@ |
| "feed_url": "https://raw.amadan.net/oficina/native-releases/main/memoria/appcast.xml", |
| "public_ed_key": "/FxO7cZnM7P5c9ZrUPUJvpCnR65sNmrzte+I5vHarE8=", |
| "keychain_account": "oficina", |
| - "url_schemes": ["works.oficina.memoria"] |
| + "url_schemes": [ |
| + "works.oficina.memoria" |
| + ], |
| + "localizations": [ |
| + "en" |
| + ] |
| } |
diff --git a/native/macos/Info.plist b/native/macos/Info.plist| index a923dae..ce20b3e 100644 |
| --- a/native/macos/Info.plist |
| +++ b/native/macos/Info.plist |
| @@ -14,6 +14,10 @@ |
| <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> |
| <key>CFBundleInfoDictionaryVersion</key> |
| <string>6.0</string> |
| + <key>CFBundleLocalizations</key> |
| + <array> |
| + <string>en</string> |
| + </array> |
| <key>CFBundleName</key> |
| <string>Memoria</string> |
| <key>CFBundlePackageType</key> |
diff --git a/native/macos/project.yml b/native/macos/project.yml| index 731dcf1..b7a640d 100644 |
| --- a/native/macos/project.yml |
| +++ b/native/macos/project.yml |
| @@ -37,6 +37,8 @@ targets: |
| properties: |
| CFBundleDisplayName: Oficina Memoria |
| CFBundleName: Memoria |
| + CFBundleLocalizations: |
| + - en |
| CFBundleShortVersionString: $(MARKETING_VERSION) |
| CFBundleVersion: $(CURRENT_PROJECT_VERSION) |
| CFBundleIconFile: AppIcon |
diff --git a/native/scripts/build-mac.sh b/native/scripts/build-mac.sh| index 8cc6b26..8963c07 100755 |
| --- a/native/scripts/build-mac.sh |
| +++ b/native/scripts/build-mac.sh |
| @@ -3,4 +3,6 @@ set -eu |
| cd "$(dirname "$0")/.." |
| swift package --package-path apple resolve |
| shared_native="${OFICINA_NATIVE_PACKAGE_PATH:-apple/.build/checkouts/native}" |
| -python3 "$shared_native/tools/bundle-mac.py" . Memoria "$@" |
| +# A plain dev build (no --updates-config) registers the sign-in scheme too, so |
| +# the browser's "Return to Memoria" link works without a live update feed. |
| +python3 "$shared_native/tools/bundle-mac.py" . Memoria --url-scheme works.oficina.memoria "$@" |