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

Move Media Icons from psammead-media-indicator into psammead-assets #2115

Merged
merged 16 commits into from
Sep 18, 2019

Conversation

OlgaLyubin
Copy link
Contributor

Resolves #1834

Overall change:
Moved Media Icons SVGs from psammead-media-indicator into psammead-assets so that they could be used by other components.

Code changes:
Moved media icons into psammead-assets.
Bumped up the version of psammead-assets and included them as dependencies of psammead-media-indicator.


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

@OlgaLyubin OlgaLyubin added ws-home Tasks for the WS Home Team shared-components ws-media The World Service media stream labels Sep 12, 2019
@OlgaLyubin OlgaLyubin self-assigned this Sep 12, 2019
Copy link
Contributor

@ryanmccombe ryanmccombe left a comment

Choose a reason for hiding this comment

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

Needs package-lock.json, package.json and changelog.md update on both packages

Copy link
Contributor

@Bopchy Bopchy left a comment

Choose a reason for hiding this comment

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

Looks good. Though as mentioned package.json, package-lock.json and CHANGELOG.md need to be updated for @bbc/psammead-media-indicator, and CHANGELOG.md needs to be updated for @bbc/psammead-assets

@OlgaLyubin
Copy link
Contributor Author

OlgaLyubin commented Sep 16, 2019

I removed all of my changes for psammead-media-indicator and just left the work for psammead-assets . The reason for this is that before I can use media icons from psammead-assets, the new version of assets should be merged into Psammead. After this PR is merged I will create a new PR to pull in media SVGs into psammead-media-indicator .

Copy link
Contributor

@EinsteinNjoroge EinsteinNjoroge left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Looks good for the first step.

@OlgaLyubin
Copy link
Contributor Author

Shouldn't we remove the mediaIcons.jsx file from the psammead-media-indicator package as well?

So for now I am not removing anything from psammead-media-indicator because it is still used. When psammead-assets gets merged, then I will make changes to psammead-media-indicator including deleting the mediaIcons.jsx file.

Copy link
Contributor

@dr3 dr3 left a comment

Choose a reason for hiding this comment

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

LGTM, can you raise an issue to add these media icons to storybook as isolated stories please :)

Copy link
Contributor

@sareh sareh left a comment

Choose a reason for hiding this comment

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

Looks great. Just a point about naming consistently.

packages/utilities/psammead-assets/src/svgs/mediaIcons.jsx Outdated Show resolved Hide resolved
packages/utilities/psammead-assets/src/svgs.jsx Outdated Show resolved Hide resolved
Copy link
Contributor

@sareh sareh left a comment

Choose a reason for hiding this comment

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

👍 Thanks for the updates, @OlgaLyubin! Looks great.

@staylos92 staylos92 self-assigned this Sep 18, 2019
@staylos92
Copy link
Contributor

LGTM 👍

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

Successfully merging this pull request may close these issues.

Move Media Icons from psammead-media-indicator/mediaIcons into psammead-assets
9 participants