Scopes: Display subtitle and enable direct scopes apply (#112876)

* Display subtitle and enable direct scopes apply

* Extract each type into its own component

* Fix unit integration test

* Fix fe linting

* Fix imports

* Import order

* Update generated type

* Update type generation

* Format go

* Add test case for radio button container selection

* Remove infra mock

* Remove non-existant imports

* Remove unused assertions

* Refactor tree item for a11y

* Add proper keyboard support for directly applying scope

* Update i18n

* Fix button selector

* Remove test code

* Fix race condition for seletion vs blur update
This commit is contained in:
Tobias Skarhed
2025-10-29 10:52:18 +01:00
committed by GitHub
parent 2d5713e330
commit c0ae0f437f
14 changed files with 377 additions and 97 deletions
+6 -1
View File
@@ -146,7 +146,12 @@ type ScopeNodeSpec struct {
NodeType NodeType `json:"nodeType"` // container | leaf
Title string `json:"title"`
Title string `json:"title"`
//+optional
// Displays next to the title to provide more context.
SubTitle string `json:"subTitle,omitempty"`
//+optional
Description string `json:"description,omitempty"`
DisableMultiSelect bool `json:"disableMultiSelect"`
@@ -838,6 +838,13 @@ func schema_pkg_apis_scope_v0alpha1_ScopeNodeSpec(ref common.ReferenceCallback)
Format: "",
},
},
"subTitle": {
SchemaProps: spec.SchemaProps{
Description: "Displays next to the title to provide more context.",
Type: []string{"string"},
Format: "",
},
},
"description": {
SchemaProps: spec.SchemaProps{
Type: []string{"string"},