MicroPad / MicroPad-Core

µPad (MicroPad) is an open digital note taking app
https://getmicropad.com
Mozilla Public License 2.0
234 stars 22 forks source link

Note moving NOW WITH ADDED REFACTORS *LIMITED EDITION* #336

Closed NickGeek closed 3 years ago

NickGeek commented 3 years ago

This is a really exciting PR! Firstly the main event:

Note and Section Moving

Notes and sections can be moved between notebooks now! Well, the library has had the feature for a week or two but now it's in the main app!

In the note/section options modal, there's a new option to move the item to another notebook. The old way to do this was by manually editing the NPX files, which I think a total of only two people (myself included) have dared to do. UI for moving a section

Notepad Explorer Quality-Of-Life

Refactors

The entire notebook explorer part of the codebase has been refactored into the new way I'm wanting to structure code. The tl;dr is that having a "components" and "containers" directory provides no meaningfully useful separation and slows development down. The new approach is to keep containers alongside their components and to use ConnectedProps to make the container the source of truth for all store-derived props.

I've also turned a few more things into functional components. I'm still not using hooks because I'm not a fan of that whole architectural approach.