Skip to content

feat(webuiapps): persist chat history locally#7

Merged
MinimaxLanbo merged 4 commits into
MiniMax-AI:mainfrom
adao-max:feat/local-chat-history
Mar 8, 2026
Merged

feat(webuiapps): persist chat history locally#7
MinimaxLanbo merged 4 commits into
MiniMax-AI:mainfrom
adao-max:feat/local-chat-history

Conversation

@adao-max

@adao-max adao-max commented Mar 8, 2026

Copy link
Copy Markdown
Contributor

What

  • add chat history persistence helpers backed by localStorage with a dev-server API fallback
  • expose /api/chat-history in vite dev server and cover the storage flow with unit tests

Test

  • pnpm --filter @openroom/webuiapps test -- src/lib/tests/chatHistoryStorage.test.ts

adao-max and others added 4 commits March 8, 2026 11:12
- Install @playwright/test, configure for Chromium with auto dev-server
- Add e2e/ directory with initial smoke tests (page load, routing, chat panel)
- Add test:e2e and test:e2e:ui scripts to root package.json
- Update .gitignore for Playwright artifacts
- Document E2E testing workflow in CLAUDE.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace shallow smoke tests with 9 comprehensive Playwright tests covering:
- Shell rendering with desktop app icons and control buttons
- Chat panel visibility toggle with before/after assertions
- Chat panel empty state, settings modal open/close
- Chat input interaction (disabled/enabled state, message sending)
- App window open via double-click and close via button
- Language toggle state change verification

Add data-testid attributes to Shell, ChatPanel, and AppWindow components
for stable, non-fragile test selectors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MinimaxLanbo MinimaxLanbo merged commit 81e9b13 into MiniMax-AI:main Mar 8, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants