Skip to content

feat(compression): expose the WaterfallInspector via a Canvas/Waterfall toggle - #4238

Merged
diegosouzapw merged 1 commit into
release/v3.8.29from
feat/compression-waterfall-toggle
Jun 19, 2026
Merged

diegosouzapw merged 1 commit into
release/v3.8.29from
feat/compression-waterfall-toggle

Conversation

@diegosouzapw

Copy link
Copy Markdown
Collaborator

Cauda longa do programa "compressão 100% funcional" — item 3/6

Problema

WaterfallInspector (A1) — a view em divs (estilo Langfuse) que lista a economia por engine de um CompressionRunModel — estava totalmente construída e testada (waterfallInspector.test.tsx, 8 testes) mas tinha zero importadores: nunca renderizava. O cockpit do Compression Studio só exibia o canvas ReactFlow (A2).

Fix

Toggle segmentado Canvas / Waterfall no header do CompressionCockpit:

  • A view waterfall renderiza o mesmo run (sem fiação de dados extra — ambas consomem CompressionRunModel).
  • Controles de replay aparecem só no modo canvas (a waterfall é estática).
  • Default permanece canvas → comportamento existente inalterado.

Componente órfão agora alcançável pelo usuário. Zero mudança no WaterfallInspector.tsx (já estava pronto).

Teste (TDD — RED→GREEN)

compressionCockpit.test.tsx (+2 testes): o toggle expõe os dois botões; clicar em Waterfall monta o waterfall-inspector (e esconde o .react-flow), mostra a economia total (−51.2%), e clicar em Canvas restaura o canvas.

Validação: suíte UI do studio 18/18 (cockpit 10 + waterfall 8) ✓ · typecheck:core ✓ · lint ✓

…ll toggle

WaterfallInspector (A1) — the plain-div, Langfuse-style per-engine savings list
view of a CompressionRunModel — was fully built and unit-tested but had zero
importers, so it never rendered. The Compression Studio cockpit only showed the
ReactFlow canvas (A2).

Add a Canvas/Waterfall segmented toggle to the cockpit header. The waterfall view
renders the same run prop (no extra data wiring); replay controls show only in
canvas mode since the waterfall is static. Default stays canvas, so existing
behavior is unchanged.

Test: cockpit toggle shows both buttons, switches to the waterfall inspector
(and hides the canvas) and back. Full UI suite for the studio green (18/18);
typecheck:core + lint clean.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@diegosouzapw
diegosouzapw merged commit 92eac63 into release/v3.8.29 Jun 19, 2026
4 checks passed
@diegosouzapw diegosouzapw mentioned this pull request Jun 19, 2026
@diegosouzapw
diegosouzapw deleted the feat/compression-waterfall-toggle branch June 19, 2026 12:06
tkgo11 pushed a commit to tkgo11/OmniRoute that referenced this pull request Sep 23, 2026
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