Skip to content

task/CDD-3293-CMS-FIX-Dual-category-chart-component#3208

Open
jeanpierrefouche-ukhsa wants to merge 5 commits into
mainfrom
task/CDD-3293-CMS-FIX-Dual-category-chart-component
Open

task/CDD-3293-CMS-FIX-Dual-category-chart-component#3208
jeanpierrefouche-ukhsa wants to merge 5 commits into
mainfrom
task/CDD-3293-CMS-FIX-Dual-category-chart-component

Conversation

@jeanpierrefouche-ukhsa
Copy link
Copy Markdown

@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa commented May 22, 2026

Description

This PR includes the following:

Fixes #CDD-<ISSUE_ID>


Type of change

Please select the options that are relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Tech debt item (this is focused solely on addressing any relevant technical debt)

Checklist:

  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests at the right levels to prove my change is effective
  • I have added screenshots or screen grabs where appropriate
  • I have added docstrings in the correct style (google)

Comment thread cms/dashboard/static/js/dual_category_chart_form.js Outdated
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
Comment thread cms/dashboard/static/js/dual_category_chart_form.js Outdated
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa force-pushed the task/CDD-3293-CMS-FIX-Dual-category-chart-component branch 2 times, most recently from a920515 to 13797d4 Compare May 24, 2026 18:15
Comment thread cms/dynamic_content/components.py
@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa force-pushed the task/CDD-3293-CMS-FIX-Dual-category-chart-component branch from 13797d4 to c6c452c Compare May 24, 2026 18:19
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa force-pushed the task/CDD-3293-CMS-FIX-Dual-category-chart-component branch from c6c452c to a81508c Compare May 24, 2026 18:23
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa force-pushed the task/CDD-3293-CMS-FIX-Dual-category-chart-component branch from a81508c to 0814e39 Compare May 24, 2026 18:26
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
fix secondary categories not updating
the issue is with the selector for the
segments form - this was not finding the form

task/CDD-3293-CMS-FIX-Dual-category-chart-component
delete all segments on change

task/CDD-3293-CMS-FIX-Dual-category-chart-component
Fix observer - added appropriate class attribute,
fixed the matcher to use appropriate css call instead
of string.contains
fix multiple charts issue:
- DualCategoryChartCardBlockDefinition is a singleton
  and so the code needs to treat each chart as a new
  instance.
- CSS queries must be scoped to rootNode, this
  being the DOM root element on which each chart
  is rendered.
@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa force-pushed the task/CDD-3293-CMS-FIX-Dual-category-chart-component branch from 0814e39 to d4f90a8 Compare May 26, 2026 22:10
Comment thread cms/dynamic_content/components.py
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
Comment thread cms/dashboard/static/js/dual_category_chart_form.js Outdated
@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa marked this pull request as ready for review May 26, 2026 22:56
@jeanpierrefouche-ukhsa jeanpierrefouche-ukhsa requested a review from a team as a code owner May 26, 2026 22:56
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
Find rootNode dynamically instead of hard-coding to 4th element
Comment thread cms/dashboard/static/js/dual_category_chart_form.js
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants