Skip to content

feat(ligretto): useTargetRelativePosition shared hook (tests + TSDoc)#613

Open
Themezv wants to merge 1 commit into
masterfrom
feat/use-target-relative-position
Open

feat(ligretto): useTargetRelativePosition shared hook (tests + TSDoc)#613
Themezv wants to merge 1 commit into
masterfrom
feat/use-target-relative-position

Conversation

@Themezv

@Themezv Themezv commented Jun 14, 2026

Copy link
Copy Markdown
Member

Promotes the target-relative positioning hook to a reusable shared utility, split out of the onboarding flow.

What's inside

  • useTargetRelativePosition moved to src/shared/lib/hooks/useTargetRelativePosition (with a barrel index.ts).
  • The positioning math is exposed as a pure computeTargetRelativePosition function.
  • English TSDoc on the hook and the helper.
  • Unit tests (vitest) covering all placements, container-relative coordinates and offset behaviour.

ts-check passes; tests green (6 passed).

🤖 Generated with Claude Code

Move the target-relative positioning hook into src/shared/lib/hooks as a
reusable utility, with English TSDoc and unit tests for the pure
positioning math.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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