mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 18:06:28 +00:00
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:
@@ -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>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user