fix: resolve runtime errors and establish testing infrastructure#58
Conversation
- Fix ReferenceError: themeKey is not defined in NewWorkspace EditorArea - Unify theme type system (ThemeMode now includes 'soft-dark') - Fix storage key inconsistency (vspec_theme -> vspec-theme) - Fix duplicate tiptap extension warning (disable link/underline in StarterKit v3) - Remove maskable icon purpose from PWA manifest (no background frame on logo) - Center login page vertically on mobile with flexbox - Set up Vitest + React Testing Library + jsdom - Add 70 tests across storage, workspaceStore, and markdown conversion - Add test step to CI/CD pipeline https://claude.ai/code/session_01MER5jwqiMikPxH1DoS3WKs
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the
📝 WalkthroughWalkthroughThe PR introduces comprehensive testing infrastructure using Vitest, adds test suites for markdown conversion and storage utilities, implements a new "soft-dark" theme variant, updates a localStorage key naming convention in ThemeSwitcher, and makes minor layout and component configuration adjustments. Changes
Poem
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
📊 Performance Report
View detailed Lighthouse report in artifacts. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 25fe498d11
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <div | ||
| className={`prose prose-lg max-w-none ${themeKey === 'dark' ? 'prose-dark' : ''}`} | ||
| className={`prose prose-lg max-w-none ${(theme === 'dark' || theme === 'soft-dark') ? 'prose-dark' : ''}`} | ||
| style={{ |
There was a problem hiding this comment.
Use effective theme for preview typography
When the workspace theme is set to auto, effectiveTheme can be dark while theme remains auto. This class check now keys off theme, so the preview never applies prose-dark in auto‑dark mode. The typography plugin will keep dark text styles, which becomes hard to read against the dark background used for auto‑dark. Consider basing the class on effectiveTheme (or passing themeKey) so auto‑dark renders with the dark prose palette.
Useful? React with 👍 / 👎.
📊 Performance Report
View detailed Lighthouse report in artifacts. |
https://claude.ai/code/session_01MER5jwqiMikPxH1DoS3WKs
Pull Request
Description
Type of Change
Related Issues
Changes Made
Screenshots/Videos
Before
After
Testing
Design System Compliance
#7C85EDappropriately (sparingly)Checklist
Additional Notes
Summary by CodeRabbit
Release Notes
New Features
Style
Tests
Chores