From 429567495f297488c565875b19bf6d4cd5da59fb Mon Sep 17 00:00:00 2001 From: Rodribm10 Date: Sun, 26 Apr 2026 09:14:44 -0300 Subject: [PATCH] =?UTF-8?q?fix(reports):=20inbox=5Fid=20reativo=20+=20nome?= =?UTF-8?q?=20da=20inbox=20vis=C3=ADvel=20na=20tab=20Novas=20=C3=97=20Reto?= =?UTF-8?q?rno?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bugs originais (tabela Reports → Inbox → unidade específica → Novas × Retorno): 1. Backend recebia sempre inbox_id=1 — useFunctionGetter('inboxes/getInboxById', route.params.id) passava string crua, não Ref reativa, então o getter ficava travado no ID inicial 2. UX: tab não mostrava qual unidade estava sendo filtrada Correções: - InboxReportsShow.vue: passa inboxIdParam computed pra useFunctionGetter (reativo agora) - Passa inbox.name como prop pro InboxLeadsReport - InboxLeadsReport.vue: header com título + label "Caixa de entrada: " no topo Co-Authored-By: Claude Opus 4.7 (1M context) --- .../dashboard/i18n/locale/en/report.json | 2 ++ .../dashboard/i18n/locale/pt_BR/report.json | 2 ++ .../settings/reports/InboxReportsShow.vue | 6 ++++-- .../reports/components/InboxLeadsReport.vue | 18 +++++++++++++++++- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/report.json b/app/javascript/dashboard/i18n/locale/en/report.json index 003cb72af..3cdc09275 100644 --- a/app/javascript/dashboard/i18n/locale/en/report.json +++ b/app/javascript/dashboard/i18n/locale/en/report.json @@ -286,6 +286,8 @@ "LEADS": "New × Returning" }, "LEADS": { + "TITLE": "New × Returning", + "INBOX_LABEL": "Inbox:", "EMPTY": "No conversations in this period.", "TOTAL": "Total conversations in the period: {count}", "METRICS": { diff --git a/app/javascript/dashboard/i18n/locale/pt_BR/report.json b/app/javascript/dashboard/i18n/locale/pt_BR/report.json index de38aaf93..f9c717f34 100644 --- a/app/javascript/dashboard/i18n/locale/pt_BR/report.json +++ b/app/javascript/dashboard/i18n/locale/pt_BR/report.json @@ -276,6 +276,8 @@ "LEADS": "Novas × Retorno" }, "LEADS": { + "TITLE": "Novas × Retorno", + "INBOX_LABEL": "Caixa de entrada:", "EMPTY": "Sem conversas no período.", "TOTAL": "Total de conversas no período: {count}", "METRICS": { diff --git a/app/javascript/dashboard/routes/dashboard/settings/reports/InboxReportsShow.vue b/app/javascript/dashboard/routes/dashboard/settings/reports/InboxReportsShow.vue index c2e4ccb10..5a82c2ab9 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/reports/InboxReportsShow.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/reports/InboxReportsShow.vue @@ -1,5 +1,5 @@