Skip to content

Commit

Permalink
change: [M3-9132] – Revise description for "Disk Encryption" section …
Browse files Browse the repository at this point in the history
…in Linode Create flow (#11536)
  • Loading branch information
dwiley-akamai authored Jan 21, 2025
1 parent 9b2513a commit a7ea42f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 14 deletions.
5 changes: 5 additions & 0 deletions packages/manager/.changeset/pr-11536-changed-1737152603420.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Changed
---

Revise Disk Encryption description copy in Linode Create flow ([#11536](https://github.com/linode/manager/pull/11536))
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { makeFeatureFlagData } from 'support/util/feature-flags';
import {
checkboxTestId,
headerTestId,
} from 'src/components/Encryption/Encryption';
} from 'src/components/Encryption/constants';

describe('Create Linode with Disk Encryption', () => {
it('should not have a "Disk Encryption" section visible if the feature flag is off and user does not have capability', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ import * as React from 'react';

import { renderWithTheme } from 'src/utilities/testHelpers';

import {
Encryption,
checkboxTestId,
descriptionTestId,
headerTestId,
} from './Encryption';
import { checkboxTestId, descriptionTestId, headerTestId } from './constants';
import { Encryption } from './Encryption';

describe('DiskEncryption', () => {
it('should render a header', () => {
Expand Down
6 changes: 2 additions & 4 deletions packages/manager/src/components/Encryption/Encryption.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { Box, Checkbox, Notice, Typography } from '@linode/ui';
import { List, ListItem } from '@mui/material';
import * as React from 'react';

import { checkboxTestId, descriptionTestId, headerTestId } from './constants';

export interface EncryptionProps {
descriptionCopy: JSX.Element | string;
disabled?: boolean;
Expand All @@ -13,10 +15,6 @@ export interface EncryptionProps {
onChange: (checked: boolean) => void;
}

export const headerTestId = 'encryption-header';
export const descriptionTestId = 'encryption-description';
export const checkboxTestId = 'encrypt-entity-checkbox';

export const Encryption = (props: EncryptionProps) => {
const {
descriptionCopy,
Expand Down
11 changes: 8 additions & 3 deletions packages/manager/src/components/Encryption/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@ import React from 'react';

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

/* Test IDs */
export const headerTestId = 'encryption-header';
export const descriptionTestId = 'encryption-description';
export const checkboxTestId = 'encrypt-entity-checkbox';

/* Disk Encryption constants */
const DISK_ENCRYPTION_GUIDE_LINK =
'https://techdocs.akamai.com/cloud-computing/docs/local-disk-encryption';

export const DISK_ENCRYPTION_GENERAL_DESCRIPTION = (
<>
Secure this Linode using data at rest encryption. Data center systems take
care of encrypting and decrypting for you. After the Linode is created, use
Rebuild to enable or disable this feature.{' '}
Secure this Linode with data-at-rest encryption. Data center systems handle
encryption automatically for you. After the Linode is created, use Rebuild
to enable or disable encryption.{' '}
<Link to={DISK_ENCRYPTION_GUIDE_LINK}>Learn more</Link>.
</>
);
Expand Down

0 comments on commit a7ea42f

Please sign in to comment.