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 }) => ( +