Skip to content

Commit

Permalink
debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Jan 9, 2024
1 parent 5d3ce5f commit 13518c4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui/src/AboutDialog.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</script>


<sl-dialog label="KanDo!: UI v0.8.7 for DNA v0.7.0" bind:this={dialog} width={600} >
<sl-dialog label="KanDo!: UI v0.8.8 for DNA v0.7.0" bind:this={dialog} width={600} >
<div class="about">
<p>KanDo! is a demonstration Holochain app built by the Holochain Foundation.</p>
<p> <b>Developers:</b>
Expand Down
4 changes: 2 additions & 2 deletions ui/src/GroupParticipants.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
<div class="list">
<h4>Participants</h4>
{#if $agents.status == "pending"}
<sl-skeleton effect="pulse" style="height: 40px; width: 100%" ></sl-skeleton>
agents: <sl-skeleton effect="pulse" style="height: 40px; width: 100%" ></sl-skeleton>
{:else if $agents.status == "error"}
<div>Error loading participants</div>
{:else if $agents.status == "complete"}
{@const participants = Array.from($agents.value)}
{#if $agentBoards.status == "pending"}
<sl-skeleton effect="pulse" style="height: 40px; width: 100%" ></sl-skeleton>
agentBoard: <sl-skeleton effect="pulse" style="height: 40px; width: 100%" ></sl-skeleton>
{:else if $agentBoards.status == "error"}
<div>Error loading agent boards</div>
{:else if $agentBoards.status=="complete"}
Expand Down
10 changes: 7 additions & 3 deletions ui/src/boardList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<AgentPubKey, AsyncReadable<Array<BoardAndLatestState>>> = new LazyHoloHashMap(agent =>
Expand All @@ -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)
}
}
Expand All @@ -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()))
Expand Down

0 comments on commit 13518c4

Please sign in to comment.