fix: servers misc fixes (#5475)

* fix: tags in project settings to have icons and ordered correctly

* fix copy in project list layout settings

* fix tag item in header navigation

* adjust ping ranges

* add handle click tag

* fix: dont show offline in project page for draft status

* move tags above creators in app

* preload server project page on load and optimize queries

* add server project card to organization page

* fix minecraft_java_server label

* pnpm prepr

* have user option in project create modal be circle

* feat: implement better mobile project page view

* disable summary line clamp for servers

* fix: unlink instance doesnt update instance

* increase icon upload size

* small fix on button size

* improve how server ping info loads

* remove unnecessary pings for instance page

* fix order of computing dependency diff

* remove linked_project_id from world, use name+address to match for managed world instead

* pnpm prepr

* hide duplicate worlds with same domain name in worlds list

* add install content warning for server instance

* increase summary max width

* add handling for server projects for bulk editing links

* implement include user unlisted projects in published modpack select

* pnpm prepr

* filter to only user unlisted status

* add bad link warnings

* fix modpack tags appearing in server

* cargo fmt
This commit is contained in:
Truman Gao
2026-03-06 18:11:45 -08:00
committed by GitHub
parent 98175a58a6
commit 83d53dafe7
44 changed files with 993 additions and 377 deletions

View File

@@ -149,3 +149,52 @@ export function getTagIcon(tagName: string): IconComponent | undefined {
}
return getLoaderIcon(tagName) ?? getCategoryIcon(tagName)
}
export const SERVER_CATEGORY_ICON_MAP: Record<string, string> = {
'adventure-mode': 'compass',
anarchy: 'skull',
'battle-royale': 'target',
bedwars: 'bed-double',
bosses: 'crown',
classes: 'badge',
competitive: 'trophy',
'creative-mode': 'palette',
'creator-community': 'clapperboard',
crossplay: 'gamepad-2',
'custom-content': 'blocks',
dungeons: 'castle',
factions: 'flag',
gens: 'pickaxe',
'hardcore-mode': 'heart-crack',
'keep-inventory': 'backpack',
kitpvp: 'sword',
lifesteal: 'heart-pulse',
media: 'film',
microgames: 'grid-3x3',
minigames: 'dices',
mmo: 'globe',
network: 'network',
'offline-mode': 'wifi-off',
oneblock: 'square',
op: 'zap',
parkour: 'footprints',
'personal-worlds': 'house',
plots: 'map-pinned',
pokemon: 'paw-print',
prison: 'lock',
pve: 'shield',
pvp: 'swords',
questing: 'scroll-text',
racing: 'gauge',
'recording-smp': 'camera',
roleplay: 'theater',
rpg: 'wand-sparkles',
skyblock: 'cloud',
smp: 'users',
'survival-mode': 'tree-pine',
teams: 'handshake',
technical: 'terminal',
towns: 'building-2',
whitelisted: 'badge-check',
'world-resets': 'refresh-ccw',
}