refactor: Update release notes page to handle missing release notes gracefully

This commit is contained in:
Mauro Balades 2024-07-14 01:11:03 +02:00
parent 6df551361b
commit 044ab89873
2 changed files with 3 additions and 4 deletions

View file

@ -10,8 +10,7 @@ export default function ReleaseNoteElement({ data }: { data: ReleaseNote }) {
<h1 className="text-4xl font-bold">Release notes for {data.version} 🎉</h1> <h1 className="text-4xl font-bold">Release notes for {data.version} 🎉</h1>
<p className="text-sm mt-1 font-bold text-muted-foreground">{data.date}</p> <p className="text-sm mt-1 font-bold text-muted-foreground">{data.date}</p>
<p className="text-md mt-4 text-muted-foreground"> <p className="text-md mt-4 text-muted-foreground">
If you encounter any issues, please report them on <a href="https://github.com/zen-browser/desktop/issues/">the issues page</a>. If you encounter any issues, please report them on <a href="https://github.com/zen-browser/desktop/issues/" className="text-underline text-blue-500">the issues page</a>. Thanks everyone for your feedback!
<br/>Thanks everyone for your feedback! 🙌
</p> </p>
{data.extra && ( {data.extra && (
<p className="text-md mt-8">{data.extra}</p> <p className="text-md mt-8">{data.extra}</p>

View file

@ -74,7 +74,7 @@ export const releaseNotes: ReleaseNote[] = [
extra: "This release is the third alpha release of the 1.0.0-alpha series. One big feature of this release is the new workspaces feature. This feature allows you to create different workspaces with different tabs and configurations. This release also includes a lot of bug fixes and improvements.", extra: "This release is the third alpha release of the 1.0.0-alpha series. One big feature of this release is the new workspaces feature. This feature allows you to create different workspaces with different tabs and configurations. This release also includes a lot of bug fixes and improvements.",
features: [ features: [
"Added support for workspaces. (Experimental)", "Added support for workspaces. (Experimental)",
"Better support for macOS aaarch64.", "Better support for macOS aarch64.",
], ],
fixes: [ fixes: [
{ {
@ -91,7 +91,7 @@ export const releaseNotes: ReleaseNote[] = [
}, },
], ],
breakingChanges: [ breakingChanges: [
"Change the update URL meaning that since 1.0.0-a.2 (previous release) the browser will be able to update itself.", "Changed the update URL meaning that since 1.0.0-a.2 (previous release) the browser will be able to update itself.",
] ]
}, },
].reverse(); ].reverse();