Skip to content
Open
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
10 changes: 9 additions & 1 deletion src/components/learn-aggregator/learn-pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface LearnPageItem {
title: string
description: string
icon: string
section: "getting-started" | "best-practices"
section: "getting-started" | "best-practices" | "schema-governance"
href: string
}

Expand Down Expand Up @@ -147,13 +147,21 @@ const _items: Record<
icon: new URL("./assets/construction.svg", import.meta.url).href,
section: "best-practices",
},
// ---
"schema-review": {
description:
"Establish review processes and automated validation to keep your GraphQL schema consistent, safe, and easy to evolve.",
icon: new URL("./assets/checkbox.svg", import.meta.url).href,
section: "schema-governance",
},
}

const learnPages = _items as Record<LearnPagePath, LearnPageItem | null>

const pagesBySection: Record<LearnPageItem["section"], LearnPageItem[]> = {
"getting-started": [],
"best-practices": [],
"schema-governance": [],
}

for (const path in learnPages) {
Expand Down
5 changes: 5 additions & 0 deletions src/pages/learn/_meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ export default {
security: "",
federation: "",
"debug-errors": "Common GraphQL over HTTP Errors",
"-- 3": {
type: "separator",
title: "Schema Governance",
},
"schema-review": "",
}
Loading
Loading