Skip to content

feat(ui): show variant stock indicator in parts table - #12413

Merged
SchrodingersGat merged 1 commit into
inventree:masterfrom
br413:feat/5959-variant-stock-indicator
Jul 19, 2026
Merged

feat(ui): show variant stock indicator in parts table#12413
SchrodingersGat merged 1 commit into
inventree:masterfrom
br413:feat/5959-variant-stock-indicator

Conversation

@br413

@br413 br413 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add variant and direct stock breakdown to the parts table hover card when variant_stock > 0
  • Extract shared renderPartStockCell renderer and reuse it in Parametric View for consistency
  • Matches the existing build allocation / BOM pattern using TableHoverCard

Fixes #5959

Test plan

  • Create a template part with variants that have stock
  • Confirm parts table shows info icon next to stock count
  • Hover shows "Includes variant stock" and "Direct stock" breakdown
  • Confirm Parametric View shows the same hover behavior
  • Confirm parts without variant stock are unchanged

@br413
br413 requested a review from SchrodingersGat as a code owner July 17, 2026 05:42
@netlify

netlify Bot commented Jul 17, 2026

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit b8d8eed
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a59c0da93ddf40008e14c9f
😎 Deploy Preview https://deploy-preview-12413--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: 97 (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
🤖 Make changes Run an agent on this branch

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

@SchrodingersGat SchrodingersGat added stock Related to Stock models User Interface Related to the frontend / User Interface labels Jul 19, 2026
@SchrodingersGat SchrodingersGat added this to the 1.5.0 milestone Jul 19, 2026
@SchrodingersGat

Copy link
Copy Markdown
Member

@br413 thanks for the contribution!

@SchrodingersGat
SchrodingersGat merged commit fcbe430 into inventree:master Jul 19, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stock Related to Stock models User Interface Related to the frontend / User Interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] highlight variant stock in parts views

2 participants