Add FilterModal and DatePickerMultiMode; UI fixes

Introduce a FilterModal component and a DatePickerMultiMode UI component; refactor FilterComponent to use the modal and expose new hide* props for finer control. Update HomeTask to use a Select for view switching and remove unused props. Improve client and assignment UIs: ClientGrid empty state, client card actions, AssignmentTable empty state, and various text/label adjustments. Fix PieChart null-safety with optional chaining and remove a stray console.log in ClientDetailComponent. Update assignment field mappings to prefer wo_* values where appropriate and pass hideCategory to project detail page. Also update .env.development API/IMG URLs.
This commit is contained in:
Ichsan Kurniawan
2026-04-23 21:01:12 +07:00
parent 29c2181acb
commit 80cb73f7fa
12 changed files with 562 additions and 191 deletions
@@ -14,7 +14,12 @@ export default function AssignmentTable({ data }: { data: IProjectAssignment[] }
if (data.length === 0) {
return <Card className="py-12 text-center border-2 border-dashed rounded-xl">
<BookOpenCheck className="w-12 h-12 mx-auto text-muted-foreground opacity-20" />
<h3 className="text-lg font-medium">No project assignment found</h3>
<div className="text-center">
<h3 className="text-xl font-semibold">No Project Assignment Found</h3>
<p className="text-muted-foreground max-w-sm mx-auto mt-2">
Try to change the filter or create one to get started.
</p>
</div>
</Card>
}