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

@@ -35,8 +35,8 @@ export const useLocationStore = defineStore('location', () => {
if (type === 'hub') {
const { data: nodesData, error: nodesError } = await useServerQuery('location-nodes', GetNodesDocument, {}, 'public', 'geo')
if (nodesError.value) throw nodesError.value
const hub = nodesData.value?.nodes?.find((n: { uuid: string }) => n.uuid === uuid)
if (hub) {
const hub = nodesData.value?.nodes?.find((n) => n?.uuid === uuid)
if (hub && hub.uuid && hub.name && hub.latitude != null && hub.longitude != null) {
selectedLocation.value = {
type: 'hub',
uuid: hub.uuid,
@@ -49,8 +49,8 @@ export const useLocationStore = defineStore('location', () => {
const { GetTeamAddressesDocument } = await import('~/composables/graphql/team/teams-generated')
const { data: addressesData, error: addressesError } = await useServerQuery('location-addresses', GetTeamAddressesDocument, {}, 'team', 'teams')
if (addressesError.value) throw addressesError.value
const address = addressesData.value?.teamAddresses?.find((a: { uuid: string }) => a.uuid === uuid)
if (address) {
const address = addressesData.value?.teamAddresses?.find((a) => a?.uuid === uuid)
if (address && address.uuid && address.name && address.latitude != null && address.longitude != null) {
selectedLocation.value = {
type: 'address',
uuid: address.uuid,
@@ -72,10 +72,10 @@ export const useLocationStore = defineStore('location', () => {
try {
const { SetSelectedLocationDocument } = await import('~/composables/graphql/team/teams-generated')
console.log('[locationStore.select] calling mutate')
const result = await mutate(SetSelectedLocationDocument, { input: { type, uuid, name, latitude, longitude } }, 'team', 'teams')
const result = await mutate(SetSelectedLocationDocument, { input: { type, uuid, name, latitude, longitude } }, 'team', 'teams') as { selectedLocation?: { success?: boolean } } | null
console.log('[locationStore.select] result:', result)
if (result?.setSelectedLocation?.success) {
if (result?.selectedLocation?.success) {
selectedLocation.value = { type, uuid, name, latitude, longitude }
return true
}