From 985728abb652e283964acae5aef5ccd9b615886c Mon Sep 17 00:00:00 2001 From: lorentz Date: Mon, 11 May 2026 06:43:42 -0400 Subject: [PATCH] fix(09.1-01): ProfileChannelsSection QR + subscribe link target company ntfy server MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add NTFY_BASE const (NEXT_PUBLIC_NTFY_BASE_URL || 'https://ntfy.wulfconsulting.cloud') at module scope - Subscribe link href and rendered text use NTFY_BASE instead of ntfy.sh - QRCodeSVG value uses NTFY_BASE — ntfy.sh no longer referenced in file - Add muted help line 'Topic must start with pulse-me-' between custom-topic Input and error paragraph --- .../mobile/profile/ProfileChannelsSection.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/components/mobile/profile/ProfileChannelsSection.tsx b/components/mobile/profile/ProfileChannelsSection.tsx index 16e84cf..2cd580b 100644 --- a/components/mobile/profile/ProfileChannelsSection.tsx +++ b/components/mobile/profile/ProfileChannelsSection.tsx @@ -28,6 +28,12 @@ import { Button } from '@/components/ui/button'; import { Label } from '@/components/ui/label'; import { Separator } from '@/components/ui/separator'; +// Personal ntfy channels target the company ntfy instance. The fallback +// matches the server-side default in personal-channels.ts / notify.ts so +// the UI and the publish path stay aligned even when the env var is unset +// in a dev shell (UAT-FIX-01). +const NTFY_BASE = process.env.NEXT_PUBLIC_NTFY_BASE_URL || 'https://ntfy.wulfconsulting.cloud'; + // ── Types ──────────────────────────────────────────────────────────────────── interface Channel { @@ -279,12 +285,12 @@ export function ProfileChannelsSection() { /* State B — topic minted */
- {`https://ntfy.sh/${ntfyTopic}`} + {`${NTFY_BASE}/${ntfyTopic}`}
- +

@@ -315,6 +321,9 @@ export function ProfileChannelsSection() { setCustomTopicError(null); }} /> +

+ Topic must start with pulse-me-. +

{customTopicError && (

{customTopicError}

)}