New size object added to tools Now tools have a size object for better organization of dimensions info! 📏 This includes height, length, width, and weight. This would be for things like drill bits, that have a hole size, as well as overall length. Being able to sort/search by these properties requires them being their own properties on the top-level tool object
Middlewares now support the size object createTool and updateTool middleware functions updated to accept the new size fields. This will help easily add and edit tool dimensions. 🛠️✨
Collapsible section for dimensions in editTools view A neat collapsible section shows dimensions if available, keeping the view clutter-free if not needed.👌
Improved modal openers Modal labels in the header bar now use <label> tags with CSS to change the cursor to a pointer, making them easier to identify as links and manage without JavaScript event listeners. 🌈🏷️
Form enhancements The form is tidied up, inputs have a new class “input-bordered”, and the form is now at the top of the file.