refactor: use generic model insights for frontend features (#13072)

* feat:generic model insights

inspired by https://github.com/inventree/InvenTree/pull/13069 this adds a more general approach to generic features like attachments, notes

some tests and functions written with assistance of AI

* lazy load panels

* add pr version

* fix snapshot issue

* move history panel to new generic mechanism

* Update api_version.py

* move to generic

* remove duplicate

* clean up import

* fix test

* add ignore for broken contract in test
This commit is contained in:
Matthias Mair authored and GitHub committed 2026-11-16 09:45:17 +11:00
1 parent 016f965ac8
commit a87489ca44
32 files changed
+533 -477

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
/*
* Enumeration of builtin model features (as reported by the server)
*/
export enum ModelFeature {
attachments = 'org.inventree.i.modelfeatures.attachments',
notes = 'org.inventree.i.modelfeatures.notes',
parameters = 'org.inventree.i.modelfeatures.parameters',
barcode = 'org.inventree.i.modelfeatures.barcode',
tags = 'org.inventree.i.modelfeatures.tags',
image = 'org.inventree.i.modelfeatures.image',
report = 'org.inventree.i.modelfeatures.report',
history = 'org.inventree.i.modelfeatures.history'
}