Implement Owner Panel features and maintenance mode handling
- Introduced the Owner Panel with new routes and UI components for managing guilds, user blacklists, feature flags, and bot presence. - Added maintenance mode functionality to prevent non-owner users from executing commands during maintenance periods. - Enhanced localization with new keys for Owner Panel features in both English and German. - Updated job processing to include a presence refresh job, ensuring the bot's status is regularly updated. - Improved environment configuration to support owner user IDs for access control.
This commit is contained in:
21
apps/webui/src/app/owner/team/page.tsx
Normal file
21
apps/webui/src/app/owner/team/page.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { TeamManager } from '@/components/owner/owner-forms';
|
||||
import { env } from '@/lib/env';
|
||||
import { getLocale, t } from '@/lib/i18n';
|
||||
import { prisma } from '@/lib/prisma';
|
||||
|
||||
export default async function OwnerTeamPage() {
|
||||
const [locale, members] = await Promise.all([
|
||||
getLocale(),
|
||||
prisma.ownerTeamMember.findMany({ orderBy: { createdAt: 'asc' } })
|
||||
]);
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div>
|
||||
<h1 className="text-2xl font-semibold">{t(locale, 'owner.team.title')}</h1>
|
||||
<p className="text-sm text-muted-foreground">{t(locale, 'owner.team.subtitle')}</p>
|
||||
</div>
|
||||
<TeamManager bootstrapOwnerIds={env.OWNER_USER_IDS ?? []} initialMembers={members} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user