Skip to content

[PUI] User interface for barcode (receive) scanning - #5750

Closed
matmair wants to merge 19 commits into
inventree:masterfrom
matmair:matmair/issue5748
Closed

matmair wants to merge 19 commits into
inventree:masterfrom
matmair:matmair/issue5748

Conversation

@matmair

@matmair matmair commented Oct 18, 2023

Copy link
Copy Markdown
Member

This PR adds the concept of actions for each known barcode model and implements an action to receive lines from POs.

Contains #5509
Closes #5748

commit f15dcfc
Author: Bobbe <[email protected]>
Date:   Wed Oct 18 16:52:07 2023 +0200

    Fix supplier plugins not inheriting from settings mixin

commit 36f4066
Author: Bobbe <[email protected]>
Date:   Tue Oct 17 15:55:52 2023 +0200

    Add SUPPLIER_ID setting to other suppliers

commit d46cc53
Author: Bobbe <[email protected]>
Date:   Tue Oct 17 15:49:15 2023 +0200

    Add DEFAULT_SUPPLIER_NAME to mouser plugin

commit c4c34b9
Author: Bobbe <[email protected]>
Date:   Tue Oct 17 15:48:51 2023 +0200

    Refactor get_supplier_parts to not use lists

commit d56c4bf
Author: Bobbe <[email protected]>
Date:   Thu Oct 12 03:19:13 2023 +0200

    Try to retrigger pipeline

commit b6d685c
Author: Bobbe <[email protected]>
Date:   Thu Oct 12 03:08:15 2023 +0200

    FIx TME barcode detection, Improve supplier barcode handling

commit c82baa2
Author: Bobbe <[email protected]>
Date:   Thu Oct 12 02:33:31 2023 +0200

    Fix None type access

commit ed4dfff
Merge: d3e311e 0c519c6
Author: Bobbe <[email protected]>
Date:   Wed Oct 11 19:47:21 2023 +0200

    Merge remote-tracking branch 'origin/master' into vendor_barcodes

commit d3e311e
Author: Bobbe <[email protected]>
Date:   Wed Oct 11 19:46:00 2023 +0200

    Improve docstrings

commit f8f1eed
Author: Bobbe <[email protected]>
Date:   Wed Oct 11 19:29:33 2023 +0200

    Refactor get_supplier_parts, Add get_supplier method

commit 85351cf
Author: Bobbe <[email protected]>
Date:   Thu Oct 5 01:14:46 2023 +0200

    Use Decimal instead of int for quantity

commit a45ba92
Merge: 85ace32 30cf97d
Author: Bobbe <[email protected]>
Date:   Tue Oct 3 03:52:56 2023 +0200

    Merge remote-tracking branch 'origin/master' into vendor_barcodes

commit 85ace32
Author: Bobbe <[email protected]>
Date:   Tue Oct 3 03:49:51 2023 +0200

    Fix TME qrcode regex

commit d0b1acf
Merge: 584eb0f 352fb4f
Author: Bobbe <[email protected]>
Date:   Tue Oct 3 03:08:35 2023 +0200

    Merge remote-tracking branch 'origin/master' into vendor_barcodes

commit 584eb0f
Author: Bobbe <[email protected]>
Date:   Tue Oct 3 03:06:18 2023 +0200

    Add documentation for this feature

commit bab4614
Author: Bobbe <[email protected]>
Date:   Mon Oct 2 20:08:49 2023 +0200

    Fix TME qrcode regex

commit 7e8abcb
Author: Bobbe <[email protected]>
Date:   Mon Oct 2 03:21:15 2023 +0200

    Fix TME purchase order number

commit fadcea2
Author: Bobbe <[email protected]>
Date:   Mon Oct 2 03:05:33 2023 +0200

    Add back all tests again

commit 09ffc34
Author: Bobbe <[email protected]>
Date:   Mon Oct 2 03:05:06 2023 +0200

    Add TME tests again

commit c7f5521
Merge: 7b6855d e767516
Author: Bobbe <[email protected]>
Date:   Mon Oct 2 02:42:55 2023 +0200

    Merge remote-tracking branch 'origin/master' into vendor_barcodes

commit 7b6855d
Author: Bobbe <[email protected]>
Date:   Mon Oct 2 00:45:25 2023 +0200

    If this works the tests are broken, if this doesn't work the tests are broken too

commit 32916e9
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 20:14:51 2023 +0200

    Remove the TME tests again

commit 0390373
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 19:34:02 2023 +0200

    Add TME supplier barcode plugin

commit 5970947
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 19:33:25 2023 +0200

    Add SupplierBarcodeMixin to minimize shared code between plugins

commit 9d13c27
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 19:28:12 2023 +0200

    Disable the test again

commit 91bad76
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 18:26:50 2023 +0200

    Try deleting the stock item and stock locations

commit 50082ae
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 17:51:03 2023 +0200

    Test 4th receive test with debug prints

commit b241b50
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 16:57:46 2023 +0200

    Test third receive test

commit 9337345
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 16:21:31 2023 +0200

    Test second receive test

commit f7e6a82
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 15:49:43 2023 +0200

    Test with even more receive tests

commit 85841df
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 14:34:34 2023 +0200

    Test with simple receive test

commit 0e63ef4
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 01:29:11 2023 +0200

    Test with simple tests

commit 8eaabc9
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 00:56:24 2023 +0200

    Test again without tests

commit 72536e9
Author: Bobbe <[email protected]>
Date:   Sun Oct 1 00:30:17 2023 +0200

    Test with all plugins, but without mouser "model" setting

commit f1ba184
Author: Bobbe <[email protected]>
Date:   Sat Sep 30 18:25:26 2023 +0200

    Test only with digikey plugin

commit 65b4175
Author: Bobbe <[email protected]>
Date:   Sat Sep 30 18:04:10 2023 +0200

    Test removing all plugins

commit b47c6eb
Author: Bobbe <[email protected]>
Date:   Sat Sep 30 17:14:14 2023 +0200

    Fix pre formatted log messages

commit efe2aac
Merge: a1dc0eb 3cd7ee9
Author: Bobbe <[email protected]>
Date:   Sat Sep 30 17:00:48 2023 +0200

    Merge remote-tracking branch 'origin/master' into vendor_barcodes

commit a1dc0eb
Author: Bobbe <[email protected]>
Date:   Sat Sep 30 17:00:33 2023 +0200

    Remove the test print again

commit bc82ee3
Merge: 8b461c4 6f70f6d
Author: Bobbe <[email protected]>
Date:   Wed Sep 20 01:40:40 2023 +0200

    Merge remote-tracking branch 'origin/master' into vendor_barcodes

commit 8b461c4
Author: Bobbe <[email protected]>
Date:   Tue Sep 19 21:53:36 2023 +0200

    Add debug print to investigate why tests are failing

commit 2e0be5a
Merge: 420700f 314c93d
Author: Bobbe <[email protected]>
Date:   Tue Sep 19 08:52:29 2023 +0200

    Merge remote-tracking branch 'origin/master' into vendor_barcodes

commit 420700f
Author: Bobbe <[email protected]>
Date:   Sat Sep 16 13:22:54 2023 +0200

    Fix error if no line item exists

commit 6db49ca
Author: Bobbe <[email protected]>
Date:   Fri Sep 15 17:19:50 2023 +0200

    Add new api version for this PR

commit fa9b524
Merge: a76df6c 2be2ea4
Author: Bobbe <[email protected]>
Date:   Fri Sep 15 17:15:53 2023 +0200

    Merge remote-tracking branch 'origin/master' into vendor_barcodes

commit a76df6c
Author: Bobbe <[email protected]>
Date:   Fri Sep 15 17:14:51 2023 +0200

    Improve selection of line item, if multiple line items match the SKU

commit cdef246
Author: Bobbe <[email protected]>
Date:   Fri Sep 15 00:58:42 2023 +0200

    Refactor a bunch of checks

commit 35dc310
Author: Bobbe <[email protected]>
Date:   Fri Sep 15 00:49:54 2023 +0200

    Improve model access using first() in two places

commit 46ca6df
Author: Bobbe <[email protected]>
Date:   Fri Sep 15 00:49:24 2023 +0200

    Clarify return type for scan_receive_item

commit 6419779
Author: Bobbe <[email protected]>
Date:   Wed Sep 13 11:13:04 2023 +0200

    Fix naming clash

commit 08a2507
Author: Bobbe <[email protected]>
Date:   Wed Sep 13 10:24:51 2023 +0200

    Add get_supplier_part helper, check for barcode_data being a str

commit a23caef
Author: Bobbe <[email protected]>
Date:   Wed Sep 13 09:40:01 2023 +0200

    Fix type annotations for python 3.8

commit 1d349f0
Author: Bobbe <[email protected]>
Date:   Wed Sep 13 09:30:57 2023 +0200

    Fix fomatting again

commit cd35744
Author: Bobbe <[email protected]>
Date:   Tue Sep 12 15:38:13 2023 +0200

    Use part.get_default_location() instead of part.default_location

commit 9a3c968
Author: Bobbe <[email protected]>
Date:   Mon Sep 11 03:36:59 2023 +0200

    FIx quantity and location not being in lineitem reponse

commit a84cea6
Author: Bobbe <[email protected]>
Date:   Mon Sep 11 02:09:54 2023 +0200

    Check if barcode has already been assigned, Fix tests

commit 14ccd87
Author: Bobbe <[email protected]>
Date:   Mon Sep 11 01:51:06 2023 +0200

    Fix location in response, only include quantity and location if set

commit bff393a
Author: Bobbe <[email protected]>
Date:   Sun Sep 10 21:20:44 2023 +0200

    Always include lineitem in api response

commit 13e7424
Author: Bobbe <[email protected]>
Date:   Sun Sep 10 17:31:12 2023 +0200

    Implement the api-barcode-po-receive endpoint for all suppliers

commit c97ef6e
Author: Bobbe <[email protected]>
Date:   Sun Sep 10 17:10:08 2023 +0200

    Refactor supplier_barcode.py helpers into BarcodeMixin

commit 3f08b3e
Author: Bobbe <[email protected]>
Date:   Sun Sep 10 16:46:44 2023 +0200

    Add api-barcode-po-receive endpoint

commit b730a50
Author: Bobbe <[email protected]>
Date:   Thu Sep 7 13:38:47 2023 +0200

    Add barcode integration tests

commit a7840cf
Author: Bobbe <[email protected]>
Date:   Thu Sep 7 00:36:00 2023 +0200

    Improve formatting

commit acb1179
Author: Bobbe <[email protected]>
Date:   Wed Sep 6 13:58:18 2023 +0200

    Add __init__.py to suppliers directory

commit 1f62302
Author: Bobbe <[email protected]>
Date:   Wed Sep 6 13:47:57 2023 +0200

    Add get_supplier_part helper, Refactor plugins in preparation for inventree#3791

commit df885c2
Author: Bobbe <[email protected]>
Date:   Wed Sep 6 12:52:06 2023 +0200

    Move barcode plugins to new suppliers subdirectory

commit a88eb74
Author: Bobbe <[email protected]>
Date:   Wed Sep 6 12:39:09 2023 +0200

    Add lcsc barcode support

commit 9832e73
Author: Bobbe <[email protected]>
Date:   Wed Sep 6 10:03:33 2023 +0200

    Use model instead of name for mouser supplier, add auto detection magic

commit f135019
Author: Bobbe <[email protected]>
Date:   Wed Sep 6 00:34:27 2023 +0200

    Separate out ecia 2d barcode parser, Add quantity, PO number to response

commit d00c486
Author: Matthias Mair <[email protected]>
Date:   Tue Sep 5 20:57:09 2023 +0200

    made small style cleanups

commit e9224bd
Author: Matthias Mair <[email protected]>
Date:   Tue Sep 5 20:45:05 2023 +0200

    added small fixes if no part is found

commit b5facf4
Author: Bobbe <[email protected]>
Date:   Tue Sep 5 13:20:31 2023 +0200

    Add support for scanning digikey and mouser barcodes
@matmair matmair added enhancement This is an suggested enhancement or new feature barcode Barcode scanning and integration User Interface Related to the frontend / User Interface labels Oct 18, 2023
@matmair matmair self-assigned this Oct 18, 2023
@netlify

netlify Bot commented Oct 18, 2023 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 1a778cb
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/662792f9057c930008e5ec0b
😎 Deploy Preview https://deploy-preview-5750--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: 70 (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.

@github-actions

Copy link
Copy Markdown
Contributor

This PR seems stale. Please react to show this is still important.

@github-actions github-actions Bot added the inactive Indicates lack of activity label Jan 13, 2024
@SchrodingersGat

Copy link
Copy Markdown
Member

Not stale!

@github-actions github-actions Bot removed the inactive Indicates lack of activity label Jan 14, 2024
@github-actions

Copy link
Copy Markdown
Contributor

This PR seems stale. Please react to show this is still important.

@github-actions github-actions Bot added the inactive Indicates lack of activity label Mar 16, 2024
@matmair matmair removed the inactive Indicates lack of activity label Mar 16, 2024
@matmair matmair added this to the 0.15.0 milestone Mar 16, 2024
@SchrodingersGat

Copy link
Copy Markdown
Member

Not stale

@codecov

codecov Bot commented Apr 16, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 52.00000% with 12 lines in your changes missing coverage. Please review.

Project coverage is 83.31%. Comparing base (938c724) to head (1a778cb).
Report is 434 commits behind head on master.

Files Patch % Lines
src/frontend/src/actions/index.tsx 54.54% 5 Missing ⚠️
src/frontend/src/pages/Index/Scan.tsx 50.00% 2 Missing and 2 partials ⚠️
src/frontend/src/actions/purchase_order.tsx 25.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5750      +/-   ##
==========================================
- Coverage   83.37%   83.31%   -0.06%     
==========================================
  Files        1039     1040       +1     
  Lines       45731    45623     -108     
  Branches     1279     1283       +4     
==========================================
- Hits        38129    38012     -117     
- Misses       7329     7337       +8     
- Partials      273      274       +1     
Flag Coverage Δ
pui 57.99% <52.00%> (-0.18%) ⬇️

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.

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

Labels

barcode Barcode scanning and integration enhancement This is an suggested enhancement or new feature User Interface Related to the frontend / User Interface

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

[PUI] Improve user Interface for new barcode scanning

2 participants