Skip to content
Draft
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
24 changes: 12 additions & 12 deletions src/routes/Dashboard/Learn/LearnHomeView.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ describe("<LearnHomeView/>", () => {
).toBeInTheDocument();
});

test("renders the onboarding hero with progress", () => {
renderWithClient(<LearnHomeView />);
expect(
screen.getByRole("heading", { level: 2, name: /welcome to tangle/i }),
).toBeInTheDocument();
expect(
screen.getByRole("progressbar", { name: /onboarding progress/i }),
).toBeInTheDocument();
});
// test("renders the onboarding hero with progress", () => {
// renderWithClient(<LearnHomeView />);
// expect(
// screen.getByRole("heading", { level: 2, name: /welcome to tangle/i }),
// ).toBeInTheDocument();
// expect(
// screen.getByRole("progressbar", { name: /onboarding progress/i }),
// ).toBeInTheDocument();
// });

test("renders the docs quicklinks and full-docs link at the top", () => {
renderWithClient(<LearnHomeView />);
Expand All @@ -78,9 +78,9 @@ describe("<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: 3, name: /featured tours/i }),
// ).toBeInTheDocument();
expect(
screen.getByRole("heading", { level: 2, name: /example pipelines/i }),
).toBeInTheDocument();
Expand Down
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 DO_NOT_RELEASE = false;

export function LearnHomeView() {
return (
<BlockStack gap="6">
Expand All @@ -24,11 +28,11 @@ export function LearnHomeView() {
</BlockStack>
</BlockStack>

<OnboardingHero />
{DO_NOT_RELEASE && <OnboardingHero />}

<div className="grid grid-cols-1 lg:grid-cols-2 gap-4">
<TipOfTheDay />
<FeaturedTours />
{DO_NOT_RELEASE && <FeaturedTours />}
</div>

<FeaturedExamples />
Expand Down
Loading