diff --git a/packages/manager/.changeset/pr-10886-upcoming-features-1725465397032.md b/packages/manager/.changeset/pr-10886-upcoming-features-1725465397032.md new file mode 100644 index 00000000000..831218f4d69 --- /dev/null +++ b/packages/manager/.changeset/pr-10886-upcoming-features-1725465397032.md @@ -0,0 +1,5 @@ +--- +"@linode/manager": Upcoming Features +--- + +Revert the "View Code Snippets"button copy to the original text ([#10886](https://github.com/linode/manager/pull/10886)) diff --git a/packages/manager/cypress/e2e/core/linodes/create-linode-view-code-snippet.spec.ts b/packages/manager/cypress/e2e/core/linodes/create-linode-view-code-snippet.spec.ts index fc0ac2643a5..d801c3046b7 100644 --- a/packages/manager/cypress/e2e/core/linodes/create-linode-view-code-snippet.spec.ts +++ b/packages/manager/cypress/e2e/core/linodes/create-linode-view-code-snippet.spec.ts @@ -42,7 +42,7 @@ describe('Create Linode', () => { // View Code Snippets and confirm it's provisioned as expected. ui.button - .findByTitle('View Code Snippets') + .findByTitle('Create using command line') .should('be.visible') .should('be.enabled') .click(); diff --git a/packages/manager/src/dev-tools/FeatureFlagTool.tsx b/packages/manager/src/dev-tools/FeatureFlagTool.tsx index ab8f87d1209..7022c53402d 100644 --- a/packages/manager/src/dev-tools/FeatureFlagTool.tsx +++ b/packages/manager/src/dev-tools/FeatureFlagTool.tsx @@ -33,6 +33,7 @@ const options: { flag: keyof Flags; label: string }[] = [ { flag: 'supportTicketSeverity', label: 'Support Ticket Severity' }, { flag: 'dbaasV2', label: 'Databases V2 Beta' }, { flag: 'databaseResize', label: 'Database Resize' }, + { flag: 'apicliDxToolsAdditions', label: 'APICLI DX Tools Additions' }, ]; const renderFlagItems = ( diff --git a/packages/manager/src/features/Linodes/LinodeCreatev2/Actions.tsx b/packages/manager/src/features/Linodes/LinodeCreatev2/Actions.tsx index 468d4f6e606..f066241553d 100644 --- a/packages/manager/src/features/Linodes/LinodeCreatev2/Actions.tsx +++ b/packages/manager/src/features/Linodes/LinodeCreatev2/Actions.tsx @@ -3,7 +3,6 @@ import { useFormContext } from 'react-hook-form'; import { Box } from 'src/components/Box'; import { Button } from 'src/components/Button/Button'; -import { useFlags } from 'src/hooks/useFlags'; import { useRestrictedGlobalGrantCheck } from 'src/hooks/useRestrictedGlobalGrantCheck'; import { sendApiAwarenessClickEvent } from 'src/utilities/analytics/customEventAnalytics'; import { sendLinodeCreateFormInputEvent } from 'src/utilities/analytics/formEventAnalytics'; @@ -18,14 +17,10 @@ import { import type { LinodeCreateFormValues } from './utilities'; export const Actions = () => { - const flags = useFlags(); - const { params } = useLinodeCreateQueryParams(); const [isAPIAwarenessModalOpen, setIsAPIAwarenessModalOpen] = useState(false); - const isDxToolsAdditionsEnabled = flags?.apicliDxToolsAdditions; - const { formState, getValues, @@ -44,9 +39,7 @@ export const Actions = () => { sendLinodeCreateFormInputEvent({ createType: params.type ?? 'OS', interaction: 'click', - label: isDxToolsAdditionsEnabled - ? 'View Code Snippets' - : 'Create Using Command Line', + label: 'Create Using Command Line', }); if (await trigger()) { // If validation is successful, we open the dialog. @@ -59,9 +52,7 @@ export const Actions = () => { return (