Fix all TypeScript errors and remove Storybook
All checks were successful
Build Docker Image / build (push) Successful in 5m8s

- Remove all Storybook files and configuration
- Add type declarations for @vueuse/core, @formkit/core, vue3-apexcharts
- Fix TypeScript configuration (typeRoots, include paths)
- Fix Sentry config - move settings to plugin
- Fix nullable prop assignments with ?? operator
- Fix type narrowing issues with explicit type assertions
- Fix Card component linkable computed properties
- Update codegen with operationResultSuffix
- Fix GraphQL operation type definitions
This commit is contained in:
Ruslan Bakiev
2026-01-26 00:32:36 +07:00
parent b326d8cd76
commit 2b6cccdead
99 changed files with 419 additions and 1171 deletions

View File

@@ -18,8 +18,8 @@
<!-- Results -->
<div v-else-if="productRouteOptions.length > 0" class="space-y-4">
<OfferResultCard
v-for="option in productRouteOptions"
:key="option.sourceUuid"
v-for="(option, index) in productRouteOptions"
:key="option.sourceUuid ?? index"
:location-name="getOfferData(option.sourceUuid)?.locationName"
:product-name="productName"
:price-per-unit="getOfferData(option.sourceUuid)?.pricePerUnit"
@@ -66,6 +66,21 @@
<script setup lang="ts">
import { GetNodeDocument, NearestOffersDocument, RouteToCoordinateDocument } from '~/composables/graphql/public/geo-generated'
import type { RouteStageItem } from '~/components/RouteStagesList.vue'
interface RouteStage {
fromUuid?: string | null
fromName?: string | null
toName?: string | null
distanceKm?: number | null
travelTimeSeconds?: number | null
transportType?: string | null
}
interface RoutePathType {
totalDistanceKm?: number | null
totalTimeSeconds?: number | null
stages?: (RouteStage | null)[]
}
import { GetOfferDocument, GetSupplierProfileByTeamDocument } from '~/composables/graphql/public/exchange-generated'
const route = useRoute()
@@ -140,8 +155,8 @@ const fetchOffersByHub = async () => {
RouteToCoordinateDocument,
{
offerUuid: offer.uuid,
lat: hub.latitude,
lon: hub.longitude
lat: hub.latitude!,
lon: hub.longitude!
},
'public',
'geo'
@@ -186,7 +201,7 @@ const productRouteOptions = computed(() => {
return options?.filter(Boolean) || []
})
const legacyRoutes = computed(() => {
const legacyRoutes = computed<RoutePathType[]>(() => {
return [] // Legacy routes removed
})