style(dm): redesign dashboard with purple-gold theme

Redesign DM Dashboard (/dm/, /ru/dm/) with purple-gold theme (#534AB7 + #c8a84b):

Design System:
- Update dm-theme.css with 49 purple-gold tokens (transitions, shadows, hover states)
- Create DmTabs.astro with ARIA, keyboard nav, URL hash sync, localStorage persistence
- Create DmSidebar.astro for desktop navigation
- Redesign DmHeader with gold accent
- Update DmButton, DmCard, DmInput primitives
- Expand i18n to 47 strings

Layout:
- Redesign DmLayout with 3-column dashboard grid (sidebar|main|context)
- Update /dm/index.astro and /ru/dm/index.astro with named slots

Feature Components:
- DiceRoller: empty state, ARIA live, color-coded history, storage key fallback
- InitiativeTracker: HP editing, active highlighting, storage key fallback
- Open5eReference: skeletons, debounce, error retry, gold tabs
- NotesPanel: cross-tab sync, copy-to-clipboard, auto-save
- AuthPanel: VK/Yandex brand colors, pill buttons

Tests:
- Add 50 Playwright E2E tests (smoke, dice, initiative, reference, notes, data-migration)

Fixes:
- Document Open5e client.ts URL bugfix
- Add backward-compatible storage key fallback for dice/initiative
- Preserve legacy sessionStorage data on load
This commit is contained in:
emil
2026-05-15 17:49:32 +03:00
parent 11da171bfb
commit 1c38df7e74
113 changed files with 5651 additions and 596 deletions
+42
View File
@@ -0,0 +1,42 @@
=== Playwright E2E Infrastructure Verification ===
Date: 2026-05-15
Task: T0 - Verify and configure Playwright E2E test infrastructure
---
1. npx playwright test --list
---
Listing tests:
[chromium] › dm/smoke.spec.ts:4:3 › DM Dashboard Smoke Tests › /dm/ loads without errors
[chromium] › dm/smoke.spec.ts:11:3 › DM Dashboard Smoke Tests › /ru/dm/ loads without errors
[mobile-chromium] › dm/smoke.spec.ts:4:3 › DM Dashboard Smoke Tests › /dm/ loads without errors
[mobile-chromium] › dm/smoke.spec.ts:11:3 › DM Dashboard Smoke Tests › /ru/dm/ loads without errors
Total: 4 tests in 1 file
---
2. npx playwright test tests/dm/smoke.spec.ts
---
Running 4 tests using 4 workers
✓ 3 [chromium] › tests/dm/smoke.spec.ts:11:3 › DM Dashboard Smoke Tests › /ru/dm/ loads without errors (2.9s)
✓ 4 [mobile-chromium] › tests/dm/smoke.spec.ts:11:3 › DM Dashboard Smoke Tests › /ru/dm/ loads without errors (3.1s)
✓ 1 [mobile-chromium] › tests/dm/smoke.spec.ts:4:3 › DM Dashboard Smoke Tests › /dm/ loads without errors (3.1s)
✓ 2 [chromium] › tests/dm/smoke.spec.ts:4:3 › DM Dashboard Smoke Tests › /dm/ loads without errors (3.2s)
4 passed (8.4s)
---
Summary
---
- playwright.config.ts: EXISTING, VALID
- testDir: ./tests
- baseURL: http://localhost:4321
- fullyParallel: true
- projects: chromium, mobile-chromium
- webServer: npm run dev, reuseExistingServer: !CI
- package.json scripts:
- test:e2e: playwright test (ADDED)
- test:ui: playwright test (PRESERVED)
- Smoke test created: tests/dm/smoke.spec.ts
- /dm/ loads without errors (title contains "DM Dashboard")
- /ru/dm/ loads without errors (title contains "DM Dashboard")
- Result: ALL TESTS PASS (4/4)