Fix TIA for Livewire component views - #1812
Closed
lucasromanojf wants to merge 2 commits into
Closed
Conversation
lucasromanojf
force-pushed
the
codex/fix-tia-livewire-sfc-edges
branch
from
August 1, 2026 19:54
afd2672 to
df7bbe3
Compare
lucasromanojf
force-pushed
the
codex/fix-tia-livewire-sfc-edges
branch
from
August 3, 2026 19:11
df7bbe3 to
333aaa8
Compare
lucasromanojf
force-pushed
the
codex/fix-tia-livewire-sfc-edges
branch
from
August 4, 2026 19:52
333aaa8 to
0030e83
Compare
…re-sfc-edges # Conflicts: # src/Plugins/Tia/Graph.php # tests/.snapshots/success.txt # tests/Unit/Plugins/Tia/Graph.php # tests/Visual/Parallel.php
Author
|
Fechando: o mesmo fix já foi aplicado diretamente no branch 5.x no commit eb88513 ("fix: livewire", por nuno maduro). O código em 5.x é idêntico ao deste PR (Graph.php e testes). Correção ainda sem tag/release — deve sair na próxima versão. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Root cause
Livewire renders single-file and multi-file components through generated views under
storage/framework/views/*/livewire/views/<hash>.blade.php. TIA recorded those generated paths, but a Git change is reported using the original component path, so the graph could not connect the changed component to its tests.The graph now derives the same platform-specific source-path hash without requiring Livewire as a dependency and reuses matching generated-view edges. If no matching edge exists, the existing watch-pattern fallback remains unchanged.
Validation
composer testresources/views/components/**andresources/views/pages/**: exactly 7 related test files selected, with 167 tests and 340 assertions passing--parallel --tia: 1,259 tests passed with 2,820 assertionsFixes #1808