chore: marketing updates and video player improvement

This commit is contained in:
Rotimi Best
2026-05-22 01:28:18 +01:00
parent f0fad9512c
commit 4fdd4115b9
13 changed files with 211 additions and 17 deletions
@@ -10,6 +10,7 @@ import { get } from 'svelte/store';
import { goto } from '$app/navigation';
import { handleLocaleChange } from '$lib/utils/functions/translations';
import { identifyPosthogUser } from '$lib/utils/services/posthog';
import { identifyUserJotUser } from '$lib/utils/services/userjot';
import { isOrgStudent } from '$lib/utils/store/app';
import { isPublicRoute } from '$lib/utils/functions/routes/isPublicRoute';
import { licenseApi } from '$features/license/api/license.svelte';
@@ -231,6 +232,13 @@ class AppInitApi extends BaseApi {
email: profileStore.email,
name: profileStore.fullname
});
identifyUserJotUser({
id: profileStore.id,
email: profileStore.email,
fullname: profileStore.fullname,
avatarUrl: profileStore.avatarUrl
});
}
reset() {
@@ -24,13 +24,19 @@
<Dialog.Root
bind:open={$lessonVideoUpload.isModalOpen}
onOpenChange={(details) => {
if (!details.open && $lessonVideoUpload.isUploading) return;
if (!details.open) onClose();
onOpenChange={(open) => {
if (!open) onClose();
}}
>
<Dialog.Content
class="flex max-h-[680px] max-w-2xl! flex-col overflow-hidden"
showCloseButton={!$lessonVideoUpload.isUploading}
onEscapeKeydown={(e) => {
if ($lessonVideoUpload.isUploading) e.preventDefault();
}}
onInteractOutside={(e) => {
if ($lessonVideoUpload.isUploading) e.preventDefault();
}}
onCloseAutoFocus={(e) => {
if ($lessonVideoUpload.isUploading) e.preventDefault();
}}
@@ -42,7 +48,11 @@
<UnderlineTabs.Root bind:value={currentTab} class="">
<UnderlineTabs.List>
{#each tabs as item (item.value)}
<UnderlineTabs.Trigger value={String(item.value)} class="ui:flex ui:items-center ui:gap-2">
<UnderlineTabs.Trigger
value={String(item.value)}
disabled={$lessonVideoUpload.isUploading && currentTab !== String(item.value)}
class="ui:flex ui:items-center ui:gap-2"
>
{#if $isFreePlan && item.value === 3}
<ZapIcon size={16} class="filled" />
{:else}
@@ -581,12 +581,22 @@
</Table.Body>
</Table.Root>
{:else}
<Empty title={$t('course.navItem.compliance.empty_overview')} icon={ShieldCheckIcon} variant="page" />
<Empty
title={$t('course.navItem.compliance.empty_overview')}
description={$t('course.navItem.compliance.empty_overview_description')}
icon={ShieldCheckIcon}
variant="page"
/>
{/if}
</Tabs.Content>
</Tabs.Root>
{:else}
<Empty title={$t('course.navItem.compliance.empty_overview')} icon={ShieldCheckIcon} variant="page" />
<Empty
title={$t('course.navItem.compliance.empty_overview')}
description={$t('course.navItem.compliance.empty_overview_description')}
icon={ShieldCheckIcon}
variant="page"
/>
{/if}
<Dialog.Root bind:open={isBulkActionModalOpen} onOpenChange={handleBulkActionModalChange}>