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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This pull request introduces support for a disabled property across various components in the web/libs/datamanager directory. The changes ensure that UI elements respect the disabled state, preventing user interaction when necessary. Additionally, styling updates have been made to visually indicate the disabled state.
Enhancements to support disabled property:
Updates to components:
FieldsButton.Checkbox and Menu.Item: Added support for the disabled property to prevent interaction with disabled fields. ([[1]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-3fb0e2e098745a1222ce831ce64d830edaa076fdfa324030ad6ff9502a754caaR17-R23), [[2]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-3fb0e2e098745a1222ce831ce64d830edaa076fdfa324030ad6ff9502a754caaL121-R131))
FilterLine and FilterOperation: Integrated the disabled property into filters and operations, ensuring consistent behavior across filter-related components. ([[1]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-a98c30edd14e072861efd8594e7a3bafca80465568f20aa4c628e0d98f4bd756R70-R81), [[2]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-a98c30edd14e072861efd8594e7a3bafca80465568f20aa4c628e0d98f4bd756R92), [[3]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-d7e5a75e95cec2dc137241ef7d46e9704f882c4f21ae229ad1ca3666aa84eb5dL20-R20), [[4]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-d7e5a75e95cec2dc137241ef7d46e9704f882c4f21ae229ad1ca3666aa84eb5dL81-R81), [[5]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-d7e5a75e95cec2dc137241ef7d46e9704f882c4f21ae229ad1ca3666aa84eb5dR95))
Updates to filter types:
BooleanFilter and Common: Added disabled support to filter input components for boolean and common types. ([[1]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-e7b7e7c79aec0abb02b629c79b59f86e82b88ff2e0903b2eb2d04e0ef74afabfR16), [[2]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-c900d5710eb541f15247f75d940beb37d2404227d2039b330ddf30ffd448812aR15))
VariantSelect in List: Enhanced the VariantSelect component to respect the disabled property. ([[1]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-a0ca81dca8c1f711a923db92ff91f83a7a6ddf736feeeaa5eaac67b2c651e9f8L10-R10), [[2]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-a0ca81dca8c1f711a923db92ff91f83a7a6ddf736feeeaa5eaac67b2c651e9f8R38))
Styling improvements for disabled elements:
Menu.scss: Updated styles to visually indicate disabled state, including changes to hover behavior, cursor style, and opacity for disabled menu items. ([web/libs/datamanager/src/components/Common/Menu/Menu.scssR36-R51](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-e57dff1c992a13a36fea76e4443fb7e4a267e8bf52c98f01e31ea1d44f690d5bR36-R51))
Model updates:
TabColumn in tab_column.jsx: Introduced a disabled property to model definitions, ensuring the disabled state is accounted for in data logic and visibility checks. ([web/libs/datamanager/src/stores/Tabs/tab_column.jsxR78-R85](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-8af86387dbeb89c542f4b596a106edfff88dc5a320b2a13950bb928a8cf585ebR78-R85))
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for a
disabledproperty across various components in theweb/libs/datamanagerdirectory. The changes ensure that UI elements respect thedisabledstate, preventing user interaction when necessary. Additionally, styling updates have been made to visually indicate the disabled state.Enhancements to support
disabledproperty:Updates to components:
FieldsButton.CheckboxandMenu.Item: Added support for thedisabledproperty to prevent interaction with disabled fields. ([[1]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-3fb0e2e098745a1222ce831ce64d830edaa076fdfa324030ad6ff9502a754caaR17-R23),[[2]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-3fb0e2e098745a1222ce831ce64d830edaa076fdfa324030ad6ff9502a754caaL121-R131))FilterLineandFilterOperation: Integrated thedisabledproperty into filters and operations, ensuring consistent behavior across filter-related components. ([[1]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-a98c30edd14e072861efd8594e7a3bafca80465568f20aa4c628e0d98f4bd756R70-R81),[[2]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-a98c30edd14e072861efd8594e7a3bafca80465568f20aa4c628e0d98f4bd756R92),[[3]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-d7e5a75e95cec2dc137241ef7d46e9704f882c4f21ae229ad1ca3666aa84eb5dL20-R20),[[4]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-d7e5a75e95cec2dc137241ef7d46e9704f882c4f21ae229ad1ca3666aa84eb5dL81-R81),[[5]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-d7e5a75e95cec2dc137241ef7d46e9704f882c4f21ae229ad1ca3666aa84eb5dR95))Updates to filter types:
BooleanFilterandCommon: Addeddisabledsupport to filter input components for boolean and common types. ([[1]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-e7b7e7c79aec0abb02b629c79b59f86e82b88ff2e0903b2eb2d04e0ef74afabfR16),[[2]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-c900d5710eb541f15247f75d940beb37d2404227d2039b330ddf30ffd448812aR15))VariantSelectinList: Enhanced theVariantSelectcomponent to respect thedisabledproperty. ([[1]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-a0ca81dca8c1f711a923db92ff91f83a7a6ddf736feeeaa5eaac67b2c651e9f8L10-R10),[[2]](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-a0ca81dca8c1f711a923db92ff91f83a7a6ddf736feeeaa5eaac67b2c651e9f8R38))Styling improvements for disabled elements:
Menu.scss: Updated styles to visually indicate disabled state, including changes to hover behavior, cursor style, and opacity for disabled menu items. ([web/libs/datamanager/src/components/Common/Menu/Menu.scssR36-R51](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-e57dff1c992a13a36fea76e4443fb7e4a267e8bf52c98f01e31ea1d44f690d5bR36-R51))Model updates:
TabColumnintab_column.jsx: Introduced adisabledproperty to model definitions, ensuring the disabled state is accounted for in data logic and visibility checks. ([web/libs/datamanager/src/stores/Tabs/tab_column.jsxR78-R85](https://github.com/HumanSignal/label-studio/pull/7843/files#diff-8af86387dbeb89c542f4b596a106edfff88dc5a320b2a13950bb928a8cf585ebR78-R85))