Initial commit: timeline-elements-demo app
Interactive Angular 19 demo for @sda/timeline-elements-ui with vertical/horizontal timelines, Gantt charts, activity feeds, audit trails, changelogs, and dark mode toggle. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
84
src/app/mock-data/activity-data.ts
Normal file
84
src/app/mock-data/activity-data.ts
Normal file
@@ -0,0 +1,84 @@
|
||||
import type { TlActivityItem } from '@sda/timeline-elements-ui';
|
||||
|
||||
export const RECENT_ACTIVITY: TlActivityItem[] = [
|
||||
{
|
||||
id: '1',
|
||||
actor: { id: '1', name: 'Sarah Johnson', avatar: '', initials: 'SJ' },
|
||||
action: 'created',
|
||||
target: 'Incident Report #2453',
|
||||
description: 'Fall in dining area - resident Mrs. Anderson',
|
||||
date: new Date(Date.now() - 1000 * 60 * 15),
|
||||
type: 'create',
|
||||
unread: true,
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
actor: { id: '2', name: 'Michael Chen', avatar: '', initials: 'MC' },
|
||||
action: 'updated',
|
||||
target: 'Care Plan',
|
||||
description: 'Revised medication schedule for Mr. Roberts',
|
||||
date: new Date(Date.now() - 1000 * 60 * 45),
|
||||
type: 'update',
|
||||
unread: true,
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
actor: { id: '3', name: 'Emily Davis', avatar: '', initials: 'ED' },
|
||||
action: 'commented on',
|
||||
target: 'Incident Report #2453',
|
||||
description: 'Added witness statement and photos',
|
||||
date: new Date(Date.now() - 1000 * 60 * 120),
|
||||
type: 'comment',
|
||||
unread: false,
|
||||
},
|
||||
{
|
||||
id: '4',
|
||||
actor: { id: '4', name: 'System', avatar: '', initials: 'SY' },
|
||||
action: 'assigned',
|
||||
target: 'Maintenance Task #891',
|
||||
description: 'Broken window in Room 12 → Facilities Team',
|
||||
date: new Date(Date.now() - 1000 * 60 * 240),
|
||||
type: 'assign',
|
||||
unread: false,
|
||||
},
|
||||
{
|
||||
id: '5',
|
||||
actor: { id: '1', name: 'Sarah Johnson', avatar: '', initials: 'SJ' },
|
||||
action: 'uploaded',
|
||||
target: '3 documents',
|
||||
description: 'Medical reports for quarterly review',
|
||||
date: new Date(Date.now() - 1000 * 60 * 360),
|
||||
type: 'upload',
|
||||
unread: false,
|
||||
},
|
||||
{
|
||||
id: '6',
|
||||
actor: { id: '5', name: 'David Martinez', avatar: '', initials: 'DM' },
|
||||
action: 'completed',
|
||||
target: 'Fire Safety Drill',
|
||||
description: 'All residents and staff participated successfully',
|
||||
date: new Date(Date.now() - 1000 * 60 * 60 * 24),
|
||||
type: 'status',
|
||||
unread: false,
|
||||
},
|
||||
{
|
||||
id: '7',
|
||||
actor: { id: '3', name: 'Emily Davis', avatar: '', initials: 'ED' },
|
||||
action: 'shared',
|
||||
target: 'Weekly Schedule',
|
||||
description: 'Activity calendar shared with family members',
|
||||
date: new Date(Date.now() - 1000 * 60 * 60 * 36),
|
||||
type: 'share',
|
||||
unread: false,
|
||||
},
|
||||
{
|
||||
id: '8',
|
||||
actor: { id: '4', name: 'System', avatar: '', initials: 'SY' },
|
||||
action: 'sent',
|
||||
target: 'Medication Reminder',
|
||||
description: 'Automated reminders sent to nursing staff',
|
||||
date: new Date(Date.now() - 1000 * 60 * 60 * 48),
|
||||
type: 'system',
|
||||
unread: false,
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user