Skip to content

Optimize canvas rendering and resolve cross-platform CI/test failures - #4

Merged
junosapollo merged 4 commits into
junosapollo:mainfrom
Sehaan-1:main
Oct 31, 2026
Merged

junosapollo merged 4 commits into
junosapollo:mainfrom
Sehaan-1:main

Conversation

@Sehaan-1

Copy link
Copy Markdown
Collaborator

What changed

  1. Canvas stage rendering optimization

    • Active strokes now coalesce paint calls via requestAnimationFrame. Pointer events still accumulate synchronously so stroke accuracy is preserved, but heavy tessellation and fill operations happen at most once per display frame.
    • Layer painting is now incremental. If the previous operation IDs are a clean prefix of the new state, only the newly appended operations are drawn using renderDrawingOperation(). Layer rebuilds (renderLayer()) are reserved for undo, clear, or op removal.
    • Cancels pending rAF callbacks on pointerup, pointercancel, and component unmount.
  2. Cross-platform and CI test fixes

    • Normalized Windows backslash paths and POSIX file permission checks in the Python intake and curation modules.
    • Resolved a schema migration cascade issue (v2 -> v4) in drawable_api.
    • Adjusted M0EffortTracker positioning so it doesn't intercept drawing canvas pointer events.
    • Configured mypy in pyproject.toml and added contracts check script with line-ending normalization.
    • Added workflow_dispatch and push triggers to GitHub Actions CI workflow.
  3. Workspace hygiene

    • Updated .gitignore to ignore Python virtualenvs (.venv), test/lint caches (.pytest_cache, .ruff_cache, .mypy_cache), Playwright artifacts, and editor/tool configs.

Testing

  • npm test passed (43 tests across 8 test suites, including 16 new unit tests in CanvasStage.test.tsx).
  • npm run check passed with no type errors.
  • Added Playwright test in workspace.spec.ts confirming incrementally rendered canvas pixels match a clean full-layer reload.

- 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
@Sehaan-1 Sehaan-1 self-assigned this Oct 24, 2026
@Sehaan-1
Sehaan-1 requested a review from junosapollo October 24, 2026 15:13
@junosapollo

Copy link
Copy Markdown
Owner

@Sehaan-1 testing this as we speak. thank you

@junosapollo
junosapollo merged commit d270884 into junosapollo:main Oct 31, 2026
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