import { Head } from '@inertiajs/react';

import AppLayout from '@/Layouts/AppLayout.jsx';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";

export default function Updates({ auth }) {

    return (
        <AppLayout auth={ auth }>
            <Head>
                <title>Updates</title>
            </Head>
            <div className="p-3 pt-1">
                <Card className="w-[90%] m-3 mx-auto">
                    <CardHeader>
                        <CardTitle>0.1.6A</CardTitle>
                        <CardDescription>Release: 01 May 2025</CardDescription>
                    </CardHeader>
                    <CardContent>
                        <ul>
                            <li>Bugfix for histories</li>
                        </ul>
                    </CardContent>
                    <CardHeader>
                        <CardTitle>0.1.6</CardTitle>
                        <CardDescription>Release: 22 Apr 2025</CardDescription>
                    </CardHeader>
                    <CardContent>
                        <ul>
                            <li>Beta: long press for next/prev chapter</li>
                        </ul>
                    </CardContent>
                </Card>
                <Card className="w-[90%] m-3 mx-auto">
                    <CardHeader>
                        <CardTitle>0.1.5</CardTitle>
                        <CardDescription>Release: 07 Feb 2025</CardDescription>
                    </CardHeader>
                    <CardContent>
                        <ul>
                            <li>General bug fixes and system improvements</li>
                            <li>Toggle reading history</li>
                            <li>Queue driver, Horizon is now default driver</li>
                        </ul>
                    </CardContent>
                </Card>
                <Card className="w-[90%] m-3 mx-auto">
                    <CardHeader>
                        <CardTitle>0.1.4</CardTitle>
                        <CardDescription>Release: 21 Jan 2025</CardDescription>
                    </CardHeader>
                    <CardContent>
                        <ul>
                            <li>Ability for force refetch on chapters</li>
                            <li>Fixed top toolbar on comic pages</li>
                        </ul>
                    </CardContent>
                </Card>
                <Card className="w-[90%] m-3 mx-auto">
                    <CardHeader>
                        <CardTitle>0.1.3 / 0.1.3A</CardTitle>
                        <CardDescription>Release: 19 Jan 2025 / 18 Jan 2025</CardDescription>
                    </CardHeader>
                    <CardContent>
                        <ul>
                            <li>0.1.3A: Remove lazy loading</li>
                            <li>Fixed: Theme initialization</li>
                            <li>Toggle clicking spot invert in reading page</li>
                            <li>Beta: Histories group by comics</li>
                            <li>Beta: Prefetch first chapter if unread comic clicked</li>
                            <li>Updated cache TTL</li>
                            <li>Moved theme toggle to sidebar</li>
                        </ul>
                    </CardContent>
                </Card>
                <Card className="w-[90%] m-3 mx-auto">
                    <CardHeader>
                        <CardTitle>0.1.2</CardTitle>
                        <CardDescription>Release: 11 Jan 2025</CardDescription>
                    </CardHeader>
                    <CardContent>
                        <ul>
                            <li>Updated cache TTL</li>
                            <li>Beta: Next chapter prefetch</li>
                        </ul>
                    </CardContent>
                </Card>
                <Card className="w-[90%] m-3 mx-auto">
                    <CardHeader>
                        <CardTitle>0.1.1</CardTitle>
                        <CardDescription>Release: 06 Jan 2025</CardDescription>
                    </CardHeader>
                    <CardContent>
                        <ul>
                            <li>Fixed: errors in frontend</li>
                            <li>Fixed: favourites w/o metadata return error in frontend</li>
                            <li>Removed gear button on reading page</li>
                            <li>Jump to any chapters directly in reading page</li>
                        </ul>
                    </CardContent>
                </Card>
                <Card className="w-[90%] m-3 mx-auto">
                    <CardHeader>
                        <CardTitle>0.1.0</CardTitle>
                        <CardDescription>Release: 04 Jan 2025</CardDescription>
                    </CardHeader>
                    <CardContent>
                        <ul>
                            <li>iOS fixed for search auto fours</li>
                            <li>Beta: Timezones, only available for histories now</li>
                            <li>Beta: Remove histories for selected comic</li>
                            <li>Beta: Remove duplicated reading histories</li>
                        </ul>
                    </CardContent>
                </Card>
                <Card className="w-[90%] m-3 mx-auto">
                    <CardHeader>
                        <CardTitle>0.0.2 FR1</CardTitle>
                        <CardDescription>Release: 01 Jan 2025</CardDescription>
                    </CardHeader>
                    <CardContent>
                        <ul>
                            <li>iOS Add to home screen</li>
                            <li>Updated icons</li>
                            <li>Fixed: Darkmode read chapters colour</li>
                            <li>Beta: Jump to page via reading mode</li>
                        </ul>
                    </CardContent>
                </Card>
                <Card className="w-[90%] m-3 mx-auto">
                    <CardHeader>
                        <CardTitle>0.0.2</CardTitle>
                        <CardDescription>Release: 31 Dec 2024</CardDescription>
                    </CardHeader>
                    <CardContent>
                        <ul>
                            <li>Pages for update notes / installation</li>
                            <li>SC to ZH Conversion on the fly</li>
                        </ul>
                    </CardContent>
                </Card>
            </div>
        </AppLayout>
    );
}
