Skip to content

fix: do not apply metadata item style to pivot table dimension labels (DHIS2-22215) - #3479

Merged
janhenrikoverland merged 1 commit into
masterfrom
fix/pt-dimension-label-style
Oct 4, 2026
Merged

janhenrikoverland merged 1 commit into
masterfrom
fix/pt-dimension-label-style

Conversation

@janhenrikoverland

@janhenrikoverland janhenrikoverland commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Pivot table dimension labels picked up the style object from metaData.items. That object comes from the api, e.g. a data element color set in maintenance, and was applied as CSS on the label.

@dhis2/analytics 29.8.1 (dhis2/analytics#1845) reads the label style from dimensionItemStyle instead, which is only set by analytics itself (the "No value" item in the event response transformer). Aggregate pivot tables in DV no longer get styling from metadata items.

Before

image

After

image

Upgrade @dhis2/analytics, where the pivot table reads the label style
from `dimensionItemStyle` instead of `style`. This prevents style coming
from the api (e.g. data element color set in maintenance) from being
applied to the dimension labels.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 4, 2026

Copy link
Copy Markdown

@dhis2-bot

Copy link
Copy Markdown
Contributor

🚀 Deployed on https://pr-3479.data-visualizer.netlify.dhis2.org

@dhis2-bot
dhis2-bot temporarily deployed to netlify October 4, 2026 11:32 Inactive
@janhenrikoverland janhenrikoverland changed the title fix: do not apply metadata item style to pivot table dimension labels fix: do not apply metadata item style to pivot table dimension labels (DHIS2-22215) Oct 4, 2026
@janhenrikoverland
janhenrikoverland merged commit eb8f923 into master Oct 4, 2026
51 checks passed
@janhenrikoverland
janhenrikoverland deleted the fix/pt-dimension-label-style branch October 4, 2026 12:09
dhis2-bot added a commit that referenced this pull request Oct 4, 2026
## [101.6.4](v101.6.3...v101.6.4) (2026-10-04)

### Bug Fixes

* do not apply metadata item style to pivot table dimension labels ([#3479](#3479)) ([eb8f923](eb8f923))
@dhis2-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 101.6.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

This branch was previously deployed

1 inactive deployment
netlify — 6aced148 Deployed Oct 4, 2026 by dhis2-bot
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.

2 participants