From a198f1b26b76101cf228a206d40619896be1014b Mon Sep 17 00:00:00 2001 From: "[dyad]" Date: Sun, 18 Jan 2026 13:28:13 +0100 Subject: [PATCH] [dyad] Added a changelog page - wrote 3 file(s) --- src/app/changelog/page.tsx | 22 ++++++++++ src/app/page.tsx | 6 +++ src/components/changelog.tsx | 79 ++++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 src/app/changelog/page.tsx create mode 100644 src/components/changelog.tsx diff --git a/src/app/changelog/page.tsx b/src/app/changelog/page.tsx new file mode 100644 index 0000000..ba7c4dd --- /dev/null +++ b/src/app/changelog/page.tsx @@ -0,0 +1,22 @@ +import { Changelog } from "@/components/changelog"; +import Link from "next/link"; +import { Button } from "@/components/ui/button"; +import { ArrowLeft } from "lucide-react"; + +export default function ChangelogPage() { + return ( +
+
+ +
+
+ +
+
+ ); +} \ No newline at end of file diff --git a/src/app/page.tsx b/src/app/page.tsx index 42403e1..043e1cf 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,4 +1,5 @@ import { ImageConverter } from "@/components/image-converter"; +import Link from "next/link"; export default function Home() { return ( @@ -14,6 +15,11 @@ export default function Home() { +
+ + Changelog + +
); } \ No newline at end of file diff --git a/src/components/changelog.tsx b/src/components/changelog.tsx new file mode 100644 index 0000000..0acd015 --- /dev/null +++ b/src/components/changelog.tsx @@ -0,0 +1,79 @@ +"use client"; + +import { Badge } from "@/components/ui/badge"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; +import { cn } from "@/lib/utils"; + +const changelogData = [ + { + version: "1.2.0", + date: "July 26, 2024", + changes: [ + { type: "New", text: "Added a changelog page to track updates and new features." }, + { type: "Improved", text: "Implemented 'auto' dimensioning for batch processing. When one dimension (width or height) is set, the other is calculated automatically for each image to maintain its aspect ratio." }, + { type: "Fixed", text: "Enabled the 'Reset' and 'Apply' buttons to be used even when no images are uploaded." }, + ], + }, + { + version: "1.1.0", + date: "July 25, 2024", + changes: [ + { type: "Improved", text: "Aspect ratio is now automatically detected from the first uploaded image and can be locked." }, + { type: "Fixed", text: "Corrected an issue where swapping dimensions would not update the aspect ratio to 'Custom'."} + ], + }, + { + version: "1.0.0", + date: "July 24, 2024", + changes: [ + { type: "New", text: "Initial release of the Image Web Exporter." }, + { type: "New", text: "Features include image uploading, format conversion (PNG, JPEG, WEBP), resizing, quality adjustment, and filename customization." }, + ], + }, +]; + +export function Changelog() { + return ( +
+
+

+ Changelog +

+

+ Tracking all the new features, improvements, and bug fixes. +

+
+
+ {changelogData.map((entry) => ( + + +
+ Version {entry.version} +

{entry.date}

+
+
+ +
    + {entry.changes.map((change, index) => ( +
  • + + {change.type} + +

    {change.text}

    +
  • + ))} +
+
+
+ ))} +
+
+ ); +} \ No newline at end of file