Skip to content

Commit f372b65

Browse files
authored
Merge branch 'main' into boris/search-original-and-split
2 parents 83bf5d8 + 900a4df commit f372b65

File tree

15 files changed

+40
-48
lines changed

15 files changed

+40
-48
lines changed

apps/frontend/src/pages/admin/billing/[id].vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -372,18 +372,20 @@ const messages = defineMessages({
372372
},
373373
})
374374
375-
const { data: user } = useQuery({
375+
const { data: user, error: userError } = useQuery({
376376
queryKey: ['user', route.params.id],
377377
queryFn: () => useBaseFetch(`user/${route.params.id}`),
378378
})
379379
380-
if (!user.value) {
381-
throw createError({
382-
fatal: true,
383-
statusCode: 404,
384-
message: formatMessage(messages.userNotFoundError),
385-
})
386-
}
380+
watch(userError, (error) => {
381+
if (error) {
382+
showError({
383+
fatal: true,
384+
statusCode: error.statusCode ?? error.status ?? 404,
385+
message: formatMessage(messages.userNotFoundError),
386+
})
387+
}
388+
})
387389
388390
const { data: subscriptions } = useQuery({
389391
queryKey: computed(() => ['billing', 'subscriptions', user.value?.id]),

apps/frontend/src/pages/hosting/manage/[id]/options.vue

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<template>
22
<div class="flex flex-col gap-4">
3-
<Admonition v-if="backupBusyReason" type="warning" :header="backupBusyReason">
4-
Some options may not be editable while the operation is in progress.
5-
</Admonition>
63
<ServerSidebar :route="route" :nav-links="navLinks" />
74
</div>
85
</template>
@@ -18,7 +15,7 @@ import {
1815
VersionIcon,
1916
WrenchIcon,
2017
} from '@modrinth/assets'
21-
import { Admonition, injectModrinthServerContext, useVIntl } from '@modrinth/ui'
18+
import { injectModrinthServerContext } from '@modrinth/ui'
2219
import { isAdmin as isUserAdmin, type User } from '@modrinth/utils'
2320
2421
import ServerSidebar from '~/components/ui/servers/ServerSidebar.vue'
@@ -27,17 +24,7 @@ const route = useRoute()
2724
const serverId = route.params.id as string
2825
const auth = await useAuth()
2926
30-
const { formatMessage } = useVIntl()
31-
const { server, busyReasons } = injectModrinthServerContext()
32-
33-
const backupBusyReason = computed(() => {
34-
const reason = busyReasons.value.find(
35-
(r) =>
36-
r.reason.id === 'servers.busy.backup-creating' ||
37-
r.reason.id === 'servers.busy.backup-restoring',
38-
)
39-
return reason ? formatMessage(reason.reason) : null
40-
})
27+
const { server } = injectModrinthServerContext()
4128
4229
useHead({
4330
title: `Options - ${server.value?.name ?? 'Server'} - Modrinth`,

apps/frontend/src/pages/settings/pats.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
<template v-else>{{ formatMessage(tokenMessages.neverUsed) }}</template>
131131
</span>
132132
133-
<span v-tooltip="formatDateTime(pat.expires)">
133+
<span v-tooltip="Date.parse(pat.expires) ? formatDateTime(pat.expires) : null">
134134
<template v-if="new Date(pat.expires) > new Date()">
135135
{{
136136
formatMessage(tokenMessages.expiresIn, {

apps/frontend/src/public/news/feed/articles.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"title": "Content Management Overhaul",
55
"summary": "Overhauled content management for both Modrinth Hosting servers and Modrinth App instances.",
66
"thumbnail": "https://modrinth.com/news/article/content-management-overhaul/thumbnail.webp",
7-
"date": "2026-03-13T20:30:00.000Z",
7+
"date": "2026-03-17T20:15:00.000Z",
88
"link": "https://modrinth.com/news/article/content-management-overhaul"
99
},
1010
{

packages/api-client/src/modules/labrinth/projects/v2.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export class LabrinthProjectsV2Module extends AbstractModule {
7171
params: {
7272
...params,
7373
facets: params.facets ? JSON.stringify(params.facets) : undefined,
74+
new_filters: params.new_filters ?? undefined,
7475
},
7576
})
7677
}

packages/api-client/src/modules/labrinth/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ export namespace Labrinth {
307307
export type ProjectSearchParams = {
308308
query?: string
309309
facets?: string[][] // in the format of [["categories:forge"],["versions:1.17.1"]]
310+
new_filters?: string
310311
filters?: string
311312
index?: 'relevance' | 'downloads' | 'follows' | 'newest' | 'updated'
312313
offset?: number

packages/blog/articles/content-management-overhaul.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Content Management Overhaul
33
summary: Overhauled content management for both Modrinth Hosting servers and Modrinth App instances.
4-
date: 2026-03-13T12:30:00-08:00
4+
date: 2026-03-17T12:15:00-08:00
55
authors: ['AJfd8YH6', 'bOHH0P9Z', 'LnK8MbX7']
66
---
77

packages/blog/compiled/content_management_overhaul.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export const article = {
33
html: () => import(`./content_management_overhaul.content`).then(m => m.html),
44
title: "Content Management Overhaul",
55
summary: "Overhauled content management for both Modrinth Hosting servers and Modrinth App instances.",
6-
date: "2026-03-13T20:30:00.000Z",
6+
date: "2026-03-17T20:15:00.000Z",
77
slug: "content-management-overhaul",
88
authors: ["AJfd8YH6","bOHH0P9Z","LnK8MbX7"],
99
unlisted: false,

packages/ui/src/components/flows/creation-flow-modal/components/FinalConfigStage.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@
9797
</div>
9898
</div>
9999
</Accordion>
100+
101+
<InlineBackupCreator
102+
v-if="ctx.flowType === 'reset-server'"
103+
backup-name="Before reinstall"
104+
hide-shift-click-hint
105+
/>
100106
</div>
101107
</template>
102108

@@ -106,6 +112,7 @@ import { computed, watch } from 'vue'
106112
107113
import { useDebugLogger } from '#ui/composables/debug-logger'
108114
115+
import InlineBackupCreator from '../../../../layouts/shared/content-tab/components/modals/InlineBackupCreator.vue'
109116
import { injectTags } from '../../../../providers'
110117
import Accordion from '../../../base/Accordion.vue'
111118
import Chips from '../../../base/Chips.vue'

packages/ui/src/components/flows/creation-flow-modal/components/SetupTypeStage.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
@click="setSetupType('vanilla')"
6060
/>
6161
</div>
62-
<InlineBackupCreator v-if="ctx.flowType === 'reset-server'" backup-name="Before reinstall" />
6362
</template>
6463
</div>
6564
</template>
@@ -69,7 +68,6 @@ import { BoxesIcon, BoxIcon, BoxImportIcon, PackageIcon } from '@modrinth/assets
6968
7069
import { useDebugLogger } from '#ui/composables/debug-logger'
7170
72-
import InlineBackupCreator from '../../../../layouts/shared/content-tab/components/modals/InlineBackupCreator.vue'
7371
import BigOptionButton from '../../../base/BigOptionButton.vue'
7472
import { injectCreationFlowContext } from '../creation-flow-context'
7573

0 commit comments

Comments
 (0)