-
Notifications
You must be signed in to change notification settings - Fork 9
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
f131751
commit 7589cd3
Showing
45 changed files
with
1,057 additions
and
620 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 @@ | ||
--- | ||
'renterd': minor | ||
--- | ||
|
||
Allowance now has a field-specific option to auto-calculate its value. Closes https://github.com/SiaFoundation/web/issues/628 |
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 an issue where first-time configuration would not show the optimal recommendations. |
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 the churn alert would display NaN for the percentage when the total size was zero. |
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 | ||
--- | ||
|
||
Fields now have better support and styling for readOnly. |
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 an issue where toggling between basic and advanced modes would sometimes not revalidate all configuration fields. |
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 @@ | ||
--- | ||
'hostd': minor | ||
--- | ||
|
||
Max collateral now has a field-specific option to auto-calculate its value. Closes https://github.com/SiaFoundation/web/issues/628 |
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,6 @@ | ||
--- | ||
'hostd': minor | ||
'renterd': minor | ||
--- | ||
|
||
The configuration page now has a view menu in the action bar that is consistent with all other feature pages. |
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,6 @@ | ||
--- | ||
'hostd': minor | ||
'renterd': minor | ||
--- | ||
|
||
Basic configuration mode no longer sets certain fields in the background. Closes https://github.com/SiaFoundation/web/issues/628 |
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 |
---|---|---|
@@ -1,22 +1,3 @@ | ||
import { Text, Switch, Tooltip } from '@siafoundation/design-system' | ||
import { useConfig } from '../../contexts/config' | ||
|
||
export function ConfigNav() { | ||
const { showAdvanced, setShowAdvanced } = useConfig() | ||
|
||
return ( | ||
<div className="pl-1"> | ||
<Tooltip content={showAdvanced ? 'Hide advanced' : 'Show advanced'}> | ||
<div className="flex gap-1 items-center"> | ||
<Switch | ||
checked={showAdvanced} | ||
onCheckedChange={(checked) => setShowAdvanced(checked)} | ||
/> | ||
<Text size="12" color="subtle"> | ||
Advanced | ||
</Text> | ||
</div> | ||
</Tooltip> | ||
</div> | ||
) | ||
return <div className="pl-1"></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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { | ||
Button, | ||
Label, | ||
Popover, | ||
MenuItemRightSlot, | ||
BaseMenuItem, | ||
} from '@siafoundation/design-system' | ||
import { CaretDown16, SettingsAdjust16 } from '@siafoundation/react-icons' | ||
import { ViewModeToggle } from './ViewModeToggle' | ||
|
||
export function ConfigViewDropdownMenu() { | ||
return ( | ||
<Popover | ||
trigger={ | ||
<Button size="small" tip="Configure view" tipAlign="end"> | ||
<SettingsAdjust16 /> | ||
View | ||
<CaretDown16 /> | ||
</Button> | ||
} | ||
contentProps={{ | ||
align: 'end', | ||
className: 'max-w-[300px]', | ||
}} | ||
> | ||
<BaseMenuItem> | ||
<Label>Show advanced settings</Label> | ||
<MenuItemRightSlot> | ||
<ViewModeToggle /> | ||
</MenuItemRightSlot> | ||
</BaseMenuItem> | ||
</Popover> | ||
) | ||
} |
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,28 @@ | ||
import { Switch, Tooltip } from '@siafoundation/design-system' | ||
import { useConfig } from '../../contexts/config' | ||
|
||
export function ViewModeToggle() { | ||
const { configViewMode, setConfigViewMode } = useConfig() | ||
|
||
return ( | ||
<div className="pl-1"> | ||
<Tooltip | ||
content={ | ||
configViewMode === 'advanced' | ||
? 'Show advanced settings' | ||
: 'Hide advanced settings' | ||
} | ||
> | ||
<div> | ||
<Switch | ||
aria-label="configViewMode" | ||
checked={configViewMode === 'advanced'} | ||
onCheckedChange={(checked) => | ||
setConfigViewMode(checked ? 'advanced' : 'basic') | ||
} | ||
/> | ||
</div> | ||
</Tooltip> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.