Skip to content

Conversation

@yyassi-heartex
Copy link
Contributor

This pull request introduces a "locked" property to timeline regions and integrates it across various components to ensure locked regions are visually and functionally distinct. The changes primarily focus on preventing interactions with locked regions and updating the UI accordingly.

locked timeline regions will not be allowed to resize. when locked the draggable handles will be made invisible
image

Core Functionality Updates:

  • Added a locked property to the TimelineRegion interface and related data structures, allowing regions to be marked as locked. (web/libs/editor/src/components/Timeline/Types.ts - [1] web/libs/editor/src/components/Timeline/Views/Frames/Utils.ts - [2] [3]
  • Updated the setRange method in TimelineRegion to prevent modifications to locked regions. (web/libs/editor/src/regions/TimelineRegion.js - web/libs/editor/src/regions/TimelineRegion.jsR115)

UI Enhancements:

  • Modified the Keypoints component to pass the locked property and visually differentiate locked points using a new _locked CSS modifier. (web/libs/editor/src/components/Timeline/Views/Frames/Keypoints.tsx - [1] [2] [3] [4] [5]; web/libs/editor/src/components/Timeline/Views/Frames/Keypoints.scss - [6]
  • Updated the Frames component to disable cursor interactions for locked regions. (web/libs/editor/src/components/Timeline/Views/Frames/Frames.tsx - web/libs/editor/src/components/Timeline/Views/Frames/Frames.tsxL180-R180)

Data Flow Adjustments:

  • Ensured the locked property is propagated through the data tree and passed to components such as Keypoints and Minimap. (web/libs/editor/src/components/SidePanels/OutlinerPanel/OutlinerTree.tsx - [1] web/libs/editor/src/components/Timeline/Views/Frames/Minimap.tsx - [2] web/libs/editor/src/tags/object/Video/HtxVideo.jsx - [3]

@netlify
Copy link

netlify bot commented May 26, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 0b103d1
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/6834384ac8befb0008b8a7a1

@netlify
Copy link

netlify bot commented May 26, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 0b103d1
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/6834384ab123e300081b8eff

@netlify
Copy link

netlify bot commented May 26, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 0b103d1
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/6834384ad255540008e5a5e9
😎 Deploy Preview https://deploy-preview-7622--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.

@netlify
Copy link

netlify bot commented May 26, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 0b103d1
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/6834384a6cef940008fdd4af
😎 Deploy Preview https://deploy-preview-7622--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.

@yyassi-heartex yyassi-heartex requested a review from nass600 May 26, 2025 10:03
@hlomzik
Copy link
Collaborator

hlomzik commented May 26, 2025

This has actually nothing to do with templates, it's a bug in Timeline Regions visualization, let's rename PR and ticket. Given we actually actively fix templates right now that can make a confusion.

@yyassi-heartex yyassi-heartex changed the title fix: FIT-133: Locked region can be edited on Video Frame Classification template fix: FIT-133: Locked region can be edited on Timeline regions May 26, 2025
@yyassi-heartex yyassi-heartex changed the title fix: FIT-133: Locked region can be edited on Timeline regions fix: FIT-133: Locked region can be edited on Timeline May 26, 2025
@yyassi-heartex yyassi-heartex merged commit 5a9f8d4 into develop May 26, 2025
47 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-fit-133/video-regions branch May 26, 2025 12:20
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