Skip to content

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

Open
br413 wants to merge 1 commit into
inventree:masterfrom
br413:feat/5959-variant-stock-indicator
Open

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

Conversation

@br413

@br413 br413 commented Jul 17, 2026

Copy link
Copy Markdown

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.

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.

[FR] highlight variant stock in parts views

1 participant