jlaksana / UML2Code

UML diagram creator designed for intro CS students
https://uml2code.vercel.app
2 stars 0 forks source link

Re-order constants, attributes, and methods #61

Open jlaksana opened 11 months ago

jlaksana commented 11 months ago

Description When creating/editing an entity, sometimes we forgot to write a method. It would make more logical sense for attributes, constants, and methods to be ordered a specific way. We want to have the ability to reorder (by dragging?) fields.

Acceptance Criteria In creating and editing any entity, implement the ability to reorder constants, attributes, or methods. Also for enums, reorder values. This reordering should persist.

Additional Information Right now, these fields have their own id. Maybe we can switch ids and sort?

jlaksana commented 11 months ago

https://www.npmjs.com/package/react-drag-reorder