-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
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.
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
✅ Deploy Preview for label-studio-storybook canceled.
|
✅ Deploy Preview for heartex-docs canceled.
|
✅ Deploy Preview for label-studio-playground canceled.
|
/git merge
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #7881 +/- ##
===========================================
- Coverage 70.49% 66.16% -4.34%
===========================================
Files 719 505 -214
Lines 51356 33834 -17522
Branches 8729 8729
===========================================
- Hits 36205 22387 -13818
+ Misses 15148 11444 -3704
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
/git merge
|
/git merge
|
/git merge
|
/git merge
|
/git merge
|
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 recommendedtryReference()
makes it safe and fixes the original issue.What's left