Skip to content

fix: BROS-78: Fix Taxonomy in Preview #7881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

hlomzik
Copy link
Collaborator

@hlomzik hlomzik commented Jun 30, 2025

There are two issues in Taxonomy in Preview:

1. Dropdown is not visible

taxonomy-preview-1-dropdown.mov

When you create project and use Taxonomy in a config, it has no dropdown, making preview for taxonomy useless in this dialog.
It's good in Labeling Settings thought.
The reason for this is z-index for Create Project dialog is 2000 while z-index for antd dropdown is 1050. Making z-index for Taxonomy dropdown above 2000 solves the problem.

2. "No more annotations"

taxonomy-preview-2-no-more.mov

If you add Taxonomy to your config in Preview or edit config with Taxonomy in it, most likely you'll see "No more annotations" info block instead of preview.
This is happening because of wrong usage of lazy reference in SharedChoiceMixin in afterCreate() - it should attach store to a tag when reference is missing, but it fails upon access. Using recommended tryReference() makes it safe and fixes the original issue.

What's left

  • Tests for Preview
  • Documentation about shared stores

hlomzik added 2 commits June 30, 2025 16:34
When you create project and use Taxonomy in a config, it has no dropdown,
making preview for taxonomy useless in this dialog.
It's good in Labeling Settings thought.
The reason for this is z-index for Create Project dialog which is 2000.
Making `z-index` bigger for Taxonomy dropdown solves the problem.
If you add Taxonomy to your config in Preview or edit config with Taxonomy in it,
most likely you'll see "No more annotations" info block instead of preview.
This is happening because of wrong usage of lazy reference in SharedChoiceMixin in
`afterCreate()` - it should attach store to a tag when reference is missing, but
it fails upon access. Using recommended `tryReference()` makes it safe and fixes
the original issue.
Copy link

netlify bot commented Jun 30, 2025

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

Name Link
🔨 Latest commit 2eb6f86
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/687e6dc66bb3d70008e4cb85
😎 Deploy Preview https://deploy-preview-7881--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.

Copy link

netlify bot commented Jun 30, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 2eb6f86
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/687e6dc65e6963000809ac09
😎 Deploy Preview https://deploy-preview-7881--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.

@github-actions github-actions bot added the fix label Jun 30, 2025
Copy link

netlify bot commented Jun 30, 2025

Deploy Preview for heartex-docs ready!

Name Link
🔨 Latest commit 2eb6f86
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/687e6dc6d2e5240008f98507
😎 Deploy Preview https://deploy-preview-7881--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.

Copy link

netlify bot commented Jun 30, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 2eb6f86
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/687e6dc6d5350300087dbaee
😎 Deploy Preview https://deploy-preview-7881--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.

@hlomzik
Copy link
Collaborator Author

hlomzik commented Jul 7, 2025

/git merge

Workflow run
Successfully merged: delete mode 100644 web/libs/ui/src/typography/sub.tsx

Copy link

codecov bot commented Jul 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.88%. Comparing base (b7fc7f7) to head (2eb6f86).
Report is 6 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7881      +/-   ##
===========================================
- Coverage    70.21%   65.88%   -4.33%     
===========================================
  Files          715      504     -211     
  Lines        50292    33377   -16915     
  Branches      8589     8589              
===========================================
- Hits         35312    21992   -13320     
+ Misses       14977    11382    -3595     
  Partials         3        3              
Flag Coverage Δ
lsf-e2e 59.49% <100.00%> (+<0.01%) ⬆️
lsf-integration 55.61% <100.00%> (+<0.01%) ⬆️
lsf-unit 9.39% <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.

@hlomzik
Copy link
Collaborator Author

hlomzik commented Jul 7, 2025

/git merge

Workflow run
Successfully merged: create mode 100644 docs/source/tags/bitmasklabels.md

@hlomzik
Copy link
Collaborator Author

hlomzik commented Jul 8, 2025

/git merge

Workflow run
Successfully merged: delete mode 100644 docs/source/tags/bitmask.md

@hlomzik
Copy link
Collaborator Author

hlomzik commented Jul 8, 2025

/git merge

Workflow run
Successfully merged: 3 files changed, 148 insertions(+), 120 deletions(-)

@hlomzik
Copy link
Collaborator Author

hlomzik commented Jul 21, 2025

/git merge

Workflow run
Successfully merged: create mode 100644 web/libs/ui/src/lib/skeleton/skeleton.tsx

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