Skip to content

feat(frontend): add inline create modal to PurchaseOrderLineItem dialog#11778

Merged
SchrodingersGat merged 6 commits intoinventree:masterfrom
matmair:feat(frontend)--add-inline-create-modal
Apr 22, 2026
Merged

feat(frontend): add inline create modal to PurchaseOrderLineItem dialog#11778
SchrodingersGat merged 6 commits intoinventree:masterfrom
matmair:feat(frontend)--add-inline-create-modal

Conversation

@matmair
Copy link
Copy Markdown
Member

@matmair matmair commented Apr 21, 2026

Based on real-world user feedback from a HW producing company this reduces the amount of required context switches by adding inline addition dialogs.
image
In this specific example I have chosen to keep the new dialog as slim as possible as the goal is speed - not adding a new entry point to the existing dialog. Maybe a link to the full creation dialog might be interesting.
image
The newly created item is directly selected in the related field. This needs to be specifically enabled per form

fixes invenhost#299

@matmair matmair added this to the 1.4.0 milestone Apr 21, 2026
@matmair matmair self-assigned this Apr 21, 2026
@matmair matmair added enhancement This is an suggested enhancement or new feature User Interface Related to the frontend / User Interface labels Apr 21, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 21, 2026

Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit 5cc2b7a
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/69e8635ef7b2780008818577
😎 Deploy Preview https://deploy-preview-11778--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 92 (no change from production)
Accessibility: 81 (no change from production)
Best Practices: 100 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread src/frontend/src/components/forms/fields/RelatedModelField.tsx Outdated
@SchrodingersGat
Copy link
Copy Markdown
Member

@matmair this looks great, we have been missing a structure for multi-level modals!

matmair and others added 2 commits April 22, 2026 07:57
@matmair
Copy link
Copy Markdown
Member Author

matmair commented Apr 22, 2026

@SchrodingersGat adressed

@SchrodingersGat
Copy link
Copy Markdown
Member

@matmair nice work!

I think that (separately) it would be great to add a new playwright test for this, as we are implementing a brand new UI feature. But I'm happy to merge this functionality in now.

@SchrodingersGat SchrodingersGat merged commit d8cd184 into inventree:master Apr 22, 2026
29 checks passed
@SchrodingersGat SchrodingersGat deleted the feat(frontend)--add-inline-create-modal branch April 22, 2026 06:53
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.28%. Comparing base (6cb0cfb) to head (5cc2b7a).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #11778   +/-   ##
=======================================
  Coverage   91.28%   91.28%           
=======================================
  Files         970      970           
  Lines       50325    50325           
=======================================
  Hits        45941    45941           
  Misses       4384     4384           
Components Coverage Δ
Backend Apps 91.70% <ø> (ø)
Backend General 93.41% <ø> (ø)
Frontend ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This is an suggested enhancement or new feature User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inline creation of parts in dialogs

2 participants