Skip to content

Implement parsing of TME QR codes#1324

Merged
jbtronics merged 4 commits intoPart-DB:masterfrom
alufers:master
Mar 29, 2026
Merged

Implement parsing of TME QR codes#1324
jbtronics merged 4 commits intoPart-DB:masterfrom
alufers:master

Conversation

@alufers
Copy link
Copy Markdown
Contributor

@alufers alufers commented Mar 20, 2026

They are present on parts purchased on tme.eu. It's based on the LCSC parser. Some older codes I found are in upper-case so I handle those too.

Sorry If it is bad, I haven't touched PHP in many years.

They are present on parts purchased on tme.eu. It's based on the LCSC
parser. Some older codes I found are in upper-case so I handle those
too.
@alufers alufers marked this pull request as ready for review March 20, 2026 22:12
@jbtronics
Copy link
Copy Markdown
Member

hey thanks.

Do you have a few examples of TME barcodes for testing?

@alufers
Copy link
Copy Markdown
Contributor Author

alufers commented Mar 21, 2026

Sure, here are some photos:

image image

And some other ones converted to text:

QTY:5 PN:ETQP3M6R8KVP PO:31199729/3 MFR:PANASONIC MPN:ETQP3M6R8KVP RoHS https://www.tme.eu/details/ETQP3M6R8KVP
QTY:500 PN:M0.6W-10K MFR:ROYAL.OHM MPN:MF006FF1002A50 PO:7792659/8 HTTPS://WWW.TME.EU/DETAILS/M0.6W-10K

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 29, 2026

Codecov Report

❌ Patch coverage is 67.14286% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.37%. Comparing base (753ecee) to head (3e96595).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
...System/BarcodeScanner/BarcodeScanResultHandler.php 9.09% 20 Missing ⚠️
...s/LabelSystem/BarcodeScanner/BarcodeScanHelper.php 50.00% 2 Missing ⚠️
...abelSystem/BarcodeScanner/TMEBarcodeScanResult.php 97.72% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1324      +/-   ##
============================================
+ Coverage     56.33%   56.37%   +0.03%     
- Complexity     8321     8345      +24     
============================================
  Files           611      612       +1     
  Lines         26729    26801      +72     
============================================
+ Hits          15059    15109      +50     
- Misses        11670    11692      +22     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jbtronics
Copy link
Copy Markdown
Member

Looks good. Thanks.

@jbtronics jbtronics merged commit 991daf0 into Part-DB:master Mar 29, 2026
12 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants