From 15af44dc95461dfd9faa6a6a7cfb49a17e10a333 Mon Sep 17 00:00:00 2001 From: hasyed-akamai Date: Wed, 18 Dec 2024 12:34:47 +0530 Subject: [PATCH] fix: [M3-8905] - Change document title from address to appropriate keyword (#11385) * fix: [M3-8905] - Change document title from address to appropriate keyword * Added changeset: Document title from URL to appropriate keyword * Make Document title more descriptive * resolve small regression * Change some more document title from address to appropriate keyword --- .../pr-11385-fixed-1733735480951.md | 5 + .../Billing/InvoiceDetail/InvoiceDetail.tsx | 269 +++++++++--------- .../Databases/DatabaseDetail/index.tsx | 6 +- .../src/features/Domains/DomainsLanding.tsx | 1 + .../KubernetesClusterDetail.tsx | 4 +- .../BucketDetail/BucketDetail.tsx | 3 +- .../DisplaySettings/DisplaySettings.tsx | 23 +- .../StackScripts/StackScriptsDetail.tsx | 2 + .../StackScripts/StackScriptsLanding.tsx | 8 +- 9 files changed, 177 insertions(+), 144 deletions(-) create mode 100644 packages/manager/.changeset/pr-11385-fixed-1733735480951.md diff --git a/packages/manager/.changeset/pr-11385-fixed-1733735480951.md b/packages/manager/.changeset/pr-11385-fixed-1733735480951.md new file mode 100644 index 00000000000..b939ad60f34 --- /dev/null +++ b/packages/manager/.changeset/pr-11385-fixed-1733735480951.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Fixed +--- + +Document title from URL to appropriate keyword ([#11385](https://github.com/linode/manager/pull/11385)) diff --git a/packages/manager/src/features/Billing/InvoiceDetail/InvoiceDetail.tsx b/packages/manager/src/features/Billing/InvoiceDetail/InvoiceDetail.tsx index d6896013f79..45d5396ff5e 100644 --- a/packages/manager/src/features/Billing/InvoiceDetail/InvoiceDetail.tsx +++ b/packages/manager/src/features/Billing/InvoiceDetail/InvoiceDetail.tsx @@ -8,6 +8,7 @@ import * as React from 'react'; import { useParams } from 'react-router-dom'; import { Currency } from 'src/components/Currency'; +import { DocumentTitleSegment } from 'src/components/DocumentTitle'; import { DownloadCSV } from 'src/components/DownloadCSV/DownloadCSV'; import { LandingHeader } from 'src/components/LandingHeader'; import { Link } from 'src/components/Link'; @@ -117,152 +118,156 @@ export const InvoiceDetail = () => { }; return ( - - - - - - - + + + + + + + - + + + + {invoice && ( + - - - {invoice && ( - - )} + )} + + + {account && invoice && items && ( + <> + csvRef.current.link.click()} + sx={{ ...sxDownloadButton, marginRight: '8px' }} + /> + + + )} + + + {invoice && ( + + Total:{' '} + + + )} + - - {account && invoice && items && ( - <> - csvRef.current.link.click()} - sx={{ ...sxDownloadButton, marginRight: '8px' }} + + + {pdfGenerationError && ( + Failed generating PDF. + )} + + + + {invoice && ( + + + Subtotal:{' '} + - - - )} - - - {invoice && ( - + + {invoice.tax_summary.map((summary) => { + return ( + + {summary.name === 'Standard' + ? 'Standard Tax: ' + : `${summary.name}: `} + + + ); + })} + + Tax Subtotal: + + Total:{' '} - )} - + + This invoice may include Linode Compute Instances that have + been powered off as the data is maintained and resources are + still reserved. If you no longer need powered-down Linodes, + you can{' '} + + {' '} + remove the service + {' '} + from your account. + + + )} - - {pdfGenerationError && ( - Failed generating PDF. - )} - - - - {invoice && ( - - - Subtotal:{' '} - - - {invoice.tax_summary.map((summary) => { - return ( - - {summary.name === 'Standard' - ? 'Standard Tax: ' - : `${summary.name}: `} - - - ); - })} - - Tax Subtotal: - - - Total:{' '} - - - - This invoice may include Linode Compute Instances that have been - powered off as the data is maintained and resources are still - reserved. If you no longer need powered-down Linodes, you can{' '} - - {' '} - remove the service - {' '} - from your account. - - - )} - - - + + ); }; diff --git a/packages/manager/src/features/Databases/DatabaseDetail/index.tsx b/packages/manager/src/features/Databases/DatabaseDetail/index.tsx index 367dbb113b4..f81eb723e5d 100644 --- a/packages/manager/src/features/Databases/DatabaseDetail/index.tsx +++ b/packages/manager/src/features/Databases/DatabaseDetail/index.tsx @@ -165,7 +165,11 @@ export const DatabaseDetail = () => { return ( <> - + { if (domains?.results === 0) { return ( <> + { return ( - +