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.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.tourReplayHint")} +
++ {tourFeedback.text} +
+ )}- {tourFeedback.text} -
- )} -