Revamp task client and project detail pages

This commit adds dedicated loading states and a reusable Reveal animation, and refactors the task client/project detail flows to present a cleaner summary UI. It introduces richer client and project headers, delivery overview cards, improved work-order timeline/team sections, and more consistent visual styling across the task dashboard. The update also improves mobile readability and team assignment presentation, while keeping the same underlying data flow.
This commit is contained in:
Ichsan Kurniawan
2026-10-06 15:58:43 +07:00
parent 26f2c16608
commit bd42c2defa
16 changed files with 1394 additions and 527 deletions
+19
View File
@@ -0,0 +1,19 @@
"use client"
import type { ReactNode } from 'react';
import { motion, useReducedMotion } from 'motion/react';
/** Entry reveal. Honors prefers-reduced-motion by rendering static. */
export default function Reveal({ children, delay = 0, className }: { children: ReactNode; delay?: number; className?: string }) {
const reduce = useReducedMotion();
return (
<motion.div
className={className}
initial={reduce ? false : { opacity: 0, y: 12 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.45, delay, ease: [0.16, 1, 0.3, 1] }}
>
{children}
</motion.div>
);
}