feat(#37-41): Add domains, ideas, relationships, agents, widgets schema
Schema additions for issues #37-41: New models: - Domain (#37): Life domains (work, marriage, homelab, etc.) - Idea (#38): Brain dumps with pgvector embeddings - Relationship (#39): Generic entity linking (blocks, depends_on) - Agent (#40): ClawdBot agent tracking with metrics - AgentSession (#40): Conversation session tracking - WidgetDefinition (#41): HUD widget registry - UserLayout (#41): Per-user dashboard configuration Updated models: - Task, Event, Project: Added domainId foreign key - User, Workspace: Added new relations New enums: - IdeaStatus: CAPTURED, PROCESSING, ACTIONABLE, ARCHIVED, DISCARDED - RelationshipType: BLOCKS, BLOCKED_BY, DEPENDS_ON, etc. - AgentStatus: IDLE, WORKING, WAITING, ERROR, TERMINATED - EntityType: Added IDEA, DOMAIN Migration: 20260129182803_add_domains_ideas_agents_widgets
This commit is contained in:
32
apps/web/src/components/calendar/EventCard.tsx
Normal file
32
apps/web/src/components/calendar/EventCard.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
import type { Event } from "@mosaic/shared";
|
||||
import { formatTime } from "@/lib/utils/date-format";
|
||||
|
||||
interface EventCardProps {
|
||||
event: Event;
|
||||
}
|
||||
|
||||
export function EventCard({ event }: EventCardProps) {
|
||||
return (
|
||||
<div className="bg-white p-3 rounded-lg border-l-4 border-blue-500 shadow-sm hover:shadow-md transition-shadow">
|
||||
<div className="flex justify-between items-start mb-1">
|
||||
<h3 className="font-semibold text-gray-900">{event.title}</h3>
|
||||
{event.allDay ? (
|
||||
<span className="text-xs text-gray-500 px-2 py-1 bg-gray-100 rounded">
|
||||
All day
|
||||
</span>
|
||||
) : (
|
||||
<span className="text-xs text-gray-500">
|
||||
{formatTime(event.startTime)}
|
||||
{event.endTime && ` - ${formatTime(event.endTime)}`}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{event.description && (
|
||||
<p className="text-sm text-gray-600 mb-2">{event.description}</p>
|
||||
)}
|
||||
{event.location && (
|
||||
<p className="text-xs text-gray-500">📍 {event.location}</p>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user