PoolManagerPools
Pool-manager pools page — accordion list of every configured pool with header summary (name, status, priority) and an expandable body (per-pool stats, edit, …
Pool-manager pools page — accordion list of every configured pool with header summary (name, status, priority) and an expandable body (per-pool stats, edit, delete). Optional "Add Pool" CTA is gated by the ADD_POOL_ENABLED feature flag.
Must be rendered inside <MdkProvider> — the embedded "Add Pool" modal uses the contextual-modal adapter hook.
import { PoolManagerPools } from "@tetherto/mdk-react-devkit";| Prop | Status | Type | Default | Description |
|---|---|---|---|---|
poolConfig | Required | PoolConfigEntry[] | — | Array of pool configurations to render. |
backButtonClick | Required | VoidFunction | — | Called when the operator clicks the "Pool Manager" back link. |
Usage
Pool-manager pools page: accordion list of every configured pool. Each item
shows a one-line header (name, status, priority) and expands to reveal the
pool body (per-pool stats, edit, delete). Optional "Add Pool" CTA is gated by
the ADD_POOL_ENABLED feature flag.
Use this as the /pool-manager/pools route. For just the row primitives, drop
down to PoolCollapseItemHeader / PoolCollapseItemBody.
Requirements
- Render inside
<MdkProvider>. The "Add Pool" modal usesuseContextualModalfrom@tetherto/mdk-react-adapter.
Data contracts
PoolConfigData— exported from@tetherto/mdk-react-devkit(originates infoundation/components/pool-manager/hooks/use-pool-configs). Mirrors the API pool-config object.
Notes
- Pool data is normalised via
usePoolConfigs— the component handles loading and error states internally (Loader+CoreAlert). - The "Add Pool" button is gated by
ADD_POOL_ENABLED. Set it in thefoundation/components/pool-manager/pool-manager-constantsmodule if you fork the library; the default isfalsein@tetherto/mdk-react-devkit. - Multiple rows can be expanded simultaneously — the accordion uses
type="multiple".
Example
/** * Runnable example for PoolManagerPools. * * Wrap the app in `<MdkProvider>` — the "Add Pool" modal uses the * contextual-modal adapter hook. */import { PoolManagerPools } from '@tetherto/mdk-react-devkit'import type { PoolConfigData } from '@tetherto/mdk-react-devkit'const mockPools: PoolConfigData[] = [ { id: 'pool-eu', name: 'EU primary', url: 'stratum+tcp://eu.example.pool:3333', worker: 'rig-eu-01', priority: 1, fee: 1.5, activeWorkers: 124, status: 'Healthy', } as unknown as PoolConfigData, { id: 'pool-us', name: 'US backup', url: 'stratum+tcp://us.example.pool:3333', worker: 'rig-us-01', priority: 2, fee: 2, activeWorkers: 0, status: 'Standby', } as unknown as PoolConfigData,]export const PoolManagerPoolsExample = () => { return ( <PoolManagerPools poolConfig={mockPools} backButtonClick={() => { // eslint-disable-next-line no-console console.log('back to pool manager') }} /> )}PoolManagerMinerExplorer
Pool-manager miner explorer page — searchable / filterable table of miners with multi-select and an "Assign Pool" bulk action. Submits the chosen pool change…
RepairLogChangesSubRow
Expandable sub-row that lists the spare-part changes recorded in a repair batch action. Each non-miner repair action is resolved against its device to show t…