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
- Navigate to Passport Consumption screen
- Search for a DPP with a valid discovery ID (
CX:<manufacturerPartId>:<partInstanceId>)
- Wait for the data to load
- Click the "Show Digital Twin" button
- 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
Current Behavior
The "Show Digital Twin" button in the Passport Consumption screen remains enabled even when
counterPartyIdis unavailable, allowing users to click it and see an empty modal panel.Expected Behavior
The button should be disabled when
counterPartyIdis not available, matching the behavior in Passport Provisioning.Steps To Reproduce
CX:<manufacturerPartId>:<partInstanceId>)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
ichub-frontend/.../passport-consumption/.../BasePassportVisualization.tsxcounterPartyIdSolution
Frontend
counterPartyIdis missingBackend
counterPartyIdfrom the discovery status endpointshell_descriptor.specificAssetIds