Repository navigation
Optimize canvas rendering and resolve cross-platform CI/test failures - #4
Merged
Merged
Conversation
- Add .claude and .opencode to .gitignore - Scope M0EffortTracker away from drawing canvas to eliminate pointer interception - Update stale /setup route assertion in workspace E2E test - Fix database schema migration cascade bug (v2 -> v4) - Fix Windows backslash checks and POSIX permission mask guards in curation, intake, and feasibility modules - Add cross-platform contracts check script with CRLF normalization - Configure mypy in pyproject.toml to ensure CI type checking passes cleanly - Make torch and resource imports robust for cross-platform test runners - Include verified Google Colab GPU preflight execution artifacts
- Incremental committed-layer rendering with stable ID prefix checks - Active-stroke rAF coalescing for smooth drawing performance - Unit and E2E regression tests for canvas rendering - Comprehensive .gitignore for Node, Python, caches, OS, and IDE configs
Owner
|
@Sehaan-1 testing this as we speak. thank you |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Canvas stage rendering optimization
requestAnimationFrame. Pointer events still accumulate synchronously so stroke accuracy is preserved, but heavy tessellation and fill operations happen at most once per display frame.renderDrawingOperation(). Layer rebuilds (renderLayer()) are reserved for undo, clear, or op removal.Cross-platform and CI test fixes
drawable_api.M0EffortTrackerpositioning so it doesn't intercept drawing canvas pointer events.pyproject.tomland added contracts check script with line-ending normalization.workflow_dispatchandpushtriggers to GitHub Actions CI workflow.Workspace hygiene
.gitignoreto ignore Python virtualenvs (.venv), test/lint caches (.pytest_cache,.ruff_cache,.mypy_cache), Playwright artifacts, and editor/tool configs.Testing
npm testpassed (43 tests across 8 test suites, including 16 new unit tests inCanvasStage.test.tsx).npm run checkpassed with no type errors.workspace.spec.tsconfirming incrementally rendered canvas pixels match a clean full-layer reload.