Skip to content

refactor: support labels in uiRecipesList #1536

@awesthouse

Description

@awesthouse

Describe Problem

We want to support having a different label to the recipeName in the AppSelector for HeaderPlugin. Currently it expects a list of string, but it should be a list of objects that contain both a label and a recipeName

Suggest Solution

In HeaderPluginConfig

{
      "name": "uiRecipesList",
      "type": "dmss://system/SIMOS/BlueprintAttribute",
      "attributeType": "string",
      "dimensions": "*",
},

to 

{
      "name": "uiRecipesList",
      "type": "dmss://system/SIMOS/BlueprintAttribute",
      "attributeType": "PLUGINS:dm-core-plugins/header/HeaderUIRecipeItem",
      "dimensions": "*",
      "description": ""
}

HeaderUIRecipeItem blueprint

{
  "name": "TableVariantConfig",
  "type": "CORE:Blueprint",
  "attributes": [
    {
      "name": "type",
      "type": "CORE:BlueprintAttribute",
      "attributeType": "string"
    },
    {
      "name": "label",
      "type": "CORE:BlueprintAttribute",
      "description": "Label for item in dropdown selection",
      "attributeType": "string",
      "optional": true
    },
    {
      "name": "recipeName",
      "type": "CORE:BlueprintAttribute",
      "description": "Name of recipe to select",
      "attributeType": "string"
    },
  ]
}

Additional Details

https://equinor.slack.com/archives/C050WG4NYGM/p1760600697075809

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions