Hide empty testing batches in changelog

This commit is contained in:
2026-09-04 20:32:35 -07:00
parent 4eb9e6c96a
commit 79f3d40fcd
4 changed files with 11 additions and 3 deletions
+7 -1
View File
@@ -2,6 +2,12 @@
import { createEventDispatcher } from 'svelte';
import { VERSION, CHANGELOG } from '../lib/changelog';
const visibleEntries = CHANGELOG.filter((entry) =>
entry.version !== null ||
(entry.groups ?? [{ changes: entry.changes ?? [] }])
.some((group) => group.changes.some((change) => change.trim()))
);
const dispatch = createEventDispatcher();
function close() { dispatch('close'); }
</script>
@@ -17,7 +23,7 @@
<h4 class="about-heading">What's New</h4>
<ul class="changelog">
{#each CHANGELOG as entry (entry.version)}
{#each visibleEntries as entry (entry.version)}
<li class="changelog-entry">
<div class="changelog-head">
<span class="changelog-ver">{entry.version === null ? 'In testing' : `v${entry.version}`}</span>
+1 -2
View File
@@ -10,9 +10,8 @@ export const VERSION = 50;
// Newest first. In testing: { version: null, changes: [string, ...] }.
// Release: { version, date: 'YYYY-MM-DD', groups: [{ title, changes: [...] }] }.
// Historical flat changes arrays are also supported.
// Historical flat changes arrays are also supported. Omit the testing entry when empty.
export const CHANGELOG = [
{ version: null, changes: ['Upcoming changes now appear together under In testing in About, ahead of numbered releases.'] },
{
version: 50,
date: '2026-09-04',