Skip to content

Comments

fix: BROS-712: Free form transformation on double click#9161

Merged
robot-ci-heartex merged 4 commits intodevelopfrom
fb-bros-712/vector-double-click
Jan 14, 2026
Merged

fix: BROS-712: Free form transformation on double click#9161
robot-ci-heartex merged 4 commits intodevelopfrom
fb-bros-712/vector-double-click

Conversation

@nick-skriabin
Copy link
Member

@nick-skriabin nick-skriabin commented Jan 12, 2026

This PR addresses the issue when on double clicking an unselected region, the user will enter free-form transform mode for a brief second.

Before: on UNSELECTED region double-click it, the region will become selected, the transformer will appear for a brief second, then disappear.

After: on UNSELECTED region click will select the shape, double-click will enter transformation mode ONLY when the shape is selected.

Reasoning: free-form transformation is an editing operation. Most of the editing operations can only be performed on a currently selected region. Transform is no exception, so we're moving this behavior under the selected region guard.

@netlify
Copy link

netlify bot commented Jan 12, 2026

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit 9c5e447
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/6967bc21ea566400088f135e
😎 Deploy Preview https://deploy-preview-9161--heartex-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the fix label Jan 12, 2026
@netlify
Copy link

netlify bot commented Jan 12, 2026

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 9c5e447
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6967bc218ed446000893984f
😎 Deploy Preview https://deploy-preview-9161--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 12, 2026

Deploy Preview for label-studio-docs-new-theme ready!

Name Link
🔨 Latest commit 9c5e447
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/6967bc2114e4580008989907
😎 Deploy Preview https://deploy-preview-9161--label-studio-docs-new-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jan 12, 2026

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 9c5e447
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/6967bc21344aca0008eb3d6b
😎 Deploy Preview https://deploy-preview-9161--label-studio-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Jan 12, 2026

Codecov Report

❌ Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.00%. Comparing base (937c56d) to head (9c5e447).
⚠️ Report is 17 commits behind head on develop.

Files with missing lines Patch % Lines
web/libs/editor/src/regions/VectorRegion.jsx 0.00% 14 Missing ⚠️
.../editor/src/components/KonvaVector/KonvaVector.tsx 0.00% 2 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (937c56d) and HEAD (9c5e447). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (937c56d) HEAD (9c5e447)
pytests 1 0
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9161      +/-   ##
===========================================
- Coverage    66.12%   58.00%   -8.12%     
===========================================
  Files          828      557     -271     
  Lines        64797    40444   -24353     
  Branches     10939    10954      +15     
===========================================
- Hits         42846    23460   -19386     
+ Misses       21947    16980    -4967     
  Partials         4        4              
Flag Coverage Δ
lsf-e2e 52.47% <0.00%> (+2.45%) ⬆️
lsf-integration 48.29% <0.00%> (-0.02%) ⬇️
lsf-unit 8.86% <0.00%> (+<0.01%) ⬆️
pytests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +456 to +458
setTimeout(() => {
self.clearJustSelectedFlag();
}, 300); // Clear after double-click detection window
Copy link
Contributor

Choose a reason for hiding this comment

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

might be good to clear time out on beforeDestroy or on cleanup

Copy link
Contributor

@yyassi-heartex yyassi-heartex left a comment

Choose a reason for hiding this comment

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

minor recommendation - but looks good otherwise approving

@yyassi-heartex
Copy link
Contributor

yyassi-heartex commented Jan 12, 2026

/fmt

Workflow run

@robot-ci-heartex robot-ci-heartex merged commit c9253d1 into develop Jan 14, 2026
83 of 89 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-bros-712/vector-double-click branch January 14, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants