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

docs(PPDSC-2290): Audio player documentation #353

Merged
merged 24 commits into from
Sep 6, 2022

Conversation

Srinivasan-Ramasamy
Copy link
Contributor

@Srinivasan-Ramasamy Srinivasan-Ramasamy commented Aug 30, 2022

PPDSC-2290

What

  1. Audio player documentation UI - http://ncu-newskit-docs.s3-website-eu-west-1.amazonaws.com/ppdsc-2290-audio-player-documentation/components/audio-player/
  2. Previous audio player page (existing users can still access the docs) - http://ncu-newskit-docs.s3-website-eu-west-1.amazonaws.com/ppdsc-2290-audio-player-documentation/components/audio-player-old/

I have done:

  • Written unit tests against changes
  • Written functional tests against the component and/or NewsKit site
  • Updated relevant documentation

I have tested manually:

  • The feature's functionality is working as expected on Chrome, Firefox, Safari and Edge
  • The screen reader reads and flows through the elements as expected.
  • There are no new errors in the browser console coming from this PR.
  • When visual test is not added, it renders correctly on different browsers and mobile viewports (Safari, Firefox, small mobile viewport, tablet)
  • The Playground feature is working as expected

Before:

After:

image

Who should review this PR:

How to test:

URL: http://ncu-newskit-docs.s3-website-eu-west-1.amazonaws.com/ppdsc-2290-audio-player-documentation/components/audio-player/

@Srinivasan-Ramasamy Srinivasan-Ramasamy added docs Improvements or additions to documentation WIP Work in progress labels Aug 30, 2022
@Srinivasan-Ramasamy Srinivasan-Ramasamy added the ready for design review Please assist in getting this reviewed label Aug 30, 2022
@Srinivasan-Ramasamy Srinivasan-Ramasamy removed the ready for design review Please assist in getting this reviewed label Sep 1, 2022
@Srinivasan-Ramasamy Srinivasan-Ramasamy added ready for review Please assist in getting this reviewed and removed WIP Work in progress labels Sep 1, 2022
@Vanals
Copy link
Contributor

Vanals commented Sep 1, 2022

Hey Srini it looks good to me! I was just testing the page and noticed the table we use is not responsive. I wonder if is something designers are aware and are testing?
If they agree and is something to fix, could you maybe raise a ticket? Does not look a good experience for certain breakpoints, in some is not readable at all.

table-responsiviness.mp4

Vanals
Vanals previously approved these changes Sep 1, 2022
@Srinivasan-Ramasamy
Copy link
Contributor Author

Hey Srini it looks good to me! I was just testing the page and noticed the table we use is not responsive. I wonder if is something designers are aware and are testing? If they agree and is something to fix, could you maybe raise a ticket? Does not look a good experience for certain breakpoints, in some is not readable at all.

table-responsiviness.mp4

@Vanals Thank you for taking your time for the review.

Thanks for capturing this scenarios 💯

Current table structure whenever more column with data it showing horizontal scroll bar to look at the hidden column data(Without any blocker to the users). It's very difficult to do the responsive in table with td dom structure. Till 1024 breakpoint, we're hiding the side nav so we can able to the full table. Please suggest?

Here is the few screen shots:

image

image

Comment on lines 1656 to 1694
title: 'SelectionList',
summary:
'The SelectionList has a range of props that can be used to define an appropriate experience for different use cases.',
propsRows: [
{
name: 'children',
type: 'React.ReactElement<SelectionListOptionProps>[]',
default: '',
description: 'An array of SelectionListOptions components.',
required: true,
},
],
},
{
title: 'SelectionListOption',
summary:
'The SelectionListOption has a range of props that can be used to define an appropriate experience for different use cases.',
propsRows: [
{
name: 'children',
type: 'React.ReactNode',
default: '',
description: 'Contents of the SelectionListOption',
required: true,
},
{
name: 'selected',
type: 'boolean',
default: 'false',
description: 'The selected state of the SelectionListOption',
},
{
name: 'selectedIcon',
type: 'React.ReactNode',
default: 'IconFilledCheck',
description: 'Icon(s) of the SelectionListOption',
},
],
overridesRows: [
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO we should not show Selection List and Selection List Option components here. they are internal ones.
We should add only overrides but as part of Speed Control. Maybe we can ask Mike when is back

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure @mutebg, we will check with Mike and update accordingly. Thanks for your review 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @Srinivasan-Ramasamy to Stoyan's point regarding the Selection List and Selection List Option components, I would say we should move the overrides that are currently attributed to both in those sections, under the Playback Speed Control section.

See the updates here in Confluence: [https://nidigitalsolutions.jira.com/wiki/spaces/NPP/pages/3933962254/Audio+Player+Component+-+Web+Documentation#Playback-Speed-Control.1]

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like there is a missing inline message under the Playback Speed Control in the API section also to say:

This component should extend the overrides of the Popover and Modal components.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @messmike for the confirmation 👍

I've updated the changes in same PR url. Please review it once. http://ncu-newskit-docs.s3-website-eu-west-1.amazonaws.com/ppdsc-2290-audio-player-documentation/components/audio-player/

Inline message was kepted inside the Overrides tab, Now I've moved to default visibile.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you @Srinivasan-Ramasamy, this looks great, all looks good to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks Mike 👍

@messmike
Copy link
Contributor

messmike commented Sep 5, 2022

Hey Srini it looks good to me! I was just testing the page and noticed the table we use is not responsive. I wonder if is something designers are aware and are testing? If they agree and is something to fix, could you maybe raise a ticket? Does not look a good experience for certain breakpoints, in some is not readable at all.

table-responsiviness.mp4

This is a good point @Vanals, we have a ticket in the backlog to look at this: https://nidigitalsolutions.jira.com/browse/PPNKD-531

@Srinivasan-Ramasamy Srinivasan-Ramasamy merged commit fd0a727 into main Sep 6, 2022
@Srinivasan-Ramasamy Srinivasan-Ramasamy deleted the docs/PPDSC-2290-audio-player-documentation branch September 6, 2022 09:50
Xin00163 pushed a commit that referenced this pull request Oct 17, 2022
* docs(PPDSC-2290): Audio player documentation ui.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation ready for review Please assist in getting this reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants