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

[Highlighter] - Ui update export flow #5328

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

marvinoffers
Copy link
Contributor

Cancellation is not working on prod and therefore also not in this PR.
Will fix that in a separate PR.

# Conflicts:
#	app/services/highlighter/index.ts
#	app/services/highlighter/models/ai-highlighter.models.ts
@@ -108,10 +132,11 @@ function ExportModal({ close, streamId }: { close: () => void; streamId: string
// Clear all errors when this component unmounts
useEffect(() => unmount, []);

if (exportInfo.exporting) return <ExportProgress />;
if (!exportInfo.exported) {
// if (exportInfo.exporting) return <ExportProgress />;
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 be deleted?

</div>
<div style={{ display: 'flex', gap: '16px' }}>
<div className={styles.settingsAndProgress}>
<div className={`${styles.pathWrapper} ${isExporting ? styles.isDisabled : ''}`}>
Copy link
Contributor

Choose a reason for hiding this comment

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

we use a library classnames to help with dynamic css classes like this, you can search cx( in our codebase to see some examples

<FileInput
label={$t('Export Location')}
name="exportLocation"
save={true}
Copy link
Contributor

Choose a reason for hiding this comment

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

if you're using a truthy boolean property you can omit the ={true} :D

? { objectPosition: 'left' }
: { objectPosition: `-${(SCRUB_WIDTH * 1.32) / 3 + 4}px` }
}
alt=""
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure why this is here?

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