fix: project page in app not receiving instance context & port version page to app (#6618)

* fix: project page in app not receiving instance context

* prepr

* feat: port version page to app

* commonize keys

* whoops bring those back
This commit is contained in:
Prospector
2026-07-06 15:17:25 -07:00
committed by GitHub
parent 8d20fd82db
commit 0905ea72f6
12 changed files with 262 additions and 445 deletions
@@ -38,7 +38,7 @@ const messages = defineMessages({
},
addFilesModalSearchPlaceholder: {
id: 'external-files.permissions-card.add-files-modal.search-placeholder',
defaultMessage: 'Search files',
defaultMessage: 'Search files...',
},
addFilesModalNoSearchResults: {
id: 'external-files.permissions-card.add-files-modal.no-search-results',
@@ -216,7 +216,7 @@ defineExpose({ show, hide })
:icon="SearchIcon"
type="text"
autocomplete="off"
placeholder="Search external projects"
placeholder="Search external projects..."
clearable
wrapper-class="flex-1 min-w-[12rem]"
:disabled="addFilesMutation.isPending.value"
@@ -237,14 +237,14 @@ defineExpose({ show, hide })
>
<span class="text-contrast font-semibold">
<template v-if="searchNeedsInput"> Enter a search term to get started </template>
<template v-else-if="isLoading"> Loading external projects </template>
<template v-else-if="isLoading"> Loading external projects...</template>
<template v-else> No projects matched that search </template>
</span>
<span class="text-secondary text-sm">
<template v-if="searchNeedsInput">
Type at least 3 characters of a project's title to begin browsing.
</template>
<template v-else-if="isLoading"> Loading external projects </template>
<template v-else-if="isLoading"> Loading external projects...</template>
<template v-else> No projects matched that search </template>
</span>
</div>
+7 -1
View File
@@ -221,6 +221,9 @@
"button.open-folder": {
"defaultMessage": "Open folder"
},
"button.open-in-browser": {
"defaultMessage": "Open in browser"
},
"button.open-in-folder": {
"defaultMessage": "Open in folder"
},
@@ -290,6 +293,9 @@
"button.stop": {
"defaultMessage": "Stop"
},
"button.switch-to-version": {
"defaultMessage": "Switch to version"
},
"button.switch-version": {
"defaultMessage": "Switch version"
},
@@ -912,7 +918,7 @@
"defaultMessage": "No files match your search."
},
"external-files.permissions-card.add-files-modal.search-placeholder": {
"defaultMessage": "Search files"
"defaultMessage": "Search files..."
},
"external-files.permissions-card.add-files-modal.selected-count": {
"defaultMessage": "{count, plural, one {# file selected} other {# files selected}}"
+8
View File
@@ -207,6 +207,10 @@ export const commonMessages = defineMessages({
id: 'button.open-folder',
defaultMessage: 'Open folder',
},
openInBrowserButton: {
id: 'button.open-in-browser',
defaultMessage: 'Open in browser',
},
openInModrinthButton: {
id: 'button.open-in-modrinth',
defaultMessage: 'Open in Modrinth',
@@ -545,6 +549,10 @@ export const commonMessages = defineMessages({
id: 'button.copy-link',
defaultMessage: 'Copy link',
},
switchToVersionButton: {
id: 'button.switch-to-version',
defaultMessage: 'Switch to version',
},
switchVersionButton: {
id: 'button.switch-version',
defaultMessage: 'Switch version',