diff --git a/.agent/history.json b/.agent/history.json
index d0bbd14..a8059ad 100644
--- a/.agent/history.json
+++ b/.agent/history.json
@@ -25,5 +25,10 @@
"feature": "Corre\u00e7\u00e3o nas rotas de edi\u00e7\u00e3o de Bases e Respons\u00e1veis do GR",
"status": "active",
"timestamp": "2026-02-08"
+ },
+ {
+ "feature": "Corrigido erro nos cards de Pend\u00eancias/Revis\u00e3o do GR para Despachantes",
+ "status": "active",
+ "timestamp": "2026-02-08"
}
]
\ No newline at end of file
diff --git a/refactor_gr_service.py b/refactor_gr_service.py
new file mode 100644
index 0000000..e80e000
--- /dev/null
+++ b/refactor_gr_service.py
@@ -0,0 +1,40 @@
+import re
+import sys
+
+def refactor_file(filepath):
+ with open(filepath, 'r', encoding='utf-8') as f:
+ content = f.read()
+
+ # Pattern to find:
+ # try {
+ # const response = await ...
+ # return ...
+ # } catch (error) {
+ # throw new Error(...) or throw error
+ # }
+
+ # This regex matches the try/catch block and replaces it with the inner code
+ # It accounts for indentation and multi-line content
+ pattern = r'try\s*\{([\s\S]*?)\}\s*catch\s*\(error\)\s*\{[\s\S]*?\}'
+
+ def replacement(match):
+ inner_code = match.group(1)
+ # Strip one level of indentation (usually 2 spaces)
+ lines = inner_code.split('\n')
+ new_lines = []
+ for line in lines:
+ if line.startswith(' '):
+ new_lines.append(line[2:])
+ elif line.startswith(' '):
+ new_lines.append(line[2:])
+ else:
+ new_lines.append(line)
+ return '\n'.join(new_lines).strip()
+
+ new_content = re.sub(pattern, replacement, content)
+
+ with open(filepath, 'w', encoding='utf-8') as f:
+ f.write(new_content)
+
+if __name__ == "__main__":
+ refactor_file(sys.argv[1])
diff --git a/src/components/shared/AutoFillInput.jsx b/src/components/shared/AutoFillInput.jsx
index 3a900af..6e74e13 100644
--- a/src/components/shared/AutoFillInput.jsx
+++ b/src/components/shared/AutoFillInput.jsx
@@ -24,6 +24,7 @@ export const AutoFillInput = ({
displayField = "name",
onSelect,
onAddNew,
+ addNewLabel = "Criar novo",
className,
icon: Icon = Search
}) => {
@@ -160,7 +161,7 @@ export const AutoFillInput = ({
className="w-full flex items-center gap-2 px-3 py-2.5 rounded-lg text-xs font-black uppercase tracking-tighter text-rose-500 hover:bg-rose-500/10 transition-colors"
>
- Criar novo serviço: "{query}"
+ {addNewLabel}: "{query}"
diff --git a/src/features/financeiro-v2/components/BoletoCreationDialog.jsx b/src/features/financeiro-v2/components/BoletoCreationDialog.jsx
index b2c1e15..1c045e2 100644
--- a/src/features/financeiro-v2/components/BoletoCreationDialog.jsx
+++ b/src/features/financeiro-v2/components/BoletoCreationDialog.jsx
@@ -87,9 +87,9 @@ export const BoletoCreationDialog = ({
return (
+
+ {/* Modal - Detalhamento de Juros Adicionados */}
+
diff --git a/src/features/financeiro-v2/views/conciliacao-v2/ConciliacaoView.jsx b/src/features/financeiro-v2/views/conciliacao-v2/ConciliacaoView.jsx
index 81b09d3..8460ff3 100644
--- a/src/features/financeiro-v2/views/conciliacao-v2/ConciliacaoView.jsx
+++ b/src/features/financeiro-v2/views/conciliacao-v2/ConciliacaoView.jsx
@@ -139,7 +139,7 @@ export const ConciliacaoView = ({ initialView }) => {
Conciliação
- PREMIUM v2
+ {/* PREMIUM v2 */}
{/*