-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: [M3-8985] - High performance volume indicator (#11400)
* feat: [M3-8985] - High performance volume indicator added. * Added changeset: High performance volume indicator added. * Added changeset: New `Block Storage Performance B1` linode capability * feat: [M3-8985] - Comments resolved. * improve prop optionality * Use ui package components and keep tooltip styling consistent * Update changesets for Upcoming Features * Small fix. --------- Co-authored-by: Banks Nussman <banks@nussman.us> Co-authored-by: mjac0bs <mjacobs@akamai.com>
- Loading branch information
1 parent
456b923
commit b703190
Showing
13 changed files
with
120 additions
and
9 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/api-v4/.changeset/pr-11400-upcoming-features-1733998451458.md
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 @@ | ||
--- | ||
"@linode/api-v4": Upcoming Features | ||
--- | ||
|
||
New `Block Storage Performance B1` linode capability ([#11400](https://github.com/linode/manager/pull/11400)) |
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
5 changes: 5 additions & 0 deletions
5
packages/manager/.changeset/pr-11400-upcoming-features-1733927873131.md
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 @@ | ||
--- | ||
"@linode/manager": Upcoming Features | ||
--- | ||
|
||
High performance volume indicator ([#11400](https://github.com/linode/manager/pull/11400)) |
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
33 changes: 33 additions & 0 deletions
33
packages/manager/src/features/Linodes/HighPerformanceVolumeIcon.tsx
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,33 @@ | ||
import { IconButton, Tooltip } from '@linode/ui'; | ||
import BoltIcon from '@mui/icons-material/Bolt'; | ||
import React from 'react'; | ||
|
||
import type { LinodeCapabilities } from '@linode/api-v4'; | ||
|
||
interface Props { | ||
linodeCapabilities: LinodeCapabilities[]; | ||
} | ||
|
||
export function HighPerformanceVolumeIcon({ linodeCapabilities }: Props) { | ||
const isHighPerformanceVolume = !!linodeCapabilities?.includes( | ||
'Block Storage Performance B1' | ||
); | ||
|
||
if (!isHighPerformanceVolume) { | ||
return null; | ||
} | ||
|
||
return ( | ||
<Tooltip title="High Performance"> | ||
<IconButton | ||
sx={{ | ||
border: '1px solid', | ||
borderRadius: '50%', | ||
padding: 0, | ||
}} | ||
> | ||
<BoltIcon sx={{ fontSize: 12 }} /> | ||
</IconButton> | ||
</Tooltip> | ||
); | ||
} |
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
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