Skip to content

fix: restore interaction handler refactoring reverted by #245#254

Merged
thymikee merged 1 commit intocallstackincubator:mainfrom
ken0nek:fix/restore-interaction-handler-refactor
Mar 25, 2026
Merged

fix: restore interaction handler refactoring reverted by #245#254
thymikee merged 1 commit intocallstackincubator:mainfrom
ken0nek:fix/restore-interaction-handler-refactor

Conversation

@ken0nek
Copy link
Copy Markdown
Contributor

@ken0nek ken0nek commented Mar 25, 2026

Summary

Net: -950 lines (3 files changed, 28 insertions, 950 deletions).

Validation

  • pnpm typecheck — clean
  • pnpm test:unit — 870 pass, 0 fail
  • pnpm test:smoke — 8 pass, 0 fail
  • pnpm format — no changes to touched files

…ubator#245

PR callstackincubator#248 refactored interaction.ts into a thin routing layer delegating
to focused command modules. PR callstackincubator#245 (gesture telemetry overlays)
unintentionally reverted get/is/scrollintoview back to inline
implementations due to a stale branch.

This restores the thin router from callstackincubator#248, adapted for callstackincubator#245's
handleTouchInteractionCommands, and removes interaction-press.ts and
interaction-fill.ts which were made dead code by callstackincubator#245's
interaction-touch.ts.
Copilot AI review requested due to automatic review settings March 25, 2026 05:29
@ken0nek
Copy link
Copy Markdown
Contributor Author

ken0nek commented Mar 25, 2026

Close #156

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Restores the post-#248 interaction handler architecture by returning src/daemon/handlers/interaction.ts to a thin router that delegates to per-command modules, while preserving #245’s gesture-telemetry-based touch command handling via interaction-touch.ts.

Changes:

  • Refactors interaction.ts back into a routing layer that delegates get/is/scrollintoview to dedicated modules and forwards touch commands to handleTouchInteractionCommands.
  • Removes now-dead legacy implementations in interaction-press.ts and interaction-fill.ts (replaced by interaction-touch.ts in #245).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/daemon/handlers/interaction.ts Reinstates thin routing layer and wires touch/get/is/scroll handlers consistently.
src/daemon/handlers/interaction-press.ts Deleted as dead code after touch handling moved to interaction-touch.ts.
src/daemon/handlers/interaction-fill.ts Deleted as dead code after touch handling moved to interaction-touch.ts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Contributor

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

whoa, thanks! that's a lot of leftovers removed

@thymikee thymikee merged commit 65d08ab into callstackincubator:main Mar 25, 2026
9 of 11 checks passed
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.

3 participants