Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDAN-726. Add the media icons (video, audio) to the home page dashboard display, article preview and article view #1186

Merged
merged 8 commits into from
Apr 23, 2024

Conversation

rbi-aap
Copy link

@rbi-aap rbi-aap commented Apr 9, 2024

Add the media icons (video, audio) to the home page dashboard display, article preview and article view.

Please review, thanks

Add the media icons (video, audio) to the home page dashboard display, article preview and article view.
@@ -19,6 +21,12 @@ CardFooter.propTypes = {
pictureAvailable: PropTypes.bool,
source: PropTypes.string,
versioncreated: PropTypes.string,
audioIf: PropTypes.array,
Copy link
Contributor

Choose a reason for hiding this comment

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

What does audioIf and videoIf stand for? A more descriptive naming convention would help other developers know what it is used for, for example pictureAvailable tells us that this property defines if a picture is available or not which also tells us it's value is a boolean.

@MarkLark86
Copy link
Contributor

@rbi-aap A more descriptive commit title would help describe what the change is, without looking up the ticket in Jira. This helps, for example, when searching for a specific change using the history of file changes and/or commit titles.

@@ -2,9 +2,11 @@ import React from 'react';
import PropTypes from 'prop-types';
import CardMeta from './CardMeta';

function CardFooter({wordCount, pictureAvailable, source, versioncreated}) {
function CardFooter({wordCount, pictureAvailable, source, versioncreated, audioAvailable,videoAvailable }) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Small thing style thing, maybe a space after the comma like the other parameters!

@MarkLark86
Copy link
Contributor

@rbi-aap Could you please change the commit title to something more descriptive to define what is changed in this PR

@rbi-aap rbi-aap changed the title update version for the https://sofab.atlassian.net/browse/SDAN-726 SDAN-726. Add the media icons (video, audio) to the home page dashboard display, article preview and article view Apr 12, 2024
@marwoodandrew marwoodandrew merged commit fa2a2b8 into superdesk:lockhart Apr 23, 2024
6 of 7 checks passed
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.

3 participants