[Refactor] Notes#11971
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@matmair @wolflu05 before I go too far with this I'd be interested in your feedback around two major points: Data Structure Refactor: Are we on board with the idea of supporting multiple notes per item? Editor: Do you have any objections to moving to a new editor, and move to HTML notes? We will obviously have to tackle any data sanitizing required here |
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (86.89%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #11971 +/- ##
==========================================
- Coverage 91.44% 90.70% -0.75%
==========================================
Files 974 968 -6
Lines 50704 50056 -648
==========================================
- Hits 46365 45401 -964
- Misses 4339 4655 +316
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
I think the general idea is very good; a few points/ideas:
I like blocknote as a choice, the OpenProject and a bunch of other EU sovereign gov cloud products use it. Things i am unsure about:
|
|
I also like the general idea, the current notes editor seems very limited. But I would appreciate if there would be some easy migration path from markdown based notes to the new format, and a method to render the new notes format to reports. |
All markdown features should be forward-compatible. This will be fully tested. I don't want to lose any of my notes, either.
100% will be supported and tested too. The back-end storage of the notes will be editor-agnostic HTML. So rendering to reports will be easier (ideally) than markdown. |

Generic Notes Table
The major item here is to move all notes into a new table, which has generic FK links to other items. This brings it into line with how we handle attachments, parameters, etc.
Multiple Notes
We can now specify multiple, separate notes per item. This is useful for keeping different types of notes separate - e.g. shipping instructions vs inspection instructions (for e.g.)
Editor Updates
Also introduces the possibility of a more intuitive notes editor. At this stage, I am trialing BlockNote - which provides navite mantine support, and provides a "notion style" editing interface.
Pros:
Cons:
Tasks