Skip to content

feat: safe triangles#793

Merged
alexiglesias93 merged 4 commits into
masterfrom
feat-safe-polygon
May 24, 2026
Merged

feat: safe triangles#793
alexiglesias93 merged 4 commits into
masterfrom
feat-safe-polygon

Conversation

@alexiglesias93

Copy link
Copy Markdown
Member

@vercel

vercel Bot commented May 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
attributes Ready Ready Preview, Comment May 24, 2026 5:51pm

Request Review

Copilot AI 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.

Pull request overview

Adds a new safetriangles Attribute package to generate “safe triangle” hover zones between a trigger and a target (intended to keep context menus open while moving the pointer), and wires it into the main Attributes loader.

Changes:

  • Introduces @finsweet/attributes-safetriangles package (init, selector helpers, constants, factory logic, README, tsconfig).
  • Registers the new attribute in the central loader (packages/attributes/src/load.ts) and dependencies.
  • Updates pnpm-lock.yaml (including adding the workspace package and bumping esbuild).

Reviewed changes

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

Show a summary per file
File Description
pnpm-lock.yaml Adds the new workspace package and updates lockfile dependencies (incl. esbuild).
packages/utils/src/constants/attributes.ts Adds a new exported attribute key constant for safetriangles.
packages/safetriangles/tsconfig.json Adds package TS config extending the repo base.
packages/safetriangles/src/utils/selectors.ts Adds generated selector helpers for the new attribute.
packages/safetriangles/src/utils/constants.ts Defines element keys and settings (delay, debug).
packages/safetriangles/src/init.ts Initializes safe triangles for each trigger/target pair.
packages/safetriangles/src/index.ts Exports version, init, ELEMENTS, and SETTINGS.
packages/safetriangles/src/factory.ts Implements SVG/path-based safe triangle behavior and lifecycle/cleanup.
packages/safetriangles/README.md Adds usage/API access documentation for the new attribute.
packages/safetriangles/package.json Adds the new workspace package manifest.
packages/attributes/src/load.ts Adds dynamic import case for safetriangles.
packages/attributes/package.json Adds dependency on @finsweet/attributes-safetriangles.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Comment thread packages/utils/src/constants/attributes.ts Outdated
Comment thread packages/safetriangles/src/factory.ts Outdated
Comment thread packages/safetriangles/src/factory.ts
@alexiglesias93 alexiglesias93 merged commit 73aa144 into master May 24, 2026
3 checks passed
@alexiglesias93 alexiglesias93 deleted the feat-safe-polygon branch May 24, 2026 17:53
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.

2 participants