Repository navigation
feat(m5): Telegram identity, event community isolation & operational workflows - #35
Open
Satelink-Protocol wants to merge 2 commits into
Open
Satelink-Protocol wants to merge 2 commits into
Satelink-Protocol wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
NIGHTLIFEZ — Milestone M5: Telegram & Operational Workflows
Continues the NIGHTLIFEZ roadmap from the closed M4.3.4 baseline.
1. Functional Scope & Changes
A. Telegram Identity & Account Linking
account_link_tokenstable via Migration 018).POST /api/auth/telegram/link-tokenandGET /api/auth/telegram/link-status./start link_<token>securely binds authenticated web sessions and guest bookings to the Telegram account without IDOR or insecure identity assumptions./start claim_upi_<orderId>_<guestToken>.B. Event-Specific Telegram Communities (Strict Isolation)
lib/services/invites.js.events.telegram_chat_id). Events without a dedicated chat ID safely returnnulland notify guests that venue details are on their booking pass, rather than dumping them into a shared group.member_limit: 1), 24-hour expiring invitation links.C. Operational Notifications & Quiet Hours
userstable (reminders_enabled,quiet_hours_enabled,quiet_hours_start,quiet_hours_end).GET /api/me/notification-preferencesandPATCH /api/me/notification-preferences./quiet_hours(supports view,on,off, and custom time windows in Asia/Kolkata timezone).lib/services/notifications.js) respects quiet hours: non-urgent alerts (announcements, reminders) are deferred until the end of the quiet hours window, while urgent notices (booking confirmations, refunds, cancellations) deliver immediately.event_reminder,event_update,host_application_received,host_approved.D. Safety, Support & Moderation
/reportworkflow with mandatory national emergency helpline (112) and Women's Helpline (1091 / 181).reportstable with moderator audit status./help,/support, and/paysupport.E. Operational Recovery
/startto the bot, the bot automatically detects unfulfilled confirmed bookings and delivers the pending private group invite immediately.2. Safeguards & Invariants
ENABLE_LIVE_PAYMENTS=falsestrictly preserved across all environments.test/telegram-workflows.test.js), 157 Playwright E2E tests pass, 141/141 files clean on ESLint.3. Reviewer Checklist