From 67f432460ac3863a9819c2f433b8c4be81c28dea Mon Sep 17 00:00:00 2001 From: jungganmyeon Date: Thu, 21 May 2026 16:11:20 +0700 Subject: [PATCH 1/2] Fix formatting and pending version visibility --- src/app/plugins/[slug]/page.tsx | 18 +++++++++------- src/components/EditPluginForm.tsx | 32 ++++++++++++++--------------- src/components/SubmitReviewForm.tsx | 4 ++-- 3 files changed, 29 insertions(+), 25 deletions(-) diff --git a/src/app/plugins/[slug]/page.tsx b/src/app/plugins/[slug]/page.tsx index 5e07c71..8f8f345 100644 --- a/src/app/plugins/[slug]/page.tsx +++ b/src/app/plugins/[slug]/page.tsx @@ -155,15 +155,19 @@ export default async function PluginDetailPage({ ? "var(--status-warning)" : "var(--status-error)"; - // Determine active version from URL param or default to latest - const activeVersion = searchParams.v - ? plugin.versions?.find((v: any) => v.version === searchParams.v) || - plugin.versions?.[0] - : plugin.versions?.[0]; - const isAuthor = session?.user?.id === plugin.authorId; const repoOwnerDetail = plugin.repoUrl?.match(/github\.com\/([^/]+)/)?.[1]; + const displayVersions = + plugin.versions?.filter((v: any) => isAuthor || v.status === "APPROVED") || + []; + + // Determine active version from URL param or default to latest + const activeVersion = searchParams.v + ? displayVersions.find((v: any) => v.version === searchParams.v) || + displayVersions[0] + : displayVersions[0]; + const getRoleStyle = (role: string) => { switch (role) { case "COLLABORATOR": @@ -474,7 +478,7 @@ export default async function PluginDetailPage({
{(session?.user as any)?.trustLevel !== "ADMIN" && ( -

- Display name cannot be changed. - Contact an admin if you need to rename your plugin. -

- )} +

+ Display name cannot be changed. + Contact an admin if you need to rename your plugin. +

+ )}
@@ -535,8 +535,8 @@ export default function EditPluginForm({ plugin }: { plugin: any }) { > Pre-release versions will not be listed by default. This is for users to have a "semi-stable" preview version of your - updates. Pre-release versions are less likely to be rejected, since - a higher amount of bugs are tolerable. + updates. Pre-release versions are less likely to be rejected, + since a higher amount of bugs are tolerable.

diff --git a/src/components/SubmitReviewForm.tsx b/src/components/SubmitReviewForm.tsx index b09689b..8f26378 100644 --- a/src/components/SubmitReviewForm.tsx +++ b/src/components/SubmitReviewForm.tsx @@ -759,8 +759,8 @@ export default function SubmitReviewForm({ > Pre-release versions will not be listed by default. This is for users to have a "semi-stable" preview version of your - updates. Pre-release versions are less likely to be rejected, since - a higher amount of bugs are tolerable. + updates. Pre-release versions are less likely to be rejected, + since a higher amount of bugs are tolerable.

From 3a13514b761cd5a375568430baf4658638eb669f Mon Sep 17 00:00:00 2001 From: jungganmyeon Date: Thu, 21 May 2026 17:47:11 +0700 Subject: [PATCH 2/2] fix: change pageSize from 20 to 10 on plugins page --- src/app/plugins/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/plugins/page.tsx b/src/app/plugins/page.tsx index edf7d72..f16d63e 100644 --- a/src/app/plugins/page.tsx +++ b/src/app/plugins/page.tsx @@ -33,7 +33,7 @@ export default async function PluginsPage({ const query = new URLSearchParams(); const currentPage = parseInt(searchParams.page as string) || 1; query.set("page", currentPage.toString()); - query.set("pageSize", "20"); + query.set("pageSize", "10"); if (searchParams.q) query.set("q", searchParams.q as string); if (searchParams.category) query.set("category", searchParams.category as string); @@ -49,7 +49,7 @@ export default async function PluginsPage({ page: 1, totalPages: 1, total: 0, - pageSize: 20, + pageSize: 10, }; // Build pagination URL helper