From 83ab56f35b8b902ee6855f4ba50a52ff0a359b86 Mon Sep 17 00:00:00 2001 From: Adam Matthiesen Date: Sun, 22 Dec 2024 00:29:53 -0800 Subject: [PATCH] Refactor FrameButton component to update close button styling and add support for displaying full changelog --- packages/studiocms/src/utils/changelog.ts | 4 ++-- packages/studiocms_dashboard/src/components/FrameButton.astro | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/studiocms/src/utils/changelog.ts b/packages/studiocms/src/utils/changelog.ts index 212dce2aaf..ea0e888886 100644 --- a/packages/studiocms/src/utils/changelog.ts +++ b/packages/studiocms/src/utils/changelog.ts @@ -9,7 +9,7 @@ export const changelogHelper = defineUtility('astro:config:setup')(async (params const changelog = loadChangelog(resolve('../../CHANGELOG.md')); // Generate markdown output - const output: string[] = []; + const output: string[] = ['# Release Notes']; const ast: Root = { type: 'root', @@ -46,7 +46,7 @@ export const changelogHelper = defineUtility('astro:config:setup')(async (params ast.children.push({ type: 'heading', depth: 2, - children: [{ type: 'text', value: `Release Notes: ${latestVersion.version}` }], + children: [{ type: 'text', value: `${latestVersion.version}` }], }); } diff --git a/packages/studiocms_dashboard/src/components/FrameButton.astro b/packages/studiocms_dashboard/src/components/FrameButton.astro index 8707b5976b..782691628e 100644 --- a/packages/studiocms_dashboard/src/components/FrameButton.astro +++ b/packages/studiocms_dashboard/src/components/FrameButton.astro @@ -87,7 +87,7 @@ const { link } = Astro.props; frameContent.innerHTML = `

Full Changelog

- Read more on GitHub + See on GitHub ${jsonRes.changelog} `;