Skip to content

fix(browser): drop the stale orientationToWire argument (main typecheck broken by #97 x #98) - #103

Merged
krassx merged 1 commit into
mainfrom
fix/orientation-to-wire-call-sites
Oct 21, 2026
Merged

krassx merged 1 commit into
mainfrom
fix/orientation-to-wire-call-sites

Conversation

@krassx

@krassx krassx commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Summary

origin/main currently fails @bugsee/browser typecheck/build: #98 changed orientationToWire to take only the type, and #97 (merged after it) still calls it with (type, angle) at two call sites in system-events.ts. This drops the stale argument. No behaviour change (the second argument was already unused).

Test plan

  • tsc --noEmit for @bugsee/browser, browser unit tests, biome

🤖 Generated with Claude Code

…x #98 merge)

#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)
@claude

claude Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Claude finished @krassx's task in 14s —— View job


Review of PR #103: drop stale orientationToWire argument

  • Read the diff and the surrounding code
  • Check every orientationToWire caller against the current signature
  • Post the review

No real issues found.

What I checked

  • orientationToWire(type: string) in packages/browser/src/system-trace-values.ts:71 takes only the type. Its doc comment says there is deliberately no angle fallback.
  • Of the three production callers, trace-producers.ts:266 already passes one argument. The other two are the call sites this PR fixes, system-events.ts:141 and system-events.ts:168. After the change, no caller passes a second argument.
  • No behaviour changes. The function never read angle, so removing the argument cannot alter output.
  • The angle guards are intentionally still there:
    • Line 140: known.angle !== undefined.
    • Line 164: angle === undefined returns the bare OrientationChanged event.
    • Both match the "both type and angle, or nothing" rule. angle is still used in the emitted params at line 176, so there is no unused-variable problem.
  • system-trace-values.test.ts already covers the one-argument signature.

Limits of this review

I did not run tsc, the unit tests or biome here. This review rests on reading the code and grepping every caller. The PR description says tsc --noEmit, the browser unit tests and biome passed. Check that CI is green before merging.

Summary

  1. Overall risk: Low.
  2. Merge recommendation: Approve and merge. It unblocks the broken main typecheck and build.
  3. Issues to fix: None.
  4. Positives:

@coderabbitai

coderabbitai Bot commented Oct 21, 2026

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 151c3c70-7ad3-4b70-9b04-eef99bc45dd5
📥 Commits

Reviewing files that changed from the base of the PR and between ae5939b and 8b56f78.

📒 Files selected for processing: 1
  • packages/browser/src/system-events.ts
+---------------------------------------------------------------------------------------------------+
| All problems in computer science can be solved with another level of indirection. - David Wheeler |
+---------------------------------------------------------------------------------------------------+
  \
   \     /)/)
        ( '')
        /  |
      o(___)
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

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.

1 participant