Versions environments updates (#4949)

* add environment to version page metadata card

* remove environment migration warnings

* show settings/environments in nav only for staff

* use v2 versions route due to regressions

* add modpack incorrect loaders migration

* remove modpack migration step

* remove unused var

* run pnpm intl:extract

* componentize environment migration page

* rename environment selector

* rename environment selector pt2

* add migration modal to admonition

* hide environments in settings and show message

* show environment in project versions table

* pnpm fix

* pnpm fix on ui package

* intl:extract

* fix: .value

* lower case file

* add icon to environment tags and use i18n

* Update apps/frontend/src/pages/[type]/[id].vue

Co-authored-by: Calum H. <contact@cal.engineer>
Signed-off-by: Truman Gao <106889354+tdgao@users.noreply.github.com>

* open migration modal from warning icon in project dashboard

* fix settings side nav icon

* use useRoute composable

* pnpm fix

* intl:extract

* fix import

* fix import again

* run pnpm prepr

* fix designMessage import

* fix environment fetch

* fix environment fetch properly without key conflict

* fix environment refetching

* fix not using current versions in table to check different environments

* fix download tooltip

---------

Signed-off-by: Truman Gao <106889354+tdgao@users.noreply.github.com>
Co-authored-by: Calum H. (IMB11) <contact@cal.engineer>
This commit is contained in:
Truman Gao
2025-12-29 13:58:17 -08:00
committed by GitHub
parent 9924faab84
commit 91b08e7380
16 changed files with 671 additions and 286 deletions

View File

@@ -677,6 +677,66 @@
"project.about.links.wiki": {
"defaultMessage": "Visit wiki"
},
"project.environment.client-and-server.description": {
"defaultMessage": "Has some functionality on both the client and server, even if only partially."
},
"project.environment.client-and-server.title": {
"defaultMessage": "Client and server"
},
"project.environment.client-only-server-optional.description": {
"defaultMessage": "Has some functionality on both the client and server, even if only partially."
},
"project.environment.client-only-server-optional.title": {
"defaultMessage": "Client and server"
},
"project.environment.client-only.description": {
"defaultMessage": "All functionality is done client-side and is compatible with vanilla servers."
},
"project.environment.client-only.title": {
"defaultMessage": "Client-side only"
},
"project.environment.client-or-server-prefers-both.description": {
"defaultMessage": "Has some functionality on both the client and server, even if only partially."
},
"project.environment.client-or-server-prefers-both.title": {
"defaultMessage": "Client and server"
},
"project.environment.client-or-server.description": {
"defaultMessage": "Has some functionality on both the client and server, even if only partially."
},
"project.environment.client-or-server.title": {
"defaultMessage": "Client and server"
},
"project.environment.dedicated-server-only.description": {
"defaultMessage": "All functionality is done server-side and is compatible with vanilla clients."
},
"project.environment.dedicated-server-only.title": {
"defaultMessage": "Server-side only"
},
"project.environment.server-only-client-optional.description": {
"defaultMessage": "Has some functionality on both the client and server, even if only partially."
},
"project.environment.server-only-client-optional.title": {
"defaultMessage": "Client and server"
},
"project.environment.server-only.description": {
"defaultMessage": "All functionality is done server-side and is compatible with vanilla clients."
},
"project.environment.server-only.title": {
"defaultMessage": "Server-side only"
},
"project.environment.singleplayer-only.description": {
"defaultMessage": "Only functions in Singleplayer or when not connected to a Multiplayer server."
},
"project.environment.singleplayer-only.title": {
"defaultMessage": "Singleplayer only"
},
"project.environment.unknown.description": {
"defaultMessage": "The environment for this version could not be determined."
},
"project.environment.unknown.title": {
"defaultMessage": "Unknown environment"
},
"project.settings.analytics.title": {
"defaultMessage": "Analytics"
},
@@ -710,6 +770,30 @@
"project.settings.environment.client_only.title": {
"defaultMessage": "Client-side only"
},
"project.settings.environment.notice.missing-env.description": {
"defaultMessage": "Your project is missing environment metadata, please select the appropriate option below."
},
"project.settings.environment.notice.missing-env.title": {
"defaultMessage": "Please select an environment for your project"
},
"project.settings.environment.notice.multiple-environments.description": {
"defaultMessage": "Different versions of your project have different environments selected, so you can't edit them globally at this time."
},
"project.settings.environment.notice.multiple-environments.title": {
"defaultMessage": "Your project has multiple environments"
},
"project.settings.environment.notice.review-options.description": {
"defaultMessage": "We've just overhauled the Environments system on Modrinth and new options are now available. Please ensure the correct option is selected below and then click 'Verify' when you're done!"
},
"project.settings.environment.notice.review-options.title": {
"defaultMessage": "Please review the options below"
},
"project.settings.environment.notice.wrong-project-type.description": {
"defaultMessage": "Only mod or modpack projects can have environment metadata."
},
"project.settings.environment.notice.wrong-project-type.title": {
"defaultMessage": "This project type does not support environment metadata"
},
"project.settings.environment.server_only.dedicated_only.title": {
"defaultMessage": "Dedicated server only"
},
@@ -737,6 +821,12 @@
"project.settings.environment.title": {
"defaultMessage": "Environment"
},
"project.settings.environment.verification.verify-button": {
"defaultMessage": "Verify"
},
"project.settings.environment.verification.verify-text": {
"defaultMessage": "Verify that this project's environment is set correctly."
},
"project.settings.gallery.title": {
"defaultMessage": "Gallery"
},