From 531f3282d94f86cdc7de4208064249ac08e9793f Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 9 Apr 2026 01:02:25 +0000 Subject: [PATCH] Move bounds to API types --- ts/components/CommunicationColumnDetail.vue | 4 ++-- ts/components/MapAggregate.vue | 3 ++- ts/components/MapMultipoint.vue | 3 ++- ts/components/ReviewPoolColumnDetail.vue | 4 ++-- ts/types.ts | 4 ---- ts/view/Communication.vue | 4 ++-- ts/view/Home.vue | 2 +- ts/view/review/Pool.vue | 4 ++-- 8 files changed, 13 insertions(+), 15 deletions(-) diff --git a/ts/components/CommunicationColumnDetail.vue b/ts/components/CommunicationColumnDetail.vue index 4784135e..80349b9d 100644 --- a/ts/components/CommunicationColumnDetail.vue +++ b/ts/components/CommunicationColumnDetail.vue @@ -75,8 +75,8 @@ import { computed } from "vue"; import MapMultipoint from "@/components/MapMultipoint.vue"; import PublicreportCard from "@/components/PublicreportCard.vue"; import TimeRelative from "@/components/TimeRelative.vue"; -import type { Bounds, Marker } from "@/types"; -import type { Communication, User } from "@/type/api"; +import type { Marker } from "@/types"; +import type { Bounds, Communication, User } from "@/type/api"; import { useSessionStore } from "@/store/session"; interface Emits { diff --git a/ts/components/MapAggregate.vue b/ts/components/MapAggregate.vue index 8e26cbd6..9f9153fd 100644 --- a/ts/components/MapAggregate.vue +++ b/ts/components/MapAggregate.vue @@ -30,7 +30,8 @@ import "maplibre-gl/dist/maplibre-gl.css"; import maplibregl from "maplibre-gl"; import type { LngLatBoundsLike, Map as MapLibreMap } from "maplibre-gl"; import { onMounted, onUnmounted, ref, shallowRef, type Ref } from "vue"; -import { Bounds, Marker } from "@/types"; +import { Marker } from "@/types"; +import type { Bounds } from "@/type/api"; interface Emits { (e: "cell-click", cell: number): void; diff --git a/ts/components/MapMultipoint.vue b/ts/components/MapMultipoint.vue index 70f660e6..66317c6d 100644 --- a/ts/components/MapMultipoint.vue +++ b/ts/components/MapMultipoint.vue @@ -32,7 +32,8 @@ import { watch, type Ref, } from "vue"; -import { Bounds, Marker } from "@/types"; +import { Marker } from "@/types"; +import type { Bounds } from "@/type/api"; interface Emits {} interface Props { diff --git a/ts/components/ReviewPoolColumnDetail.vue b/ts/components/ReviewPoolColumnDetail.vue index 67ec3e91..55789181 100644 --- a/ts/components/ReviewPoolColumnDetail.vue +++ b/ts/components/ReviewPoolColumnDetail.vue @@ -149,8 +149,8 @@ import MapMultipoint from "@/components/MapMultipoint.vue"; import MapProxiedArcgisTile from "@/components/MapProxiedArcgisTile.vue"; import { formatAddress } from "@/format"; import { useSessionStore } from "@/store/session"; -import type { Bounds, MapClickEvent, Marker } from "@/types"; -import { Contact, Pool, ReviewTask, User } from "@/type/api"; +import type { MapClickEvent, Marker } from "@/types"; +import { Bounds, Contact, Pool, ReviewTask, User } from "@/type/api"; import type { Location } from "@/type/api"; interface Props { diff --git a/ts/types.ts b/ts/types.ts index 8394ded1..4d4e8c1e 100644 --- a/ts/types.ts +++ b/ts/types.ts @@ -1,10 +1,6 @@ import type { Map as MapLibreMap } from "maplibre-gl"; import { Location } from "@/type/api"; -export interface Bounds { - min: Location; - max: Location; -} export interface Changes { updated: string[]; unchanged: string[]; diff --git a/ts/view/Communication.vue b/ts/view/Communication.vue index a09b3617..c970866c 100644 --- a/ts/view/Communication.vue +++ b/ts/view/Communication.vue @@ -68,8 +68,8 @@ import ToastNotification from "@/components/ToastNotification.vue"; import { SSEManager } from "@/SSEManager"; import { useCommunicationStore } from "@/store/communication"; import { useSessionStore } from "@/store/session"; -import type { Bounds, Marker } from "@/types"; -import type { Communication } from "@/type/api"; +import type { Marker } from "@/types"; +import type { Bounds, Communication } from "@/type/api"; const communication = useCommunicationStore(); const session = useSessionStore(); diff --git a/ts/view/Home.vue b/ts/view/Home.vue index 37a49772..7e9e419b 100644 --- a/ts/view/Home.vue +++ b/ts/view/Home.vue @@ -159,7 +159,7 @@ import { onMounted, reactive } from "vue"; import MapAggregate from "@/components/MapAggregate.vue"; import { formatBigNumber, formatTimeRelative } from "@/format"; import { useSessionStore } from "@/store/session"; -import type { Bounds } from "@/types"; +import type { Bounds } from "@/type/api"; const dashboard = reactive({ counts: { diff --git a/ts/view/review/Pool.vue b/ts/view/review/Pool.vue index d215e206..107bfa00 100644 --- a/ts/view/review/Pool.vue +++ b/ts/view/review/Pool.vue @@ -99,8 +99,8 @@ import ReviewPoolColumnAction from "@/components/ReviewPoolColumnAction.vue"; import ReviewPoolColumnDetail from "@/components/ReviewPoolColumnDetail.vue"; import ReviewPoolColumnList from "@/components/ReviewPoolColumnList.vue"; import type { Changes } from "@/types"; -import { Contact, Location, ReviewTask } from "@/type/api"; -import { Bounds, MapClickEvent, Marker } from "@/types"; +import { Bounds, Contact, Location, ReviewTask } from "@/type/api"; +import { MapClickEvent, Marker } from "@/types"; interface FormData { latitude: number;