File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,12 @@ export async function DocsChangelog() {
4343 ) ;
4444 }
4545
46+ // Show only the 20 most recent entries
47+ const recentEntries = entries . slice ( 0 , 20 ) ;
48+
4649 return (
4750 < div className = "space-y-8" >
48- { entries . map ( entry => {
51+ { recentEntries . map ( entry => {
4952 const date = new Date ( entry . publishedAt ) ;
5053 const totalFiles =
5154 ( entry . filesChanged ?. added ?. length || 0 ) +
@@ -134,6 +137,31 @@ export async function DocsChangelog() {
134137 </ article >
135138 ) ;
136139 } ) }
140+ { entries . length > 20 && (
141+ < div className = "mt-8 rounded-lg border border-gray-200 bg-gray-50 p-4 text-center dark:border-gray-700 dark:bg-gray-800" >
142+ < p className = "text-sm text-gray-600 dark:[color:rgb(210,199,218)]" >
143+ Showing the 20 most recent updates. View the{ ' ' }
144+ < a
145+ href = "https://sentry-content-dashboard.sentry.dev/"
146+ target = "_blank"
147+ rel = "noopener noreferrer"
148+ className = "text-primary hover:underline"
149+ >
150+ full content dashboard
151+ </ a >
152+ { ' ' } or subscribe to the{ ' ' }
153+ < a
154+ href = "https://sentry-content-dashboard.sentry.dev/api/docs/feed"
155+ target = "_blank"
156+ rel = "noopener noreferrer"
157+ className = "text-primary hover:underline"
158+ >
159+ RSS feed
160+ </ a >
161+ .
162+ </ p >
163+ </ div >
164+ ) }
137165 </ div >
138166 ) ;
139167}
You can’t perform that action at this time.
0 commit comments