HumanSignal / HumanSignal/label-studio
Origin of generatePreviews() method in AnnotationPreview.jsx
- Dominant language
- TypeScript
- Stars
- 28.3k
- Forks
- 3.7k
- Avg merge
- 14h
- Merged PRs (30d)
- 15
Description
**Describe the bug**
The generatePreviews() method called in the AnnotationPreview component cannot be found in the codebase, leading to potential functionality issues with annotation preview generation.
**Expected behavior**
to reproduce the behavior:
Hope to enable the image preview labels component to function properly
1. Navigate to /web/libs/datamanager/src/components/Common/AnnotationPreview/AnnotationPreview.jsx
2. Locate line 97 which contains: return this.lsf.annotationStore.selected.generatePreviews();
3. Search the entire codebase for the implementation of generatePreviews() using regex patterns including:
- function\s+generatePreviews
- generatePreviews\s*:\s*function
- generatePreviews\s*[:=]\s*function
- generatePreviews\s*\([^)]*\)\s*=>
4. Observe that no implementation of the method can be found
Expected behavior The generatePreviews() method should have a visible implementation in the codebase or clear documentation indicating its origin and implementation details.
**Screenshots**
**Environment**
- OS: macOS
- Label Studio Version: [1.17.0]
This issue occurs in the AnnotationPreview component developed for the ImageDataGroup. The component is supposed to generate annotation previews, but the critical generatePreviews() method implementation is missing from the codebase. We have searched all relevant directories including web/libs/editor/src/ and web/ without finding any implementation of this method.
Thank you for your help!
Contributor guide
Assessment
This issue has not been assessed yet.