feat: add organization email templates management

- Created a new SQL migration to establish the organization_email_templates table with necessary fields and default templates for common events.
- Implemented CRUD operations for email templates in Rust, including listing, creating, updating, and deleting templates.
- Developed a React component for managing email templates, allowing users to create, edit, and delete templates with a user-friendly interface.
This commit is contained in:
2026-04-15 10:26:44 -04:00
parent e1d5975e57
commit 6f8b723d64
18 changed files with 997 additions and 36 deletions
+2
View File
@@ -2,6 +2,7 @@
import BrandingSettings from "@/components/BrandingSettings";
import EmailSettings from "@/components/EmailSettings";
import EmailTemplates from "@/components/EmailTemplates";
import ExerciseFeatureSettings from "@/components/ExerciseFeatureSettings";
import PageLayout from "@/components/PageLayout";
import { useAuth } from "@/context/AuthContext";
@@ -30,6 +31,7 @@ export default function SettingsPage() {
<div className="space-y-8">
<BrandingSettings />
<EmailSettings />
<EmailTemplates />
<ExerciseFeatureSettings />
</div>
</PageLayout>