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

feat(controls): Add MP3 settings controls #1343

Merged
merged 2 commits into from
Mar 16, 2021

Conversation

jstoffan
Copy link
Collaborator

Final PR for the changes described in #1340. I'll also open a separate PR to add support global keydown handling for play rate changes.

@jstoffan jstoffan requested a review from a team as a code owner March 16, 2021 00:30
Copy link
Contributor

@ConradJChan ConradJChan left a comment

Choose a reason for hiding this comment

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

Like how clean the menus look!

});

describe('event handlers', () => {
test('should surface the selected item on change', () => {
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 test the false option as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure it's necessary, since the underlying logic is the same. Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess in terms of testing event handlers, that true. Just thought a test to assert the expected options in the menu might be good

src/lib/viewers/media/MP3SettingsControls.tsx Outdated Show resolved Hide resolved
src/lib/viewers/media/__tests__/MP3Controls-test.jsx Outdated Show resolved Hide resolved
@jstoffan
Copy link
Collaborator Author

Thanks for the reviews, @ConradJChan!

@jstoffan jstoffan merged commit 76f6e1a into box:master Mar 16, 2021
@jstoffan jstoffan deleted the controls-setting-3 branch March 16, 2021 20:20
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.

2 participants