Repository navigation
feat(browser,electron,node): adopt Android names for shared system events; camelCase params everywhere (C2) - #97
Conversation
…ents; camelCase params everywhere (C2)
OrientationChanged {current, prev?, type, angle}, DarkModeChanged {dark},
UIApplicationDidBecomeActiveNotification, UIApplicationDidEnterBackgroundNotification.
Per-package camelCase param conformance tests and a retired-name guard.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
Claude finished @krassx's task in 24s —— View job Review of PR #97 (Android names for shared system events)I read the diff and the surrounding code ( Findings: no P0–P2 issues. I found nothing that justifies an inline comment. What I checked
Minor notes (P3, non-blocking)
Summary
|
…xact key sets; repo-wide retired-name guard 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
Claude finished @krassx's task in 22s —— View job Re-review of PR #97 after the second commit (
|
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 12
✨ Finishing Touches
Comment |
Also drops the stale second orientationToWire argument in browser/system-events (main's #97 and #98 disagreed on the signature, so main's browser typecheck/build failed). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
…x #98 merge) (#103) #98 made orientationToWire take only the type; #97's two call sites still passed the angle, which fails @bugsee/browser typecheck and build on main. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Summary
events.systemnames now follow Android (specs PR bugsee/specs#62, change C2):orientation_changed->OrientationChanged {current, prev?, type, angle}(current/prevare the Androidorientationints; no params when type/angle unreadable),dark_mode_changed->DarkModeChanged {dark},process_foreground->UIApplicationDidBecomeActiveNotification,process_background->UIApplicationDidEnterBackgroundNotification. Names verified against the Android SDK (EventApplicationLifecycleTest,EventConfiguration) and agree with the spec.docs/PROGRESS.md/docs/review/browser.mdhistory) (packages/instrumentation-tests/test/event-names.guard.test.ts).Follow-ups (not in this PR)
display_added/removed/metrics_changedparams still{id, width, height, scaleFactor?, rotation?(deg), internal?, refreshRate?}(camelCase, but not thedisplayskeys): C5 PR.gcevent: separate PR..changeset/*entries still mention the old names (history, left as is).Spec follow-ups
javascript.mdrow forOrientationChangedlistscurrentas required, but the SDK emits a bare event (no params) when the engine cannot read bothtypeandangle. The spec should say so.OrientationChangedis emitted only when the Android orientation int really changes (a raw{type, angle}change mapping to the same int is silent; a 180-degree flip is a different int).Test plan
pnpm ci:localpasses🤖 Generated with Claude Code