feat: live class sessions, CE workflow, and docs (#683)
Adds live-class session scheduling on lessons (join link, date/time, timezone) with automatic 24h and 1h reminder emails plus a calendar invite (.ics), a time-change notification with an updated invite, a teacher-authored welcome email and session invite on enrollment, and a "Notify students" quiz nudge. LMS gets an upcoming live-sessions card and Join buttons, plus a reusable live-session card component (3 states) in @cio/ui with a Storybook story. The sidebar content tree now reflects sequential progression locking like the content list, and the course-completion confetti regression is fixed. Org-based emails no longer reference ClassroomIO by name. Docs add live-class, welcome-email, and course-progression guides, expand the certificates guide (design, signatures, corrected labels), move plan-required callouts to the top, flatten how-to-guides to the docs root with redirects, and add screenshots. Includes an add-docs-image skill.
This commit is contained in:
+19
-4
@@ -12,6 +12,7 @@
|
||||
import { CircleCheckIcon } from '$features/ui/icons';
|
||||
import { t } from '$lib/utils/functions/translations';
|
||||
import { IconButton } from '@cio/ui/custom/icon-button';
|
||||
import { RadioIcon } from '@cio/ui/custom/moving-icons';
|
||||
import CourseContentIcon from '$features/course/components/course-content-icon.svelte';
|
||||
|
||||
interface Props {
|
||||
@@ -29,6 +30,16 @@
|
||||
const canOpenContentModal = $derived(Boolean(onOpenContentModal) && !isStudent);
|
||||
</script>
|
||||
|
||||
{#snippet liveSessionDot()}
|
||||
<span
|
||||
class="shrink-0"
|
||||
title={$t('course.navItem.lessons.session.live_indicator')}
|
||||
aria-label={$t('course.navItem.lessons.session.live_indicator')}
|
||||
>
|
||||
<RadioIcon size={14} color="#ef4444" />
|
||||
</span>
|
||||
{/snippet}
|
||||
|
||||
<Sidebar.MenuSub class={className}>
|
||||
{#if contentData.grouped}
|
||||
{#each contentData.sections as section (section.id)}
|
||||
@@ -74,7 +85,7 @@
|
||||
<Sidebar.MenuSubButton isActive={(path || page.url.pathname).includes(contentItem.id)}>
|
||||
{#snippet child({ props })}
|
||||
{@const isContentLocked = (contentItem.isUnlocked ?? true) === false}
|
||||
{@const isLockedForStudent = isStudent && isContentLocked}
|
||||
{@const isLockedForStudent = isStudent && (isContentLocked || contentItem.accessible === false)}
|
||||
<a
|
||||
href={resolve(getContentRoute(id, contentItem), {})}
|
||||
aria-disabled={isLockedForStudent}
|
||||
@@ -97,7 +108,9 @@
|
||||
<CircleCheckIcon size={16} filled />
|
||||
</span>
|
||||
{/if}
|
||||
{#if isContentLocked}
|
||||
{#if contentItem.type === ContentType.Lesson && contentItem.callUrl}
|
||||
{@render liveSessionDot()}
|
||||
{:else if isContentLocked || isLockedForStudent}
|
||||
<span
|
||||
class="shrink-0"
|
||||
title={$t('course.navItem.lessons.add_lesson.lock')}
|
||||
@@ -124,7 +137,7 @@
|
||||
<Sidebar.MenuSubButton isActive={(path || page.url.pathname).includes(contentItem.id)}>
|
||||
{#snippet child({ props })}
|
||||
{@const isContentLocked = (contentItem.isUnlocked ?? true) === false}
|
||||
{@const isLockedForStudent = isStudent && isContentLocked}
|
||||
{@const isLockedForStudent = isStudent && (isContentLocked || contentItem.accessible === false)}
|
||||
<a
|
||||
href={resolve(getContentRoute(id, contentItem), {})}
|
||||
aria-disabled={isLockedForStudent}
|
||||
@@ -145,7 +158,9 @@
|
||||
<CircleCheckIcon size={16} filled />
|
||||
</span>
|
||||
{/if}
|
||||
{#if isContentLocked}
|
||||
{#if contentItem.type === ContentType.Lesson && contentItem.callUrl}
|
||||
{@render liveSessionDot()}
|
||||
{:else if isContentLocked || isLockedForStudent}
|
||||
<span
|
||||
class="shrink-0"
|
||||
title={$t('course.navItem.lessons.add_lesson.lock')}
|
||||
|
||||
Reference in New Issue
Block a user