Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions src/routes/Dashboard/Learn/LearnHomeView.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe("<LearnHomeView/>", () => {
).toBeInTheDocument();
});

test("renders the onboarding hero with progress", () => {
test.skip("renders the onboarding hero with progress", () => {
renderWithClient(<LearnHomeView />);
expect(
screen.getByRole("heading", { level: 2, name: /welcome to tangle/i }),
Expand All @@ -77,19 +77,23 @@ describe("<LearnHomeView/>", () => {
expect(screen.getByText("Full docs")).toBeInTheDocument();
});

test("renders the tip, tours, examples and FAQ sections", () => {
test("renders the tip, examples and FAQ sections", () => {
renderWithClient(<LearnHomeView />);
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();
expect(
screen.getByRole("heading", { level: 2, name: /frequently asked/i }),
).toBeInTheDocument();
});

test.skip("renders the featured tours section", () => {
renderWithClient(<LearnHomeView />);
expect(
screen.getByRole("heading", { level: 3, name: /featured tours/i }),
).toBeInTheDocument();
});
});
8 changes: 6 additions & 2 deletions src/routes/Dashboard/Learn/LearnHomeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<BlockStack gap="6">
Expand All @@ -24,11 +28,11 @@ export function LearnHomeView() {
</BlockStack>
</BlockStack>

<OnboardingHero />
{SHOW_WIP_FEATURES && <OnboardingHero />}

<div className="grid grid-cols-1 lg:grid-cols-2 gap-4">
Comment thread
camielvs marked this conversation as resolved.
<TipOfTheDay />
<FeaturedTours />
{SHOW_WIP_FEATURES && <FeaturedTours />}
</div>

<FeaturedExamples />
Expand Down
Loading