-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95f51d3
commit 72997dd
Showing
91 changed files
with
995 additions
and
544 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@siafoundation/renterd-types': patch | ||
--- | ||
|
||
Host and contract responses are now Nullable rather than Maybe, since empty responses return null. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'hostd': patch | ||
'renterd': patch | ||
'walletd': patch | ||
--- | ||
|
||
Fixed a bug where the transaction list would show pending transactions when viewing pages other than the first page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@siafoundation/react-core': minor | ||
--- | ||
|
||
Added maybeFromNullishArrayResponse for casting null empty array responses to []. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@siafoundation/design-system': minor | ||
--- | ||
|
||
Refactored useDatasetState to include a noneOnPage state, a renamed loaded state, and a more explicit API. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@siafoundation/design-system': minor | ||
--- | ||
|
||
PaginationMarker now explicitly takes a nextMarker and does not disable down navigation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'renterd': patch | ||
--- | ||
|
||
Fixed a bug where pagination did now work on the file explorer all files mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@siafoundation/design-system': minor | ||
--- | ||
|
||
Added EmptyState component for handling all dataset empty states with custom or default components. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'hostd': minor | ||
'renterd': minor | ||
'walletd': minor | ||
--- | ||
|
||
Data tables now show an empty state when viewing a page greater than the first page with no data. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import { PaginatorKnownTotal } from '@siafoundation/design-system' | ||
import { Text, Separator } from '@siafoundation/design-system' | ||
import { humanBytes } from '@siafoundation/units' | ||
import { useVolumes } from '../../contexts/volumes' | ||
|
||
export function VolumesFiltersBar() { | ||
const { dataset, datasetState, datasetFilteredTotal, offset, limit } = | ||
useVolumes() | ||
|
||
const total = dataset?.reduce((acc, i) => acc + i.totalBytes, 0) | ||
const used = dataset?.reduce((acc, i) => acc + i.usedBytes, 0) | ||
const free = total - used | ||
|
||
return ( | ||
<div className="flex gap-2 justify-between w-full"> | ||
<div className="flex gap-4"> | ||
<Text size="12" font="mono" weight="medium">{`${humanBytes( | ||
used | ||
)} used`}</Text> | ||
<Separator variant="vertical" /> | ||
<Text size="12" font="mono" weight="medium">{`${humanBytes( | ||
free | ||
)} free`}</Text> | ||
<Separator variant="vertical" /> | ||
<Text size="12" font="mono" weight="medium">{`${humanBytes( | ||
total | ||
)} total`}</Text> | ||
</div> | ||
<PaginatorKnownTotal | ||
offset={offset} | ||
limit={limit} | ||
isLoading={datasetState === 'loading'} | ||
datasetFilteredTotal={datasetFilteredTotal} | ||
/> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.