@@ -199,6 +199,23 @@ export const createFamilyPedigreeStore = (
199199 } ,
200200
201201 generateQuickStartNetwork : ( data ) => {
202+ // eslint-disable-next-line no-console
203+ console . log (
204+ '[generateQuickStartNetwork]' ,
205+ JSON . stringify ( {
206+ parentCount : data . parents . length ,
207+ parents : data . parents . map ( ( p ) => ( {
208+ name : p . name ,
209+ edgeType : p . edgeType ,
210+ } ) ) ,
211+ egoParentIndices : data . egoParentIndices ,
212+ siblingCount : data . siblings . length ,
213+ siblings : data . siblings . map ( ( s ) => ( {
214+ name : s . name ,
215+ shared : s . sharedParentIndices ,
216+ } ) ) ,
217+ } ) ,
218+ ) ;
202219 get ( ) . clearNetwork ( ) ;
203220
204221 const egoId = get ( ) . addNode ( {
@@ -340,6 +357,32 @@ export const createFamilyPedigreeStore = (
340357 isActive : true ,
341358 } ) ;
342359 }
360+
361+ // Debug: dump generated network
362+ const { nodes : genNodes , edges : genEdges } = get ( ) . network ;
363+ // eslint-disable-next-line no-console
364+ console . log (
365+ '[generateQuickStartNetwork] RESULT nodes:' ,
366+ [ ...genNodes . entries ( ) ] . map ( ( [ id , n ] ) => ( {
367+ id : id . substring ( 0 , 8 ) ,
368+ label : n . label ,
369+ isEgo : n . isEgo ,
370+ } ) ) ,
371+ ) ;
372+ // eslint-disable-next-line no-console
373+ console . log (
374+ '[generateQuickStartNetwork] RESULT edges:' ,
375+ [ ...genEdges . values ( ) ] . map ( ( e ) => ( {
376+ src :
377+ [ ...genNodes . entries ( ) ] . find ( ( [ id ] ) => id === e . source ) ?. [ 1 ]
378+ ?. label || e . source . substring ( 0 , 8 ) ,
379+ tgt :
380+ [ ...genNodes . entries ( ) ] . find ( ( [ id ] ) => id === e . target ) ?. [ 1 ]
381+ ?. label || e . target . substring ( 0 , 8 ) ,
382+ type : e . relationshipType ,
383+ active : e . isActive ,
384+ } ) ) ,
385+ ) ;
343386 } ,
344387
345388 syncMetadata : ( ) => {
0 commit comments