feat: content tab QA fixes for panel pre-release (#5588)

* feat: use new_filters + other qa fixes

* fix: double admons + lint
This commit is contained in:
Calum H.
2026-03-17 17:47:58 +00:00
committed by GitHub
parent 496bbae8a0
commit 63ea8230ba
9 changed files with 19 additions and 35 deletions

View File

@@ -71,6 +71,7 @@ export class LabrinthProjectsV2Module extends AbstractModule {
params: {
...params,
facets: params.facets ? JSON.stringify(params.facets) : undefined,
new_filters: params.new_filters ?? undefined,
},
})
}

View File

@@ -307,6 +307,7 @@ export namespace Labrinth {
export type ProjectSearchParams = {
query?: string
facets?: string[][] // in the format of [["categories:forge"],["versions:1.17.1"]]
new_filters?: string
filters?: string
index?: 'relevance' | 'downloads' | 'follows' | 'newest' | 'updated'
offset?: number