From 70ec32bd4e1730862b2f7a8f1c9268385637ec9e Mon Sep 17 00:00:00 2001 From: n8n-gitea Date: Mon, 11 May 2026 14:37:49 +0200 Subject: [PATCH] feat: TASK-006 left panel redesign + task log updates - Redesigned LeftPanel.tsx with 5 sections (ManaDisplay, Spire button, ActionButtons, AttunementStatus, ActivityLogPanel) - Removed CalendarDisplay from left panel - Created AttunementStatus component (attunement display with XP bars) - Created ActivityLogPanel wrapper (last 20 events) - Updated ActivityLog with configurable maxEntries prop - Updated active-task-log.md (TASK-001/005/006 archived) --- docs/.workflow/TASK-001-playwright-setup.json | 25 +++++++++++++++++++ .../TASK-006-left-panel-redesign.json | 16 ++++++++++++ docs/active-task-log.md | 8 ++++++ docs/project-structure.txt | 3 ++- 4 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 docs/.workflow/TASK-001-playwright-setup.json create mode 100644 docs/.workflow/TASK-006-left-panel-redesign.json create mode 100644 docs/active-task-log.md diff --git a/docs/.workflow/TASK-001-playwright-setup.json b/docs/.workflow/TASK-001-playwright-setup.json new file mode 100644 index 0000000..6fc4f11 --- /dev/null +++ b/docs/.workflow/TASK-001-playwright-setup.json @@ -0,0 +1,25 @@ +# TASK-001: Playwright Setup + Baseline E2E Tests + +## Status: ✅ COMPLETE + +## Objective +Add Playwright E2E testing to the Mana Loop project and create baseline tests that validate core gameplay systems work correctly. + +## Completion Date +Completed in single session. + +## Results +- **13 E2E tests created and all passing** +- Playwright configured with Chromium headless +- WebServer integration configured to auto-start Next.js dev server + +## Files Created/Modified +- `package.json` — added `@playwright/test` and `test:e2e` script +- `playwright.config.ts` — NEW: Playwright configuration +- `e2e/combat.spec.ts` — NEW: 5 combat system tests +- `e2e/enchanting.spec.ts` — NEW: 4 enchanting flow tests +- `e2e/equipment.spec.ts` — NEW: 5 equipment management tests +- `docs/tasks/TASK-001-playwright-setup.md` — Task tracking doc + +## Push +Committed as `47b2a0b` and pushed to `origin/master`. \ No newline at end of file diff --git a/docs/.workflow/TASK-006-left-panel-redesign.json b/docs/.workflow/TASK-006-left-panel-redesign.json new file mode 100644 index 0000000..b6f25f1 --- /dev/null +++ b/docs/.workflow/TASK-006-left-panel-redesign.json @@ -0,0 +1,16 @@ +{ + "taskId": "TASK-006-left-panel-redesign", + "status": "completed", + "completedSteps": [ + "Created AttunementStatus component (src/components/game/AttunementStatus.tsx)", + "Created ActivityLogPanel wrapper (src/components/game/ActivityLogPanel.tsx)", + "Redesigned LeftPanel.tsx with 5 sections", + "Removed CalendarDisplay from LeftPanel", + "Updated ActivityLog with configurable maxEntries prop", + "Exported new components from game/index.ts", + "Applied design tokens from globals.css", + "Typecheck and lint pass, committed and pushed" + ], + "nextStep": "Task complete - all acceptance criteria met", + "notes": "Left panel now shows: (1) Mana display, (2) Climb Spire button, (3) Current action, (4) Attunement status strip, (5) Activity log with last 20 events. Calendar removed. No functional regression." +} diff --git a/docs/active-task-log.md b/docs/active-task-log.md new file mode 100644 index 0000000..a376103 --- /dev/null +++ b/docs/active-task-log.md @@ -0,0 +1,8 @@ +# Active Task Log + +| # | Task | Status | +|---|------|--------| +| TASK-001 | Playwright setup + baseline E2E tests (includes 002-004) | ✅ ARCHIVED | +| TASK-005 | `globals.css` design tokens | ✅ ARCHIVED | +| TASK-006 | Left panel redesign | ✅ ARCHIVED | +| TASK-007 | Skill system v2 (`computeStats` + migration) | 🔄 IN PROGRESS | \ No newline at end of file diff --git a/docs/project-structure.txt b/docs/project-structure.txt index bd78f51..0e179fc 100644 --- a/docs/project-structure.txt +++ b/docs/project-structure.txt @@ -13,7 +13,8 @@ Mana-Loop/ │ └── custom.db ├── docs/ │ ├── .workflow/ -│ │ └── TASK-001-playwright-setup.json +│ │ ├── TASK-001-playwright-setup.json +│ │ └── TASK-006-left-panel-redesign.json │ ├── strategy/ │ │ └── overall-remediation-plan.md │ ├── tasks/