# Compact Changelog

> A dense changelog that packs many versions into a tight column. Ideal when you ship often and want the full history visible without heavy scrolling.

A shadcn/ui block from the [@shadcn-ui-blocks](https://www.shadcn-ui-blocks.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/shadcn-ui-blocks/marketing-changelogs-compact-changelog).

- Page, with a live preview: https://shadcn.exchange/r/shadcn-ui-blocks/marketing-changelogs-compact-changelog
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/shadcn-ui-blocks/marketing-changelogs-compact-changelog-light-5d9cf4842e61025d.png
- Registry item: https://www.shadcn-ui-blocks.com/r/marketing-changelogs-compact-changelog.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.shadcn-ui-blocks.com/r/marketing-changelogs-compact-changelog.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `class-variance-authority`, `lucide-react`, `radix-ui`

## Files

### `components/blocks/marketing/changelogs/compact-changelog.tsx`

```tsx
import * as React from 'react';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import { ScrollArea } from '@/components/ui/scroll-area';
import {
  Collapsible,
  CollapsibleContent,
  CollapsibleTrigger,
} from '@/components/ui/collapsible';
import { ChevronDownIcon, ChevronRightIcon } from 'lucide-react';

interface Version {
  number: string;
  date: string;
  isLatest: boolean;
  description: string;
  changes: {
    category: 'added' | 'improved' | 'fixed' | 'removed';
    items: string[];
  }[];
}

export default function CompactChangelog() {
  const versions: Version[] = [
    {
      number: '2.0.0',
      date: 'April 15, 2023',
      isLatest: true,
      description:
        'Major redesign with dark mode support and significant performance improvements.',
      changes: [
        {
          category: 'added',
          items: [
            'Completely redesigned dashboard interface',
            'Dark mode support across all pages',
            'New analytics dashboard with advanced filters',
          ],
        },
        {
          category: 'improved',
          items: [
            'Performance improved by 40%',
            'Enhanced mobile responsiveness',
            'Better form validation',
          ],
        },
        {
          category: 'fixed',
          items: [
            'Multiple accessibility issues',
            'Display issues on Safari',
            'Authentication errors',
          ],
        },
        {
          category: 'removed',
          items: ['Legacy API endpoints', 'Deprecated dashboard features'],
        },
      ],
    },
    {
      number: '1.9.0',
      date: 'March 20, 2023',
      isLatest: false,
      description: 'New notification system and multiple UI improvements.',
      changes: [
        {
          category: 'added',
          items: ['Real-time notification system', 'Custom alert preferences'],
        },
        {
          category: 'improved',
          items: ['Form loading times', 'Animation smoothness'],
        },
        {
          category: 'fixed',
          items: ['Dropdown menu positioning on mobile devices'],
        },
        {
          category: 'removed',
          items: [],
        },
      ],
    },
    {
      number: '1.8.0',
      date: 'February 5, 2023',
      isLatest: false,
      description: 'Enhanced search functionality and bug fixes.',
      changes: [
        {
          category: 'added',
          items: ['Advanced search filters', 'Search history'],
        },
        {
          category: 'improved',
          items: ['Search results accuracy', 'Search performance'],
        },
        {
          category: 'fixed',
          items: ['Search result pagination issues'],
        },
        {
          category: 'removed',
          items: [],
        },
      ],
    },
    {
      number: '1.7.0',
      date: 'January 10, 2023',
      isLatest: false,
      description: 'Integration with third-party services and UI tweaks.',
      changes: [
        {
          category: 'added',
          items: [
            'Integration with popular calendar services',
            'Export to PDF feature',
          ],
        },
        {
          category: 'improved',
          items: ['Dashboard loading times'],
        },
        {
          category: 'fixed',
          items: ['Account settings synchronization'],
        },
        {
          category: 'removed',
          items: [],
        },
      ],
    },
    {
      number: '1.6.0',
      date: 'December 5, 2022',
      isLatest: false,
      description: 'Year-end updates with performance optimizations.',
      changes: [
        {
          category: 'added',
          items: ['Year-end reporting tools'],
        },
        {
          category: 'improved',
          items: ['Overall system performance', 'Database query optimization'],
        },
        {
          category: 'fixed',
          items: ['Data export issues', 'Several minor UI bugs'],
        },
        {
          category: 'removed',
          items: [],
        },
      ],
    },
  ];

  // Styling for categories
  const getCategoryStyles = (category: string) => {
    switch (category) {
      case 'added':
        return 'text-green-600 dark:text-green-400';
      case 'improved':
        return 'text-blue-600 dark:text-blue-400';
      case 'fixed':
        return 'text-amber-600 dark:text-amber-400';
      case 'removed':
        return 'text-red-600 dark:text-red-400';
      default:
        return '';
    }
  };

  // Icons for categories
  const getCategoryIcon = (category: string) => {
    switch (category) {
      case 'added':
        return (
          <svg
            xmlns="http://www.w3.org/2000/svg"
            width="16"
            height="16"
            viewBox="0 0 24 24"
            fill="none"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinecap="round"
            strokeLinejoin="round"
            className="mr-1"
          >
            <path d="M5 12h14"></path>
            <path d="M12 5v14"></path>
          </svg>
        );
      case 'improved':
        return (
          <svg
            xmlns="http://www.w3.org/2000/svg"
            width="16"
            height="16"
            viewBox="0 0 24 24"
            fill="none"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinecap="round"
            strokeLinejoin="round"
            className="mr-1"
          >
            <path d="M12 20V10"></path>
            <path d="M18 20V4"></path>
            <path d="M6 20v-4"></path>
          </svg>
        );
      case 'fixed':
        return (
          <svg
            xmlns="http://www.w3.org/2000/svg"
            width="16"
            height="16"
            viewBox="0 0 24 24"
            fill="none"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinecap="round"
            strokeLinejoin="round"
            className="mr-1"
          >
            <path d="m5 12 5 5 9-9"></path>
          </svg>
        );
      case 'removed':
        return (
          <svg
            xmlns="http://www.w3.org/2000/svg"
            width="16"
            height="16"
            viewBox="0 0 24 24"
            fill="none"
            stroke="currentColor"
            strokeWidth="2"
            strokeLinecap="round"
            strokeLinejoin="round"
            className="mr-1"
          >
            <path d="M5 12h14"></path>
          </svg>
        );
      default:
        return null;
    }
  };

  const [expandedVersions, setExpandedVersions] = React.useState<string[]>([
    versions[0]!.number,
  ]);

  const toggleVersion = (versionNumber: string) => {
    setExpandedVersions((prev) =>
      prev.includes(versionNumber)
        ? prev.filter((v) => v !== versionNumber)
        : [...prev, versionNumber]
    );
  };

  return (
    <div className="container mx-auto max-w-3xl px-4 py-8">
      <div className="mb-6 flex flex-col sm:flex-row sm:items-center sm:justify-between">
        <div>
          <h2 className="text-3xl font-bold tracking-tight">Changelog</h2>
          <p className="text-muted-foreground mt-1">
            Recent updates and improvements
          </p>
        </div>
        <div className="mt-2 sm:mt-0">
          <Button
            variant="outline"
            size="sm"
            onClick={() =>
              setExpandedVersions(
                expandedVersions.length === versions.length
                  ? []
                  : versions.map((v) => v.number)
              )
            }
          >
            {expandedVersions.length === versions.length
              ? 'Collapse All'
              : 'Expand All'}
          </Button>
        </div>
      </div>

      <div className="rounded-lg border">
        <ScrollArea className="h-[500px] rounded-md">
          <div className="divide-y">
            {versions.map((version) => (
              <Collapsible
                key={version.number}
                open={expandedVersions.includes(version.number)}
                onOpenChange={() => toggleVersion(version.number)}
                className="w-full"
              >
                <div className="bg-muted/20">
                  <CollapsibleTrigger asChild>
                    <Button
                      variant="ghost"
                      className="hover:bg-muted/40 w-full justify-start rounded-none px-4 py-3 text-left"
                    >
                      <div className="flex w-full items-center justify-between">
                        <div className="flex items-center gap-2">
                          {expandedVersions.includes(version.number) ? (
                            <ChevronDownIcon className="h-4 w-4" />
                          ) : (
                            <ChevronRightIcon className="h-4 w-4" />
                          )}
                          <span className="font-bold">v{version.number}</span>
                          {version.isLatest && (
                            <Badge className="ml-2">Latest</Badge>
                          )}
                        </div>
                        <span className="text-muted-foreground text-sm">
                          {version.date}
                        </span>
                      </div>
                    </Button>
                  </CollapsibleTrigger>
                </div>
                <CollapsibleContent>
                  <div className="bg-background p-4">
                    <p className="text-muted-foreground mb-4 text-sm">
                      {version.description}
                    </p>
                    <div className="space-y-4">
                      {version.changes.map(
                        (category) =>
                          category.items.length > 0 && (
                            <div key={category.category}>
                              <h4
                                className={`mb-2 flex items-center text-sm font-semibold capitalize ${getCategoryStyles(
                                  category.category
                                )}`}
                              >
                                {getCategoryIcon(category.category)}
                                {category.category}
                              </h4>
                              <ul className="ml-5 space-y-1 text-sm">
                                {category.items.map((item, i) => (
                                  <li key={i} className="list-disc">
                                    {item}
                                  </li>
                                ))}
                              </ul>
                            </div>
                          )
                      )}
                    </div>
                  </div>
                </CollapsibleContent>
              </Collapsible>
            ))}
          </div>
        </ScrollArea>
      </div>
    </div>
  );
}
```

### `components/ui/badge.tsx`

```tsx
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const badgeVariants = cva(
  "group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
        secondary:
          "bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",
        destructive:
          "bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",
        outline:
          "border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",
        ghost:
          "hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",
        link: "text-primary underline-offset-4 hover:underline",
      },
    },
    defaultVariants: {
      variant: "default",
    },
  }
)

function Badge({
  className,
  variant = "default",
  asChild = false,
  ...props
}: React.ComponentProps<"span"> &
  VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
  const Comp = asChild ? Slot.Root : "span"

  return (
    <Comp
      data-slot="badge"
      data-variant={variant}
      className={cn(badgeVariants({ variant }), className)}
      {...props}
    />
  )
}

export { Badge, badgeVariants }
```

### `components/ui/button.tsx`

```tsx
import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { Slot } from "radix-ui"

import { cn } from "@/lib/utils"

const buttonVariants = cva(
  "group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
  {
    variants: {
      variant: {
        default: "bg-primary text-primary-foreground hover:bg-primary/80",
        outline:
          "border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
        secondary:
          "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
        ghost:
          "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
        destructive:
          "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
        link: "text-primary underline-offset-4 hover:underline",
      },
      size: {
        default:
          "h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
        xs: "h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
        sm: "h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
        lg: "h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
        icon: "size-9",
        "icon-xs":
          "size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3",
        "icon-sm":
          "size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md",
        "icon-lg": "size-10",
      },
    },
    defaultVariants: {
      variant: "default",
      size: "default",
    },
  }
)

function Button({
  className,
  variant = "default",
  size = "default",
  asChild = false,
  ...props
}: React.ComponentProps<"button"> &
  VariantProps<typeof buttonVariants> & {
    asChild?: boolean
  }) {
  const Comp = asChild ? Slot.Root : "button"

  return (
    <Comp
      data-slot="button"
      data-variant={variant}
      data-size={size}
      className={cn(buttonVariants({ variant, size, className }))}
      {...props}
    />
  )
}

export { Button, buttonVariants }
```

### `components/ui/scroll-area.tsx`

```tsx
"use client"

import * as React from "react"
import { ScrollArea as ScrollAreaPrimitive } from "radix-ui"

import { cn } from "@/lib/utils"

function ScrollArea({
  className,
  children,
  ...props
}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
  return (
    <ScrollAreaPrimitive.Root
      data-slot="scroll-area"
      className={cn("relative", className)}
      {...props}
    >
      <ScrollAreaPrimitive.Viewport
        data-slot="scroll-area-viewport"
        className="size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1"
      >
        {children}
      </ScrollAreaPrimitive.Viewport>
      <ScrollBar />
      <ScrollAreaPrimitive.Corner />
    </ScrollAreaPrimitive.Root>
  )
}

function ScrollBar({
  className,
  orientation = "vertical",
  ...props
}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {
  return (
    <ScrollAreaPrimitive.ScrollAreaScrollbar
      data-slot="scroll-area-scrollbar"
      data-orientation={orientation}
      orientation={orientation}
      className={cn(
        "flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",
        className
      )}
      {...props}
    >
      <ScrollAreaPrimitive.ScrollAreaThumb
        data-slot="scroll-area-thumb"
        className="relative flex-1 rounded-full bg-border"
      />
    </ScrollAreaPrimitive.ScrollAreaScrollbar>
  )
}

export { ScrollArea, ScrollBar }
```

### `components/ui/collapsible.tsx`

```tsx
"use client"

import { Collapsible as CollapsiblePrimitive } from "radix-ui"

function Collapsible({
  ...props
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {
  return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />
}

function CollapsibleTrigger({
  ...props
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>) {
  return (
    <CollapsiblePrimitive.CollapsibleTrigger
      data-slot="collapsible-trigger"
      {...props}
    />
  )
}

function CollapsibleContent({
  ...props
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>) {
  return (
    <CollapsiblePrimitive.CollapsibleContent
      data-slot="collapsible-content"
      {...props}
    />
  )
}

export { Collapsible, CollapsibleTrigger, CollapsibleContent }
```
