feat(web): register Federation tab in instance settings

This commit is contained in:
Jannis Braun
2026-04-01 01:23:56 +02:00
parent 3265670047
commit f49c2b5488
2 changed files with 14 additions and 1 deletions
@@ -0,0 +1,10 @@
export function FederationPanel() {
return (
<div className="space-y-5">
<h2 className="text-lg font-semibold text-txt-primary">Federation</h2>
<div className="text-xs text-txt-tertiary">
Configure federation relay, secret rotation, and manage peered instances.
</div>
</div>
);
}
@@ -4,14 +4,16 @@ import { useSettingsSections } from '../../../hooks/useSettingsSections';
import type { SettingsSection } from '../SettingsSectionsContext';
import { SettingsTabBar } from '../SettingsTabBar';
import { GeneralPanel } from '../instanceSettingsPanels/GeneralPanel';
import { FederationPanel } from '../instanceSettingsPanels/FederationPanel';
import { StreamingPanel } from '../instanceSettingsPanels/StreamingPanel';
import { StoragePanel } from '../instanceSettingsPanels/StoragePanel';
import { UsersPanel } from '../instanceSettingsPanels/UsersPanel';
type SubTab = 'general' | 'streaming' | 'storage' | 'users';
type SubTab = 'general' | 'federation' | 'streaming' | 'storage' | 'users';
const SECTIONS: SettingsSection[] = [
{ id: 'general', label: 'General' },
{ id: 'federation', label: 'Federation' },
{ id: 'streaming', label: 'Streaming' },
{ id: 'storage', label: 'Storage' },
{ id: 'users', label: 'Users' },
@@ -40,6 +42,7 @@ export function InstancePanel() {
<SettingsTabBar />
{subTab === 'general' && <GeneralPanel />}
{subTab === 'federation' && <FederationPanel />}
{subTab === 'streaming' && <StreamingPanel />}
{subTab === 'storage' && <StoragePanel />}
{subTab === 'users' && <UsersPanel />}