Fix Info panel - translations, two-step offers flow, icon, add to filter
All checks were successful
Build Docker Image / build (push) Successful in 3m36s

- Add i18n translations for entities, tabs, and info sections (EN/RU)
- Refactor offers tab to two-step flow (products → offers) for Hub/Supplier
- Replace entity badge with circular icon in header
- Fix "Add to filter" button with name fallback and proper cleanup
- Update selectItem() to clear info param when adding to filter
This commit is contained in:
Ruslan Bakiev
2026-01-25 16:44:00 +07:00
parent 908d63062c
commit 39c3d24b3a
5 changed files with 110 additions and 37 deletions

View File

@@ -395,9 +395,11 @@ const onInfoClose = () => {
const onInfoAddToFilter = () => {
if (!infoId.value || !entity.value) return
const { type, uuid } = infoId.value
const name = entity.value.name
// Fallback for name - offer entities might use productName
const name = entity.value.name || entity.value.productName || uuid.slice(0, 8) + '...'
selectItem(type, uuid, name)
closeInfo()
clearInfo()
}
const onInfoOpenRelated = (type: 'hub' | 'supplier' | 'offer', uuid: string) => {