From 6e36f97b1a4a723588f8ec8f6497b35c8bf8eed6 Mon Sep 17 00:00:00 2001 From: Abhigyan Ghosh <30973042+abhigyanghosh30@users.noreply.github.com> Date: Mon, 11 Mar 2024 23:57:26 +0530 Subject: [PATCH] Wd 8751 update the pro subscribe page visuals (#13601) * design change --- .../components/Form/Feature/Feature.test.tsx | 4 +- .../react/components/Form/Feature/Feature.tsx | 478 +++++++++++------- .../subscribe/react/components/Form/Form.tsx | 7 +- .../ProductSummary/ProductSummary.tsx | 4 +- static/sass/_pattern_subscribe.scss | 4 +- static/sass/styles.scss | 42 ++ templates/advantage/subscribe/index.html | 2 +- 7 files changed, 342 insertions(+), 199 deletions(-) diff --git a/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.test.tsx b/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.test.tsx index eeb54082cf3..c31c9736d04 100644 --- a/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.test.tsx +++ b/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.test.tsx @@ -22,8 +22,8 @@ test("Feature section renders correctly", () => { ); - screen.getAllByText("Ubuntu Pro"); - screen.getAllByText("Ubuntu Pro (Infra-only)"); + screen.getAllByText("Pro - all repositories"); + screen.getAllByText("Infra - only limited subset"); }); test("Feature sections disables Infra + Apps if destkop is selected", () => { diff --git a/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.tsx b/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.tsx index 4b8ee020c73..f0950671bf1 100644 --- a/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.tsx +++ b/static/js/src/advantage/subscribe/react/components/Form/Feature/Feature.tsx @@ -25,206 +25,314 @@ const Feature = () => { const proDisabled = version === LTSVersions.trusty; return ( -
- Over 2,300 open source deb packages in Ubuntu Main repository for - 10 years, including: -
-- Over 23,000 open source deb packages in Ubuntu Universe repository - for 10 years, including: -
-
+ Not sure? Run pro security-status
to find out which
+ packages and repositories you are currently using.
+
+ packages in Ubuntu Main{" "} + {feature === Features.pro ? "and Universe" : ""} +
+ +