Skip to content

Improve code quality of the JS commands #72

@fluegelk

Description

@fluegelk

Improve the code quality of the commands in canvas_project/static/js/commands/:

  • Reduce code duplication by introducing super classes for shared functionality
  • in undoRedoHandler.mjs: replace hard-coded magic number with a class variable for the maximum stack size
  • in updateCommands.mjs: validate new attribute values, not just the attribute names
    • Check if this is also necessary in create commands
  • Reuse code to generate name of copied objects (related to Implement a counter when duplicating an object #55)

Metadata

Metadata

Assignees

No one assigned

    Labels

    code qualityRefactoring and other improvements to code quality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions