refactor(changelog): remove title and description fields from changelog entries and update schema

This commit is contained in:
Anish Sarkar 2026-06-09 10:13:27 +05:30
parent 1c6227eef3
commit c9351c421e
18 changed files with 6 additions and 38 deletions

View file

@ -4,6 +4,7 @@ import type { ReactNode } from "react";
import { Badge } from "@/components/ui/badge";
import { Button } from "@/components/ui/button";
import { Separator } from "@/components/ui/separator";
import { cn } from "@/lib/utils";
export type ChangelogTimelineEntry = {
@ -37,17 +38,18 @@ export const ChangelogTimeline = ({
}: ChangelogTimelineProps) => {
return (
<section className={cn("py-32", className)}>
<div className="container">
<div className="container px-6 sm:px-8 md:px-0">
<div className="mx-auto max-w-3xl">
<h1 className="mb-4 text-3xl font-bold tracking-tight md:text-5xl">{title}</h1>
<p className="mb-6 text-base text-muted-foreground md:text-lg">{description}</p>
<Separator />
</div>
{entries.length > 0 ? (
<div className="mx-auto mt-16 flex max-w-3xl flex-col gap-16 md:mt-24 md:gap-24">
{entries.map((entry) => (
<div
key={`${entry.version}-${entry.date}`}
className="relative flex flex-col gap-4 md:flex-row md:gap-16"
className="relative flex flex-col gap-4 md:w-[58rem] md:flex-row md:gap-8"
>
<div className="top-8 flex h-min w-64 shrink-0 flex-col items-start gap-3 md:sticky">
<time className="text-xs font-medium text-muted-foreground">{entry.date}</time>
@ -55,7 +57,7 @@ export const ChangelogTimeline = ({
{entry.version}
</Badge>
</div>
<div className="flex flex-col">
<div className="flex max-w-2xl flex-1 flex-col">
<h2 className="mb-3 text-lg leading-tight font-bold text-foreground/90 md:text-2xl">
{entry.title}
</h2>