mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:46:29 +00:00
a160eccddf
Adjust chart components (Overview, PieChart) for sizing and safer typings/casting; add v1.2.0 release note. Remove several obsolete dummy/old task pages and the useDummyTaskData hook. Also include minor fixes to FormClient and DonutChart/performance pages.
224 lines
13 KiB
TypeScript
224 lines
13 KiB
TypeScript
import { Badge } from "@/components/ui/badge";
|
|
import { Bug, Calendar, Sparkles, Wrench, Zap } from "lucide-react";
|
|
import { Metadata } from "next";
|
|
import Link from "next/link";
|
|
import { ReactNode } from "react";
|
|
|
|
interface ReleaseNote {
|
|
version: string;
|
|
date: string;
|
|
type: 'major' | 'minor' | 'patch';
|
|
changes: {
|
|
category: 'feature' | 'improvement' | 'bugfix' | 'breaking';
|
|
description: string | ReactNode;
|
|
}[];
|
|
}
|
|
|
|
const releaseNotes: ReleaseNote[] = [
|
|
{
|
|
version: "v1.2.0",
|
|
date: "23 April 2026",
|
|
type: "minor",
|
|
changes: [
|
|
{ category: "feature", description: "Project Assignment" },
|
|
{ category: "bugfix", description: "Fixed typescript error during compilation and production builds" },
|
|
]
|
|
},
|
|
{
|
|
version: "v1.1.2",
|
|
date: "20 February 2026",
|
|
type: "minor",
|
|
changes: [
|
|
{ category: "feature", description: "Added the ability to view and re-download leave application forms in the Employee History page (Leave, Permit, and Sick tabs)" },
|
|
{ category: "feature", description: "Added Alpha statistics and detailed Alpha records on the Employee Performance page" },
|
|
{ category: "feature", description: "Added the ability to create manual attendance records for Alpha status on the Employee Performance page" },
|
|
{ category: "feature", description: "Added total counts for WFO, WFH, and WFS in the Admin Summary Report" },
|
|
{ category: "feature", description: "Added batch import functionality from Excel files in Admin Manual Attendance" },
|
|
]
|
|
},
|
|
{
|
|
version: "v1.1.1",
|
|
date: "09 February 2026",
|
|
type: "minor",
|
|
changes: [
|
|
{ category: "feature", description: "Added application logging for backend API requests" },
|
|
{ category: "feature", description: "Implemented server actions for backend API requests" },
|
|
{ category: "bugfix", description: "Fixed donut chart click behavior on the employee homepage in mobile view" },
|
|
{ category: "bugfix", description: "Fixed session persistence issues for HATS Team and Release Notes pages" },
|
|
{ category: "improvement", description: "Limit file upload size for avatar" },
|
|
]
|
|
},
|
|
{
|
|
version: "v1.1.0",
|
|
date: "28 January 2026",
|
|
type: "minor",
|
|
changes: [
|
|
{ category: 'breaking', description: <div>Fixing Critical Security Vulnerability (React2Shell Security <Link href='https://www.cve.org/CVERecord?id=CVE-2025-55182' className="underline text-blue-500">CVE-2025-55182</Link>) in React Server Components. Please see this <Link href='https://react.dev/blog/2025/12/03/critical-security-vulnerability-in-react-server-components' className="underline text-blue-500"> React blog</Link> and this <Link href='https://vercel.com/kb/bulletin/react2shell' className="underline text-blue-500">Next.js bulletin</Link> to learn more about these vulnerabilities (December 3, 2025).</div> },
|
|
{ category: 'breaking', description: <div>Fixing two additional vulnerabilities (Denial of Service <Link href='https://www.cve.org/CVERecord?id=CVE-2025-55184' className="underline text-blue-500">CVE-2025-55184</Link> and Source Code Exposure <Link href='https://www.cve.org/CVERecord?id=CVE-2025-55183' className="underline text-blue-500">CVE-2025-55183</Link>) in React Server Components. Please see this <Link href='https://react.dev/blog/2025/12/11/denial-of-service-and-source-code-exposure-in-react-server-components' className="underline text-blue-500"> React blog</Link> and this <Link href='https://vercel.com/kb/bulletin/security-bulletin-cve-2025-55184-and-cve-2025-55183?inf_ver=2&inf_ctx=g-3JhSYYZ0cx0G92duvbVawt9MIUiJBx04F4TGk46SdN0tsn1FNDXF_G5vKieBlBKax98GA9lOoIe74XNaed1S6Wa8A9XVCcQnf7JfzhcMcYf7mVYAioJHKT9Sz7nfnFFJxWbT5NcYyo9VREl4uBiO2Kg2t3KGzayTEuONY9ltlAMbGM5Z1mivcoj51nMOAu9c0OrD6gBntT6f4p1hnaFo6EC84B8QRJzR76vvHPz8vVnwiEEeHb-XcKtmFe2TOsyeNm5HO9vJAje1YNVus4Raff2EPwyfGci7qB61IJx0MXss_h7pK0-2jDL3mQiodUo-BTOiItMTByT3jaKzQ9fw%3D%3D' className="underline text-blue-500">Next.js bulletin</Link> to learn more about these vulnerabilities (December 11, 2025).</div> },
|
|
{ category: "improvement", description: "Upgraded Next.js from v13.5.6 to v16.0.10" },
|
|
{ category: "improvement", description: "Upgraded React and ReactDOM from v18.2.0 to v19.2.3" },
|
|
{ category: "improvement", description: "Replaced native img tags with LazyLoad Image component and added lazy loading for avatars" },
|
|
{ category: "bugfix", description: "Fixed spamming \"Failed to fetch geolocation\" alerts when presence using mobile devices" },
|
|
{ category: "feature", description: "Added progress bar indicator when route change in employee routes" },
|
|
{ category: 'feature', description: <div>Added <Link href="/hats-team" className="underline text-blue-500">HATs Team</Link> page</div> },
|
|
{ category: 'feature', description: <div>Added <Link href="/release-notes" className="underline text-blue-500">Release Notes</Link> page</div> },
|
|
]
|
|
},
|
|
{
|
|
version: "v1.0.2",
|
|
date: "13 May 2024",
|
|
type: "minor",
|
|
changes: [
|
|
{ category: "improvement", description: "Disabled time selection before check-in time in auto checkout adjustment" },
|
|
{ category: "feature", description: "Added camera switch for mobile view" },
|
|
{ category: "improvement", description: "Updated homepage UI responsiveness for mobile view" },
|
|
{ category: "feature", description: "Open Google Maps to show presence location in attendance history" },
|
|
{ category: "bugfix", description: "Fixed issues in manual attendance" },
|
|
{ category: "improvement", description: "Improved donut chart responsiveness on the homepage for mobile view" },
|
|
{ category: "feature", description: "Added progress bar indicator when route change in admin panel" },
|
|
]
|
|
},
|
|
{
|
|
version: "v1.0.1",
|
|
date: "19 November 2023",
|
|
type: "minor",
|
|
changes: [
|
|
{ category: "feature", description: "Added detailed employee attendance list when clicking an attendance status on the donut chart" },
|
|
{ category: "feature", description: "Added \"I'm Here\" feature when users are present as WFS or WFO" },
|
|
{ category: "feature", description: "Employee performance detail page" },
|
|
{ category: "feature", description: "Calendar page" },
|
|
{ category: "feature", description: "Employee attendance distribution menu in the admin panel" },
|
|
]
|
|
},
|
|
{
|
|
version: "v1.0.0",
|
|
date: "15 September 2023",
|
|
type: "major",
|
|
changes: [
|
|
{ category: "feature", description: "First release of the HIS Attendance Task System (H.A.T.s)" },
|
|
{ category: "feature", description: "Employee landing page with working hours, tasks, and attendance information" },
|
|
{ category: "feature", description: "Employee attendance history page" },
|
|
{ category: "feature", description: "Employee task management page" },
|
|
{ category: "feature", description: "Employee profile page" },
|
|
{ category: "feature", description: "Leave request feature" },
|
|
{ category: "feature", description: "Permission and sick leave request feature" },
|
|
{ category: "feature", description: "Admin panel menu" },
|
|
{ category: "feature", description: "Admin panel dashboard page" },
|
|
{ category: "feature", description: "Company, area, department, and employee management" },
|
|
{ category: "feature", description: "Attendance device and device type management" },
|
|
{ category: "feature", description: "Workday off management, global parameters, and audit trail" },
|
|
{ category: "feature", description: "Employee attendance reports, leave reports, sick leave reports, and attendance summary reports" },
|
|
{ category: "feature", description: "Manual attendance, attendance reports and approvals for non-WFO employees, and reports and approvals for employees who did not check out" },
|
|
{ category: "feature", description: "Information management for master status, working status, user roles, employee positions, and employee types" },
|
|
]
|
|
},
|
|
];
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Release Notes - HIS Attendance Task System (H.A.T.s)",
|
|
}
|
|
|
|
export default async function ReleaseNotesPage() {
|
|
const getCategoryIcon = (category: string) => {
|
|
switch (category) {
|
|
case 'feature':
|
|
return <Sparkles className="h-4 w-4 text-green-500" />;
|
|
case 'improvement':
|
|
return <Zap className="h-4 w-4 text-blue-500" />;
|
|
case 'bugfix':
|
|
return <Bug className="h-4 w-4 text-orange-500" />;
|
|
case 'breaking':
|
|
return <Wrench className="h-4 w-4 text-red-500" />;
|
|
default:
|
|
return <Sparkles className="h-4 w-4" />;
|
|
}
|
|
};
|
|
|
|
const getCategoryLabel = (category: string) => {
|
|
switch (category) {
|
|
case 'feature':
|
|
return 'New Feature';
|
|
case 'improvement':
|
|
return 'Enhancement';
|
|
case 'bugfix':
|
|
return 'Bug Fix';
|
|
case 'breaking':
|
|
return 'Breaking Change';
|
|
default:
|
|
return category;
|
|
}
|
|
};
|
|
|
|
const getVersionBadge = (type: string) => {
|
|
switch (type) {
|
|
case 'major':
|
|
return <Badge className="bg-primary text-primary-foreground">Major</Badge>;
|
|
case 'minor':
|
|
return <Badge variant="secondary">Minor</Badge>;
|
|
case 'patch':
|
|
return <Badge variant="outline">Patch</Badge>;
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
|
|
return (
|
|
<>
|
|
<div className="min-h-screen">
|
|
<div className="flex items-center gap-4 sm:p-8 pt-6 px-6">
|
|
<div>
|
|
<h1 className="text-lg sm:text-3xl font-medium tracking-tight capitalize">Release Notes</h1>
|
|
<p className="text-xs md:text-base text-muted-foreground sm:mt-1">Release Notes / Application Update History for HIS Attendance Task System (H.A.T.s)</p>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Content */}
|
|
<main className="container mx-auto px-4 py-8 max-w-3xl">
|
|
<div className="space-y-8">
|
|
{releaseNotes.map((release, index) => (
|
|
<div key={index} className="relative pl-8 pb-8 border-l-2 border-border last:border-l-0" id={release.version}>
|
|
{/* Timeline dot */}
|
|
<div className="absolute left-0 top-0 -translate-x-1/2 w-4 h-4 rounded-full bg-primary border-4 border-background" />
|
|
|
|
{/* Version header */}
|
|
<div className="mb-4">
|
|
<div className="flex items-center gap-3 flex-wrap">
|
|
<h2 className="text-2xl font-bold text-foreground">{release.version}</h2>
|
|
{getVersionBadge(release.type)}
|
|
</div>
|
|
<div className="flex items-center gap-2 mt-1 text-muted-foreground">
|
|
<Calendar className="h-4 w-4" />
|
|
<span className="text-sm">{release.date}</span>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Changes */}
|
|
<div className="bg-card rounded-lg border p-4 py-6 sm:p-6 space-y-4">
|
|
{release.changes.map((change, changeIndex) => (
|
|
<div key={changeIndex} className="flex items-start gap-3">
|
|
{getCategoryIcon(change.category)}
|
|
<div className="flex-1">
|
|
<span className="text-xs font-medium text-muted-foreground uppercase tracking-wider">
|
|
{getCategoryLabel(change.category)}
|
|
</span>
|
|
<div className="text-foreground text-xs sm:text-sm">{change.description}</div>
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
</div>
|
|
))}
|
|
</div>
|
|
|
|
{/* Footer */}
|
|
<div className="mt-8 px-9 text-center text-muted-foreground">
|
|
<p className="text-xs mt-2">
|
|
Have suggestions or found a bug? Please contact <Link href='/hats-team' className='underline text-his'>our support team</Link>.
|
|
</p>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</>
|
|
);
|
|
} |