Skip to content

feat: session device tracking, fraud multi-channel, trust score decay, WebSocket events - #987

Merged
nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
NteinPrecious:feat/session-tracking-fraud-alerts-trust-decay-websocket-events
Jul 26, 2026
Merged

feat: session device tracking, fraud multi-channel, trust score decay, WebSocket events#987
nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
NteinPrecious:feat/session-tracking-fraud-alerts-trust-decay-websocket-events

Conversation

@NteinPrecious

@NteinPrecious NteinPrecious commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Closes #947, Closes #948, Closes #949, Closes #950

Changes

#950 - WebSocket Event System

  • Property events: created, updated, price_changed with join/leave rooms
  • Transaction events: created, status_changed
  • Document events: uploaded, signed, expired
  • Per-user event rooms for targeted notifications

#949 - Trust Score Decay Algorithm

  • Score factors: email verified (10pts), ID verified (20pts), completed transactions (15pts each, max 3)
  • 10% score decay per month of inactivity
  • Recalculation triggered on relevant events
  • Score breakdown API endpoint

#948 - Fraud Alert Multi-Channel Delivery

  • In-app + WebSocket for all alert severities
  • Email notifications for HIGH and CRITICAL alerts
  • SMS notifications for CRITICAL alerts
  • Auto-block user on CRITICAL fraud alerts

#947 - Session Device Tracking

  • User-Agent parsing for browser, OS, device type info
  • Geo-location data from IP address
  • Session renaming (user-assigned display names)
  • Configurable max concurrent sessions (default 5)

- Issue MettaChain#947: Session management with device tracking, geo-location,
  display names, configurable concurrent session limits, and PATCH endpoint
- Issue MettaChain#948: Fraud alert multi-channel notifications (in-app, email for
  HIGH/CRITICAL, SMS for CRITICAL, auto-block on CRITICAL)
- Issue MettaChain#949: Trust score decay algorithm with email_verified (10pts),
  id_verified (20pts), completed_transactions (15pts each, max 3),
  and 10% monthly inactivity decay
- Issue MettaChain#950: WebSocket gateway with property/transaction/document events,
  per-user rooms, and subscription handlers
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@NteinPrecious Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit nanaf6203-bit left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nanaf6203-bit
nanaf6203-bit merged commit 06deaf4 into MettaChain:main Jul 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants