Skip to content

fix(newfront): layout lado a lado e Sankey SVG corrigido - #11

Merged
azbr merged 3 commits into
devfrom
feature/new_structure
Jun 18, 2026
Merged

azbr merged 3 commits into
devfrom
feature/new_structure

Conversation

@azbr

@azbr azbr commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Corrige coordenadas do Sankey removendo offset duplo que cortava nós/links no viewBox; helpers em sankeyLayout.ts.
  • Layout desktop: mapa coroplético à esquerda, Sankey à direita (.viz-row); mobile empilha mapa → Sankey.
  • Testes Vitest com happy-dom para layout, render DOM e fixture mínima do grafo.

Test plan

  • npm test e npm run build passam
  • npm run dev → http://localhost:4173
  • Desktop: mapa e Sankey lado a lado
  • Mobile (<1100px): mapa em cima, Sankey embaixo
  • Clicar Rio no mapa; Sankey visível sem corte nas bordas
  • Arrastar nó do Sankey; fluxos acompanham

Made with Cursor

azbr and others added 3 commits June 18, 2026 15:08
Remove translate extra no grupo interno e centraliza extent/margens em
sankeyLayout.ts para evitar corte de nós e links no viewBox.

Co-authored-by: Cursor <cursoragent@cursor.com>
Adiciona .viz-row com grid responsivo: duas colunas no desktop e
empilhamento natural mapa→Sankey em telas estreitas.

Co-authored-by: Cursor <cursoragent@cursor.com>
Adiciona happy-dom, testes de sankeyLayout/councilSankey e fixture
mínima; amplia sankeyGraph com validação do CSV do Rio.

Co-authored-by: Cursor <cursoragent@cursor.com>
@azbr
azbr merged commit 312b08b into dev Jun 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant