Merge branch 'main' of https://github.com/classroomio/classroomio into feat/release-v2

This commit is contained in:
Rotimi Best
2025-12-24 04:18:39 +00:00
193 changed files with 10584 additions and 6399 deletions
@@ -78,6 +78,12 @@
async function handleSaveCustomDomain() {
if (!isDomainValid) return;
// Prevent free plan users from bypassing UI restrictions
if ($isFreePlan) {
errors.customDomain = 'Custom domains are only available on paid plans';
return;
}
const sanitizedDomain = sanitizeDomain(customDomain);
const details = parse(sanitizedDomain);
@@ -24,6 +24,12 @@
let isRemoving: number | null = $state(null);
async function onSendInvite() {
// Prevent free plan users from bypassing UI restrictions
if ($isFreePlan) {
snackbar.error('upgrade.required');
return;
}
const { hasError, error: _error, emails } = validateEmailInString(emailsStr);
if (hasError) {
@@ -48,6 +54,12 @@
}
async function onRemove(id: number) {
// Prevent free plan users from bypassing UI restrictions
if ($isFreePlan) {
snackbar.error('upgrade.required');
return;
}
isRemoving = id;
await orgApi.removeTeamMember($currentOrg.id, id);