# Changelog page template

A complete responsive changelog page with navigation, controlled release history, a native newsletter form, and footer destinations.

Access: pro. Category: Templates. Kind: template.

## When to use

- Use it to start a complete changelog page template whose major regions should share one responsive composition.
- Choose it as the nav region when composing a page from independently reusable TidalUI sections.

## Alternatives

- Choose dashboard-layout instead when a responsive semantic dashboard shell with composable header, navigation, main content, and an in-flow mobile disclosure is the actual interface need, rather than changelog page template.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Changelog page template

```sh
npx shadcn@latest add @tidal-pro/changelog-page-template
```

Stylesheets: `components/ui/tidal.css`, `components/ui/changelog-page-template.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/changelog-page-template.css";
import{TidalChangelogPageTemplate}from"./components/ui/changelog-page-template";
export default(p:Parameters<typeof TidalChangelogPageTemplate>[0])=><div className="tidal-scope"><TidalChangelogPageTemplate {...p}/></div>;
```

## Structured props

- `TidalChangelogPageTemplate.changelog: TidalChangelogPageLogConfig`: Required changelog value accepted by this exported component.
- `TidalChangelogPageTemplate.footer: TidalChangelogPageFooterConfig`: Required footer value accepted by this exported component.
- `TidalChangelogPageTemplate.navigation: TidalChangelogPageNavigationConfig`: Required navigation value accepted by this exported component.
- `TidalChangelogPageTemplate.newsletter: TidalChangelogPageNewsletterConfig`: Required newsletter value accepted by this exported component.
- `TidalChangelogPageTemplate.title: ReactNode`: Required title value accepted by this exported component.
- `TidalChangelogPageTemplate.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalChangelogPageTemplate.eyebrow?: ReactNode`: Optional eyebrow value accepted by this exported component.
- `TidalChangelogPageTemplate.sampleNote?: ReactNode`: Optional sample note value accepted by this exported component.
- `TidalChangelogPageTemplate.sectionIds?: { releases?: string; newsletter?: string; } | undefined`: Optional section ids value accepted by this exported component.
- `TidalChangelogPageTemplate.theme?: "light" | "dark" | undefined` (default "light"): Optional theme value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/changelog-page-template.tsx) | [Manifest](https://tidalui.com/examples/changelog-page-template.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
"use client";

import "./components/ui/tidal.css";

import { useLayoutEffect, useId, useMemo, useRef, useState, type FormEvent, type InvalidEvent } from "react";

import { TidalChangelogPageTemplate, type TidalChangelogPageLogConfig } from "./components/ui/changelog-page-template";

import type { TidalNewsletterSignupStatus } from "./components/ui/newsletter-signup";

import type { TidalChangelogRelease } from "./components/ui/changelog-block";

import "./components/ui/newsletter-signup.css";

import "./components/ui/changelog-block.css";

import "./components/ui/changelog-page-template.css";

import "./components/ui/navigation-bar.css";

import "./components/ui/form-field.css";

import "./components/ui/footer.css";



export interface ChangelogPageTemplateDemoProps {
  theme?: "light" | "dark";
}

type VersionFilter = "all" | "3.0" | "2.9";

const RELEASES: readonly TidalChangelogRelease[] = [
  {
    id: "3.0.0",
    version: "v3.0.0",
    title: "Project review workspace",
    publishedAt: "2026-10-10",
    dateLabel: "October 10, 2026",
    summary:
      "The fictional Northstar sample brings review notes and decisions into one page.",
    changes: [
      {
        id: "review-workspace",
        kind: "added",
        title: "Review workspace",
        description: "Inspect supplied notes beside each sample project.",
      },
      {
        id: "decision-copy",
        kind: "improved",
        title: "Decision labels",
        description: "Every local state now uses a literal label.",
      },
      {
        id: "focus-return",
        kind: "fixed",
        title: "Focus return",
        description: "Closing a sample review returns focus to its trigger.",
      },
    ],
    details: (
      <p>
        This release describes the fictional sample interface. It does not
        update a real product or account.
      </p>
    ),
  },
  {
    id: "2.9.1",
    version: "v2.9.1",
    title: "Clearer delivery status",
    publishedAt: "2026-09-26",
    dateLabel: "September 26, 2026",
    summary:
      "Status copy and shapes stay readable across the supplied light and dark themes.",
    changes: [
      {
        id: "status-copy",
        kind: "improved",
        title: "Status copy",
        description: "Visible words accompany every sample marker.",
      },
      {
        id: "mobile-actions",
        kind: "fixed",
        title: "Mobile actions",
        description: "Primary actions remain reachable in the narrow layout.",
      },
    ],
    details: <p>No migration or stored-data change is represented here.</p>,
  },
  {
    id: "2.9.0",
    version: "v2.9.0",
    title: "Shared project briefs",
    publishedAt: "2026-09-12",
    dateLabel: "September 12, 2026",
    summary: "A concise brief preview joins the fictional planning workspace.",
    changes: [
      {
        id: "brief-preview",
        kind: "added",
        title: "Brief preview",
        description: "Read scope, owner, and next step in one sample card.",
      },
      {
        id: "legacy-priority",
        kind: "removed",
        title: "Legacy priority label",
        description: "The sample now uses one consistent priority vocabulary.",
      },
    ],
    details: <p>The removed label refers only to supplied sample data.</p>,
  },
];

const FILTERS = [
  { id: "all", label: "All versions", count: 3 },
  { id: "3.0", label: "Version 3.0", count: 1 },
  { id: "2.9", label: "Version 2.9", count: 2 },
] as const;

export function ChangelogPageTemplateDemo({
  theme = "light",
}: ChangelogPageTemplateDemoProps) {
  const instanceId = useId().replace(/:/g, "");
  const topId = `changelog-sample-top-${instanceId}`;
  const releasesId = `changelog-sample-releases-${instanceId}`;
  const newsletterId = `changelog-sample-newsletter-${instanceId}`;
  const releaseNoteId = `changelog-sample-note-${instanceId}`;
  const [filter, setFilter] = useState<VersionFilter>("all");
  const [expandedIds, setExpandedIds] = useState<ReadonlySet<string>>(
    () => new Set(["3.0.0"]),
  );
  const [motionKey, setMotionKey] = useState(0);
  const [email, setEmail] = useState("");
  const [emailError, setEmailError] = useState("");
  const [newsletterStatus, setNewsletterStatus] =
    useState<TidalNewsletterSignupStatus>("idle");
  const [errorFocusVersion, setErrorFocusVersion] = useState(0);
  const [pageStatus, setPageStatus] = useState(
    "Showing all three fictional releases.",
  );
  const emailRef = useRef<HTMLInputElement>(null);
  const newsletterStatusRef = useRef<HTMLDivElement>(null);
  const shouldFocusNewsletterStatus = useRef(false);

  const releases = useMemo<readonly TidalChangelogRelease[]>(
    () =>
      RELEASES.map((release) =>
        release.id === "3.0.0"
          ? {
              ...release,
              changes: release.changes.map((change) =>
                change.id === "review-workspace"
                  ? { ...change, href: `#${releaseNoteId}` }
                  : change,
              ),
              link: {
                href: `#${releaseNoteId}`,
                label: "Read the sample note",
              },
            }
          : release,
      ),
    [releaseNoteId],
  );

  const visibleReleases = useMemo(
    () =>
      filter === "all"
        ? releases
        : releases.filter((release) => release.id.startsWith(filter)),
    [filter, releases],
  );

  useLayoutEffect(() => {
    if (!shouldFocusNewsletterStatus.current) return;
    shouldFocusNewsletterStatus.current = false;
    newsletterStatusRef.current?.focus({ preventScroll: true });
  }, [errorFocusVersion, newsletterStatus]);

  function selectFilter(nextFilter: string) {
    const next = nextFilter as VersionFilter;
    setFilter(next);
    setPageStatus(
      next === "all"
        ? "Showing all three fictional releases."
        : `Showing fictional version ${next} releases.`,
    );
  }

  function setReleaseExpanded(releaseId: string, expanded: boolean) {
    setExpandedIds((current) => {
      const next = new Set(current);
      if (expanded) next.add(releaseId);
      else next.delete(releaseId);
      return next;
    });
    setPageStatus(
      `${releaseId} sample details ${expanded ? "opened" : "closed"}.`,
    );
  }

  function replayMotion() {
    setMotionKey((current) => current + 1);
    setPageStatus("The finite release entrance replayed in this local page.");
  }

  function resetSample() {
    setFilter("all");
    setExpandedIds(new Set(["3.0.0"]));
    setMotionKey(0);
    setEmail("");
    setEmailError("");
    setNewsletterStatus("idle");
    setPageStatus("The fictional page returned to its initial local state.");
  }

  function handleInvalid(event: InvalidEvent<HTMLInputElement>) {
    event.preventDefault();
    setEmailError(
      event.currentTarget.validity.valueMissing
        ? "Add a fictional email address."
        : "Use a complete fictional email address.",
    );
    shouldFocusNewsletterStatus.current = true;
    setNewsletterStatus("error");
    setErrorFocusVersion((current) => current + 1);
  }

  function handleSubmit(event: FormEvent<HTMLFormElement>) {
    event.preventDefault();
    setEmailError("");
    setNewsletterStatus("success");
    setPageStatus(
      "The newsletter sample was prepared locally. No subscription was created.",
    );
  }

  function handleReset() {
    setEmail("");
    setEmailError("");
    setNewsletterStatus("idle");
    setPageStatus("The newsletter sample was cleared locally.");
  }

  const changelog: TidalChangelogPageLogConfig = {
    eyebrow: null,
    title: "Release notes",
    description:
      "Filter the supplied versions, open release details, or replay the finite entrance.",
    releases: visibleReleases,
    filters: FILTERS,
    activeFilter: filter,
    onFilterChange: selectFilter,
    filterLabel: "Filter fictional release versions",
    expandedReleaseIds: expandedIds,
    onExpandedChange: setReleaseExpanded,
    motionKey,
    headerAction: (
      <button type="button" onClick={replayMotion}>
        Replay entrance
      </button>
    ),
  };

  return (
    <TidalChangelogPageTemplate
      id={topId}
      theme={theme}
      eyebrow="Fictional product history"
      title="What changed in Northstar"
      description="Browse supplied release notes and prepare a local newsletter sample without connecting an account or service."
      sectionIds={{ releases: releasesId, newsletter: newsletterId }}
      navigation={{
        title: "Northstar",
        brandHref: `#${topId}`,
        navigationLabel: "Northstar changelog navigation",
        links: [
          { id: "releases", label: "Releases", href: `#${releasesId}` },
          {
            id: "newsletter",
            label: "Newsletter",
            href: `#${newsletterId}`,
          },
          { id: "note", label: "Sample note", href: `#${releaseNoteId}` },
        ],
        actionItems: [
          { id: "reset", label: "Reset sample", onClick: resetSample },
        ],
      }}
      changelog={changelog}
      newsletter={{
        title: "Get release notes by email",
        description:
          "Validate and prepare a fictional address in this local page preview.",
        emailLabel: "Fictional work email",
        emailDescription: "Use a sample address such as name@example.com.",
        emailError,
        emailRef,
        emailInputProps: {
          value: email,
          placeholder: "name@example.com",
          onChange: (event: import("react").ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
            setEmail(event.currentTarget.value);
            setEmailError("");
            setNewsletterStatus("idle");
          },
          onInvalid: handleInvalid,
        },
        status: newsletterStatus,
        statusMessage:
          newsletterStatus === "error"
            ? "Review the fictional email before local preparation."
            : newsletterStatus === "success"
              ? "Sample prepared locally. No subscription or message was created."
              : undefined,
        statusRef: newsletterStatusRef,
        statusActionLabel:
          newsletterStatus === "error"
            ? "Review email"
            : newsletterStatus === "success"
              ? "Edit sample"
              : undefined,
        onStatusAction: () => {
          setNewsletterStatus("idle");
          emailRef.current?.focus({ preventScroll: true });
        },
        submitLabel: "Prepare sample",
        consent:
          "Consumer-supplied consent language belongs here. This preview creates no subscription.",
        onSubmit: handleSubmit,
        onReset: handleReset,
        footer: <button type="reset">Clear sample</button>,
      }}
      footer={{
        brand: <a href={`#${topId}`}>Northstar</a>,
        description: "A fictional changelog page sample.",
        groups: [
          {
            id: "updates",
            title: "Updates",
            links: [
              { href: `#${releasesId}`, label: "Release notes" },
              { href: `#${newsletterId}`, label: "Newsletter sample" },
            ],
          },
          {
            id: "page",
            title: "Page",
            links: [
              { href: `#${topId}`, label: "Overview" },
              { href: `#${releaseNoteId}`, label: "Sample note" },
            ],
          },
        ],
        legal: "Fictional release content for local review.",
      }}
      sampleNote={
        <div id={releaseNoteId}>
          <strong>Local sample</strong>
          <output aria-live="polite">{pageStatus}</output>
        </div>
      }
    />
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <ChangelogPageTemplateDemo />
    </div>
  );
}

```

## Gotchas

- Install the declared registry dependencies and render inside a tidal-scope with the foundation stylesheet loaded.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

title, navigation, changelog, newsletter and footer are required. Optional eyebrow, description and sampleNote preserve numeric zero. The template owns one h1, h2 block headings, h3 release headings and h2 footer group headings. Typed configs are inferred from the accepted Navigation bar, Changelog block, Newsletter signup and Footer components; wrapper keys and refs are stripped before forwarding. Navigation accepts stable native link/action arrays. Section IDs are collision-safe by default and may be supplied for native in-page destinations. theme is light by default and may be dark. The root forwards native div attributes/ref and intentionally avoids a nested main landmark. Consumers own release data, filtering, disclosure state, newsletter submission/status/consent, destinations, handlers, refs and all outcomes. The template performs no filtering, subscription, request, routing, analytics, network, storage or persistence action.
