Skip to content

feat(drill): manual alignment-points wizard for work zero (method 2) - #714

Merged
fixcik merged 3 commits into
masterfrom
feat/workzero-wizard
Jul 17, 2026
Merged

feat(drill): manual alignment-points wizard for work zero (method 2)#714
fixcik merged 3 commits into
masterfrom
feat/workzero-wizard

Conversation

@fixcik

@fixcik fixcik commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Refs #708 (эпик #705). Фаза C — финал методов 1–2: мастер «по точкам, вручную» + снятие флага fiducialRegistration.

  • Мастер метода 2 (WorkZeroPointsWizard): шаг 1 — выбор 2+ точек центровки (реперные + пользовательские, бейджи, «выбрать все»); шаг 2 — захват: первая точка полностью вручную, для следующих «◎ Навести» (подъём Z → XY к ideal+coarseOffset → медленный спуск), ридаут «до точки», мелкие шаги, джог-пад, блок Z — существующий DrillManualZBar safeDescent (новых Z-компонентов нет), клик-подвод по столу, «■ СТОП» при любом движении; шаг 3 — hero-RMS с чипом качества, угол поворота, per-point отклонения (чистая pointResiduals + тесты), перезахват точки, «Применить» / «Начать заново».
  • Семантика: solve бэкенда атомарно выставляет G54 (G10 L2) — шаг 3 наступает после него; «Применить» фиксирует {method:2, rms, angle} в сторе и зеркалит ноль в гейты; bind метода 1 делает fiducial.reset(), чтобы drill-план не унёс стейл-поворот.
  • Безопасность «Навести»: XY-этап гейтится по фактической высоте Z из статус-репортов (позиционный предикат, fail-closed по таймауту) — стейл-снапшот статуса не может запустить XY при опущенном инструменте (находка ревью, починено).
  • Флаг снят: fiducialRegistration удалён, FiducialPanel и corner/fiducial-переключатель выпилены (мастер их заменяет), ключи fiducial.*wizard2.* (en/ru, плюралы полные).
  • Кламп Z-шага в safeDescent-режиме DrillManualZBar (общий селектор шага теперь содержит крупные шаги); toolchange-режим не тронут.
  • Запись в лог docs/DESIGN.md.

Проверки: pnpm build (tsc + i18n parity + code-vs-json) чисто, vitest 887 ok. Живой прогон мастера на станке — чек-лист #708, за пользователем.

@fixcik
fixcik enabled auto-merge (squash) July 17, 2026 23:15
@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: 30 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: 9d938ef0-5e3f-4434-b147-6a097a1b160a

📥 Commits

Reviewing files that changed from the base of the PR and between 0cd4de4 and 86f395e.

📒 Files selected for processing (15)
  • cuprum-ui/src/components/drill/DrillManualZBar.tsx
  • cuprum-ui/src/components/drill/DrillPlanInspector.tsx
  • cuprum-ui/src/components/drill/FiducialPanel.tsx
  • cuprum-ui/src/components/drill/WorkZeroPointsWizard.tsx
  • cuprum-ui/src/components/operations/DrillOperationEditor.tsx
  • cuprum-ui/src/hooks/useDrillGates.ts
  • cuprum-ui/src/lib/fiducialRegistration.test.ts
  • cuprum-ui/src/lib/fiducialRegistration.ts
  • cuprum-ui/src/lib/flags.ts
  • cuprum-ui/src/lib/workZeroMethods.test.ts
  • cuprum-ui/src/lib/workZeroMethods.ts
  • cuprum-ui/src/locales/en/drill.json
  • cuprum-ui/src/locales/ru/drill.json
  • docs/DESIGN.md
  • docs/ROADMAP.md

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 0812f03 into master Jul 17, 2026
4 checks passed
@fixcik
fixcik deleted the feat/workzero-wizard branch July 17, 2026 23:20
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