From a9aa432899412edab160976ac6596f045637c19b Mon Sep 17 00:00:00 2001 From: Camiel van Schoonhoven Date: Fri, 29 May 2026 14:21:03 -0700 Subject: [PATCH] feat: Learning Hub - Milestone 1 --- src/routes/Dashboard/Learn/LearnHomeView.test.tsx | 14 +++++++++----- src/routes/Dashboard/Learn/LearnHomeView.tsx | 8 ++++++-- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/routes/Dashboard/Learn/LearnHomeView.test.tsx b/src/routes/Dashboard/Learn/LearnHomeView.test.tsx index 33aac7513..7c61d4f8d 100644 --- a/src/routes/Dashboard/Learn/LearnHomeView.test.tsx +++ b/src/routes/Dashboard/Learn/LearnHomeView.test.tsx @@ -60,7 +60,7 @@ describe("", () => { ).toBeInTheDocument(); }); - test("renders the onboarding hero with progress", () => { + test.skip("renders the onboarding hero with progress", () => { renderWithClient(); expect( screen.getByRole("heading", { level: 2, name: /welcome to tangle/i }), @@ -77,14 +77,11 @@ describe("", () => { expect(screen.getByText("Full docs")).toBeInTheDocument(); }); - test("renders the tip, tours, examples and FAQ sections", () => { + test("renders the tip, examples and FAQ sections", () => { renderWithClient(); expect( screen.getByRole("heading", { level: 3, name: /tip of the day/i }), ).toBeInTheDocument(); - expect( - screen.getByRole("heading", { level: 3, name: /featured tours/i }), - ).toBeInTheDocument(); expect( screen.getByRole("heading", { level: 2, name: /example pipelines/i }), ).toBeInTheDocument(); @@ -92,4 +89,11 @@ describe("", () => { screen.getByRole("heading", { level: 2, name: /frequently asked/i }), ).toBeInTheDocument(); }); + + test.skip("renders the featured tours section", () => { + renderWithClient(); + expect( + screen.getByRole("heading", { level: 3, name: /featured tours/i }), + ).toBeInTheDocument(); + }); }); diff --git a/src/routes/Dashboard/Learn/LearnHomeView.tsx b/src/routes/Dashboard/Learn/LearnHomeView.tsx index ab8f741fa..40f072a24 100644 --- a/src/routes/Dashboard/Learn/LearnHomeView.tsx +++ b/src/routes/Dashboard/Learn/LearnHomeView.tsx @@ -9,6 +9,10 @@ import { OnboardingHero } from "@/components/Learn/OnboardingHero"; import { TipOfTheDay } from "@/components/Learn/TipOfTheDay"; import { BlockStack } from "@/components/ui/layout"; +// Learning Hub Milestone 1: Documentation, FAQ, Example Pipelines & Tips +// Not included: Guided Tours & Onboarding +const SHOW_WIP_FEATURES = false; + export function LearnHomeView() { return ( @@ -24,11 +28,11 @@ export function LearnHomeView() { - + {SHOW_WIP_FEATURES && }
- + {SHOW_WIP_FEATURES && }