Skip to content

chore(app): drop @dnd-kit/helpers - #59015

Merged
kitlangton merged 1 commit into
devfrom
drop-dnd-helpers
Oct 25, 2026
Merged

kitlangton merged 1 commit into
devfrom
drop-dnd-helpers

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

What it does

Removes @dnd-kit/helpers from the app. It was imported for one function, arrayMove, in the queue panel and the tab strip.

How it works

runtime/array-move.ts holds a local arrayMove with the same behavior as the package: it returns the same array when from === to, and otherwise copies the array and moves the item. Both call sites import it. Nothing else in the repo imports the package, so it is removed from packages/app/package.json and bun.lock (three lines).

Risk

Reordering queued prompts and tabs by drag. The function is the package's own logic, covered by new tests.

Proof

  • bun test ./src/runtime/array-move.test.ts in packages/app: 3 pass (forward, backward, no mutation, same array when nothing moves).
  • bun typecheck in packages/app: clean.
  • bun script/lint-changed.ts origin/dev: 0 problems.

@opencode-agent opencode-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. The local arrayMove matches @dnd-kit/helpers@0.5.0 line for line, and nothing else in the repo imports the package. I compared it with the package source; the new tests pass and tsc --noEmit for packages/app is clean.

Public API is unchanged: this is an internal app helper and a dependency removal.

@kitlangton
kitlangton merged commit 193a556 into dev Oct 25, 2026
21 checks passed
@kitlangton
kitlangton deleted the drop-dnd-helpers branch October 25, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant