From 513287d73262155932587297373bd8ab8cee127c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 16 Jun 2026 21:32:23 +0200 Subject: [PATCH] feat(admin): hide the Replay-tour card on the admin About page The onboarding tour is a user-facing affordance with no place in the admin console. Add a hideTourReplay prop to AboutSection (default off, so Settings -> About is untouched) and pass it from the admin renderer. --- src/components/settings/about-section.tsx | 99 +++++++++++++---------- 1 file changed, 58 insertions(+), 41 deletions(-) diff --git a/src/components/settings/about-section.tsx b/src/components/settings/about-section.tsx index cfbaca8d0..95f921318 100644 --- a/src/components/settings/about-section.tsx +++ b/src/components/settings/about-section.tsx @@ -118,7 +118,18 @@ export function UpdateBadge({ ); } -export function AboutSection() { +export interface AboutSectionProps { + /** + * v1.18.1 E5 — suppress the "Replay tour" card. The admin → Über + * surface reuses this component but the onboarding tour is a + * user-facing affordance with no place in the admin console, so the + * admin renderer passes `hideTourReplay`. The Settings → About surface + * leaves it on. + */ + hideTourReplay?: boolean; +} + +export function AboutSection({ hideTourReplay = false }: AboutSectionProps = {}) { const { t } = useTranslations(); const fmt = useFormatters(); // Pull the auth user — only needed so the "Replay the tour" button @@ -364,49 +375,55 @@ export function AboutSection() { settings shell), so the button lives here next to version + links. Mirrors the stack-on-mobile / right-align-on-desktop contract used by the Account section's "Restart onboarding - tour" card so the two surfaces feel consistent. */} -
-
-
- -
-

- {t("settings.about.tourReplay")} -

-

- {t("settings.about.tourReplayHint")} -

+ tour" card so the two surfaces feel consistent. + + v1.18.1 E5 — hidden on the admin → Über surface (`hideTourReplay`): + the onboarding tour is a user-facing affordance with no place in + the admin console. */} + {!hideTourReplay && ( +
+
+
+ +
+

+ {t("settings.about.tourReplay")} +

+

+ {t("settings.about.tourReplayHint")} +

+
+
- + {tourFeedback && ( +

+ {tourFeedback.text} +

+ )}
- {tourFeedback && ( -

- {tourFeedback.text} -

- )} -
+ )} {/* v1.4.36 W4f — the dedicated "Updates" card with the manual "Check for updates" button is gone. The 24 h auto-