Skip to content

Commit d1aa74d

Browse files
committed
change registry ranking logic to move archived to the back
1 parent 386591d commit d1aa74d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pages/registry/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,6 +1192,7 @@ <h3 style="margin: 0;">Raw Manifest:</h3>
11921192
'isPinned': 0,
11931193
'isOfficial': 1,
11941194
'others': 2,
1195+
'archived': 3,
11951196
}
11961197
const isLucien = searchParams.get('source') === 'lucien'
11971198
const sourceProtocol = searchParams.get('protocol') || 'lucien'
@@ -1206,6 +1207,10 @@ <h3 style="margin: 0;">Raw Manifest:</h3>
12061207
function serverSortRule(serverA, serverB) {
12071208

12081209
function determineServerType(server) {
1210+
// Archived servers get lowest priority regardless of other factors
1211+
if (server.is_archived) {
1212+
return 'archived';
1213+
}
12091214
if (defaultSpecifiedServers.includes(server.name)) {
12101215
return 'isPinned';
12111216
}

0 commit comments

Comments
 (0)