Browse Source
663: Add connected takers feed r=klochowicz a=klochowicz - add a new watch channel with information about connected takers from the maker's actor system - test the watch channel behaviour with a unit test - add a list of connected takers to maker's UI (for testing/monitoring) This PR will enable us to write more elaborate assertions (e.g. reconnection of the same taker & resuming its operation) and also enables us to gauge the length & amount of inteactions with the maker Co-authored-by: Mariusz Klochowicz <mariusz@klochowicz.com>debug-collab-settlement
bors[bot]
3 years ago
committed by
GitHub
12 changed files with 208 additions and 41 deletions
@ -0,0 +1,25 @@ |
|||
import { Heading, ListItem, UnorderedList, VStack } from "@chakra-ui/react"; |
|||
import React from "react"; |
|||
|
|||
export interface TakerId { |
|||
id: string; |
|||
} |
|||
|
|||
interface Props { |
|||
takers: TakerId[]; |
|||
} |
|||
|
|||
const ConnectedTakers = ({ takers }: Props) => { |
|||
return ( |
|||
<VStack spacing={3}> |
|||
<Heading size={"sm"} padding={2}>{"Connected takers: " + takers.length}</Heading> |
|||
<UnorderedList> |
|||
{takers.map((taker) => { |
|||
return (<ListItem>{taker}</ListItem>); |
|||
})} |
|||
</UnorderedList> |
|||
</VStack> |
|||
); |
|||
}; |
|||
|
|||
export default ConnectedTakers; |
Loading…
Reference in new issue