Enhance dashboard overview with activity summary and sidebar commands
- Integrated activity summary into the Guild Overview page, displaying message count, voice minutes, and active user count for the last 7 days. - Updated sidebar to include a new "Commands" link for easier navigation. - Added corresponding localization keys for activity metrics in both English and German JSON files.
This commit is contained in:
22
apps/webui/src/app/dashboard/[guildId]/commands/page.tsx
Normal file
22
apps/webui/src/app/dashboard/[guildId]/commands/page.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { CommandsManager } from '@/components/modules/commands-manager';
|
||||
import { getLocale, t } from '@/lib/i18n';
|
||||
import { listCommandOverridesDashboard } from '@/lib/module-configs/commands';
|
||||
|
||||
interface CommandsPageProps {
|
||||
params: Promise<{ guildId: string }>;
|
||||
}
|
||||
|
||||
export default async function CommandsPage({ params }: CommandsPageProps) {
|
||||
const { guildId } = await params;
|
||||
const [locale, commands] = await Promise.all([getLocale(), listCommandOverridesDashboard(guildId)]);
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h1 className="text-2xl font-semibold">{t(locale, 'modulePages.commands.title')}</h1>
|
||||
<p className="text-sm text-muted-foreground">{t(locale, 'modulePages.commands.description')}</p>
|
||||
</div>
|
||||
<CommandsManager guildId={guildId} initialCommands={commands} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user