Remove obsolete Livewire fuel search components and consolidate pricing tiers
- Delete unused Livewire Search test and fuel type select Blade component - Move subscription webhook listener from EventServiceProvider to AppServiceProvider - Add FUEL_TYPES global config to app layout for client-side use - Add Billable trait to User model and include email_verified_at in fillable - Implement monthly/annual cadence toggle with pricing display and smart CTA routing on homepage - Update VerifyApiKeyMiddlewareTest to use e10 instead of petrol - Refactor PollFuelPrices to auto-refresh stale stations based on last_seen_at - Add incremental polling with cached timestamp and effective-start-timestamp param to FuelPriceService - Normalize amenities/fuel_types from API objects to flat arrays, skip stations missing required fields - Log response body on API failures in ApiLogger - Default homepage sort to 'reliable' instead of 'price'
This commit is contained in:
@@ -41,12 +41,9 @@
|
||||
aria-label="Fuel type"
|
||||
class="min-w-0 h-10 px-2 bg-white border border-zinc-300 rounded-xl text-sm font-medium text-zinc-700 focus:outline-none focus:ring-2 focus:ring-accent truncate"
|
||||
>
|
||||
<option value="e10">Petrol (E10)</option>
|
||||
<option value="e5">Premium (E5)</option>
|
||||
<option value="b7_standard">Diesel (B7)</option>
|
||||
<option value="b7_premium">Prem Diesel</option>
|
||||
<option value="b10">Diesel (B10)</option>
|
||||
<option value="hvo">HVO</option>
|
||||
<option v-for="fuel in FUEL_TYPES" :key="fuel.value" :value="fuel.value">
|
||||
{{ fuel.label }}
|
||||
</option>
|
||||
</select>
|
||||
<select
|
||||
v-model="radius"
|
||||
@@ -63,11 +60,11 @@
|
||||
aria-label="Sort by"
|
||||
class="min-w-0 h-10 px-2 bg-white border border-zinc-300 rounded-xl text-sm font-medium text-zinc-700 focus:outline-none focus:ring-2 focus:ring-accent"
|
||||
>
|
||||
<option value="reliable">Reliable</option>
|
||||
<option value="price">Price</option>
|
||||
<option value="distance">Distance</option>
|
||||
<option value="updated">Updated</option>
|
||||
<option value="brand">Brand</option>
|
||||
<option value="reliable">Reliable</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
@@ -75,13 +72,14 @@
|
||||
|
||||
<script setup>
|
||||
import { ref } from 'vue'
|
||||
import { FUEL_TYPES } from '../constants/fuelTypes.js'
|
||||
|
||||
const emit = defineEmits(['search'])
|
||||
|
||||
const postcode = ref('')
|
||||
const fuelType = ref('e10')
|
||||
const radius = ref(10)
|
||||
const sort = ref('price')
|
||||
const sort = ref('reliable')
|
||||
const locating = ref(false)
|
||||
|
||||
function useMyLocation() {
|
||||
|
||||
Reference in New Issue
Block a user