Section "Grundriss (interaktiv)": floor plan with rooms, admin editor, Seebad view
Deploy / test (push) Failing after 2s
Deploy / deploy (push) Skipped

- Table floor_plans (tenant_id, one per apartment, picture = website photo, rooms as JSON with
  corners in percent of the picture), model FloorPlan with BelongsToTenant, Property::floorPlan()
- Admin › Webseite › Grundriss: room list with name, description, photos, equipment (from the
  equipment list), accessibility hint, visibility, and an area editor (click the corners on the picture)
- Section floor_plan: base view without JavaScript (areas jump to the room list), Seebad view with
  room buttons, highlighted area and a cartouche per room (theme.js initFloorPlans)
- Tests: tenant inheritance, point parsing, website output, admin create incl. validation; the
  render test for all themes now includes the floor plan
- Docs: THEMES §5, ZUSAMMENARBEIT §6, STATUS §6 (incl. note for tenancy phase 5)
- styles/grundriss: revised rendering, WebP renditions, room areas of the Stommer flat in percent

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Opus 5.5 committed 2026-10-23 15:26:02 +02:00
1 parent 04b5189bd8
commit f7cbc66451
26 files changed
+877 -1

No files matched your search

@@ -3,6 +3,7 @@
namespace Tests\Feature;
use App\Enums\ReviewStatus;
use App\Models\FloorPlan;
use App\Models\Page;
use App\Models\Property;
use App\Models\Review;
@@ -38,6 +39,10 @@ protected function setUp(): void
Review::factory()->for($property)->count(2)->create(['status' => ReviewStatus::Approved]);
SpecialOffer::factory()->for($property)->create(['name' => 'Herbstwochen', 'is_featured' => true]);
SpecialOffer::factory()->for($property)->create(['name' => 'Ab 5 Nächten', 'min_nights' => 5]);
FloorPlan::factory()->for($property)->create();
$apartment = Page::query()->where('slug', 'wohnung')->sole();
$apartment->update(['sections' => [...$apartment->sections, ['type' => 'floor_plan', 'data' => ['heading' => 'Der Grundriss']]]]);
}
public function test_every_installed_theme_renders_all_pages_with_offers_in_every_display_mode(): void
@@ -60,6 +65,8 @@ public function test_every_installed_theme_renders_all_pages_with_offers_in_ever
foreach (self::PAGES as $path) {
$this->get($path)->assertOk();
}
$this->get('/wohnung')->assertSee('Der Grundriss')->assertSee('Wohnbereich');
}
}
}