diff --git a/apps/app-frontend/src/pages/project/Index.vue b/apps/app-frontend/src/pages/project/Index.vue index 53adf307fcc..306c37992ff 100644 --- a/apps/app-frontend/src/pages/project/Index.vue +++ b/apps/app-frontend/src/pages/project/Index.vue @@ -71,7 +71,7 @@ v-else :project="data" :project-v3="projectV3" - :show-status-badge="data.status !== 'approved'" + :status-badge="data.status !== 'approved' ? projectV3?.status : undefined" @contextmenu.prevent.stop="handleRightClick" @category="(category) => router.push(`${projectSearchUrl}?f=categories:${category}`)" > diff --git a/apps/frontend/src/components/project-review/issue-list/stories/issue-catalogue.ts b/apps/frontend/src/components/project-review/issue-list/stories/issue-catalogue.ts index 4cff8a2b304..4c48c65540f 100644 --- a/apps/frontend/src/components/project-review/issue-list/stories/issue-catalogue.ts +++ b/apps/frontend/src/components/project-review/issue-list/stories/issue-catalogue.ts @@ -70,7 +70,10 @@ const project: Labrinth.Projects.v3.Project = { description: '', published: '2026-01-01T00:00:00.000Z', updated: '2026-01-01T00:00:00.000Z', + visibility: 'public', status: 'processing', + in_review: true, + review_outcome: 'never_reviewed', license: { id: 'MIT', name: 'MIT License' }, downloads: 0, followers: 0, diff --git a/apps/frontend/src/components/project-review/tech-review/archive-picker/item.stories.ts b/apps/frontend/src/components/project-review/tech-review/archive-picker/item.stories.ts index fc7b1325a77..e6f6ca41f17 100644 --- a/apps/frontend/src/components/project-review/tech-review/archive-picker/item.stories.ts +++ b/apps/frontend/src/components/project-review/tech-review/archive-picker/item.stories.ts @@ -26,7 +26,10 @@ const project: Labrinth.Projects.v3.Project = { description: '', published: '2026-11-01T00:00:00Z', updated: '2026-11-02T00:00:00Z', + visibility: 'public', status: 'processing', + in_review: true, + review_outcome: 'never_reviewed', license: { id: 'MIT', name: 'MIT License' }, downloads: 0, followers: 0, diff --git a/apps/frontend/src/components/ui/moderation/ModerationProjectNags.stories.ts b/apps/frontend/src/components/ui/moderation/ModerationProjectNags.stories.ts index 8fea575ee20..cf5aa719c69 100644 --- a/apps/frontend/src/components/ui/moderation/ModerationProjectNags.stories.ts +++ b/apps/frontend/src/components/ui/moderation/ModerationProjectNags.stories.ts @@ -51,7 +51,7 @@ function createProject(status: Labrinth.Projects.v2.ProjectStatus): Labrinth.Pro } } -function createProjectV3(status: Labrinth.Projects.v2.ProjectStatus): Labrinth.Projects.v3.Project { +function createProjectV3(status: 'draft' | 'rejected' | 'withheld'): Labrinth.Projects.v3.Project { return { id: 'storybook-publishing-checklist', slug: 'storybook-publishing-checklist', @@ -63,7 +63,10 @@ function createProjectV3(status: Labrinth.Projects.v2.ProjectStatus): Labrinth.P description: '', published: '2026-01-01T00:00:00.000Z', updated: '2026-01-01T00:00:00.000Z', + visibility: 'public', status, + in_review: false, + review_outcome: status === 'draft' ? 'never_reviewed' : status, license: { id: 'MIT', name: 'MIT License', diff --git a/apps/frontend/src/pages/[type]/[project].vue b/apps/frontend/src/pages/[type]/[project].vue index 20ca74ae8b6..d563482803c 100644 --- a/apps/frontend/src/pages/[type]/[project].vue +++ b/apps/frontend/src/pages/[type]/[project].vue @@ -152,7 +152,7 @@ v-if="projectV3Loaded" :project="project" :project-v3="projectV3" - :show-status-badge="!!currentMember || projectV3.status !== 'approved'" + :status-badge="projectStatusBadge" @category="(category) => router.push(`${projectSearchUrl}?f=categories:${category}`)" > -