Repository navigation
feat(frontend): Add option for plugins to add header actions - #9570
Conversation
✅ Deploy Preview for inventree-web-pui-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #9570 +/- ##
==========================================
- Coverage 91.44% 91.44% -0.01%
==========================================
Files 974 974
Lines 50704 50714 +10
==========================================
+ Hits 46365 46374 +9
- Misses 4339 4340 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Would you be happy to bump this to 1.1.0? |
|
I have a huge backlog from being away, so sure if 1.0 is imminent |
|
@matmair can you please provide a screenshot of where these are injected / what the UI looks like?
|
|
@SchrodingersGat done |
|
Thanks @matmair What sort of "actions" can be performed here? Your sample code indicates that it can navigate to a URL, but could it also perform other actions, e.g. launch a modal, or call some other function? |
|
Anything you can put into a function call of a plugin. |
|
@SchrodingersGat ready for merge |
|
@matmair thanks, great work! |
…ee#9570) * [FR] PUI - Add option for plugins to add header actions Fixes inventree#8593 * fix parsing * fix merge * reduce diff * fix sample implementation * add support for icons and colors in primary actions * add changelog entry * add docs * add more detailed sample text * pass location into context * fix test --------- Co-authored-by: Oliver <[email protected]>
…ee#9570) * [FR] PUI - Add option for plugins to add header actions Fixes inventree#8593 * fix parsing * fix merge * reduce diff * fix sample implementation * add support for icons and colors in primary actions * add changelog entry * add docs * add more detailed sample text * pass location into context * fix test --------- Co-authored-by: Oliver <[email protected]>

Fixes #8593

The "Project" button in this screenshot shows how this can be used
Follow up to #9283