feat(plugins): install an older version of a plugin (#2035)

Adds a version picker to the plugin admin panel, on desktop and mobile: every
published version with its own server-computed compatibility verdict, so the
client never re-derives semver range logic.

A deliberate non-latest pick sets an update hold on the row, which keeps the
update banner and "Update all" from immediately nagging the rollback away. The
hold releases when an install lands back on the newest compatible version by any
path, or when the admin resumes updates explicitly. An unresolvable registry
never sets one: refusing to pin on missing information beats silently muting
future updates.
This commit is contained in:
jubnl
2026-08-25 17:30:27 +02:00
committed by GitHub
parent b5c8182410
commit 4ba407aead
37 changed files with 1383 additions and 42 deletions
+13
View File
@@ -479,6 +479,19 @@ const admin: TranslationStrings = {
'admin.plugins.sortUpdates': 'Uppdateringar först',
'admin.plugins.sortDownloads': 'Mest nedladdade',
'admin.plugins.updatesAvailable': '{count} uppdateringar tillgängliga för dina plugins.',
'admin.plugins.newerNeedsTrek': 'v{version} tillgänglig — kräver TREK {range}',
'admin.plugins.versionsTitle': 'Versioner',
'admin.plugins.versionPickerTitle': 'Byt version — {name}',
'admin.plugins.versionSwitch': 'Byt till {version}',
'admin.plugins.versionNeedsTrek': 'kräver TREK {range}',
'admin.plugins.changeVersion': 'Byt version…',
'admin.plugins.noVersions': 'Inga publicerade versioner hittades i registret.',
'admin.plugins.downgradeTitle': 'Rulla tillbaka detta tillägg?',
'admin.plugins.downgradeBody': 'Byte från v{from} till v{to}: data som skrivits av den nyare versionen finns kvar, och den äldre versionen kanske inte förstår dem.',
'admin.plugins.downgradeConfirm': 'Rulla tillbaka',
'admin.plugins.updatesHeld': 'Uppdateringar pausade vid v{version}',
'admin.plugins.resumeUpdates': 'Återuppta uppdateringar',
'admin.plugins.updatesResumed': 'Uppdateringar återupptagna',
'admin.plugins.updateAll': 'Uppdatera alla',
'admin.plugins.noMatchInstalled': 'Inga installerade plugins matchar din sökning.',
'admin.plugins.noMatchRegistry': 'Inga plugins i registret matchar din sökning.',