From 07df807719bc188ff077f4dc20a48071f2281631 Mon Sep 17 00:00:00 2001 From: Claude Agent Date: Wed, 8 Apr 2026 16:32:46 +0000 Subject: [PATCH] fix(partner-ui): orange dot + fallback name for unknown ROA partner - diff dot for partner_mismatch uses --warning (orange) instead of --error to distinguish from price mismatch (also red) - modal ROA column shows "necunoscut - se va actualiza la urmatorul sync" when denumire_roa is null but partner_mismatch=1 (orders imported before the column existed) Co-Authored-By: Claude Sonnet 4.6 --- api/app/static/js/dashboard.js | 2 +- api/app/static/js/shared.js | 9 ++++++--- api/app/templates/base.html | 2 +- api/app/templates/dashboard.html | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/api/app/static/js/dashboard.js b/api/app/static/js/dashboard.js index 44dc3ce..1ea1471 100644 --- a/api/app/static/js/dashboard.js +++ b/api/app/static/js/dashboard.js @@ -512,7 +512,7 @@ function diffDots(o, mobile) { if (o.address_mismatch===1) d += ``; if (o.partner_mismatch===1) - d += ``; + d += ``; if (o.price_match===false) d += ``; return d; diff --git a/api/app/static/js/shared.js b/api/app/static/js/shared.js index ce40e10..fa19e46 100644 --- a/api/app/static/js/shared.js +++ b/api/app/static/js/shared.js @@ -885,11 +885,14 @@ function _renderHeaderInfo(order) { } // ROA column — show partner name for both PJ and PF - if (pi && pi.denumire_roa) { - const partenerRoa = document.getElementById('detailPartenerRoa'); - if (partenerRoa) { + const partenerRoa = document.getElementById('detailPartenerRoa'); + if (partenerRoa) { + if (pi && pi.denumire_roa) { partenerRoa.textContent = pi.denumire_roa; partenerRoa.style.display = ''; + } else if (pi && pi.partner_mismatch) { + partenerRoa.innerHTML = 'necunoscut — se va actualiza la urmatorul sync'; + partenerRoa.style.display = ''; } } diff --git a/api/app/templates/base.html b/api/app/templates/base.html index 3651c70..fc7b2f0 100644 --- a/api/app/templates/base.html +++ b/api/app/templates/base.html @@ -170,7 +170,7 @@ - + + {% endblock %}