Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [UIE-8422] - database migration banner #11595

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11595-added-1738590003764.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Added
---

Database migration info banner ([#11595](https://github.com/linode/manager/pull/11595))
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { DatabaseEmptyState } from 'src/features/Databases/DatabaseLanding/Datab
import DatabaseLandingTable from 'src/features/Databases/DatabaseLanding/DatabaseLandingTable';
import { useIsDatabasesEnabled } from 'src/features/Databases/utilities';
import { DatabaseClusterInfoBanner } from 'src/features/GlobalNotifications/DatabaseClusterInfoBanner';
import { DatabaseMigrationInfoBanner } from 'src/features/GlobalNotifications/DatabaseMigrationInfoBanner';
import { useOrder } from 'src/hooks/useOrder';
import { usePagination } from 'src/hooks/usePagination';
import { useRestrictedGlobalGrantCheck } from 'src/hooks/useRestrictedGlobalGrantCheck';
Expand Down Expand Up @@ -189,6 +190,7 @@ const DatabaseLanding = () => {
title="Database Clusters"
/>
{showTabs && !isDatabasesV2GA && <DatabaseClusterInfoBanner />}
{showTabs && isDatabasesV2GA && <DatabaseMigrationInfoBanner />}
<Box>
{showTabs ? (
<Tabs>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Notice, Typography } from '@linode/ui';
import React from 'react';

import { SupportLink } from 'src/components/SupportLink';

export const DatabaseMigrationInfoBanner = () => {
return (
<Notice important top={10} variant="warning">
<Typography fontFamily={(theme) => theme.font.bold} lineHeight="20px">
Legacy clusters decommission
</Typography>
<Typography lineHeight="20px">
Legacy database clusters will only be available until the end of 2025.
At that time, we’ll migrate your clusters to the new solution. For
questions regarding the new database clusters or the migration,{' '}
<SupportLink entity={{ type: 'database_id' }} text="contact support" />.
</Typography>
</Notice>
);
};