The live state of the TradeScope operator platform — the 18-role access model, the new three-state permission matrix, CRM feature performance, and the full data model.
המצב החי של פלטפורמת המפעילים של TradeScope — מודל ההרשאות ב־18 תפקידים, מטריצת ההרשאות התלת־מצבית החדשה, ביצועי מודולי ה־CRM, ומודל הנתונים המלא.
1628d1a · frontend d353923 · migration 050
עודכן לאחרונה · 13 ביולי 2026 · בקאנד 1628d1a · פרונטאנד d353923 · מיגרציה 050
The platform grew from 7 flat roles to the full forex-broker org taxonomy, with a reporting hierarchy and an org-chart view. Every endpoint gates on a permission slug, never on a role name — so a new role adapts navigation, routes, and the matrix editor automatically.
הפלטפורמה גדלה מ־7 תפקידים שטוחים למבנה הארגוני המלא של ברוקר פורקס, עם היררכיית דיווח ותצוגת עץ ארגוני. כל נקודת קצה נשלטת לפי הרשאה, לעולם לא לפי שם תפקיד — כך שתפקיד חדש מתאים אוטומטית את הניווט, המסלולים ועורך המטריצה.
| Department | מחלקה | Roles | תפקידים |
|---|---|---|---|
| Administration | ניהול־על | super_administrator · crm_administrator | |
| Sales chain | שרשרת מכירות | country_director · sales_director · sales_manager · team_leader · senior_sales_agent · sales_agent | |
| Retention | שימור | retention_manager · account_manager | |
| Growth | צמיחה | affiliate_manager · marketing_manager | |
| Risk & control | סיכון ובקרה | compliance_officer · finance_officer · risk_manager · qa_monitoring | |
| Support & audit | תמיכה וביקורת | customer_support · viewer_auditor |
The 5 legacy role strings (owner, admin, conversion_manager, agent, it_manager) are retained as working aliases — no live operator ever lost access. Global data scope is granted only to Super Administrator + CRM Administrator; everyone else sees their own manager_id subtree.
5 שמות התפקידים הישנים (owner, admin, conversion_manager, agent, it_manager) נשמרו ככינויים פעילים — אף מפעיל חי לא איבד גישה. גישה כלל־ארגונית לנתונים ניתנת רק ל־Super Administrator ול־CRM Administrator; כל השאר רואים את תת־העץ שלהם לפי manager_id.
Each cell in the owner-editable matrix is no longer on/off. It is one value on an ordered scope ladder, so a role can read a feed without being able to change it, or write only inside its own team.
כל תא במטריצה הניתנת לעריכה על ידי הבעלים כבר אינו כן/לא. הוא ערך אחד על סולם גישה מדורג, כך שתפקיד יכול לקרוא מסך בלי יכולת לשנות אותו, או לכתוב רק בתוך הצוות שלו.
Sample of the seeded defaults (owner-editable in /admin/roles):
דוגמה מברירות המחדל שהוזרעו (ניתנות לעריכה על ידי הבעלים ב־/admin/roles):
| Role | תפקיד | clients:view | clients:create | transactions:view | kyc:view |
|---|---|---|---|---|---|
| crm_administrator | Full | Full | Full | Full | |
| sales_manager | Full | Team | None | None | |
| sales_agent | Full | Team | None | None | |
| compliance_officer | View | None | View | View | |
| viewer_auditor | View | None | View | View |
The four new read-gates (Clients / Transactions / KYC / Recordings) are wired behind ENFORCE_VIEW_SLUGS, which ships off. With the flag off, live behaviour is byte-identical to before — no operator loses a feed. Turning it on is an explicit owner decision, after reviewing the matrix.
ארבעת שערי־הקריאה החדשים (לקוחות / עסקאות / KYC / הקלטות) מחווטים מאחורי ENFORCE_VIEW_SLUGS, שעולה כבוי. כשהדגל כבוי, ההתנהגות החיה זהה לחלוטין לקודם — אף מפעיל לא מאבד מסך. הדלקתו היא החלטה מפורשת של הבעלים, לאחר סקירת המטריצה.
The broker back-office is live across client management, money, calling, compliance, and trading. Status of the major modules:
מערך ה־Back-office של הברוקר פעיל לאורך ניהול לקוחות, כספים, חיוג, ציות ומסחר. סטטוס המודולים המרכזיים:
Full client records, phones directory, device/IP/VPN intelligence, stated-vs-verified identity checks, priority tiers, and a per-client risk cockpit (equity / margin / free / level with hedge-aware net exposure).
רשומות לקוח מלאות, ספריית טלפונים, מודיעין מכשיר/IP/VPN, בדיקות זהות מוצהרת מול מאומתת, דרגות עדיפות, ותא בקרת סיכון per-לקוח (הון / מרג'ין / פנוי / רמה עם חשיפה נטו מודעת־גידור).
Live visitor-presence board, follow-up watchlist for visitors who left before contact, conversion-manager Team view, and a native predictive dialer with daily number-health checks and a safety governor.
לוח נוכחות מבקרים חי, רשימת מעקב אחר מבקרים שעזבו לפני יצירת קשר, תצוגת Team למנהל המרות, וחייגן חיזוי מובנה עם בדיקות תקינות מספרים יומיות ומושל בטיחות.
Deposits/withdrawals ledger with approval gate, KYC document review with risk tiering, and sanctions/PEP screening seams. Compliance enforcement flags (ENFORCE_KYC_TIER, ENFORCE_CLIENT_AUTH) are staged dark, pending legal sign-off.
ספר הפקדות/משיכות עם שער אישור, סקירת מסמכי KYC עם דירוג סיכון, ותפרי סינון סנקציות/PEP. דגלי אכיפת הציות (ENFORCE_KYC_TIER, ENFORCE_CLIENT_AUTH) מוכנים חשוכים, ממתינים לאישור משפטי.
The AI opens and closes real book positions with honest quote-engine P&L, an event log, and a stop-all control. Real-broker execution (MT4/MT5/cTrader bridge) and a trading licence are the remaining gates before live money.
ה־AI פותח וסוגר פוזיציות אמיתיות בספר עם רווח/הפסד ממנוע ציטוט אמיתי, יומן אירועים, ובקרת עצירה מלאה. ביצוע מול ברוקר אמיתי (גשר MT4/MT5/cTrader) ורישיון מסחר הם השערים שנותרו לפני כסף אמיתי.
Real Gmail-SMTP sending is built. Client sees the handling agent's name as the sender; replies route to the agent; the send address stays noreply@ai-activation.live. Blocked only on IT delivering the mailbox App Password.
שליחת Gmail-SMTP אמיתית בנויה. הלקוח רואה את שם הסוכן המטפל כשולח; תשובות מנותבות לסוכן; כתובת השליחה נשארת noreply@ai-activation.live. חסום רק עד ש־IT ימסור את סיסמת האפליקציה של התיבה.
The live Supabase schema (50 tables). Relationships are application-level joins by id, client_id, or the shared identity / phone / email keys. Below are the core entities and how they connect.
סכמת ה־Supabase החיה (50 טבלאות). הקשרים הם joins ברמת האפליקציה לפי id, client_id, או מפתחות identity / טלפון / אימייל המשותפים. להלן הישויות המרכזיות וכיצד הן מתחברות.
Only 4 relationships are DB-enforced foreign keys; the rest are logical joins by shared keys — a deliberate choice for a fast-moving schema. role_permissions gained its scope column in migration 050; the legacy allowed bool is retained for transition safety.
רק 4 קשרים הם מפתחות זרים אכופים ב־DB; השאר הם joins לוגיים לפי מפתחות משותפים — בחירה מכוונת לסכמה מתפתחת. role_permissions קיבלה את עמודת scope במיגרציה 050; ה־bool הישן allowed נשמר לבטיחות המעבר.
Decisions and hand-offs that need Ben before further enforcement. Nothing here blocks current live operation.
החלטות ומסירות הממתינות לבן לפני אכיפה נוספת. שום דבר כאן אינו חוסם את הפעילות החיה הנוכחית.
ENFORCE_VIEW_SLUGS is off. Flip it to make the four read-gates bite, after reviewing the matrix.ENFORCE_VIEW_SLUGS כבוי. הפעל אותו כדי שארבעת שערי־הקריאה ינשכו, לאחר סקירת המטריצה.ENFORCE_KYC_TIER / ENFORCE_CLIENT_AUTH stay dark until legal approves the tier limits and the client-auth enforcement.ENFORCE_KYC_TIER / ENFORCE_CLIENT_AUTH נשארים חשוכים עד שהמשפטית תאשר את מגבלות הדרגות ואת אכיפת אימות הלקוח.