Skip to content

refactor: make updatePane take paneSashId as first positional arg#93

Merged
ohxyz merged 1 commit into
mainfrom
fix/update-pane-api-signature
Jun 23, 2026
Merged

refactor: make updatePane take paneSashId as first positional arg#93
ohxyz merged 1 commit into
mainfrom
fix/update-pane-api-signature

Conversation

@ohxyz

@ohxyz ohxyz commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

What

Change BinaryWindow#updatePane from updatePane({ id, ...props }) to updatePane(paneSashId, { position, size, minWidth, minHeight, title, content }).

Why

Aligns the signature with the sibling addPane(targetPaneSashId, props), making the id an explicit positional argument rather than a property mixed into the options bag.

Changes

  • src/binary-window/binary-window.js — new signature; options object defaults to {}.
  • dev/window/bwin-update-pane.js — updated caller to updatePane(id, props).
  • src/binary-window/binary-window.test.js — new updatePane suite (positional id, isolation, layout path, error path, optional options).
  • src/binary-window/utils.test.js — moved the normActions tests here.

Aligns updatePane with addPane(targetPaneSashId, props). Adds tests for
the new signature and moves the normActions tests to utils.test.js.
@ohxyz ohxyz requested a review from bhjsdev as a code owner June 23, 2026 04:45
@ohxyz ohxyz merged commit 1bfee31 into main Jun 23, 2026
@ohxyz ohxyz deleted the fix/update-pane-api-signature branch June 23, 2026 04:46
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