From bf359916b665ec894df9c77193ae5c17b4080e1e Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Wed, 3 Dec 2025 18:33:55 -0700 Subject: [PATCH] Add HIDE_PROXY_ONBOARDING config and onboarding UI updates Introduces the HIDE_PROXY_ONBOARDING config option to conditionally hide proxy onboarding steps in the UI. Updates OnboardingPage to use this config for rendering logic and adjusts card layouts accordingly. Also adds support for displaying additional sources heading when relevant, and updates English locale strings for clarity. --- src/assets/locales/en.json | 7 ++- src/pages/onboarding/Onboarding.tsx | 82 +++++++++++++++++------------ src/setup/config.ts | 4 ++ 3 files changed, 58 insertions(+), 35 deletions(-) diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index 16aebae3..af290b9a 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -610,7 +610,7 @@ "defaultDescription": "Uses P-Stream's built-in proxy. It's the easiest option but might be slower due to shared bandwidth.", "fedapi": { "fedapi": "Additional: Febbox token", - "fedapiDescription": "Bring your own FREE Febbox account to gain access to FED API and CIA API, the best sources with 4K quality, Dolby Atmos, skip intro and the fastest load times! Highly recommended option!" + "fedapiDescription": "Bring your own FREE Febbox account to gain access to FED API, the best sources with 4K quality, Dolby Atmos, skip intro and the fastest load times! Highly recommended option!" }, "outro": "If you have more questions on how this works, feel free to ask on the <0>P-Stream Discord0> server!" }, @@ -647,6 +647,9 @@ "description": "Setup a free proxy in just 5 minutes! Improves loading reliability!", "quality": "Good quality", "title": "Custom proxy" + }, + "addons": { + "title": "Additional sources:" } }, "title": "Let's get you setup with P-Stream 🥳" @@ -1248,7 +1251,7 @@ "fedapi": { "onboarding": { "title": "Febbox token", - "description": "Bring your own FREE Febbox account to gain access to FED API and CIA API, the best sources with 4K quality, Dolby Atmos, skip intro and the fastest load times! Highly recommended option!" + "description": "Bring your own FREE Febbox account to gain access to FED API, the best sources with 4K quality, Dolby Atmos, skip intro and the fastest load times! Highly recommended option!" }, "setup": { "title": "To get your UI token:", diff --git a/src/pages/onboarding/Onboarding.tsx b/src/pages/onboarding/Onboarding.tsx index 1d47aad9..2c37fc5e 100644 --- a/src/pages/onboarding/Onboarding.tsx +++ b/src/pages/onboarding/Onboarding.tsx @@ -1,3 +1,4 @@ +import classNames from "classnames"; import { Trans, useTranslation } from "react-i18next"; import { Button } from "@/components/buttons/Button"; @@ -179,7 +180,9 @@ export function OnboardingPage() {