Skip to content

Conversation

@matheushdsbr
Copy link
Contributor

JIRA Issue

Description 📄

This pull request enhances the ActionRequirement component to support multi-paragraph descriptions by allowing the description prop to accept an array of strings. It introduces a shared utility function for parsing and cleaning description input, updates prop types, refactors rendering logic, and adds comprehensive tests and documentation. These changes improve flexibility and consistency in how descriptions are displayed across components.

Shared parsing utility:

  • Added a new utility function parseDescription in packages/yoga/src/utils/parseDescription.js to standardize how descriptions are parsed and filtered. This function is used by both components. ([packages/yoga/src/utils/parseDescription.jsR1-R10](https://github.com/gympass/yoga/pull/903/files#diff-bacc01fd24760bb29f4c68883944d26a5175d82dd4f479c3fde1eea173a66c4cR1-R10))

Platforms 📲

  • Web
  • Mobile

Type of change 🔍

  • 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)
  • This change requires a documentation update

How Has This Been Tested? 🧪

[Enter the tips to test this PR]

  • Unit Test
  • Snapshot Test

Checklist: 🔍

  • My code follows the contribution guide of this project Contributing Guide
  • Layout matches design prototype: FIGMA
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings

Screenshots 📸

Screenshot 2025-11-10 at 4 42 28 PM

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
3 Security Hotspots

See analysis details on SonarQube Cloud

@flaviafmoraes flaviafmoraes merged commit eca1555 into master Nov 18, 2025
2 of 3 checks passed
@flaviafmoraes flaviafmoraes deleted the RTN-2254 branch November 18, 2025 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants