mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
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:
@@ -100,3 +100,31 @@ export interface NetworkFilters {
|
||||
partnersOnly: boolean;
|
||||
minReferrals: number;
|
||||
}
|
||||
|
||||
export interface CampaignOption {
|
||||
id: number;
|
||||
name: string;
|
||||
start_parameter: string;
|
||||
is_active: boolean;
|
||||
direct_users: number;
|
||||
}
|
||||
|
||||
export interface PartnerOption {
|
||||
id: number;
|
||||
display_name: string;
|
||||
username: string | null;
|
||||
campaign_count: number;
|
||||
}
|
||||
|
||||
export interface ScopeOptionsData {
|
||||
campaigns: CampaignOption[];
|
||||
partners: PartnerOption[];
|
||||
}
|
||||
|
||||
export type ScopeType = 'campaign' | 'partner' | 'user';
|
||||
|
||||
export interface ScopeSelection {
|
||||
type: ScopeType;
|
||||
id: number;
|
||||
label: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user