diff --git a/README.md b/README.md index 9bef3a2..944806a 100644 --- a/README.md +++ b/README.md @@ -67,8 +67,11 @@ EVE_SSO_CLIENT_ID=Client ID EVE_SSO_SECRET=Secret Key EVE_SSO_CALLBACK_URL=Callback URL (This should be the domain you are hosting at or if run locally it should be http://localhost:3000) -# Webhook Configuration (optional) -WEBHOOK_URL=Discord webhook URL for notifications +# Zulip Configuration (optional) +ZULIP_URL=https://zulip.site.quack-lab.dev/api/v1/messages +ZULIP_EMAIL=evepi-bot@zulip.site.quack-lab.dev +ZULIP_API_KEY=9LlHp6flAGWF0x5KZnyMJTM3qm4CiHkn +ZULIP_STREAM=EvePI ``` ## Run locally diff --git a/src/app/components/Settings/SettingsButtons.tsx b/src/app/components/Settings/SettingsButtons.tsx index bad05db..2feb14b 100644 --- a/src/app/components/Settings/SettingsButtons.tsx +++ b/src/app/components/Settings/SettingsButtons.tsx @@ -170,23 +170,66 @@ export const SettingsButton = () => { Webhook Notifications - Configure alerts for extractor expiry and storage capacity warnings. - {!webhookServerEnabled && " (Server webhook support not available - WEBHOOK_URL not configured)"} + Configure Zulip alerts for extractor expiry and storage capacity warnings. } label="Enable webhook notifications" /> - {webhookConfig.enabled && webhookServerEnabled && ( + {webhookConfig.enabled && ( <> + Zulip Configuration + + setWebhookConfig(prev => ({ ...prev, zulipUrl: e.target.value }))} + fullWidth + margin="normal" + placeholder="https://zulip.site.quack-lab.dev/api/v1/messages" + helperText="Zulip API endpoint URL" + /> + + setWebhookConfig(prev => ({ ...prev, zulipEmail: e.target.value }))} + fullWidth + margin="normal" + placeholder="evepi-bot@zulip.site.quack-lab.dev" + helperText="Bot email for authentication" + /> + + setWebhookConfig(prev => ({ ...prev, zulipApiKey: e.target.value }))} + fullWidth + margin="normal" + placeholder="9LlHp6flAGWF0x5KZnyMJTM3qm4CiHkn" + helperText="API key for authentication" + /> + + setWebhookConfig(prev => ({ ...prev, zulipStream: e.target.value }))} + fullWidth + margin="normal" + placeholder="EvePI" + helperText="Stream name for messages" + /> + + Alert Thresholds + { />