structurizr / ui

UI code for Structurizr Lite, on-premises, and cloud service.
https://docs.structurizr.com/ui
MIT License
38 stars 22 forks source link

Properties information in the tooltip is not displayed correctly when move from an element with properties to an element without properties #15

Closed cavies closed 1 year ago

cavies commented 1 year ago

Description

When moving from an element with properties to an element without properties in the Diagrams, the properties information in the tooltip is not displayed correctly

Use the Big Bank plc as example the apiApplication has a property named dev, the database does not have any properties, as following

 apiApplication = container "API Application" "Provides Internet banking functionality via a JSON/HTTPS API." "Java and Spring MVC" {
      properties {
          dev  "test@example.com"
      }
}

database = container "Database" "Stores user registration information, hashed authentication credentials, access logs, etc." "Oracle Database Schema" "Database"

Steps to reproduce

  1. First mouse over on the apiApplication, the tooltip of apiApplication is correctly, as following image

  2. Mouse over on the database, the tooltip of database displays properties information that does not belong to database image

Screenshot

No response

Code sample

No response

Configuration

No response

Severity

Minor

Priority

Medium

Resolution

I'm willing to fix this myself and raise a PR

More information

No response