Skip to content

feat: [DHIS2-21266] Integrate react Markdown lib#4595

Open
fernandogmz wants to merge 6 commits into
dhis2:masterfrom
fernandogmz:DHIS2-21266
Open

feat: [DHIS2-21266] Integrate react Markdown lib#4595
fernandogmz wants to merge 6 commits into
dhis2:masterfrom
fernandogmz:DHIS2-21266

Conversation

@fernandogmz

Copy link
Copy Markdown
  • Integrate react markdown library to support standard md elements
  • Apply corresponding legend sets for rule actions where apply
  • Create Markdown e2e testing for markdown integration

- Integrate react markdown library to support standard md elements
- Apply corresponding legend sets for rule actions where apply
- Create Markdown e2e testing for markdown integration
@fernandogmz fernandogmz requested a review from a team as a code owner June 1, 2026 14:40
@simonadomnisoru simonadomnisoru changed the title feat: DHIS2-21266 - Integrate react Markdown lib feat: [DHIS2-21266] Integrate react Markdown lib Jun 2, 2026

@simonadomnisoru simonadomnisoru left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @fernandogmz,
Great work on this ticket! I've left a few suggestions below:

  1. Folder & File Structure: I left a few comments on how to reorganize the structure a bit.
  2. Cypress Tests: Please update the eventId in the Cypress tests as explained in the detailed comment.
  3. CI Run: The CI isn't running on this PR because we don't currently have it set up to run on PR comming from external forks. We are thinking about the best approach to handle this. For now, let’s focus on the first two points, and we can deal with the CI afterward.

Please let me know if any of the comments are unclear or if you need more input from me. Thank you!

Comment thread src/core_modules/capture-core/rules/RuleEngine/types/ruleEngine.types.ts Outdated
Comment thread cypress/e2e/Markdown/Markdown.feature Outdated
Comment thread cypress/e2e/Markdown/Markdown.feature Outdated
Comment thread cypress/e2e/Markdown/Markdown.feature Outdated

@simonadomnisoru simonadomnisoru left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @fernandogmz,
Due to current security limitations where CI checks do not run on external forks, I have cherry-picked your commits into a separate PR (#4621) as a workaround to get your work merged.
The only remaining point to decide is whether we should store legendSets in IndexedDB alongside other metadata. I have brought this up to the Tech Lead, and we should have a decision on this soon.
Thank you!

- Wrap MarkdownWrapper component with React.memo
- Remove unused priority parameters at rulesEffectsProcessor
@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