From 13518c4e969a8b9f9c8ce4967bd7db42bc5eeb30 Mon Sep 17 00:00:00 2001 From: Eric Harris-Braun Date: Tue, 9 Jan 2024 16:03:54 -0500 Subject: [PATCH] debugging code --- ui/src/AboutDialog.svelte | 2 +- ui/src/GroupParticipants.svelte | 4 ++-- ui/src/boardList.ts | 10 +++++++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ui/src/AboutDialog.svelte b/ui/src/AboutDialog.svelte index 8ad9d62..661b10d 100644 --- a/ui/src/AboutDialog.svelte +++ b/ui/src/AboutDialog.svelte @@ -72,7 +72,7 @@ - +

KanDo! is a demonstration Holochain app built by the Holochain Foundation.

Developers: diff --git a/ui/src/GroupParticipants.svelte b/ui/src/GroupParticipants.svelte index 067167e..c374cdb 100644 --- a/ui/src/GroupParticipants.svelte +++ b/ui/src/GroupParticipants.svelte @@ -26,13 +26,13 @@

Participants

{#if $agents.status == "pending"} - + agents: {:else if $agents.status == "error"}
Error loading participants
{:else if $agents.status == "complete"} {@const participants = Array.from($agents.value)} {#if $agentBoards.status == "pending"} - + agentBoard: {:else if $agentBoards.status == "error"}
Error loading agent boards
{:else if $agentBoards.status=="complete"} diff --git a/ui/src/boardList.ts b/ui/src/boardList.ts index 6ff0b38..1c6dffe 100644 --- a/ui/src/boardList.ts +++ b/ui/src/boardList.ts @@ -48,8 +48,8 @@ export class BoardList { const tip = pipe(board, board => board.workspace.tip ) - - return alwaysSubscribed(pipe(joinAsync([board, latestState, tip]), ([board, latestState, tip]) => {return {board,latestState, tip: tip.entryHash}})) + console.log("boardData2:main") + return alwaysSubscribed(pipe(joinAsync([board, latestState, tip]), ([board, latestState, tip]) => {console.log("boardData2:pipe"); return {board,latestState, tip: tip.entryHash}})) }) agentBoardHashes: LazyHoloHashMap>> = new LazyHoloHashMap(agent => @@ -65,6 +65,7 @@ export class BoardList { //agentDocuments.push(asyncDerived(state, state=>{return {hash, state}})) const x = this.boardData2.get(hash) if (x) { + console.log("agentBoardHashes") agentBoardHashes.push(x) } } @@ -79,7 +80,10 @@ export class BoardList { constructor(public profilseStore: ProfilesStore, public synStore: SynStore) { this.allAgentBoards = pipe(this.profilseStore.agentsWithProfile, - agents=>sliceAndJoin(this.agentBoardHashes, agents, {errors: "filter_out"}) + agents=>{ + console.log("allAgentBoards") + return sliceAndJoin(this.agentBoardHashes, agents) + } ) const boardHashes = asyncDerived(this.synStore.documentsByTag.get(BoardType.active),x=>Array.from(x.keys()))