Loading...
Loading...
> Terminal-styled release notes component with version history, change type categorization, and GitHub integration.
1import { ChangelogEntry } from "@/components/changelog"2import { CHANGELOG } from "@/data/changelog"
1<ChangelogEntry2 entry={{3 version: '1.0.0',4 date: '2025-12-15',5 title: 'INITIAL_RELEASE',6 url: 'https://github.com/...',7 changes: [8 { type: 'added', description: 'Production-ready UI components' },9 { type: 'changed', description: 'Upgraded to Next.js 16' },10 { type: 'fixed', description: 'Mobile navigation issues' },11 ],12 }}13 index={0}14/>
1<ChangelogEntry entry={entry} compact />
1// Entries without 'url' prop won't show GitHub link2<ChangelogEntry3 entry={{4 version: '0.9.0',5 date: '2025-12-01',6 title: 'BETA_RELEASE',7 changes: [...],8 // no url prop9 }}10 index={1}11/>
| Prop | Type | Default | Description |
|---|---|---|---|
| entry | ChangelogEntry | required | The changelog entry object containing version, date, title, url, and changes array. |
| index | number | 0 | Index for hex code generation in the card header (0x01, 0x02, etc.). |
| compact | boolean | false | Enable compact mode - hides GitHub link and reduces spacing. |
| className | string | undefined | Additional CSS classes for the card container. |
1import { CHANGELOG } from '@/data/changelog';2import { ChangelogEntry } from '@/components/changelog';34export default function ChangelogPage() {5 return (6 <div className="space-y-12">7 {CHANGELOG.map((entry, index) => (8 <ChangelogEntry9 key={entry.version}10 entry={entry}11 index={index}12 />13 ))}14 </div>15 );16}
1import { getChangelogByType } from '@/data/changelog';23// Get only entries with 'added' changes4const addedOnly = getChangelogByType('added');56// Get only entries with 'fixed' changes7const fixedOnly = getChangelogByType('fixed');
1# Run the sync script to fetch latest releases2npm run sync:changelog34# Configure via environment variables:5# GITHUB_TOKEN - Optional, for private repos6# GITHUB_OWNER - Repository owner (default: "jpoindexter")7# GITHUB_REPO - Repository name (default: "fabrk-dev")