From 3f495fe93f895e6473c098169e8a94038feb9c27 Mon Sep 17 00:00:00 2001 From: Jordan Morgan Date: Thu, 22 Jan 2026 15:59:12 -0600 Subject: [PATCH] Add to toggle --- content/docs/{changelog.mdx => changelog/index.mdx} | 0 content/docs/changelog/meta.json | 8 ++++++++ next-env.d.ts | 2 +- src/components/SmartRootToggle.tsx | 2 +- src/lib/changelog-entries.json | 12 +----------- 5 files changed, 11 insertions(+), 13 deletions(-) rename content/docs/{changelog.mdx => changelog/index.mdx} (100%) create mode 100644 content/docs/changelog/meta.json diff --git a/content/docs/changelog.mdx b/content/docs/changelog/index.mdx similarity index 100% rename from content/docs/changelog.mdx rename to content/docs/changelog/index.mdx diff --git a/content/docs/changelog/meta.json b/content/docs/changelog/meta.json new file mode 100644 index 0000000..597ded9 --- /dev/null +++ b/content/docs/changelog/meta.json @@ -0,0 +1,8 @@ +{ + "title": "Changelog", + "icon": "History", + "root": true, + "pages": [ + "index" + ] +} diff --git a/next-env.d.ts b/next-env.d.ts index 9edff1c..c4b7818 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/types/routes.d.ts"; +import "./.next/dev/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/app/api-reference/config/typescript for more information. diff --git a/src/components/SmartRootToggle.tsx b/src/components/SmartRootToggle.tsx index 4fc619e..c36d550 100644 --- a/src/components/SmartRootToggle.tsx +++ b/src/components/SmartRootToggle.tsx @@ -23,7 +23,7 @@ interface SmartRootToggleProps { className?: string } -const GENERAL_ROOT_ORDER = ['dashboard', 'web-checkout', 'integrations', 'support'] as const +const GENERAL_ROOT_ORDER = ['dashboard', 'web-checkout', 'integrations', 'support', 'changelog'] as const const SDK_TARGETS = new Set(['ios', 'android', 'flutter', 'expo', 'react-native', 'dashboard']) const isSdkRoot = (key: string): key is SDKType => SDK_TARGETS.has(key as SDKType) diff --git a/src/lib/changelog-entries.json b/src/lib/changelog-entries.json index 36ea5aa..2fec9a1 100644 --- a/src/lib/changelog-entries.json +++ b/src/lib/changelog-entries.json @@ -1,16 +1,6 @@ { - "lastUpdated": "2026-01-22T19:48:36.102Z", + "lastUpdated": "2026-01-22T21:40:55.625Z", "entries": [ - { - "key": "content/docs/changelog.mdx:ea9b8388bf90d855b45ad488ed732830c2d975e1", - "path": "changelog.mdx", - "title": "Changelog", - "description": "Introduces a changelog page to track product updates and version history.", - "category": "Documentation", - "url": "/docs/changelog", - "date": "2026-01-21T21:32:17.000Z", - "changeType": "added" - }, { "key": "content/docs/dashboard/overview-metrics.mdx:4d42c4b03754f3ae641edfceeffdb38ef56a27d9", "path": "dashboard/overview-metrics.mdx",