-
Notifications
You must be signed in to change notification settings - Fork 35
fix: [DHIS2-16869] Capture top-bar showing UID when editing attribute #4381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: [DHIS2-16869] Capture top-bar showing UID when editing attribute #4381
Conversation
|
🚀 Deployed on https://deploy-preview-4381.capture.netlify.dhis2.org |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes an issue where the capture top-bar was displaying UIDs instead of readable names when editing attributes. The fix updates the useTeiDisplayName.ts hook to properly handle the TetAttribute type structure.
- Updated
getTetAttributesfunction to work withTetAttribute[]instead of{ id: string }[] - Changed attribute ID extraction to use
trackedEntityAttribute.idpath - Fixed variable naming consistency from
teiNameDisplayInReportstoteiNameDisplayInList
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
simonadomnisoru
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
## [104.6.2](v104.6.1...v104.6.2) (2025-10-27) ### Bug Fixes * [DHIS2-16869] Capture top-bar showing UID when editing attribute ([#4381](#4381)) ([2c52f39](2c52f39))
|
🎉 This PR is included in version 104.6.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |




DHIS2-16869
This PR updates the handling of tracked entity type attributes in
useTeiDisplayName.ts.The function
getTetAttributesnow works with theTetAttributetype and extracts IDs fromtrackedEntityAttribute.idinstead of a top-levelid.Changes:
getTetAttributesacceptsTetAttribute[]instead of{ id: string }[]trackedEntityAttribute.id