mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 22:16:28 +00:00
Refactor project/assignment UI and timeline
Multiple UI adjustments across client/project/assignment views: fix client description copy, add project Year badge and adjust project card padding and description punctuation, move work-order/team section into its own card and update manage-team button, tweak AssignedPeople button label/styling, make StatusTimeline collapsible with animation (show current entry prominently and toggle historic entries), add padding and end-date fallback (N/A) to WorkOrderCard, and small ClientGrid markup/spacing cleanups. These changes improve layout consistency, UX for viewing details, and handle missing end dates more gracefully.
This commit is contained in:
@@ -80,9 +80,7 @@ export default function ClientGrid({ clients }: { clients: IClient[] }) {
|
||||
<HoverCardTrigger>
|
||||
<div className="group/pill flex items-center gap-2 bg-black/40 hover:bg-black/60 backdrop-blur-md border border-white/20 rounded-full py-1 px-3 transition-all duration-300 cursor-help hover:scale-105 active:scale-95 shadow-xl">
|
||||
<div className="relative flex items-center justify-center">
|
||||
{client.status_name.toLowerCase() === 'active' &&
|
||||
<span className="absolute inset-0 rounded-full bg-green-400 animate-ping opacity-40 scale-150" />
|
||||
}
|
||||
{client.status_name.toLowerCase() === 'active' && <span className="absolute inset-0 rounded-full bg-green-400 animate-ping opacity-40 scale-150" />}
|
||||
<div className={cn(
|
||||
"w-2.5 h-2.5 rounded-full ring-2 ring-black/40 relative z-10",
|
||||
client.status_name.toLowerCase() === 'active' ? 'bg-green-400' : 'bg-orange-400'
|
||||
@@ -97,7 +95,7 @@ export default function ClientGrid({ clients }: { clients: IClient[] }) {
|
||||
<HoverCardContent side="bottom" align='end' className="flex flex-col gap-0.5 text-sm">
|
||||
<div className="font-semibold">Status Summary</div>
|
||||
<div className="text-xs text-muted-foreground">This is status summary information from WO or IM related to this client.</div>
|
||||
<div className='flex flex-col mt-4 gap-2.5 text-xs'>
|
||||
<div className='flex flex-col mt-4 gap-3 text-xs'>
|
||||
{client.project_status_summary.map((item, key) =>
|
||||
<div className='flex justify-between items-center gap-2' key={key}>
|
||||
<BadgeStatus status={item.project_status} />
|
||||
|
||||
Reference in New Issue
Block a user