From f0e61ec9f81a7314de9a9ac5f9017659f8d5cef2 Mon Sep 17 00:00:00 2001 From: Alexander Medvedev Date: Sat, 23 May 2026 18:33:56 +0200 Subject: [PATCH] feat: add changelog history --- src/pages/PluginDetail.tsx | 99 +++++++++++++++++++++++++++++++++++++- 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/src/pages/PluginDetail.tsx b/src/pages/PluginDetail.tsx index 5eb0e44..45440b6 100644 --- a/src/pages/PluginDetail.tsx +++ b/src/pages/PluginDetail.tsx @@ -138,6 +138,7 @@ const PluginDetail = () => { const [reportCustom, setReportCustom] = useState(''); const [reportSubmitting, setReportSubmitting] = useState(false); const [reportDone, setReportDone] = useState(false); + const [changelogOpen, setChangelogOpen] = useState(false); // Review Report State const [reviewReportOpen, setReviewReportOpen] = useState(null); @@ -849,7 +850,27 @@ const PluginDetail = () => { )}
Category: {plugin.category}
{plugin.version && ( -
Version: {plugin.version}
+
+ Version: {plugin.version} + {Array.isArray(plugin.versions) && plugin.versions.length > 0 && ( + + )} +
)}
@@ -959,6 +980,82 @@ const PluginDetail = () => {
)} + + {/* CHANGELOG MODAL */} + {changelogOpen && ( +
setChangelogOpen(false)} style={{ zIndex: 2000 }}> +
e.stopPropagation()} style={{ + maxWidth: '800px', + width: '90%', + maxHeight: '80vh', + backgroundColor: '#1b2838', // Steam-ish dark blue + borderRadius: '8px', + display: 'flex', + flexDirection: 'column', + padding: 0, + overflow: 'hidden', + boxShadow: '0 20px 50px rgba(0,0,0,0.5)' + }}> +
+

Update History

+ +
+ +
+ {Array.isArray(plugin.versions) && plugin.versions.map((v: any, idx: number) => ( +
+
+ + v{v.version} + + + Released {formatDate(v.created_at)} + +
+
+ {v.release_notes ? ( + {v.release_notes} + ) : ( +

No specific release notes for this update.

+ )} +
+
+ ))} +
+ +
+ +
+
+
+ )} ); };