Skip to content

bug: "Show Digital Twin" button displays empty modal - disable temporarily pending backend implementation #559

@jalvaro-lks

Description

@jalvaro-lks

Current Behavior

The "Show Digital Twin" button in the Passport Consumption screen remains enabled even when counterPartyId is unavailable, allowing users to click it and see an empty modal panel.

Expected Behavior

The button should be disabled when counterPartyId is not available, matching the behavior in Passport Provisioning.

Steps To Reproduce

  1. Navigate to Passport Consumption screen
  2. Search for a DPP with a valid discovery ID (CX:<manufacturerPartId>:<partInstanceId>)
  3. Wait for the data to load
  4. Click the "Show Digital Twin" button
  5. Observe: Button is enabled but modal opens empty

Root Cause

The backend endpoint does not return counterPartyId, so the frontend component cannot render the Digital Twin details. The button should be disabled until this data is available.

Technical Details

  • File: ichub-frontend/.../passport-consumption/.../BasePassportVisualization.tsx
  • API: Backend discovery endpoint needs to return counterPartyId

Solution

Frontend

  • Disable button when counterPartyId is missing
  • Show disabled visual state and user feedback message

Backend

  • Return counterPartyId from the discovery status endpoint
  • Or extract it from shell_descriptor.specificAssetIds

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions