Skip to content

Conversation

@GeneralGDA
Copy link
Contributor

  • Undo/redo support.
  • Canvas resize fix (drawing above an image).
  • Tooltips.
  • Text editing commit on tool selection.
  • Collaborative drawing board: dark background when dark theme selected.
  • Basic module tests for drawing board.
  • Refactoring: stricter typing.

Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
…sting

Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13307

@GeneralGDA GeneralGDA requested a review from Copilot August 27, 2025 04:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements comprehensive undo/redo functionality for the drawing board along with numerous bug fixes and improvements. It introduces proper type safety, collaborative features, and better user experience through tooltips and accessibility enhancements.

Key changes include:

  • Added undo/redo support using Yjs UndoManager with a new DrawingCommandsProcessor class
  • Fixed canvas resizing issues when drawing above images through improved CSS transform scaling
  • Enhanced the drawing board with tooltips for all tools and better theme support for dark mode
  • Improved type safety by introducing CommandUid branded type and stricter typing throughout

Reviewed Changes

Copilot reviewed 30 out of 31 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
packages/presentation/src/drawingCommandsProcessor.ts New class managing undo/redo operations with Yjs integration
packages/presentation/src/drawingUtils.ts New utilities for point manipulation and canvas scaling calculations
packages/presentation/src/drawing.ts Major refactor with stricter typing, improved canvas scaling, and undo/redo integration
packages/presentation/src/components/DrawingBoardToolbar.svelte Added undo/redo buttons and tooltips for all tools
packages/theme/styles/_colors.scss Theme-aware drawing background colors for light/dark modes
Language files Added localized strings for new UI elements and tooltips
Test files Comprehensive test coverage for new drawing utilities and command processor
Files not reviewed (1)
  • common/config/rush/pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
Signed-off-by: Denis Gladkiy <denis.gladkiy@hardcoreeng.com>
@GeneralGDA GeneralGDA merged commit 84431f7 into develop Aug 28, 2025
25 of 26 checks passed
@GeneralGDA GeneralGDA deleted the drawing-board-undo-redo branch September 1, 2025 10:49
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.

3 participants