Skip to content

Create annotations directly from toolbar tools - #1990

Merged
BryonLewis merged 10 commits into
mainfrom
feature/annotation-toolbar-create
Sep 28, 2026
Merged

BryonLewis merged 10 commits into
mainfrom
feature/annotation-toolbar-create

Conversation

@mattdawkins

Copy link
Copy Markdown
Member

Summary

The annotation toolbar can now start an annotation without first pressing + Detection or + Track. With no track selected, choosing Rectangle, Polygon, Line, or Segmentation creates an annotation using the current Detection/Track settings and enters the chosen tool. With a track selected, the same buttons switch its edit mode.

  • Add a small + indicator and creation labels when nothing is selected, in both toolbar layouts.
  • Enable Text Query without a selected track, keeping its query workflow free of empty placeholder annotations.
  • Apply read-only, multi-select, group, lasso, and linking restrictions to toolbar controls and shortcuts.
  • Wait for segmentation initialization before creating an annotation; canceling an empty annotation removes it.

Validation

  • 50 tests passed across EditorMenu and useModeManager, including creation, tool switching, Detection/Track settings, cancellation, restricted modes, Text Query, and delayed segmentation initialization.
  • ESLint on changed files and client TypeScript checks passed.
  • Production web build passed.

@BryonLewis
BryonLewis self-requested a review September 28, 2026 16:08

@BryonLewis BryonLewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this is fine. I've only made a modification so the buttons don't enable while the lasso tool is calculating the selected tracks.

@BryonLewis
BryonLewis merged commit 2e415bf into main Sep 28, 2026
3 checks passed
@BryonLewis
BryonLewis deleted the feature/annotation-toolbar-create branch September 28, 2026 16:09
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