diff --git a/AGENTS.md b/AGENTS.md index f5dd8f5..cebef66 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2134,7 +2134,10 @@ The community relay moved off the hosted relay.tools instance default; **Settings → Coordinator** shows a "Use SkateSpots coordinator" block and **CrewForm** prefills it for new crews. Disclosure copy lives in `socialUi.coordinator.ourDefault*` + the existing `privacyNote` (coordinators see - ciphertext + metadata, never contents). + ciphertext + metadata, never contents). `CrewCoordinatorCard` shows an **"Open in + Staircase"** link (`coordinatorAddUrl`) in both branches (the native Cordn client + for real MLS) — our coordinator by default, a BYO coordinator's add-link when it + has a pubkey. - **Cutover (2026-10-12):** `SKATE_RELAY` (`src/lib/types.ts`) → the new relay; the default pools, the DM/CVM/zap relay arrays, the `cvm-server` + `push-service` defaults, and the archive default all point at the new relay. diff --git a/src/components/crew/CrewCoordinatorCard.tsx b/src/components/crew/CrewCoordinatorCard.tsx index 8568a9e..935b580 100644 --- a/src/components/crew/CrewCoordinatorCard.tsx +++ b/src/components/crew/CrewCoordinatorCard.tsx @@ -7,7 +7,7 @@ import { useTranslation } from '@/contexts/language'; import { genUserName } from '@/lib/genUserName'; import { sanitizeUrl, urlDomain } from '@/lib/sanitizeUrl'; import { resolveCordnEndpoint } from '@/lib/cordn/endpoint'; -import { CORDN_RELAY_URL } from '@/lib/coordinator'; +import { CORDN_RELAY_URL, coordinatorAddUrl, CORDN_HOME, SKATESPOTS_COORDINATOR } from '@/lib/coordinator'; import type { CrewCoordinator, SkateCrew } from '@/lib/types'; import { nip19 } from 'nostr-tools'; @@ -61,6 +61,7 @@ export function CrewCoordinatorCard({ {t('socialUi.crewCoordinator.chatWord')} {t('socialUi.crewCoordinator.defaultB')}{' '} {t('socialUi.crewCoordinator.e2ee')} {t('socialUi.crewCoordinator.defaultC')}
+
{t('socialUi.crewCoordinator.advancedA')}{' '}
@@ -101,6 +102,13 @@ export function CrewCoordinatorCard({
{coordinator.operator &&
{t('socialUi.crewCoordinator.deliveredOver')}{' '}
@@ -135,6 +143,25 @@ export function CrewCoordinatorCard({
);
}
+/** Link to open a coordinator in Staircase (the native Cordn client) for real
+ * MLS chat. Falls back to the Cordn home when the coordinator has no pubkey. */
+function StaircaseLink({ coordinator }: { coordinator: { pubkey?: string; relays?: string[] } }) {
+ const { t } = useTranslation();
+ const href = coordinator.pubkey
+ ? coordinatorAddUrl({ pubkey: coordinator.pubkey, relays: coordinator.relays ?? [] })
+ : CORDN_HOME;
+ return (
+
+