Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
3 changes: 1 addition & 2 deletions src/Debug/InertiaPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion tests/Debug/InertiaCollectorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
14 changes: 1 addition & 13 deletions tests/Debug/InertiaPanelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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(
'<Site>',
self::toolbarValue($view->toolbarMetrics(), 0),
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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];
}

/**
Expand Down
3 changes: 1 addition & 2 deletions tests/Debug/fixtures/conflict-no-target.view.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,5 @@
]
}
],
"toolbar": [],
"active": false
"toolbar": []
}
3 changes: 1 addition & 2 deletions tests/Debug/fixtures/conflict.view.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,5 @@
]
}
],
"toolbar": [],
"active": false
"toolbar": []
}
3 changes: 1 addition & 2 deletions tests/Debug/fixtures/empty.view.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,5 @@
]
}
],
"toolbar": [],
"active": false
"toolbar": []
}
3 changes: 1 addition & 2 deletions tests/Debug/fixtures/full-partial-header.view.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,5 @@
"style": "plain"
}
}
],
"active": true
]
}
3 changes: 1 addition & 2 deletions tests/Debug/fixtures/no-props.view.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,5 @@
"content": "[]"
}
],
"toolbar": [],
"active": true
"toolbar": []
}
3 changes: 1 addition & 2 deletions tests/Debug/fixtures/page.view.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,5 @@
"style": "plain"
}
}
],
"active": true
]
}
3 changes: 1 addition & 2 deletions tests/Debug/fixtures/partial.view.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,5 @@
"style": "plain"
}
}
],
"active": true
]
}
Loading