@ -13,7 +13,7 @@ export interface VisualizationConfig {
// Graph traversal
// Graph traversal
searchThroughFetched : boolean ;
searchThroughFetched : boolean ;
// Append mode - add new events to existing graph instead of replacing
// Append mode - add new events to existing graph instead of replacing
appendMode? : boolean ;
appendMode? : boolean ;
@ -27,7 +27,7 @@ export interface VisualizationConfig {
// Default configurations for common event kinds
// Default configurations for common event kinds
const DEFAULT_EVENT_CONFIGS : EventKindConfig [ ] = [
const DEFAULT_EVENT_CONFIGS : EventKindConfig [ ] = [
{ kind : 0 , limit : 50 } , // Metadata events (profiles) - controls how many profiles to display
{ kind : 0 , limit : 5 } , // Metadata events (profiles) - controls how many profiles to display
{ kind : 3 , limit : 0 , depth : 0 } , // Follow lists - limit 0 = don't fetch, >0 = fetch follow lists
{ kind : 3 , limit : 0 , depth : 0 } , // Follow lists - limit 0 = don't fetch, >0 = fetch follow lists
{ kind : 30040 , limit : 20 , nestedLevels : 1 } ,
{ kind : 30040 , limit : 20 , nestedLevels : 1 } ,
{ kind : 30041 , limit : 20 } ,
{ kind : 30041 , limit : 20 } ,
@ -41,8 +41,8 @@ function createVisualizationConfig() {
searchThroughFetched : true ,
searchThroughFetched : true ,
appendMode : false ,
appendMode : false ,
// Legacy properties
// Legacy properties
allowedKinds : DEFAULT_EVENT_CONFIGS.map ( ec = > ec . kind ) ,
allowedKinds : DEFAULT_EVENT_CONFIGS.map ( ( ec ) = > ec . kind ) ,
disabledKinds : [ 30041 , 30818 ] ,
disabledKinds : [ 30041 , 30818 ] , // Kind 0 not disabled so it shows as green when profiles are fetched
allowFreeEvents : false ,
allowFreeEvents : false ,
maxPublicationIndices : - 1 ,
maxPublicationIndices : - 1 ,
maxEventsPerIndex : - 1 ,
maxEventsPerIndex : - 1 ,
@ -147,7 +147,6 @@ function createVisualizationConfig() {
) ,
) ,
} ) ) ,
} ) ) ,
// Get config for a specific kind
// Get config for a specific kind
getEventConfig : ( kind : number ) = > {
getEventConfig : ( kind : number ) = > {
let config : EventKindConfig | undefined ;
let config : EventKindConfig | undefined ;
@ -162,7 +161,7 @@ function createVisualizationConfig() {
. . . config ,
. . . config ,
searchThroughFetched : ! config . searchThroughFetched ,
searchThroughFetched : ! config . searchThroughFetched ,
} ) ) ,
} ) ) ,
toggleAppendMode : ( ) = >
toggleAppendMode : ( ) = >
update ( ( config ) = > ( {
update ( ( config ) = > ( {
. . . config ,
. . . config ,