diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c3866b..8198976 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 0.4.1 Under development +## 0.5.0 Under development + +- build!: require `php-forge/debug` `^0.3`. ## 0.4.0 September 16, 2026 diff --git a/composer.json b/composer.json index 88f8c7b..40d03d5 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "require": { "ext-json": "*", "php": ">=8.3", - "php-forge/debug": "^0.2", + "php-forge/debug": "^0.3", "psr/event-dispatcher": "^1.0" }, "require-dev": { diff --git a/src/Debug/InertiaPanel.php b/src/Debug/InertiaPanel.php index 732d7ba..017bbdf 100644 --- a/src/Debug/InertiaPanel.php +++ b/src/Debug/InertiaPanel.php @@ -89,8 +89,7 @@ public function present(array $data): PanelView $view = PanelView::create() ->summary('', $component !== '' ? $component : '—') - ->summary('', $visit, emphasized: false) - ->active($page !== null || isset($headers[Header::INERTIA->value])); + ->summary('', $visit, emphasized: false); if ($component !== '') { $view = $view->toolbar('Inertia component', $component); diff --git a/tests/Debug/InertiaCollectorTest.php b/tests/Debug/InertiaCollectorTest.php index dcbde58..17ac046 100644 --- a/tests/Debug/InertiaCollectorTest.php +++ b/tests/Debug/InertiaCollectorTest.php @@ -676,7 +676,6 @@ public function testResultEventsPreserveNegotiation( $expected = \PHPForge\Debug\PanelView::create() ->summary('', '—') ->summary('', $label, emphasized: false) - ->active($inertia) ->emptyState( $title, 'The protocol returned a navigation result without resolving a page.', diff --git a/tests/Debug/InertiaPanelTest.php b/tests/Debug/InertiaPanelTest.php index 14a860c..dedea6c 100644 --- a/tests/Debug/InertiaPanelTest.php +++ b/tests/Debug/InertiaPanelTest.php @@ -92,10 +92,6 @@ public function testMetadataAndMissingCapture(): void $view = $panel->present(InertiaPanelProvider::capture()); - self::assertFalse( - $view->isActive(), - 'Unrelated requests must not activate the panel.' - ); self::assertSame( [], $view->toolbarMetrics(), @@ -129,10 +125,6 @@ public function testResolvedPageDescribesPropsWithoutFormattingThem(): void $view = (new InertiaPanel())->present($data); - self::assertTrue( - $view->isActive(), - 'A captured page must activate the panel.', - ); self::assertSame( '', self::toolbarValue($view->toolbarMetrics(), 0), @@ -209,10 +201,6 @@ public function testVersionConflictAndPartialVisits(): void $view = (new InertiaPanel())->present($data); - self::assertTrue( - $view->isActive(), - 'Conflicted Inertia visits must remain visible.', - ); self::assertSame( 'Version conflict interrupted this visit', self::emptyState(self::blockAt($view, 0))->title, @@ -261,7 +249,7 @@ private static function describe(PanelView $view): array ]; } - return ['summary' => $summary, 'blocks' => $blocks, 'toolbar' => $toolbar, 'active' => $view->isActive()]; + return ['summary' => $summary, 'blocks' => $blocks, 'toolbar' => $toolbar]; } /** diff --git a/tests/Debug/fixtures/conflict-no-target.view.json b/tests/Debug/fixtures/conflict-no-target.view.json index 2658341..01fa2d6 100644 --- a/tests/Debug/fixtures/conflict-no-target.view.json +++ b/tests/Debug/fixtures/conflict-no-target.view.json @@ -72,6 +72,5 @@ ] } ], - "toolbar": [], - "active": false + "toolbar": [] } diff --git a/tests/Debug/fixtures/conflict.view.json b/tests/Debug/fixtures/conflict.view.json index 8d218e9..4074b7e 100644 --- a/tests/Debug/fixtures/conflict.view.json +++ b/tests/Debug/fixtures/conflict.view.json @@ -72,6 +72,5 @@ ] } ], - "toolbar": [], - "active": false + "toolbar": [] } diff --git a/tests/Debug/fixtures/empty.view.json b/tests/Debug/fixtures/empty.view.json index 4d97a82..929d1be 100644 --- a/tests/Debug/fixtures/empty.view.json +++ b/tests/Debug/fixtures/empty.view.json @@ -57,6 +57,5 @@ ] } ], - "toolbar": [], - "active": false + "toolbar": [] } diff --git a/tests/Debug/fixtures/full-partial-header.view.json b/tests/Debug/fixtures/full-partial-header.view.json index e28c9ec..c85b726 100644 --- a/tests/Debug/fixtures/full-partial-header.view.json +++ b/tests/Debug/fixtures/full-partial-header.view.json @@ -178,6 +178,5 @@ "style": "plain" } } - ], - "active": true + ] } diff --git a/tests/Debug/fixtures/no-props.view.json b/tests/Debug/fixtures/no-props.view.json index c929701..6e9fae0 100644 --- a/tests/Debug/fixtures/no-props.view.json +++ b/tests/Debug/fixtures/no-props.view.json @@ -94,6 +94,5 @@ "content": "[]" } ], - "toolbar": [], - "active": true + "toolbar": [] } diff --git a/tests/Debug/fixtures/page.view.json b/tests/Debug/fixtures/page.view.json index 5ffd36e..85396bb 100644 --- a/tests/Debug/fixtures/page.view.json +++ b/tests/Debug/fixtures/page.view.json @@ -178,6 +178,5 @@ "style": "plain" } } - ], - "active": true + ] } diff --git a/tests/Debug/fixtures/partial.view.json b/tests/Debug/fixtures/partial.view.json index c6eb02d..b68a21b 100644 --- a/tests/Debug/fixtures/partial.view.json +++ b/tests/Debug/fixtures/partial.view.json @@ -147,6 +147,5 @@ "style": "plain" } } - ], - "active": true + ] }