You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 18, 2024. It is now read-only.
* fix: LSDV-1476: Fix selected=true for Taxonomy
First try, not fully working.
Now `<Choice selected="true">` will work inside Taxonomy as well.
* Fix example; typo in FFs; list of taxonomy FFs
- fix example for classifications
- fix typo in FF link
- add list of all Taxonomy and Choices related FFs
* Add test for preselected Taxonomy; with 3617 FF off
* fix work with shared store (FF_DEV_3617)
* Add tests for static/dynamic + on/off cases
* Linting + remove unused alert
* Remove FF_DEV_2007 flag
* Remove FF_DEV_2007_DEV_2008 FF
* Actually use ffState in test
* Remove FF_DEV_2100_A
* Remove FF_DEV_2244
* Linting from prev commits
* Add missing required flags
* Fix TS recognition of cypress globals
* Remove unused FF groupping
Not the best way to do it anyway
* It does work with FF_DEV_3617 after the fix!
* Add comment about fixed updateValue()
* Update ls-frontend-test to have hasNoSelected()
* Fix tests
* Add FF to fix init order
Children should be init before other processes like setDefaultValues()
* Make it safe to `updateValue()` without task
This case can happen during store init in Label Stream,
task will be loaded later.
* Update ls-frontend-test
* Remove flags from tests
* Small fixes for test data
* Connect updated test helpers
* Get rid of unused FF list
* Update ls-frontend-test
---------
Co-authored-by: hlomzik <hlomzik@users.noreply.github.com>
@@ -22,7 +21,6 @@ import { HintTooltip } from '../../components/Taxonomy/Taxonomy';
22
21
/**
23
22
* The `Choice` tag represents a single choice for annotations. Use with the `Choices` tag or `Taxonomy` tag to provide specific choice options.
24
23
*
25
-
* [^FF_DEV_2007]: `ff_dev_2007_rework_choices_280322_short` should be enabled to use `html` attribute
26
24
* [^FF_PROD_309]: The `hint` attribute works only when `fflag_feat_front_prod_309_choice_hint_080523_short` is enabled
27
25
*
28
26
* @example
@@ -44,7 +42,7 @@ import { HintTooltip } from '../../components/Taxonomy/Taxonomy';
44
42
* @param {string} [alias] - Alias for the choice. If used, the alias replaces the choice value in the annotation results. Alias does not display in the interface.
45
43
* @param {style} [style] - CSS style of the checkbox element
46
44
* @param {string} [hotkey] - Hotkey for the selection
47
-
* @param {string} [html] - Can be used to show enriched content[^FF_DEV_2007], it has higher priority than `value`, however `value` will be used in the exported result (should be properly escaped)
45
+
* @param {string} [html] - Can be used to show enriched content, it has higher priority than `value`, however `value` will be used in the exported result (should be properly escaped)
48
46
* @param {string} [hint] - Hint for choice on hover[^FF_PROD_309]
49
47
* @param {string} [color] - Color for Taxonomy item
* The `Choices` tag can be used with any data types.
38
38
*
39
39
* [^FF_LSDV_4583]: `fflag_feat_front_lsdv_4583_multi_image_segmentation_short` should be enabled for `perItem` functionality.
40
-
* [^FF_DEV_2007_DEV_2008]: `ff_dev_2007_dev_2008_dynamic_tag_children_250322_short` should be enabled to use dynamic options.
41
-
* [^FF_DEV_2007]: `ff_dev_2007_rework_choices_280322_short` should be enabled to use `html` attribute
42
40
*
43
41
* @example
44
42
* <!--Basic text classification labeling configuration-->
@@ -54,8 +52,8 @@ const { Option } = Select;
54
52
*
55
53
* @example <caption>This config with dynamic labels</caption>
56
54
* <!--
57
-
* `Choice`s can be loaded dynamically from task data[^FF_DEV_2007_DEV_2008]. It should be an array of objects with attributes.
58
-
* `html` can be used to show enriched content[^FF_DEV_2007], it has higher priority than `value`, however `value` will be used in the exported result.
55
+
* `Choice`s can be loaded dynamically from task data. It should be an array of objects with attributes.
56
+
* `html` can be used to show enriched content, it has higher priority than `value`, however `value` will be used in the exported result.
59
57
* -->
60
58
* <View>
61
59
* <Audio name="audio" value="$audio" />
@@ -97,20 +95,15 @@ const { Option } = Select;
97
95
* @param {string} [whenChoiceValue] - Use with visibleWhen ("choice-selected" or "choice-unselected") and whenTagName, both are required. Narrow down visibility by choice value
98
96
* @param {boolean} [perRegion] - Use this tag to select a choice for a specific region instead of the entire task
99
97
* @param {boolean} [perItem] - Use this tag to select a choice for a specific item inside the object instead of the whole object[^FF_LSDV_4583]
100
-
* @param {string} [value] - Task data field containing a list of dynamically loaded choices (see example below)[^FF_DEV_2007_DEV_2008]
98
+
* @param {string} [value] - Task data field containing a list of dynamically loaded choices (see example below)
101
99
* @param {boolean} [allowNested] - Allow to use `children` field in dynamic choices to nest them. Submitted result will contain array of arrays, every item is a list of values from topmost parent choice down to selected one.
0 commit comments