Add Livewire components for parks, rides, and manufacturers

- Implemented ParksLocationSearch component with loading state and refresh functionality.
- Created ParksMapView component with similar structure and functionality.
- Added RegionalParksListing component for displaying regional parks.
- Developed RidesListingUniversal component for universal listing integration.
- Established ManufacturersListing view with navigation and Livewire integration.
- Added feature tests for various Livewire components including OperatorHierarchyView, OperatorParksListing, OperatorPortfolioCard, OperatorsListing, OperatorsRoleFilter, ParksListing, ParksLocationSearch, ParksMapView, and RegionalParksListing to ensure proper rendering and adherence to patterns.
This commit is contained in:
pacnpal
2025-06-23 21:31:05 -04:00
parent 5caa148a89
commit 97a7682eb7
62 changed files with 10532 additions and 210 deletions

View File

@@ -0,0 +1,54 @@
<?php
namespace App\Livewire;
use Livewire\Component;
use Illuminate\Support\Facades\Cache;
class ParksLocationSearch extends Component
{
/**
* Component initialization
*/
public function mount(): void
{
// Initialize component state
}
/**
* Render the component
*/
public function render()
{
return view('livewire.parks-location-search');
}
/**
* Get cache key for this component
*/
protected function getCacheKey(string $suffix = ''): string
{
return 'thrillwiki.' . class_basename(static::class) . '.' . $suffix;
}
/**
* Remember data with caching
*/
protected function remember(string $key, $callback, int $ttl = 3600)
{
return Cache::remember($this->getCacheKey($key), $ttl, $callback);
}
/**
* Invalidate component cache
*/
protected function invalidateCache(string $key = null): void
{
if ($key) {
Cache::forget($this->getCacheKey($key));
} else {
// Clear all cache for this component
Cache::flush();
}
}
}