From 547be7fa6eb701737be2c55b8956be368603bd57 Mon Sep 17 00:00:00 2001 From: Anukiran Date: Thu, 10 Sep 2026 13:44:59 -0500 Subject: [PATCH 1/3] feat(changelog): restyle release card narrative sections - Render section labels (What's new, Impact, Key changes, Migration required) as brand-blue eyebrow headings, distinct from body copy - Turn the migration note into a warning-tinted callout with a numbered step list instead of a single red paragraph - Escape API narrative text and render backtick spans as inline code (site standard style) and bare URLs as links - Add a Vite dev proxy for the changelog API so the page loads under `pnpm dev` (the upstream sends no CORS headers for localhost) Co-Authored-By: Claude Fable 5.1 --- .vitepress/config.mts | 12 +++ .vitepress/theme/components/Changelog.vue | 55 ++++++++---- .vitepress/theme/composables/useChangelog.ts | 38 ++++++++ .../theme/composables/useChangelogData.ts | 6 +- .vitepress/theme/styles/changelog.css | 90 ++++++++++++++----- 5 files changed, 161 insertions(+), 40 deletions(-) diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 2bfa680..f0cb243 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -38,6 +38,18 @@ export default withMermaid( optimizeDeps: { include: ["mermaid"], }, + // The changelog API does not allow cross-origin requests from localhost, so in + // `pnpm dev` the browser calls this same-origin path and Vite forwards it upstream. + // Production calls the API directly (see composables/useChangelogData.ts). + server: { + proxy: { + "/__changelog-api": { + target: "https://changelog-i0d011qixh.erp.dev", + changeOrigin: true, + rewrite: (p) => p.replace(/^\/__changelog-api/, ""), + }, + }, + }, plugins: [ llmstxt({ domain: "https://docs.tailor.tech", diff --git a/.vitepress/theme/components/Changelog.vue b/.vitepress/theme/components/Changelog.vue index 030adfe..93c58ac 100644 --- a/.vitepress/theme/components/Changelog.vue +++ b/.vitepress/theme/components/Changelog.vue @@ -45,22 +45,41 @@

{{ entry.title }}

-
- What's new: {{ entry.narrative.summary }} -
-
- Impact: {{ entry.narrative.impact }} -
-
- Key changes: +
+

What's new

+

+

+
+

Impact

+

+

+
+

Key changes

    -
  • {{ detail }}
  • +
-
-
- ⚠️ Migration required: -
-
+ +
+

⚠️ Migration required

+ +
@@ -96,7 +115,13 @@