Skip to content

Reduce code duplication for QR code scan - #8004

Merged
SchrodingersGat merged 24 commits into
inventree:masterfrom
matmair:reduce-code-duplication
Aug 27, 2024
Merged

SchrodingersGat merged 24 commits into
inventree:masterfrom
matmair:reduce-code-duplication

Conversation

@matmair

@matmair matmair commented Aug 26, 2024

Copy link
Copy Markdown
Member

Follow up to #7960. Refactors QR code scan code to remove duplication

@matmair matmair added refactor User Interface Related to the frontend / User Interface labels Aug 26, 2024
@matmair matmair added this to the 0.17.0 milestone Aug 26, 2024
@matmair matmair self-assigned this Aug 26, 2024
@netlify

netlify Bot commented Aug 26, 2024 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 9f8e967
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/66ce41f36607b900084074ae
😎 Deploy Preview https://deploy-preview-8004--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 (🟢 up 1 from production)
Accessibility: 86 (no change from production)
Best Practices: 92 (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.

@codecov

codecov Bot commented Aug 26, 2024 •

Copy link
Copy Markdown

Codecov Report

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

Project coverage is 83.55%. Comparing base (313cb47) to head (9f8e967).
Report is 298 commits behind head on master.

Files with missing lines Patch % Lines
src/frontend/src/pages/Index/Scan.tsx 14.28% 6 Missing ⚠️
src/frontend/src/components/items/BarcodeInput.tsx 75.00% 1 Missing and 2 partials ⚠️
src/frontend/src/components/modals/QrCodeModal.tsx 33.33% 1 Missing and 1 partial ⚠️
src/frontend/src/components/items/QRCode.tsx 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8004      +/-   ##
==========================================
- Coverage   83.59%   83.55%   -0.04%     
==========================================
  Files        1140     1141       +1     
  Lines       50880    50857      -23     
  Branches     1776     1774       -2     
==========================================
- Hits        42533    42496      -37     
- Misses       7885     7925      +40     
+ Partials      462      436      -26     
Flag Coverage Δ
pui 64.70% <55.55%> (-0.27%) ⬇️

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.

@matmair
matmair marked this pull request as ready for review August 27, 2024 21:17
@SchrodingersGat

Copy link
Copy Markdown
Member

LGTM, thanks @matmair

@SchrodingersGat
SchrodingersGat merged commit 450abcd into inventree:master Aug 27, 2024
@SchrodingersGat
SchrodingersGat deleted the reduce-code-duplication branch August 27, 2024 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor User Interface Related to the frontend / User Interface

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants