fix(changelog): match tabs to actual API commitCategory values

The server-side patch isn't fully applied — the API returns commitCategory
values "chores" and "refactor" instead of "performance"/"accessibility"/"other".
Updated tabs, labels, and colors to match the live API response.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-23 10:03:06 +01:00
parent ed1072ce05
commit 40608614de

View File

@@ -120,28 +120,25 @@ function changelogApp() {
{ key: 'all', label: 'All' },
{ key: 'features', label: 'Features' },
{ key: 'fixes', label: 'Fixes' },
{ key: 'performance', label: 'Performance' },
{ key: 'accessibility', label: 'Accessibility' },
{ key: 'documentation', label: 'Docs' },
{ key: 'other', label: 'Other' },
{ key: 'chores', label: 'Chores' },
{ key: 'refactor', label: 'Refactor' },
],
categoryLabels: {
features: 'Features',
fixes: 'Fixes',
performance: 'Performance',
accessibility: 'Accessibility',
documentation: 'Docs',
other: 'Other',
chores: 'Chores',
refactor: 'Refactor',
},
categoryColors: {
features: 'bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300',
fixes: 'bg-orange-100 dark:bg-orange-900 text-orange-700 dark:text-orange-300',
performance: 'bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300',
accessibility: 'bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300',
documentation: 'bg-yellow-100 dark:bg-yellow-900 text-yellow-700 dark:text-yellow-300',
other: 'bg-surface-100 dark:bg-surface-800 text-surface-700 dark:text-surface-300',
chores: 'bg-surface-100 dark:bg-surface-800 text-surface-700 dark:text-surface-300',
refactor: 'bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300',
},
get canLoadMore() {