Skip to content

Commit

Permalink
feat: [UIE-8422] - database migration banner (#11595)
Browse files Browse the repository at this point in the history
* feat: [UIE-8422] - database migration banner

* Added changeset: Database migration info banner
  • Loading branch information
mpolotsk-akamai authored Feb 4, 2025
1 parent 8af77d7 commit 5bbe436
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
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>
);
};

0 comments on commit 5bbe436

Please sign in to comment.