feat: redesign referral network with scope selector

- Replace full graph with scoped view (campaign/partner/user)
- ScopeSelector component with tabs and searchable dropdown
- Store resets all state on scope change (selection, hover, filters)
- Remove dead NetworkSearch component and graphInstance globals
- i18n keys for scope selector in all 4 locales
This commit is contained in:
Fringg
2026-03-20 01:50:09 +03:00
parent 2adb0047dd
commit a6faf702ec
13 changed files with 549 additions and 288 deletions

View File

@@ -1292,6 +1292,22 @@
"resetZoom": "Reset zoom",
"fullscreen": "Fullscreen"
},
"scope": {
"title": "Scope",
"campaign": "Campaign",
"partner": "Partner",
"user": "User",
"searchPlaceholder": "Search...",
"selectCampaign": "Select campaign",
"selectPartner": "Select partner",
"selectUser": "Search user",
"emptyState": "Select a campaign, partner, or user to view their network",
"users": "users",
"campaigns": "campaigns",
"active": "Active",
"inactive": "Inactive",
"noResults": "Nothing found"
},
"loading": "Loading graph...",
"error": "Failed to load network data",
"empty": "No data to display"