File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
components/Changelog/Renderer Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import Image from 'next/image'
88import { sluggify } from '@/utils/common'
99import { SupportedImageTypes , SupportedVideoTypes } from '@/utils/strapi'
1010import ChangelogTitle from '@/components/Changelog/Title/ChangelogTitle'
11+ import Link from 'next/link'
1112
1213function renderMarkdown ( markdownContent : string ) {
1314 return < ReactMarkdown > { markdownContent } </ ReactMarkdown >
@@ -65,7 +66,16 @@ const ChangelogRenderer: React.FC<ChangelogRendererProps> = ({ changelog }) => {
6566 key = { changelog . id }
6667 className = { `relative flex flex-col px-4 pb-28 md:px-8 ${ Styles [ 'changelog-container' ] } ` }
6768 >
68- < span className = "mb-5 text-sm text-signoz_vanilla-400" > { formattedDate } </ span >
69+ < div className = "mb-5 flex flex-col gap-2" >
70+ < Link
71+ target = "_blank"
72+ href = { `https://github.com/signoz/signoz/releases/tag/${ changelog . version } ` }
73+ className = "inline-flex w-fit items-center gap-1.5 rounded-full border border-signoz_slate-400 bg-signoz_ink-500 px-2 py-1 text-xs !text-signoz_vanilla-100 !no-underline transition-colors hover:bg-signoz_ink-300 active:bg-signoz_slate-400"
74+ >
75+ { changelog . version }
76+ </ Link >
77+ < span className = "text-sm text-signoz_vanilla-400" > { formattedDate } </ span >
78+ </ div >
6979 < div className = "absolute -bottom-16 left-0 top-1.5 hidden w-px bg-signoz_slate-400 lg:block" >
7080 < div className = "absolute left-1/2 h-1.5 w-1.5 -translate-x-1/2 rounded-full bg-signoz_robin-500" />
7181 </ div >
Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ export const fetchChangelogEntries = async (
165165
166166export const saveChangelogSubscription = async ( email : string ) : Promise < boolean > => {
167167 try {
168- console . log ( { url : `${ API_URL } ${ API_SUBSCRIPTION_PATH } ` } )
169168 const response = await fetch ( `${ API_URL } ${ API_SUBSCRIPTION_PATH } ` , {
170169 method : 'POST' ,
171170 headers : {
@@ -211,8 +210,6 @@ export const fetchChangelogById = async (
211210 arrayFormat : 'repeat' , // Use repeat format for arrays
212211 } )
213212
214- console . log ( `${ API_URL } ${ API_PATH } /${ changelogId } ${ queryParams } ` )
215-
216213 const response = await fetch ( `${ API_URL } ${ API_PATH } /${ changelogId } ${ queryParams } ` , {
217214 headers : {
218215 'Cache-Control' : 'no-store' , // Avoid caching
You can’t perform that action at this time.
0 commit comments