feat(phase-1/m5.2): tray + single-instance lock + first-run onboarding
SingleInstanceLock (OS FileLock on <dataDir>/incido.lock) claims the library before the container starts; a second launch prints INSTANCE and exits 0 — which also converts the wedged-child trap into a clean message. Tray (ApplicationScope extension; Item/Separator menu) attaches only for non-scripted, non-headless, SystemTray-capable sessions; close=quit kept. First-run dialog explains the per-machine library + backup bridge, gated on onboarded_v1 in the window store. Two new §3 traps recorded (Window iconBitmap overload ambiguity; Tray receiver/params) + new harness legs in §1. Verify: second launch same dir (INSTANCE ... exits, 0); interactive run (TRAY attached, live KDE SNI); :desktopApp:run --args="--data-dir /tmp/incido-m52-ob --onboarding-smoke --exit-after 8" (shown=true, flag-persisted=true PASS) then --onboarding-verify (shown=false gate respected); --keys-smoke KEYS ALL-OK; --self-test id=1; :core:data-jvm:smoke M1a PASS; assembleDebug SUCCESSFUL.
This commit is contained in:
1 parent
639f39d187
commit
0cad7729aa
7 files changed
+255
No files matched your search
@@ -51,6 +51,12 @@ Commands that must stay green:
|
||||
# after leg A (it proves the relaunch), against the same fresh data dir:
|
||||
./gradlew :desktopApp:run --args="--data-dir /tmp/incido-desktop-crypto --crypto-self-test --crypto-passphrase m3-script-pw --exit-after 20" # leg A (leaves lib encrypted)
|
||||
./gradlew :desktopApp:run --args="--data-dir /tmp/incido-desktop-crypto --crypto-reopen --exit-after 15" # leg B (verifies + decrypts back)
|
||||
# M5.1/M5.2 keyboard + onboarding legs. Onboarding legs are SEQUENTIAL
|
||||
# against the same fresh dir (smoke writes the onboarded flag, verify
|
||||
# asserts the gate):
|
||||
./gradlew :desktopApp:run --args="--data-dir /tmp/incido-desktop-keys --keys-smoke --exit-after 12"
|
||||
./gradlew :desktopApp:run --args="--data-dir /tmp/incido-desktop-ob --onboarding-smoke --exit-after 8" # fresh dir: shown + flag
|
||||
./gradlew :desktopApp:run --args="--data-dir /tmp/incido-desktop-ob --onboarding-verify --exit-after 6" # same dir: stays hidden
|
||||
```
|
||||
|
||||
Versions that matter: Compose Multiplatform `1.7.3`, AndroidX Compose BOM
|
||||
@@ -107,6 +113,15 @@ app version `0.4.2.0` (code 38).
|
||||
command group — leg B opening the library leg A is still writing produces
|
||||
bogus FAIL lines and a corrupt-on-paper result. Sequential, separate processes,
|
||||
fresh dir first.
|
||||
* Compose 1.7.3 `Window`: passing the `iconBitmap` arg makes the two overloads
|
||||
ambiguous — the error surfaces as "cannot infer type" on an UNRELATED lambda
|
||||
parameter. Leave it out; the distribution icon (jpackage) owns the taskbar.
|
||||
* `Tray` (1.7.3) is an `ApplicationScope` extension — call it in `application {}`
|
||||
next to `Window`, not inside window content. Params: icon/state/tooltip/menu
|
||||
(no onClick); menu members are capitalized `Item`/`Separator`/`CheckboxItem`.
|
||||
* KWin under Wayland drops xdotool XTEST keys aimed at the XWayland window even
|
||||
when focus probes show it focused — desktop key handling can't be injected
|
||||
headless here; verify real keypresses by hand.
|
||||
|
||||
## 4. M2 — the backup bridge (next up; the product's reason to exist)
|
||||
|
||||
|
||||
Reference in new issue
Block a user