Files
Investidor-V2/outputs/investmoz-navegacao-consolidacao-QA-20261016/visual-fixes.py
T
nala cef6e201c7
tests / ci (push) Canceled after 0s
versao nrgocios 2
2026-10-16 20:11:05 +02:00

9 lines
969 B
Python

from pathlib import Path
p=Path('C:/Users/macbook/.config/investmoz/navegacao-consolidacao-QA-20261016/source')
def edit(f,a,b):
q=p/f;s=q.read_text('utf-8');assert a in s,(f,a[:80]);q.write_text(s.replace(a,b,1),'utf-8')
edit('resources/js/layouts/portal-navigation.tsx',"const names: Record<string, string> = {", "const names: Record<string, string> = {\n '/porque-investir':'Porquê investir em Moçambique',\n '/investimentos/iniciar':'Iniciar ou continuar investimento',")
edit('resources/js/components/dossier-navigation-context.tsx'," if (/^\\/(management", " if (!actor) return null;\n if (/^\\/(management")
edit('resources/js/components/dossier-navigation-context.tsx'," ref?.territory?.title ||\n ref?.park?.title ||\n saved?.fields.location ||", " saved?.fields.location ||\n ref?.territory?.title ||\n ref?.park?.title ||")
print('Anonymous pages simplified; location summary shows its hierarchy')