From d351f364df702ca3d181fb337ae9ebec4e5af444 Mon Sep 17 00:00:00 2001 From: Alex Freska Date: Thu, 21 Mar 2024 14:27:13 -0400 Subject: [PATCH] fix: renterd lost sector alert --- .changeset/red-ways-decide.md | 5 +++++ apps/renterd/contexts/alerts/data.tsx | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .changeset/red-ways-decide.md diff --git a/.changeset/red-ways-decide.md b/.changeset/red-ways-decide.md new file mode 100644 index 000000000..dc20e2197 --- /dev/null +++ b/.changeset/red-ways-decide.md @@ -0,0 +1,5 @@ +--- +'renterd': minor +--- + +The lost sector alert now shows the number of lost sectors. Closes https://github.com/SiaFoundation/renterd/issues/1080 diff --git a/apps/renterd/contexts/alerts/data.tsx b/apps/renterd/contexts/alerts/data.tsx index bb968c3b9..0f278e8b8 100644 --- a/apps/renterd/contexts/alerts/data.tsx +++ b/apps/renterd/contexts/alerts/data.tsx @@ -5,6 +5,7 @@ import { Tooltip, ValueCopyable, ValueMenu, + ValueNum, ValueSc, } from '@siafoundation/design-system' import { useHost, useSlabObjects } from '@siafoundation/react-renterd' @@ -302,6 +303,21 @@ export const dataFields: Record< ), }, + lostSectors: { + render: ({ value }: { value: number }) => ( +
+ + lost sectors + + value.toString()} + /> +
+ ), + }, } function ContractSetChange({