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-07 02:11:45 +00:00
committed by GitHub
parent 98175a58a6
commit 83d53dafe7
44 changed files with 993 additions and 377 deletions
@@ -49,16 +49,21 @@
</div>
<div class="mt-auto flex flex-col gap-3 flex-wrap overflow-hidden justify-between grow">
<div class="flex items-center gap-1 flex-wrap overflow-hidden">
<ServerDetails
v-if="isServerProject"
:region="serverRegion"
:online-players="serverOnlinePlayers"
:recent-plays="serverRecentPlays"
:ping="serverPing"
:status-online="serverStatusOnline"
:hide-online-players-label="true"
:hide-recent-plays-label="true"
/>
<template v-if="isServerProject">
<ServerOnlinePlayers
v-if="serverOnlinePlayers !== undefined"
:online="serverOnlinePlayers"
:status-online="serverStatusOnline"
:hide-label="true"
/>
<ServerRecentPlays
v-if="serverRecentPlays !== undefined"
:recent-plays="serverRecentPlays"
:hide-label="true"
/>
<ServerPing v-if="serverPing && serverStatusOnline" :ping="serverPing" />
<ServerRegion v-if="serverRegion" :region="serverRegion" />
</template>
<ProjectCardEnvironment
v-if="environment"
:client-side="environment.clientSide"
@@ -134,16 +139,21 @@
</div>
<div class="mt-auto flex items-center gap-3 grid-project-card-list__tags">
<div class="flex items-center gap-2 w-full">
<ServerDetails
v-if="isServerProject"
:region="serverRegion"
:online-players="serverOnlinePlayers"
:status-online="serverStatusOnline"
:recent-plays="serverRecentPlays"
:ping="serverPing"
:hide-online-players-label="true"
:hide-recent-plays-label="true"
/>
<template v-if="isServerProject">
<ServerOnlinePlayers
v-if="serverOnlinePlayers !== undefined"
:online="serverOnlinePlayers"
:status-online="serverStatusOnline"
:hide-label="true"
/>
<ServerRecentPlays
v-if="serverRecentPlays !== undefined"
:recent-plays="serverRecentPlays"
:hide-label="true"
/>
<ServerPing v-if="serverPing && serverStatusOnline" :ping="serverPing" />
<ServerRegion v-if="serverRegion" :region="serverRegion" />
</template>
<div class="flex items-center gap-1">
<ProjectCardEnvironment
v-if="environment"
@@ -181,8 +191,11 @@ import { computed } from 'vue'
import { AutoLink, Avatar } from '../../base'
import { SmartClickable } from '../../base/index.ts'
import ProjectStatusBadge from '../ProjectStatusBadge.vue'
import ServerDetails from '../server/ServerDetails.vue'
import ServerModpackContent from '../server/ServerModpackContent.vue'
import ServerOnlinePlayers from '../server/ServerOnlinePlayers.vue'
import ServerPing from '../server/ServerPing.vue'
import ServerRecentPlays from '../server/ServerRecentPlays.vue'
import ServerRegion from '../server/ServerRegion.vue'
import ProjectCardAuthor from './ProjectCardAuthor.vue'
import ProjectCardDate from './ProjectCardDate.vue'
import ProjectCardEnvironment, {