Envs v3 frontend (#4267)

* New envs frontend

* lint fix

* Add blog post, user-facing changes, dashboard warning, project page member warning, and migration reviewing. maybe some other misc stuff

* lint

* lint

* ignore .data in .prettierignore

* i18n as fuck

* fix proj page

* Improve news markdown rendering

* improve phrasing of initial paragraph

* Fix environments not reloading after save

* index.ts instead of underscored name

* shrink-0 back on these icons
This commit is contained in:
Prospector
2025-08-28 15:11:35 -07:00
committed by GitHub
parent 0ac42344e7
commit 46c325f78a
49 changed files with 2509 additions and 397 deletions

View File

@@ -112,13 +112,11 @@ export interface ProjectV3 {
color?: number
thread_id: ModrinthId
monetization_status: MonetizationStatus
side_types_migration_review_status: 'reviewed' | 'pending'
side_types_migration_review_status: EnvironmentMigrationReviewStatus
[key: string]: unknown
}
export type SideTypesMigrationReviewStatus = 'reviewed' | 'pending'
export interface Project {
id: ModrinthId
project_type: ProjectType
@@ -172,6 +170,26 @@ export interface Project {
}
}
export type EnvironmentMigrationReviewStatus = 'reviewed' | 'pending'
export type EnvironmentV3 =
| 'client_and_server'
| 'client_only'
| 'client_only_server_optional'
| 'singleplayer_only'
| 'server_only'
| 'server_only_client_optional'
| 'dedicated_server_only'
| 'client_or_server'
| 'client_or_server_prefers_both'
| 'unknown'
// This is only the fields we care about from v3, since we use v2 for the vast majority of project metadata.
export interface ProjectV3Partial {
side_types_migration_review_status: EnvironmentMigrationReviewStatus
environment: EnvironmentV3[]
project_types: ProjectType[]
}
export interface SearchResult {
id: ModrinthId
project_type: ProjectType