diff --git a/app/globals.css b/app/globals.css
index d1f99b8..1380e4f 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -294,4 +294,37 @@
visibility: hidden;
translate: -50% -50%;
}
- /*** END MODAL STYLE ***/
\ No newline at end of file
+ /*** END MODAL STYLE ***/
+
+
+
+.animated-tada {
+ animation-duration: 1.5s;
+ animation-iteration-count: infinite;
+}
+
+@keyframes tada {
+ 0% {
+ transform: scale3d(1.2, 1.2, 1.2);
+ }
+
+ 10%, 20% {
+ transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
+ }
+
+ 30%, 50%, 70%, 90% {
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
+ }
+
+ 40%, 60%, 80% {
+ transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
+ }
+
+ 100% {
+ transform: scale3d(1.2, 1.2, 1.2);
+ }
+}
+
+.tada {
+ animation-name: tada;
+}
\ No newline at end of file
diff --git a/app/performance/[id]/components/EmployeeAlpha.tsx b/app/performance/[id]/components/EmployeeAlpha.tsx
new file mode 100644
index 0000000..83c309f
--- /dev/null
+++ b/app/performance/[id]/components/EmployeeAlpha.tsx
@@ -0,0 +1,138 @@
+"use client"
+
+import { useState, type FC } from 'react';
+import {
+ Dialog,
+ DialogContent,
+ DialogHeader,
+ DialogTitle,
+ DialogDescription,
+} from '@/components/ui/dialog';
+import { CalendarX2, AlertTriangle, Calendar, ChevronRight, X, UserX, Eye } from 'lucide-react';
+import { Badge } from '@/components/ui/badge';
+import { format, getMonth, getYear, parseISO } from 'date-fns';
+import { Button } from '@/components/ui/button';
+
+type Props = {
+ alphaData: any[]
+};
+
+const monthColors: Record
= {
+ 0: { bg: 'bg-primary/10', text: 'text-primary', border: 'border-primary/20', dot: 'bg-primary' },
+ 1: { bg: 'bg-destructive/10', text: 'text-destructive', border: 'border-destructive/20', dot: 'bg-destructive' },
+};
+
+const EmployeeAlpha: FC = ({ alphaData }) => {
+ const [open, setOpen] = useState(false);
+
+ // Group by month
+ const grouped = alphaData.reduce>((acc, item) => {
+ const d = parseISO(item.date);
+ const key = `${getYear(d)}-${String(getMonth(d)).padStart(2, '0')}`;
+ if (!acc[key]) acc[key] = [];
+ acc[key].push(item);
+ return acc;
+ }, {});
+
+ const sortedMonths = Object.keys(grouped).sort();
+
+ return (
+ <>
+ setOpen(true)} className='text-emerald-600 hover:text-his duration-200 cursor-pointer' />
+
+ {/* Modal */}
+
+ >
+ );
+}
+
+export default EmployeeAlpha;
\ No newline at end of file
diff --git a/app/performance/[id]/components/Table.tsx b/app/performance/[id]/components/Table.tsx
index 26c1e68..0e73fae 100644
--- a/app/performance/[id]/components/Table.tsx
+++ b/app/performance/[id]/components/Table.tsx
@@ -47,7 +47,7 @@ const TableAttendanceHistory: FC = ({ data }) => {
defaultPageSize: 15,
showSizeChanger: true,
showQuickJumper: true,
- // size: 'default'
+ size: 'default'
},
scroll: { x: 'max-content' },
tableLayout: 'auto',
@@ -63,15 +63,9 @@ const TableAttendanceHistory: FC = ({ data }) => {