chore: remove unused components and markup-only tests

- Delete Blade components, component classes, Livewire components and
  views that nothing uses after the redesign.
- Delete tests that only compare Blade/CSS source text; keep the source
  checks for authorization gates, stable wire:key values and escaping.
- Update stale tests to the current UI and behaviour.
- Update DESIGN.md to the current navigation and layout.
- Add a lesson: test behaviour, not source markup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andras Bacsai
2026-09-28 00:18:16 +02:00
co-authored by Claude Opus 5.5
parent a32082b03f
commit a79ee909c6
225 changed files with 2000 additions and 6991 deletions
+15 -7
View File
@@ -2,22 +2,30 @@
use Symfony\Component\Process\Process;
it('documents example nginx connectivity commands', function () {
$process = new Process(['bash', base_path('scripts/dev.sh'), 'example-nginx', 'help'], base_path());
/*
* The V5 `scripts/dev.sh` (including its `example-nginx` helper) was archived in
* docs/v5/archive/scripts/dev.sh.txt and replaced by `scripts/dev`. These tests make
* sure the current dev script does not document or wire the removed firewall CLI.
*/
it('documents dev script commands without the removed firewall commands', function () {
$process = new Process(['bash', base_path('scripts/dev'), 'help'], base_path());
$process->run();
expect($process->isSuccessful())->toBeTrue()
->and($process->getOutput())->toContain('ping')
->and($process->getOutput())->toContain('./scripts/dev start')
->and($process->getOutput())->not->toContain('firewall up')
->and($process->getOutput())->not->toContain('firewall down')
->and($process->getOutput())->not->toContain('firewall-up')
->and($process->getOutput())->not->toContain('firewall-down');
});
it('does not wire example nginx to removed firewall CLI commands', function () {
$script = file_get_contents(base_path('scripts/dev.sh'));
it('does not wire the dev script to removed firewall CLI commands', function () {
expect(file_exists(base_path('scripts/dev.sh')))->toBeFalse();
expect($script)->not->toContain('scripts/dev.sh firewall allow "$src" "$dst" tcp 80')
->and($script)->not->toContain('scripts/dev.sh firewall revoke "$src" "$dst" tcp 80');
$script = file_get_contents(base_path('scripts/dev'));
expect($script)->not->toContain('firewall allow')
->and($script)->not->toContain('firewall revoke');
});