-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: zoom closed caption API integration (#640)
* refactor(frontend/settings): create tools category * feat(frontend/settings): add livestream settings option * build(backend): add node-fetch * feat(backend): util to post line data to zoom closed captions * feat(backend) post line data received to zoom for closed captions * feat(frontend/settings): create text field component * feat(frontend/settings): use DynamicOptions * feat(backend): get zoom api key from frontend and push to api * feat(frontend/settings): rename Live Stream to Closed Captioning * fix(backend): set zoom api token in session when getting client settings * refactor(frontend/settings): rename TextInput option type to textInput * feat(frontend/settings): change about icon to info * refactor: rename livestream setting to closedCaptioning * fix(frontend/settings): render known option groups * fix(app): add default closedCaptionining setting group * fix(frontend/settings): remove livestream settings component and add default dynamic options for tools * perf(frontend/settings): use defaultValue for TextInputs for better UX * refactor(backend): handle zoom functionality in separate controller * refactor(frontend): move line utilities and auto jump utilities into separate files * refactor(backend): fetch zoom api token directly from settings * refactor(frontend): move Shabad OS data constants into separate file * feat(frontend/settings): add theme-consistent styling to TextInput component * fix(frontend/settings): autosave text inputs on blur * refactor(frontend): use getTranslations in useTranslations hook * refactor: return recommendedSources instead of recommended from db * feat: add support for Zoom closed captioning options * feat(frontend/settings): add custom text to closed captioning settings * fix(backend): add larivaar to zoom transliterations * refactor: rename closedCaptioning to closedCaptions * feat(frontend/settings): add edit status check mark to text fields * fix(backend): replace spaces in zoom controller with regex * feat(frontent/settings): select text on focus * feat: hide saved checkmark after 3 seconds * fix: save icon animations Co-authored-by: Bhajneet S.K. <bhajneet@gmail.com> Co-authored-by: Harjot Singh <harjot@harkul.com>
- Loading branch information
1 parent
924e9d0
commit d6ddfbc
Showing
33 changed files
with
793 additions
and
394 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.closed-caption-settings { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.closed-caption-settings .buttons { | ||
margin: 30px 0; | ||
} | ||
|
||
.closed-caption-settings + .buttons { | ||
margin-top: 0px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from 'react' | ||
|
||
import { Grid, Typography } from '@material-ui/core' | ||
|
||
import TutorialButton from './TutorialButton' | ||
import DynamicOptions, { slotSizes, OptionGrid } from './DynamicOptions' | ||
|
||
import './ClosedCaptionSettings.css' | ||
|
||
const ClosedCaptionSettings = () => ( | ||
<div className="closed-caption-settings"> | ||
<OptionGrid container> | ||
<Grid item {...slotSizes.single}> | ||
<Typography> | ||
Closed captioning integrates the currently active line of Shabad OS into the built-in | ||
subtitle features of 3rd party services, such as YouTube, Facebook, or Zoom. Currently | ||
only Zoom meetings are supported. | ||
</Typography> | ||
</Grid> | ||
</OptionGrid> | ||
|
||
<OptionGrid container align="center"> | ||
<Grid item {...slotSizes.single} className="buttons"> | ||
<TutorialButton href="https://docs.shabados.com/presenter/guides/integrating-closed-captioning-in-zoom-meetings"> | ||
Learn More | ||
</TutorialButton> | ||
</Grid> | ||
</OptionGrid> | ||
|
||
<DynamicOptions device="global" group="closedCaptions" /> | ||
</div> | ||
) | ||
|
||
export default ClosedCaptionSettings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.