feat: TASK-006 left panel redesign — 5-section layout with attunement status and activity log, remove CalendarDisplay
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 33s

This commit is contained in:
2026-05-11 14:23:39 +02:00
parent 8665e903bd
commit e8b8fc26c7
6 changed files with 172 additions and 66 deletions
+3 -2
View File
@@ -6,9 +6,10 @@ import type { ActivityLogEntry } from '@/lib/game/types';
interface ActivityLogProps {
activityLog?: ActivityLogEntry[];
maxEntries?: number;
}
export function ActivityLog({ activityLog }: ActivityLogProps) {
export function ActivityLog({ activityLog, maxEntries = 50 }: ActivityLogProps) {
const entries = activityLog || [];
return (
@@ -19,7 +20,7 @@ export function ActivityLog({ activityLog }: ActivityLogProps) {
<CardContent>
<ScrollArea className="h-48">
<div className="space-y-1">
{entries.slice(0, 50).map((entry, i) => {
{entries.slice(0, maxEntries).map((entry, i) => {
const isLatest = i === 0;
const color = getEventStyle(entry.eventType);
return (