fix: remove unused imports flagged by TypeScript
This commit is contained in:
parent
ab02fb120c
commit
dea930dbc4
5 changed files with 3 additions and 23 deletions
|
|
@ -40,11 +40,6 @@ const formSchema = z.object({
|
||||||
|
|
||||||
type FormValues = z.infer<typeof formSchema>;
|
type FormValues = z.infer<typeof formSchema>;
|
||||||
|
|
||||||
const PRICE_BOUNDS = {
|
|
||||||
[ListingType.RENT]: { min: 0, max: 10000, step: 50 },
|
|
||||||
[ListingType.BUY]: { min: 0, max: 2000000, step: 10000 },
|
|
||||||
} as const;
|
|
||||||
|
|
||||||
// ── Props ──
|
// ── Props ──
|
||||||
interface FilterBarProps {
|
interface FilterBarProps {
|
||||||
onSubmit: (action: 'fetch-data' | 'visualize', parameters: ParameterValues) => void;
|
onSubmit: (action: 'fetch-data' | 'visualize', parameters: ParameterValues) => void;
|
||||||
|
|
@ -94,7 +89,6 @@ export function FilterBar({
|
||||||
onPoiTravelFiltersChange,
|
onPoiTravelFiltersChange,
|
||||||
listingType,
|
listingType,
|
||||||
onListingTypeChange,
|
onListingTypeChange,
|
||||||
poiPickerActive,
|
|
||||||
onPoiPickerActiveChange,
|
onPoiPickerActiveChange,
|
||||||
pickedPoiLocation,
|
pickedPoiLocation,
|
||||||
onPickedPoiLocationChange,
|
onPickedPoiLocationChange,
|
||||||
|
|
@ -161,11 +155,6 @@ export function FilterBar({
|
||||||
[form, onSubmit, currentMetric, selectedFurnishTypes],
|
[form, onSubmit, currentMetric, selectedFurnishTypes],
|
||||||
);
|
);
|
||||||
|
|
||||||
/** Public getter so App can read current form values (e.g. for FilterChips) */
|
|
||||||
const getValues = useCallback((): ParameterValues => {
|
|
||||||
return readFormParams(form.getValues(), currentMetric, selectedFurnishTypes);
|
|
||||||
}, [form, currentMetric, selectedFurnishTypes]);
|
|
||||||
|
|
||||||
const toggleFurnishType = (type: FurnishType) => {
|
const toggleFurnishType = (type: FurnishType) => {
|
||||||
setSelectedFurnishTypes((prev) =>
|
setSelectedFurnishTypes((prev) =>
|
||||||
prev.includes(type) ? prev.filter((t) => t !== type) : [...prev, type],
|
prev.includes(type) ? prev.filter((t) => t !== type) : [...prev, type],
|
||||||
|
|
|
||||||
|
|
@ -11,15 +11,6 @@ interface ListingDetailProps {
|
||||||
onClearDecision: () => void;
|
onClearDecision: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
function TravelModeIcon({ mode }: { mode: string }) {
|
|
||||||
switch (mode) {
|
|
||||||
case 'WALK': return <Footprints className="h-3 w-3" />;
|
|
||||||
case 'BICYCLE': return <Bike className="h-3 w-3" />;
|
|
||||||
case 'TRANSIT': return <Train className="h-3 w-3" />;
|
|
||||||
default: return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function TravelModeLabel({ mode }: { mode: string }) {
|
function TravelModeLabel({ mode }: { mode: string }) {
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case 'WALK': return 'Walk';
|
case 'WALK': return 'Walk';
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import { useState, useCallback, useEffect } from 'react';
|
import { useState, useCallback, useEffect } from 'react';
|
||||||
import useEmblaCarousel from 'embla-carousel-react';
|
import useEmblaCarousel from 'embla-carousel-react';
|
||||||
import { ExternalLink, Heart, Bed, Maximize2, Clock, Footprints, Bike, Train } from 'lucide-react';
|
import { ExternalLink, Footprints, Bike, Train } from 'lucide-react';
|
||||||
import type { PropertyProperties, POIDistanceInfo, POI } from '@/types';
|
import type { PropertyProperties, POIDistanceInfo, POI } from '@/types';
|
||||||
import { formatDuration } from '@/utils/format';
|
import { formatDuration } from '@/utils/format';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { TaskStatus, type TaskResult, type TaskState } from '@/types';
|
import { TaskStatus, type TaskState } from '@/types';
|
||||||
import { useEffect, useState, useRef, useMemo } from 'react';
|
import { useEffect, useState, useRef, useMemo } from 'react';
|
||||||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip';
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './ui/tooltip';
|
||||||
import { Button } from './ui/button';
|
import { Button } from './ui/button';
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/auth/authservice.ts","./src/auth/config.ts","./src/auth/errors.ts","./src/auth/passkeyservice.ts","./src/auth/types.ts","./src/components/alerterror.tsx","./src/components/authcallback.tsx","./src/components/favoritesview.tsx","./src/components/filterpanel.tsx","./src/components/header.tsx","./src/components/healthindicator.tsx","./src/components/listview.tsx","./src/components/listingdetail.tsx","./src/components/listingdetailsheet.tsx","./src/components/loginmodal.tsx","./src/components/map.tsx","./src/components/mobilebottomsheet.tsx","./src/components/mobilemenu.tsx","./src/components/poimanager.tsx","./src/components/photocarousel.tsx","./src/components/propertycard.tsx","./src/components/propertycardcompact.tsx","./src/components/spinner.tsx","./src/components/statsbar.tsx","./src/components/streamingprogressbar.tsx","./src/components/swipecard.tsx","./src/components/swipereviewmode.tsx","./src/components/swipeablecardrow.tsx","./src/components/swipeablepropertycard.tsx","./src/components/taskindicator.tsx","./src/components/taskprogressdrawer.tsx","./src/components/visualizationcard.tsx","./src/components/ui/datepicker.tsx","./src/components/ui/accordion.tsx","./src/components/ui/alert-dialog.tsx","./src/components/ui/breadcrumb.tsx","./src/components/ui/button.tsx","./src/components/ui/calendar.tsx","./src/components/ui/checkbox.tsx","./src/components/ui/dialog.tsx","./src/components/ui/form.tsx","./src/components/ui/hover-card.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/popover.tsx","./src/components/ui/progress.tsx","./src/components/ui/range-slider-field.tsx","./src/components/ui/scroll-area.tsx","./src/components/ui/select.tsx","./src/components/ui/separator.tsx","./src/components/ui/sheet.tsx","./src/components/ui/sidebar.tsx","./src/components/ui/skeleton.tsx","./src/components/ui/slider.tsx","./src/components/ui/tabs.tsx","./src/components/ui/tooltip.tsx","./src/constants/colorschemes.ts","./src/constants/index.ts","./src/hooks/use-mobile.ts","./src/hooks/usedecisions.ts","./src/hooks/uselistingdetail.ts","./src/hooks/usetaskprogress.ts","./src/lib/utils.ts","./src/services/apiclient.ts","./src/services/decisionservice.ts","./src/services/healthservice.ts","./src/services/index.ts","./src/services/listingdetailservice.ts","./src/services/listingservice.ts","./src/services/perfcollector.ts","./src/services/poiservice.ts","./src/services/streamingservice.ts","./src/services/taskservice.ts","./src/types/index.ts","./src/utils/maputils.ts","./src/utils/poiutils.ts","./src/workers/hexgridheatmapclient.ts","./src/workers/hexgrid.worker.ts","./src/workers/types.ts"],"version":"5.8.3"}
|
{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./src/auth/authservice.ts","./src/auth/config.ts","./src/auth/errors.ts","./src/auth/passkeyservice.ts","./src/auth/types.ts","./src/components/alerterror.tsx","./src/components/authcallback.tsx","./src/components/errorboundary.tsx","./src/components/favoritesview.tsx","./src/components/filterbar.tsx","./src/components/filterchips.tsx","./src/components/filterpanel.tsx","./src/components/header.tsx","./src/components/healthindicator.tsx","./src/components/listview.tsx","./src/components/listingdetail.tsx","./src/components/listingdetailsheet.tsx","./src/components/loginmodal.tsx","./src/components/map.tsx","./src/components/mobilebottomsheet.tsx","./src/components/mobilemenu.tsx","./src/components/poimanager.tsx","./src/components/photocarousel.tsx","./src/components/propertycard.tsx","./src/components/propertycardcompact.tsx","./src/components/spinner.tsx","./src/components/statsbar.tsx","./src/components/streamingprogressbar.tsx","./src/components/swipecard.tsx","./src/components/swipereviewmode.tsx","./src/components/swipeablecardrow.tsx","./src/components/swipeablepropertycard.tsx","./src/components/taskindicator.tsx","./src/components/taskprogressdrawer.tsx","./src/components/visualizationcard.tsx","./src/components/ui/datepicker.tsx","./src/components/ui/accordion.tsx","./src/components/ui/alert-dialog.tsx","./src/components/ui/breadcrumb.tsx","./src/components/ui/button.tsx","./src/components/ui/calendar.tsx","./src/components/ui/checkbox.tsx","./src/components/ui/dialog.tsx","./src/components/ui/form.tsx","./src/components/ui/hover-card.tsx","./src/components/ui/input.tsx","./src/components/ui/label.tsx","./src/components/ui/popover.tsx","./src/components/ui/progress.tsx","./src/components/ui/range-slider-field.tsx","./src/components/ui/scroll-area.tsx","./src/components/ui/select.tsx","./src/components/ui/separator.tsx","./src/components/ui/sheet.tsx","./src/components/ui/sidebar.tsx","./src/components/ui/skeleton.tsx","./src/components/ui/slider.tsx","./src/components/ui/tabs.tsx","./src/components/ui/tooltip.tsx","./src/constants/colorschemes.ts","./src/constants/index.ts","./src/hooks/use-mobile.ts","./src/hooks/usedecisions.ts","./src/hooks/usefilterparams.ts","./src/hooks/uselistingdetail.ts","./src/hooks/usetaskprogress.ts","./src/lib/utils.ts","./src/services/apiclient.ts","./src/services/decisionservice.ts","./src/services/healthservice.ts","./src/services/index.ts","./src/services/listingcache.ts","./src/services/listingdetailservice.ts","./src/services/listingservice.ts","./src/services/perfcollector.ts","./src/services/poiservice.ts","./src/services/streamingservice.ts","./src/services/taskservice.ts","./src/types/index.ts","./src/utils/format.ts","./src/utils/maputils.ts","./src/utils/poiutils.ts","./src/utils/taskutils.ts","./src/workers/hexgridheatmapclient.ts","./src/workers/hexgrid.worker.ts","./src/workers/types.ts"],"version":"5.8.3"}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue