Enhance component message handling and introduce new features
- Added `ComponentMessageBinding` model to manage message components in the database. - Updated `WelcomeConfig`, `Tag`, and `ScheduledMessage` models to support new component fields. - Integrated component handling in various modules, including Scheduler and Tags, to improve message customization. - Enhanced user experience by implementing new commands for creating and managing component messages in the utility module. - Updated localization files to reflect new component-related features and improve user guidance.
This commit is contained in:
21
apps/webui/src/app/dashboard/[guildId]/messages/page.tsx
Normal file
21
apps/webui/src/app/dashboard/[guildId]/messages/page.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { MessagesManager } from '@/components/modules/messages-manager';
|
||||
import { getLocale, t } from '@/lib/i18n';
|
||||
|
||||
interface MessagesPageProps {
|
||||
params: Promise<{ guildId: string }>;
|
||||
}
|
||||
|
||||
export default async function MessagesPage({ params }: MessagesPageProps) {
|
||||
const { guildId } = await params;
|
||||
const locale = await getLocale();
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h1 className="text-2xl font-semibold">{t(locale, 'modules.messages.label')}</h1>
|
||||
<p className="text-sm text-muted-foreground">{t(locale, 'modules.messages.description')}</p>
|
||||
</div>
|
||||
<MessagesManager guildId={guildId} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user