Skip to content

feat(panel): alignment point tool in panel editor - #712

Merged
fixcik merged 1 commit into
masterfrom
feat/alignment-point-tool
Jul 17, 2026
Merged

feat(panel): alignment point tool in panel editor#712
fixcik merged 1 commit into
masterfrom
feat/alignment-point-tool

Conversation

@fixcik

@fixcik fixcik commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Refs #708 (эпик #705 — привязка рабочего нуля тремя методами). Фаза A: редактор панели.

Инструмент «точка центровки» по хэндоффу дизайнера:

  • Кнопка crosshair в палитре (шорткат C), one-shot: клик ставит точку и возвращает select; ghost-крестик с превью снапа.
  • Снап ≤ 2.5 мм к центру отверстия (tooling holes И отверстия дизайнов через кешированный drill-путь), точка наследует диаметр.
  • Konva-слой пользовательских точек (info-синее кольцо с крестом, паттерн ToolingHoleLayer: hit-target, драг со снапом, Delete/Esc); реперные рисуются как раньше.
  • Инспектор: секция «Точки центровки» — эффективные точки (реперные «авто» + пользовательские с удалением), бейджи «щупабельна · Ø N.N» / «только вручную», кнопка «+ Добавить точку».
  • Баннер-подсказка активного инструмента через существующий ToolOptionsBar.
  • Мутации shellStore с undo (recordUndo → savePanelConfig), id ap-N.
  • Чистая логика в lib/alignmentPoints.ts (снап, порог щупабельности 2.0 — синхронизирован с Rust-константой, effective-зеркало effective_alignment_points()) + 12 vitest-тестов.
  • i18n en/ru (project-неймспейс), паритет проверен.

Проверки: pnpm build (tsc + i18n-check) чисто, vitest 875 ok. Визуальная проверка инструмента в живом приложении — за пользователем.

@fixcik
fixcik enabled auto-merge (squash) July 17, 2026 22:25
@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@fixcik, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 17 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: fbe06ccd-0d22-47d7-a8b6-da50a23bfc0d

📥 Commits

Reviewing files that changed from the base of the PR and between 1383180 and af151d6.

📒 Files selected for processing (15)
  • cuprum-ui/src/components/editor/canvasStyle.ts
  • cuprum-ui/src/components/panel/AlignmentPointLayer.tsx
  • cuprum-ui/src/components/panel/DraftShapes.tsx
  • cuprum-ui/src/components/panel/PanelBlankCanvas.tsx
  • cuprum-ui/src/components/panel/PanelToolPalette.tsx
  • cuprum-ui/src/components/panel/ToolOptionsBar.tsx
  • cuprum-ui/src/components/project/PanelEditor.tsx
  • cuprum-ui/src/components/project/PanelInspector.tsx
  • cuprum-ui/src/hooks/usePanelSnapHoles.ts
  • cuprum-ui/src/lib/alignmentPoints.test.ts
  • cuprum-ui/src/lib/alignmentPoints.ts
  • cuprum-ui/src/locales/en/project.json
  • cuprum-ui/src/locales/ru/project.json
  • cuprum-ui/src/settingsStore.ts
  • cuprum-ui/src/shellStore.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@fixcik
fixcik merged commit e1d6bd5 into master Jul 17, 2026
4 checks passed
@fixcik
fixcik deleted the feat/alignment-point-tool branch July 17, 2026 22:28
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