Skip to content
This repository has been archived by the owner on Aug 13, 2023. It is now read-only.

Spread extra props in components. #2377

Merged
merged 12 commits into from
Oct 16, 2019
Merged

Spread extra props in components. #2377

merged 12 commits into from
Oct 16, 2019

Conversation

ghost
Copy link

@ghost ghost commented Oct 11, 2019

Resolves #2376

Overall change: Spread extra props to component to keep simorgh logic on event tracking out of psammead.

Code changes:

  • Spread extra props to components to allow extra props like data-* attributes to be passed in simorgh.
    • SectionLabel
    • NavigationLi
    • Brand
    • StoryPromo
  • Updated snapshot test and added assertion tests

  • I have assigned myself to this PR and the corresponding issues
  • Automated jest tests added (for new features) or updated (for existing features)
  • This PR requires manual testing

Updates changelogs for psammead-brand, psammead-navigation, psammead-section-label, psammead-story-promo
@ghost ghost added the ws-home Tasks for the WS Home Team label Oct 11, 2019
@ghost ghost self-assigned this Oct 11, 2019
@ghost ghost marked this pull request as ready for review October 11, 2019 09:40
@ghost ghost mentioned this pull request Oct 11, 2019
3 tasks
Copy link
Contributor

@DenisHdz DenisHdz left a comment

Choose a reason for hiding this comment

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

Just a couple of things

@DenisHdz DenisHdz self-assigned this Oct 14, 2019
@DenisHdz DenisHdz modified the milestone: Event Tracking (WS FP) Oct 14, 2019
@DenisHdz DenisHdz requested a review from dr3 October 14, 2019 13:27
@tochwill
Copy link
Contributor

Just noticed that packages with breaking changes are being bumped to new minor versions - if following semver should these be major versions?

@DenisHdz
Copy link
Contributor

Just noticed that packages with breaking changes are being bumped to new minor versions - if following semver should these be major versions?

Done :)

@tochwill tochwill self-requested a review October 15, 2019 15:31
@@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
| ------- | ----------- |
| 5.0.6 | [PR#2377](https://github.com/bbc/psammead/pull/2377) Spread extra props to the component |
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be a breaking change as well, considering the others are?

Copy link
Contributor

Choose a reason for hiding this comment

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

The patch should be fine since we are not removing props as in the others.

Copy link
Contributor

@AlistairGempf AlistairGempf left a comment

Choose a reason for hiding this comment

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

All looks good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ws-home Tasks for the WS Home Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spread extra props into components for event tracking.
8 participants