Skip to content
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

feat(org unit tree): allow node label customization (LIBS-203) #679

Merged
merged 16 commits into from
Aug 6, 2021

Conversation

Mohammer5
Copy link
Contributor

@Mohammer5 Mohammer5 commented Jul 29, 2021

I've exposed a renderNodeLabel prop which can be used to customize the rendering.
The object passed to that function contains several state information as well as info about the node.
Additionally that object has a label property which is what the internal Label component will render.
That prop defaults to the display name.

I've created a story to highlight how it's supposed to work

@Mohammer5 Mohammer5 force-pushed the LIBS-203_Org_unit_tree_leaf_label_customization branch from 8318631 to db982fe Compare July 29, 2021 09:17
@cypress
Copy link

cypress bot commented Jul 29, 2021



Test summary

512 0 0 0


Run details

Project ui
Status Passed
Commit aad2279
Started Aug 4, 2021 12:28 PM
Ended Aug 4, 2021 12:41 PM
Duration 12:45 💡
OS Linux Ubuntu - 20.04
Browser Electron 89

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@Mohammer5 Mohammer5 force-pushed the LIBS-203_Org_unit_tree_leaf_label_customization branch from db982fe to 1712a03 Compare July 29, 2021 10:13
Mohammer5 and others added 4 commits July 29, 2021 16:42
Co-authored-by: Médi-Rémi Hashim <4295266+mediremi@users.noreply.github.com>
Co-authored-by: Médi-Rémi Hashim <4295266+mediremi@users.noreply.github.com>
@Mohammer5 Mohammer5 force-pushed the LIBS-203_Org_unit_tree_leaf_label_customization branch from 5aa4fdc to 399375e Compare July 30, 2021 07:41
@Mohammer5 Mohammer5 force-pushed the LIBS-203_Org_unit_tree_leaf_label_customization branch from 15a4024 to 3b7cdb1 Compare August 3, 2021 12:47
@Mohammer5 Mohammer5 marked this pull request as ready for review August 3, 2021 12:47
@Mohammer5 Mohammer5 requested a review from mediremi August 3, 2021 12:47
@Mohammer5 Mohammer5 merged commit 394010d into master Aug 6, 2021
@Mohammer5 Mohammer5 deleted the LIBS-203_Org_unit_tree_leaf_label_customization branch August 6, 2021 12:28
dhis2-bot added a commit that referenced this pull request Aug 6, 2021
# [6.13.0](v6.12.0...v6.13.0) (2021-08-06)

### Features

* **org unit tree:** allow node label customization (LIBS-203) ([#679](#679)) ([394010d](394010d))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 6.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@varl varl mentioned this pull request Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants