Skip to content

[BUG] Plug and Play Command request informational fields do not change color in dark mode #638

@domasgim

Description

@domasgim

Describe the bug
Command tab does not display Command request schema (name, displayName and other parameters), just a blank field to enter information

An older IoT Explorer 15.2 version did not have this bug. The application was updated with the following commands

apt remove azure-iot-explorer
apt install ./azure-iot-explorer_0.15.9_amd64.deb

15.2 version was later installed back and the issue was resolved

To Reproduce
Steps to reproduce the behavior:

  1. Define a PnP interface which contains a Command with request schema
{
  "@context": "dtmi:dtdl:context;2",
  "@id": "dtmi:XXX:ipBlockInterface;1",
  "@type": "Interface",
  "displayName": "XXXIpBlockInterface",
  "contents": [
    {
      "@type": "Command",
      "name": "ip_block_push",
      "displayName": "Push to IP Block",
      "request": {
        "name": "request",
        "displayName": "Request",
        "schema": {
          "@type": "Object",
          "fields": [
            {
              "name": "ip",
              "displayName": "IP address",
              "schema": "string"
            },
            {
              "name": "destination_ip",
              "displayName": "Destination IP address",
              "schema": "string"
            },
            {
              "name": "port",
              "displayName": "Port address",
              "schema": "string"
            },
            {
              "name": "proto",
              "displayName": "Protocol",
              "schema": "string"
            }
          ]
        }
      }
    }
  ]
}

  1. Check IoT Plug and Play component Commands tab
  2. See error (no command request name, display name rendered)

Expected behavior
Command request name, display name and other information should be shown. In this particular example the first field should show Destination IP address, the second field Port address

Screenshots
Screenshot from 2023-09-04 13-18-13

Screenshot from 2023-09-04 13-19-46

Screenshot from 2023-09-04 13-20-32

Version 15.2 without the bug
Screenshot from 2023-09-04 13-29-58

Desktop (please complete the following information):

  • Ubuntu
  • 22.04.2 LTS
  • azure-iot-explorer_0.15.9_amd64.deb and azure-iot-explorer_0.15.8_amd64.deb

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds reviewReview required by team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions