Add premium API roadmap item and sort roadmap by votes

This commit is contained in:
Remi
2025-09-18 13:05:17 +02:00
committed by itsrubberduck
parent 8e21cafb53
commit ef69c32d59
2 changed files with 19 additions and 0 deletions

View File

@@ -41,6 +41,17 @@ export default defineEventHandler(async () => {
scorePercent,
lastVoteAt: stat?.lastVoteAt ? stat.lastVoteAt.toISOString() : null,
}
}).sort((a, b) => {
const voteDelta = (b.votes ?? 0) - (a.votes ?? 0)
if (voteDelta !== 0) {
return voteDelta
}
const avgA = a.averageImportance ?? 0
const avgB = b.averageImportance ?? 0
if (avgB !== avgA) {
return avgB - avgA
}
return a.title.localeCompare(b.title)
})
const totalVotes = items.reduce((acc, item) => acc + item.votes, 0)

View File

@@ -63,6 +63,14 @@ export const ROADMAP_ITEMS: RoadmapItemDefinition[] = [
category: 'Infra',
icon: 'mdi-server',
},
{
key: 'premium-api-access',
title: 'Premium-Zugriff auf schnelle APIs',
description:
'Optionale Monatsabos für performantere Speech- & Sim-APIs mit priorisierten Kontingenten zu niedrigen Beträgen.',
category: 'Business',
icon: 'mdi-credit-card-clock',
},
{
key: 'multi-voice',
title: 'Mehrere ATC-Stimmen',