feat(bom): add Get Prompt modal for LLM and fix product name resolution #11

Merged
admin merged 1 commits from feat/bom-prompt-modal into master 2026-10-18 03:55:16 +00:00

Summary of Changes

  • Added 'Get Prompt' button and ProductBomPromptModal dialog on /products/:id/bom.
  • Formats product ID, variants, and raw material inventory into a structured prompt for LLMs.
  • Fixed backend bug in GET /products/:id?lang=all that wiped product.name when no translations existed.
  • Added multi-level fallback in frontend to ensure product name never shows 'Unknown Product'.
### Summary of Changes - Added 'Get Prompt' button and ProductBomPromptModal dialog on /products/:id/bom. - Formats product ID, variants, and raw material inventory into a structured prompt for LLMs. - Fixed backend bug in GET /products/:id?lang=all that wiped product.name when no translations existed. - Added multi-level fallback in frontend to ensure product name never shows 'Unknown Product'.
antigravity-bot Bot added 1 commit 2026-10-18 03:54:43 +00:00
admin merged commit d8f6d8139f into master 2026-10-18 03:55:16 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/homaroma#11