diff --git a/.gitignore b/.gitignore index 42cec3a..e97b883 100644 --- a/.gitignore +++ b/.gitignore @@ -50,4 +50,6 @@ slack-import-emojis/target .idea -/apps/docs/src/content/docs/typedoc-sdk \ No newline at end of file +/apps/docs/src/content/docs/typedoc-sdk + +.codex \ No newline at end of file diff --git a/apps/web/src/app/(ui)/(protected)/settings/channel/[channelName]/page.client.tsx b/apps/web/src/app/(ui)/(protected)/settings/channel/[channelName]/page.client.tsx index f04ead4..0df057b 100644 --- a/apps/web/src/app/(ui)/(protected)/settings/channel/[channelName]/page.client.tsx +++ b/apps/web/src/app/(ui)/(protected)/settings/channel/[channelName]/page.client.tsx @@ -39,6 +39,7 @@ import { editStreamInfo, changeUsername, updateChatModeration, + updateNotificationChannels, } from '@/lib/form/actions'; import { Switch } from '@/components/ui/switch'; import { toast } from 'sonner'; @@ -80,6 +81,7 @@ import { } from '@/components/ui/select'; import { getMediamtxClientEnvs } from '@/lib/utils/mediamtx/client'; import type { MediaMTXRegion } from '@/lib/utils/mediamtx/regions'; +import { Textarea } from '@/components/ui/textarea'; interface ChannelSettingsClientProps { channel: Channel & { @@ -107,7 +109,6 @@ interface ChannelSettingsClientProps { export default function ChannelSettingsClient({ channel, isOwner, - currentUser, isPersonal, }: ChannelSettingsClientProps) { const confirm = useConfirm(); @@ -143,6 +144,12 @@ export default function ChannelSettingsClient({ } }, []); + const handleNotifChannelsActionComplete = useCallback((result: any) => { + if (result?.success) { + toast.success('Notification channels updated'); + } + }, []); + const handleUsernameChangeComplete = useCallback( (result: any) => { if (result?.success && result?.newUsername) { @@ -276,9 +283,9 @@ export default function ChannelSettingsClient({ Moderation - + - Utilities + Integrations @@ -1053,11 +1060,13 @@ export default function ChannelSettingsClient({ - + - Utilities - OBS overlays, APIs... everything in one neat place! + Integrations + + OBS overlays, Slack... everything in one neat place! +
@@ -1075,11 +1084,58 @@ export default function ChannelSettingsClient({ className="w-full px-3 py-2 border rounded-md bg-mantle font-mono text-sm" />
- + ( +
+ +