-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upcoming: [M3-9064] - Quotas tab placeholder (#11551)
* API spec update * Create feature-flagged placeholder Account Quotas tab * Add DocumentTitleSegment * Added changeset: Add placeholder Quotas tab in Accounts page * Added changeset: Quotas API spec to make region field optional * PR feedback @abailly-akamai @mjac0bs
- Loading branch information
1 parent
c92372c
commit 03f19b0
Showing
7 changed files
with
90 additions
and
4 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 @@ | ||
--- | ||
"@linode/api-v4": Changed | ||
--- | ||
|
||
Quotas API spec to make region field optional ([#11551](https://github.com/linode/manager/pull/11551)) |
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-11551-upcoming-features-1737587942784.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 | ||
--- | ||
|
||
Add placeholder Quotas tab in Accounts page ([#11551](https://github.com/linode/manager/pull/11551)) |
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,53 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
import { Autocomplete, Divider, Paper, Stack, Typography } from '@linode/ui'; | ||
import { DateTime } from 'luxon'; | ||
import * as React from 'react'; | ||
|
||
import { DateTimeDisplay } from 'src/components/DateTimeDisplay'; | ||
import { DocsLink } from 'src/components/DocsLink/DocsLink'; | ||
import { DocumentTitleSegment } from 'src/components/DocumentTitle'; | ||
import { RegionSelect } from 'src/components/RegionSelect/RegionSelect'; | ||
|
||
import type { Theme } from '@mui/material'; | ||
|
||
export const Quotas = () => { | ||
// @ts-expect-error TODO: this is a placeholder to be replaced with the actual query | ||
const [lastUpdatedDate, setLastUpdatedDate] = React.useState(Date.now()); | ||
|
||
return ( | ||
<> | ||
<DocumentTitleSegment segment="Quotas" /> | ||
<Paper | ||
sx={(theme: Theme) => ({ | ||
marginTop: theme.spacing(2), | ||
})} | ||
variant="outlined" | ||
> | ||
<Stack divider={<Divider spacingBottom={20} spacingTop={40} />}> | ||
<Stack spacing={1}> | ||
<Autocomplete label="Select a Service" options={[]} /> | ||
<RegionSelect | ||
currentCapability={undefined} | ||
regions={[]} | ||
value={undefined} | ||
/> | ||
</Stack> | ||
<Stack direction="row" justifyContent="space-between"> | ||
<Typography variant="h3">Quotas</Typography> | ||
<Stack alignItems="center" direction="row" spacing={3}> | ||
<Typography variant="body1"> | ||
<strong>Last updated:</strong>{' '} | ||
<DateTimeDisplay | ||
value={DateTime.fromMillis(lastUpdatedDate).toISO() ?? ''} | ||
/> | ||
</Typography> | ||
|
||
{/* TODO: update once link is available */} | ||
<DocsLink href="#" label="Learn More About Quotas" /> | ||
</Stack> | ||
</Stack> | ||
</Stack> | ||
</Paper> | ||
</> | ||
); | ||
}; |
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