Skip to content

Refactor - #53

Merged
pietrop merged 21 commits into
masterfrom
refactor
Dec 18, 2018
Merged

pietrop merged 21 commits into
masterfrom
refactor

Conversation

@jamesdools

Copy link
Copy Markdown
Contributor

No description provided.


const confidence = data.confidence > 0.6 ? 'high' : 'low';
generateConfidence = (data) => {
return data.confidence > 0.6 ? 'high' : 'low';

@pietrop pietrop Dec 17, 2018 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

There's an edge case, when the confidence score it's not provided. we should think about how to handle that. coz with the current setup, everything is then mark as low confidence, which is not very helpful.

screen shot 2018-12-17 at 17 21 08

But yeah this could be a separate ticket.

@pietrop

pietrop commented Dec 17, 2018

Copy link
Copy Markdown
Contributor

I'd suggest possibly merging PR #54 (comment) into this branch, before merging to master, as it has a fix on the splitting paragraph issue. and fixing the merge conflict on that refactor shouldn't be too bad 🤞. 

jamesdools and others added 3 commits December 17, 2018 19:23
A bit of cleanup with leftover functions still to do. Trying to sync state between the component and html player. isPauseWhileTypingOn wasn't being set, so moved that state to parent component and logic to the editor
@pietrop

pietrop commented Dec 17, 2018

Copy link
Copy Markdown
Contributor

defaultHotKeys.js line 5 needs to be set to handler: ( ) => { self.togglePlayMedia(); }, to enable keyboard shortcut

@pietrop

pietrop commented Dec 17, 2018 •

Copy link
Copy Markdown
Contributor

The latest commit of moving the play/pause in the state before changing the video element, might be causing performance issues when using pauseWhileTyping.

When you start typing you would get a significant delay, where you won't see the text being updated on screen. until you stop typing. this might be is a new bug(?).

Pietro Passarelli - News Labs added 4 commits December 18, 2018 13:42
there where two functions doing the same thing
 if confidence scores not present then mark all as high -eg importing from autoEdit or other providers that don't have confidence scored
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