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.
30 lines
865 B
TypeScript
30 lines
865 B
TypeScript
import * as z from 'zod';
|
|
|
|
import { defineEmail } from '../send';
|
|
import { getDefaultTemplate } from '../templates';
|
|
import { ZEmailBranding } from '../core/branding';
|
|
|
|
export const teacherCourseWelcomeEmail = defineEmail({
|
|
id: 'teacherCourseWelcome',
|
|
subject: 'You have been invited to a course!',
|
|
schema: z.object({
|
|
name: z.string().min(1),
|
|
orgName: z.string().min(1),
|
|
courseName: z.string().min(1),
|
|
inviteLink: z.url(),
|
|
branding: ZEmailBranding
|
|
}),
|
|
render: (fields) => {
|
|
const content = `
|
|
<p>Hey ${fields.name},</p>
|
|
<p>You have been given access to teach a course by ${fields.orgName}</p>
|
|
<p>The course is titled: ${fields.courseName}</p>
|
|
<div>
|
|
<a class="button" href="${fields.inviteLink}">Open Dashboard</a>
|
|
</div>
|
|
`;
|
|
|
|
return getDefaultTemplate(content, fields.branding);
|
|
}
|
|
});
|