Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PUI] Order Parts Wizard #8602

Merged
merged 41 commits into from
Dec 16, 2024
Merged

Conversation

SchrodingersGat
Copy link
Member

@SchrodingersGat SchrodingersGat commented Nov 30, 2024

Implements an "order parts" wizard for PUI, reproducing (and improving upon) the existing CUI wizard.

References

TODO

  • Add "merge" option (like in CUI)
  • Generate new purchase orders as required
  • Playwright testing
  • Implement from "parts" table
  • Implement from "part detail" view
  • Implement from "sales order" view
  • Implement from "build order" view

Future Work

  • Provide initial "quantity" to order
  • Adjust quantity based on supplier-part pack size
  • Refactor "data import" wizard to use the new components and hooks
  • Refactor "receive items" form to use bottom drawer
  • Refactor other "process" forms to use drawer rather than modal

Screenshots

image

@SchrodingersGat SchrodingersGat added enhancement This is an suggested enhancement or new feature order Related to purchase orders / sales orders Platform UI Related to the React based User Interface labels Nov 30, 2024
@SchrodingersGat SchrodingersGat added this to the 0.17.0 milestone Nov 30, 2024
Copy link

netlify bot commented Nov 30, 2024

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

Name Link
🔨 Latest commit 216bd26
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/676011677fce8b0008519970
😎 Deploy Preview https://deploy-preview-8602--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: 100 (no change from production)
Accessibility: 86 (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 site configuration.

Copy link

codecov bot commented Dec 1, 2024

Codecov Report

Attention: Patch coverage is 69.07216% with 60 lines in your changes missing coverage. Please review.

Project coverage is 84.60%. Comparing base (7bfd36f) to head (216bd26).
Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
...ontend/src/components/wizards/OrderPartsWizard.tsx 77.52% 20 Missing ⚠️
...c/frontend/src/components/wizards/WizardDrawer.tsx 42.30% 15 Missing ⚠️
src/frontend/src/hooks/UseWizard.tsx 64.70% 10 Missing and 2 partials ⚠️
src/frontend/src/tables/build/BuildLineTable.tsx 25.00% 6 Missing ⚠️
...ntend/src/tables/sales/SalesOrderLineItemTable.tsx 33.33% 4 Missing ⚠️
src/frontend/src/components/render/Company.tsx 0.00% 0 Missing and 1 partial ⚠️
src/frontend/src/pages/stock/StockDetail.tsx 80.00% 1 Missing ⚠️
src/frontend/src/tables/stock/StockItemTable.tsx 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8602      +/-   ##
==========================================
- Coverage   84.66%   84.60%   -0.07%     
==========================================
  Files        1195     1193       -2     
  Lines       54363    54305      -58     
  Branches     2057     2074      +17     
==========================================
- Hits        46027    45943      -84     
- Misses       7823     7856      +33     
+ Partials      513      506       -7     
Flag Coverage Δ
pui 69.12% <69.07%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wolflu05
Copy link
Contributor

wolflu05 commented Dec 2, 2024

Thanks that you have implemented the order parts wizard. Just some things that I found while testing (I know that this is highly WIP):

  • when trying to load more SPs, the table column size jumps. Maybe this needs to be fixed:
  • The button to go to the next step is really hard to find/identify
  • When I try to go to the next step it shows me an error:

I actually only tried it out yet to see if the following will be available too, but because of the third error from above, I cannot test it really, so I'll just throw that in for consideration:
Will there be an option/step to specify if you want to merge a line item or create a new line item if it already exists in the PO? With PUI we can even only show that if there is really a line item already existing.

@SchrodingersGat
Copy link
Member Author

@wolflu05 thanks for the review, this is still heavily WIP - I'll tag you when it's ready for another round of review :)

@SchrodingersGat SchrodingersGat merged commit 169f4f8 into inventree:master Dec 16, 2024
26 of 27 checks passed
@SchrodingersGat SchrodingersGat deleted the order-wizard branch December 16, 2024 12:07
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 order Related to purchase orders / sales orders Platform UI Related to the React based User Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PUI] Implement existing Part functions
2 participants